body {
    font-family: 'Archivo', sans-serif;
    margin: 0;
    background-color: #371A51;
    min-height: 100vh;
    padding-top: clamp(80px, 12vw, 120px);
}

* {
    box-sizing: border-box;
}

h1 {
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    font-display: swap;
    font-style: normal;
    margin: 0;
}

h2 {
   font-family: 'Clash Display', sans-serif;
   font-weight: 600;
   font-display: swap;
   font-style: normal;
   margin: 0;
}

a {
   font-family: 'Clash Display', sans-serif;
   font-weight: 600;
   font-display: swap;
   font-style: normal;
   font-size: clamp(25px, 4vw, 40px); 
}

.Logo {
    text-decoration: none;
    color: #EBD66C;
    font-weight: bolder;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    background-color: #371A51;
    padding: clamp(10px, 2vw, 20px) clamp(15px, 4vw, 40px);
    z-index: 50;
}

.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #371A51;
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: flex-start;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
    z-index: 99;
    padding: 40px;
    padding-top: 70px;
}

.fullscreen-menu.active {
    transform: translateY(0);
}

.menu-links {
    list-style: none;
    text-align: left;
    margin: 0;
    padding: 0;
}

.menu-links li {
    margin: 30px 0;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.fullscreen-menu.active .menu-links li {
    opacity: 1;
    transform: translateY(0);
}

.fullscreen-menu.active .menu-links li:nth-child(1) {
    transition-delay: 0.1s;
}

.fullscreen-menu.active .menu-links li:nth-child(2) {
    transition-delay: 0.2s;
}

.fullscreen-menu.active .menu-links li:nth-child(3) {
    transition-delay: 0.3s;
}

.fullscreen-menu.active .menu-links li:nth-child(4) {
    transition-delay: 0.4s;
}

.fullscreen-menu.active .menu-links li:nth-child(5) {
    transition-delay: 0.5s;
}

.menu-links a {
    color: #F8F2CD;
    text-decoration: none;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.menu-links a:hover {
    transform: scale(1.1);
    color: #EBD66C;
}

.burger-icon {
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: fixed;
    top: clamp(25px, 4vw, 40px);
    right: clamp(25px, 4vw, 40px);
    z-index: 200;
}

.burger-icon span {
    width: 100%;
    height: 3px;
    background: #E8DDF7;
    transition: all 0.3s ease;
}

.burger-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.burger-icon.active span:nth-child(2) {
    opacity: 0;
}

.burger-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.container {
    padding: clamp(30px, 5vw, 80px) clamp(30px, 5vw, 80px);
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 150px;
}

.wallet-section {
    background-color: #7845AD;
    padding: clamp(30px, 5vw, 50px);
    margin-bottom: clamp(40px, 6vw, 60px);
    border-radius: 0;
}

.wallet-section h1 {
    color: #EBD66C;
    font-size: clamp(35px, 6vw, 50px);
    margin-bottom: clamp(20px, 3vw, 30px);
    text-decoration: #F8F2CD wavy underline 3px;
}

.wallet-section h2 {
    color: #F8F2CD;
    font-size: clamp(20px, 3vw, 28px);
    margin-bottom: clamp(15px, 2vw, 20px);
}

.balance-container {
    display: flex;
    flex-direction: column;
    gap: clamp(15px, 3vw, 25px);
    margin-bottom: clamp(20px, 3vw, 30px);
}

.balance-display {
    display: flex;
    align-items: center;
    gap: clamp(15px, 3vw, 30px);
    flex-wrap: wrap;
}

#solde {
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 5vw, 42px);
    color: #EBD66C;
}

#soustraction {
    font-family: 'Clash Display', sans-serif;
    font-weight: 600;
    font-size: clamp(20px, 4vw, 32px);
    color: #F8F2CD;
}

