/* RÉINITIALISATION */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    background-color: #000000;
    margin: 0;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.site-footer {
    flex-shrink: 0;
}

/* FONTS */
@font-face {
    font-family: 'Anton';
    src: url('../fonts/Anton/Anton-Regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Arimo';
    src: url('../fonts/Arimo/Arimo-VariableFont_wght.ttf') format('truetype');
    font-display: swap;
}

/* CONTAINER */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* HEADER */
.site-header {
    background-color: #0E0E0E;
    top: 0;
    width: 100%;
    padding: 20px 0;
    backdrop-filter: blur(6px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 3px;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.logo a img {
    height: 100px;
    width: auto;
    margin-right: 10px;
    border-radius: 5px;
}

.logo a:hover { opacity: 0.7; }

/* NAVIGATION */
.menu-links {
    display: flex;
    gap: 25px;
    align-items: center; /* ← ajout */
}

.menu-links a {
    font-family: 'Arimo', serif;
    text-decoration: none;
    color: #AAAAAA;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: color 0.3s ease, opacity 0.3s ease;
    line-height: 1; /* ← ajout */
}

.menu-links a:hover {
    color: #CCCCCC;
}

/* PANIER */
.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none !important;
    line-height: 1;
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    display: block;
}

.cart-icon:hover .cart-img { opacity: 1; }

.cart-icon-desktop {
    display: flex;
    align-items: center;
    padding: 0;
    line-height: 1;
}

.cart-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    background-color: #9D2137;
    color: #F5F5F5;
    font-family: 'Arimo', sans-serif;
    font-size: 0.6rem;
    font-weight: bold;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* HEADER RIGHT - burger + panier mobile */
.header-right {
    display: none;
    align-items: center;
    gap: 15px;
}

/* MENU BURGER */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
    margin-right: 15px;
    z-index: 1100;
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #AAAAAA;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* COOKIES */
.cookie-banner {
    position: fixed;
    bottom: 50px;
    bottom: max(50px, env(safe-area-inset-bottom));
    left: 20px;
    max-width: 350px;
    background: #1C1C1C;
    color: #F5F5F5;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    z-index: 9999;
    font-family: 'Arimo', sans-serif;
    animation: fadeInCookie 0.4s ease-out;
}

.cookie-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.cookie-content a {
    color: #9D2137;
    text-decoration: underline;
}

.cookie-content a:hover { color: #F5F5F5; }

#accept-cookies,
#reject-cookies {
    background: #9D2137;
    color: #F5F5F5;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s ease;
}

#accept-cookies:hover,
#reject-cookies:hover { background: #74182A; }

@keyframes fadeInCookie {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* FOOTER */
.site-footer {
    width: 100%;
    background-color: #0E0E0E;
    color: #AAAAAA;
    padding: 30px 0;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    font-size: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-left a {
    font-family: 'Arimo', serif;
    text-decoration: none;
    color: #AAAAAA;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-left a:hover {
    color: #9d2137;
    opacity: 0.8;
}

.footer-credit {
    font-family: 'Arimo';
    font-size: 0.75rem;
    color: #AAAAAA;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: right;
}

.footer-credit a {
    text-decoration: none;
    color: #F5F5F5;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-credit a:hover {
    color: #9D2137;
    opacity: 0.8;
}

.instagram-link {
    align-self: flex-end;
    margin-top: 5px;
}

.instagram-link img {
    width: 40px;
    height: auto;
}

.cookie-credit {
    margin-top: 8px;
    font-size: 0.6rem;
    text-align: right;
}

.cookie-credit a { color: #AAAAAA; }

/* DESKTOP (> 1024px) */
@media (min-width: 1025px) {
    .header-right {
        display: none;
    }
    .cart-icon-desktop {
        display: flex;
    }
}

/* MEDIA QUERIES TABLETTE */
@media (max-width: 1024px) {

    .header-right {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .cart-icon-desktop {
        display: none !important;
    }

    .menu-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 300px;
        background-color: #000000 !important;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 30px;
        transition: right 0.3s ease;
        z-index: 2500;
        padding-top: 140px;
        padding-left: 20px;
        box-shadow: -4px 0 10px rgba(0,0,0,0.5);
    }

    .menu-links.active { right: 0; }
    .menu-links a { font-size: 1.2rem; color: #F5F5F5; }

    .burger {
        display: flex;
        margin-right: 0;
    }

    .burger.active { display: none; }

    .menu-close {
        position: absolute;
        top: 50px;
        right: 40px;
        font-size: 2.2rem;
        color: #F5F5F5;
        cursor: pointer;
        z-index: 3000;
        display: none;
    }

    .menu-links.active .menu-close { display: block; }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left {
        order: 1;
        align-items: center;
    }

    .footer-credit,
    .cookie-credit {
        order: 2;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
    .instagram-link {
        align-self: center;
        margin-top: 10px;
    }
}

/* MEDIA QUERIES MOBILE */
@media (max-width: 768px) {

    .menu-links {
        width: 250px;
        padding-top: 120px;
        padding-left: 15px;
    }

    .menu-links a { font-size: 1.1rem; }

    .burger { width: 22px; height: 18px; }

    .header-right {
        gap: 20px;
    }

    .menu-close {
        font-size: 2rem;
        top: 50px;
        right: 30px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left {
        order: 1;
        align-items: center;
    }

    .footer-credit,
    .cookie-credit {
        order: 2;
        margin-top: 30px;
        font-size: 0.6rem;
        width: 100%;
        text-align: center;
    }
}