/* Police Bebas Neue hebergee sur le site (aucun appel a Google Fonts) - licence OFL : assets/fonts/ */
@font-face {
    font-family: 'Bebas Neue';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/fonts/bebas-neue-latin-400-normal.woff2') format('woff2'),
         url('../assets/fonts/bebas-neue-latin-400-normal.woff') format('woff');
}

/*
CHARTE GRAPHIQUE ENTERPRISE
*/

/* 
Reset & Typographie Globale 
*/
* {
    font-family: 'Bebas Neue', Arial, sans-serif !important;
    letter-spacing: 0.8px;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: #ffffff !important;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Titres H1 & H2 principaux */
#category-title, 
main h1,
main h2 {
    display: block !important;
    text-align: center;
    font-size: 3rem !important;
    color: #c89a4b !important; /* Couleur dorée marque */
    margin: 1.5rem 0 2rem 0;
    letter-spacing: 1.5px;
}

/* Utilitaire de masquage */
.hidden {
    display: none !important;
}

/*
Header
*/
.header-pages {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.8rem 2rem !important;
    background: #d4a359 !important; /* Fond doré */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.header-pages a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 1.35rem !important;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.header-pages a:hover {
    color: #111827 !important;
    background: rgba(255, 255, 255, 0.2);
}

/* Logo & Icônes du Header */
.header-pages #logo {
    height: 44px !important;
    width: auto !important;
}

.header-pages #panier img {
    width: 45px !important;
    height: 45px !important;
    object-fit: contain !important;
    filter: none !important;
}

.header-pages #account img,
.header-pages #identification img {
    width: 30px !important;
    height: 30px !important;
    object-fit: contain !important;
    filter: none !important;
}

/* 
Footer
*/
.footer-info {
    background: #ffffff !important;
    padding: 2rem 1rem !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2.5rem !important;
    flex-wrap: wrap;
    border-top: 1px solid #e2e8f0;
    margin-top: auto;
}

.footer-info a {
    color: #000000 !important;
    text-decoration: none !important;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.footer-info a:hover {
    color: #c89a4b !important;
    text-decoration: underline !important;
}

/*
Modale Globale de Vérification d'Âge
*/
#age-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1rem;
}

.age-popup-box {
    background: #ffffff !important;
    color: #1a1a1a !important;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.age-popup-box h2 {
    color: #c89a4b !important;
    margin-top: 0;
    font-size: 2.2rem !important;
}

.age-popup-box p {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 1.5rem;
}

.age-popup-box-button {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.age-popup-box-button button {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 10px;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    color: #ffffff !important;
}

#btn-age-yes {
    background: #0284c7 !important; /* Bleu d'action principal */
}

#btn-age-yes:hover {
    background: #0369a1 !important;
}

#btn-age-no {
    background: #dc2626 !important; /* Rouge d'annulation */
}

#btn-age-no:hover {
    background: #b91c1c !important;
}

/*
(Header, Footer & Modale)
*/

/* IPAD / TABLETTES */
@media (max-width: 1024px) {
    .header-pages {
        padding: 0.8rem 1.5rem !important;
        justify-content: center !important;
        gap: 1.2rem;
    }

    main h1, #category-title, main h2 {
        font-size: 2.5rem !important;
    }

    .footer-info {
        gap: 1.5rem !important;
    }
}

/* --- TÉLÉPHONES MOBILES (< 768px) --- */
@media (max-width: 768px) {
    .header-pages {
        flex-direction: column !important;
        align-items: center !important;
        padding: 1rem !important;
        gap: 0.8rem;
    }

    .header-pages a {
        font-size: 1.2rem !important;
        padding: 0.3rem 0.6rem;
    }

    main {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    main h1, #category-title, main h2 {
        font-size: 2rem !important;
        margin: 1rem 0;
    }

    .age-popup-box {
        padding: 1.5rem;
    }

    .age-popup-box-button {
        flex-direction: column;
        width: 100%;
    }

    .age-popup-box-button button {
        width: 100%;
    }

    .footer-info {
        flex-direction: column !important;
        gap: 0.8rem !important;
        padding: 1.5rem 1rem !important;
        text-align: center;
    }

    .footer-info a {
        font-size: 1.1rem;
    }
}