.wallet-section input[type="button"],
.wallet-section button {
    font-family: 'Clash Display', sans-serif;
    font-weight: 500;
    background-color: transparent;
    border: 1px solid #EBD66C;
    color: #EBD66C;
    padding: clamp(10px, 2vw, 15px) clamp(15px, 3vw, 25px);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.wallet-section input[type="button"]:hover,
.wallet-section button:hover {
    background-color: #EBD66C;
    color: #371A51;
    transform: scale(1.05);
}

.shop-container {
    display: flex;
    flex-direction: column;
    gap: clamp(30px, 5vw, 60px);
    margin-top: clamp(40px, 6vw, 60px);
}

.catalogue-section {
    background-color: #E8DDF7;
    padding: clamp(25px, 4vw, 40px);
}

.catalogue-section h1 {
    color: #371A51;
    font-size: clamp(30px, 5vw, 42px);
    margin-bottom: clamp(20px, 3vw, 30px);
}

#catalogue {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(15px, 3vw, 25px);
}

#catalogue li {
    background-color: #371A51;
    padding: clamp(15px, 3vw, 25px);
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2vw, 15px);
    transition: all 0.3s ease;
    color: #F8F2CD;
}

#catalogue li:hover {
    transform: translateX(5px);
}

#catalogue li strong {
    font-family: 'Clash Display', sans-serif;
    font-size: clamp(18px, 3vw, 24px);
    color: #EBD66C;
}

#catalogue button {
    font-family: 'Clash Display', sans-serif;
    font-weight: 500;
    background-color: transparent;
    border: 2px solid #EBD66C;
    color: #EBD66C;
    padding: clamp(8px, 2vw, 12px) clamp(12px, 3vw, 20px);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

#catalogue button:hover {
    background-color: #EBD66C;
    border: none;
    color: #371A51;
    transform: scale(1.05);
}

#catalogue span {
    color: #7845AD;
    font-style: italic;
}

.panier-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #E8DDF7;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: transform 0.4s ease;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.panier-section.hidden {
    transform: translateY(calc(100% - 70px));
}

.panier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(15px, 3vw, 25px);
    background-color: #7845AD;
    cursor: pointer;
    user-select: none;
    height: 70px;
}

.panier-header h1 {
    color: #EBD66C;
    font-size: clamp(22px, 4vw, 32px);
    margin: 0;
}

.panier-toggle {
    font-family: 'Clash Display', sans-serif;
    font-weight: 500;
    background-color: transparent;
    border: 1px solid #EBD66C;
    color: #EBD66C;
    padding: clamp(8px, 2vw, 12px) clamp(12px, 3vw, 20px);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.panier-toggle:hover {
    background-color: #EBD66C;
    color: #371A51;
    transform: scale(1.05);
}

.panier-content {
    padding: clamp(15px, 3vw, 25px);
    overflow-y: auto;
    flex: 1;
}

#panier {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vw, 20px);
    margin-bottom: clamp(20px, 3vw, 30px);
    min-height: 50px;
}

#panier:empty::after {
    content: "Votre panier est vide";
    color: #7845AD;
    font-style: italic;
    padding: clamp(15px, 3vw, 20px);
    text-align: center;
    display: block;
}

#panier li {
    background-color: #7845AD;
    color: #F8F2CD;
    padding: clamp(15px, 3vw, 20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 15px);
    transition: all 0.3s ease;
}

#panier li:hover {
    background-color: #6837A0;
}

#panier button {
    font-family: 'Clash Display', sans-serif;
    font-weight: 500;
    background-color: transparent;
    border: 1px solid #EBD66C;
    color: #EBD66C;
    padding: clamp(6px, 1.5vw, 10px) clamp(10px, 2vw, 15px);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#panier button:hover {
    background-color: #EBD66C;
    color: #371A51;
    transform: scale(1.05);
}

.panier-actions {
    display: flex;
    gap: clamp(10px, 3vw, 20px);
    flex-wrap: wrap;
    margin-top: clamp(20px, 3vw, 30px);
}

.panier-actions button {
    font-family: 'Clash Display', sans-serif;
    font-weight: 500;
    background-color: transparent;
    border: 2px solid #7845AD;
    color: #7845AD;
    padding: clamp(10px, 2vw, 15px) clamp(15px, 3vw, 25px);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.panier-actions button:hover {
    background-color: #7845AD;
    color: #EBD66C;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .balance-display {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .panier-section {
        max-height: 70vh;
    }
    
    .panier-section.hidden {
        transform: translateY(calc(100% - 70px));
    }
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10px);
    }
}