/* ==========================================================================
   CONFIGURATIONS GLOBALES
   ========================================================================== */
@font-face {
    font-family: 'CookieRun-Bold';
    src: url('../fonts/CookieRun Bold.ttf');
}

body {
    margin: 0;
    font-family: 'CookieRun-Bold', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    /* Couleurs principales */
    --theme-primary: #A6795B;
    --theme-secondary: #865C43;
    --theme-accent: #9B694B;
    --theme-text: #FFF0DC;
    --theme-text-shadow: rgba(0, 0, 0, 0.3);

    /* Backgrounds */
    --bg-color: #603720;
    --bg-image: url("../images/background/lobby_normal.webp");

    /* Titres */
    --title-color: #CEA98D;

    /* Positions par défaut */
    --pos-illustration-top: 150px;
    --pos-illustration-left: 290px;
}

@font-face {
    font-family: 'CookieRun-Bold';
    src: url('../fonts/CookieRun\ Bold.ttf');
}

body {
    margin: 0;
    font-family: 'CookieRun-Bold', sans-serif;
    background-color: var(--bg-color);
    color: var(--theme-text);
}

/* Rareté Antique (Gestion dynamique) */
body.rarity-antique .nom-cookie {
    color: #60206C !important;
}

/* Rareté Rare (Gestion dynamique) */
body.rarity-rare .nom-cookie {
    color: #629FC6 !important;
}

/* Rareté Super Epique (Gestion dynamique) */
body.rarity-superepic .nom-cookie {
    color: #D161C6 !important;
}

/* Rareté Epique (Gestion dynamique) */
body.rarity-epic .nom-cookie {
    color: #F766A7 !important;
}

/* Rareté Légendaire (Gestion dynamique) */
body.rarity-legendary .nom-cookie {
    background: linear-gradient(135deg, #8A2BE2 0%, #1E90FF 40%, #55d155 75%, #55d155 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    text-shadow: none !important;
    filter: drop-shadow(0px 4px 4px rgba(12, 12, 12, 0.3));
}

/* Rareté Spécial (Gestion dynamique) */
body.rarity-special .nom-cookie {
    color: #FAC534 !important;
}

/* Rareté Dragon (Gestion dynamique) */
body.rarity-dragon .nom-cookie {
    color: #BA291A !important;
}

/* Rareté Bête (Gestion dynamique) */
body.rarity-bete .nom-cookie {
    color: #C51F42 !important;
}

/* Rareté Sorcière (Gestion dynamique) */
body.rarity-sorciere .nom-cookie {
    color: #A41169 !important;
}

/* ==========================================================================
   COMPOSANTS PARTAGÉS (BOUTONS)
   ========================================================================== */

.btn {
    cursor: pointer;
    border-radius: 100px;
    padding: 0px;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    display: inline-block;
    position: relative;
    top: -10px;
    transition: transform 0.15s ease-out;
    text-decoration: none;
    font-size: 50px;
    font-weight: 900;
    font-family: inherit;
}

.btn:focus,
.btn:focus-visible {
    outline: none;
    box-shadow: none;
}

.btn:active {
    transform: translateY(4px);
}

/* Animations de survol pour les boutons de navigation et costume */
.btn-costume,
.btn-cookie-precedent,
.btn-cookie-suivant {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-costume:hover,
.btn-cookie-precedent:hover,
.btn-cookie-suivant:hover {
    transform: scale(1.1) !important;
}

.btn-costume:active,
.btn-cookie-precedent:active,
.btn-cookie-suivant:active {
    transform: scale(0.95) !important;
}

.btn span {
    padding: 20px 40px;
    display: inline-block;
    font-weight: 900;
    background: linear-gradient(180deg, #A6795B 0%, #865C43 100%);
    border-radius: 100px;
    color: #FFF0DC;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: inset 0px 0px 20px rgba(0, 0, 0, 0.2),
        inset 0px -4px 8px rgba(0, 0, 0, 0.1),
        inset 0px 0px 0px 4px rgba(155, 105, 75, 0.5),
        inset 0px 20px 30px -10px rgba(139, 90, 60, 0.7),
        inset 0px -20px 30px -10px rgba(139, 90, 60, 0.7),
        0px 8px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: all 0.15s ease-out;
    white-space: nowrap;
}

.btn span::before {
    content: '';
    position: absolute;
    width: 38px;
    height: 26px;
    top: 15px;
    left: 25px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transform: rotate(-25deg);
    pointer-events: none;
    box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.5);
}

.btn span::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.03) 40%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0.15) 100%);
    border-radius: 100px;
    pointer-events: none;
}

.btn:hover span {
    background: linear-gradient(180deg, #B88A6D 0%, #9A6E52 100%);
}

/* Boutons spécifiques Header */
.btn-logout,
.btn-login-header,
.btn-login {
    padding: 0px !important;
    font-size: 18px !important;
    top: 0 !important;
}

/* --- Bouton-image costumes/navigation (Desktop) --- */
.btn-costume img {
    width: 140px;
    height: auto;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.3));
}

.btn-cookie-precedent img,
.btn-cookie-suivant img {
    width: 150px;
    height: auto;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.3));
}

.btn-logout span,
.btn-login-header span,
.btn-login span {
    font-size: 18px !important;
    padding: 10px 25px !important;
}

.btn-logout span::before,
.btn-login-header span::before,
.btn-login span::before {
    width: 20px;
    height: 10px;
    top: 5px;
    left: 10px;
}

/* ==========================================================================
   BOUTONS SPÉCIFIQUES (ÉVEIL - ANTIQUE)
   ========================================================================== */

.btn-eveil {
    position: absolute;
    top: 120px;
    left: 30px;
    width: 272px;
    height: 67px;
    background-color: var(--btn-eveil-bg);
    color: #FFF0DC;
    font-size: 40px;
    /* Taille standardisée */
    font-weight: 900;
    font-family: 'CookieRun-Bold', sans-serif;
    text-decoration: none;
    border-radius: 20px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 20;
}

.btn-eveil:hover {
    background-color: var(--btn-eveil-hover);
}

.btn-eveil[aria-disabled="true"] {
    pointer-events: none;
    opacity: .5;
}

/* --- Bouton-image éveil --- */
.awaken-toggle {
    cursor: pointer;
    user-select: none;
    position: absolute;
    top: 110px;
    left: 320px;
    /* width/height gérés par l'image elle-même ou inline style si besoin */
    max-width: 80px;
    /* Valeur par défaut raisonnable */
    height: auto;
    display: inline-block;
    transition: transform 120ms ease, filter 180ms ease, box-shadow 120ms ease;
    filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .15)) drop-shadow(0 2px 2px rgba(0, 0, 0, .1));
    border-radius: 16px;
    z-index: 20;
}

.awaken-toggle:hover {
    transform: translateY(-2px);
}

.awaken-toggle:active {
    transform: translateY(0) scale(0.98);
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .18)) drop-shadow(0 1px 1px rgba(0, 0, 0, .08));
}

.awaken-toggle.active-glow {
    filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .15)) drop-shadow(0 2px 2px rgba(0, 0, 0, .1)) drop-shadow(0 0 10px var(--awaken-glow));
}

/* ==========================================================================
   PAGE D'ACCUEIL (INDEX) - body.accueil
   ========================================================================== */

body.accueil {
    background-color: #603720;
    /* Nouveau fond chocolat */
    color: #FFF0DC;
}

body.accueil .header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 0;
    position: relative;
    background-color: #603720;
}

body.accueil .header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 200px 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

body.accueil .header-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://res.cloudinary.com/dkgfa4apm/image/upload/v1771254526/MAJ_7_1_k2p1qc.webp') no-repeat center;
    background-size: cover;
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

body.accueil .logo {
    width: 500px;
    height: auto;
    display: block;
    /* Évite les espaces de baseline */
    margin: 0 auto;
    filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.4));
}

/* On cache l'ancien conteneur car l'image est maintenant en fond */
body.accueil .patch-container {
    display: none;
}

body.accueil .menu {
    position: relative;
    z-index: 10;
    width: 100%;
    background-color: #4a2b19;
    border-top: 2px solid #FFF0DC;
    border-bottom: 2px solid #FFF0DC;
    padding: 20px 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Suppression de l'ancienne barre */
.header-separator {
    display: none;
}

body.accueil .user-info {
    display: flex;
    align-items: center;
}

body.accueil .main {
    padding: 40px 50px;
}

body.accueil .derniers-ajouts {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

body.accueil .derniers-ajouts h2 {
    font-size: 30px;
    margin-bottom: 50px;
    margin-top: 10px;
}

body.accueil .cartes-cookies {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

body.accueil .carte-cookie-wrapper {
    position: relative;
    display: inline-block;
    text-decoration: none;
}

body.accueil .carte-cookie {
    width: 196px;
    height: 196px;
    object-fit: contain;
    transition: transform 0.2s ease;
    cursor: pointer;
    display: block;
}

body.accueil .carte-cookie:hover {
    transform: scale(1.05);
}

body.accueil .icon-new {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 50px;
    height: 50px;
    pointer-events: none;
    z-index: 10;
}

/* ==========================================================================
   HEADER DES PAGES DÉTAIL
   ========================================================================== */

/* Ne s'applique que si on n'est PAS sur l'accueil */
body:not(.accueil) .header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 0;
    position: relative;
    background-color: #603720;
}

body:not(.accueil) .header-top {
    width: 100%;
    padding: 30px 0;
    /* Centrage vertical */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

body:not(.accueil) .header-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://res.cloudinary.com/dkgfa4apm/image/upload/v1771254526/MAJ_7_1_k2p1qc.webp') no-repeat center;
    background-size: cover;
    opacity: 0.5;
    z-index: -1;
}

body:not(.accueil) .header .logo {
    height: 150px;
    width: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.3));
}

body:not(.accueil) .header .menu {
    position: relative;
    z-index: 10;
    width: 100%;
    background-color: #4a2b19;
    border-top: 2px solid #FFF0DC;
    border-bottom: 2px solid #FFF0DC;
    padding: 10px 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

body:not(.accueil) .header .nav-icon-link {
    width: 100px;
    height: 100px;
}

/* On cache l'image MAJ de droite sur desktop car elle est en fond */
body:not(.accueil) .header .maj-image {
    display: none;
}

body:not(.accueil) .header .user-info {
    display: flex;
    align-items: center;
    position: static;
}

/* ==========================================================================
   STYLE GÉNÉRAL DES ICÔNES DE NAVIGATION (Global)
   ========================================================================== */
.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 10px auto;
}

.nav-icon-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    /* Reduit pour Desktop Detail */
    height: 150px;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-icon-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.3));
}

.nav-icon-link:hover {
    transform: scale(1.1);
}

.nav-icon-link:active {
    transform: scale(0.95);
}

/* ==========================================================================
   PAGE DÉTAIL COOKIE
   ========================================================================== */

.page-cookie {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 50px;
    position: relative;
}

.bloc-fond-cookie {
    position: relative;
    width: 1427px;
    height: 856px;
    margin: 10px auto 0;
}

.fond-floute {
    width: 100%;
    height: 100%;
    background: var(--bg-image) no-repeat center;
    background-size: cover;
    border-radius: 30px;
    opacity: 0.4;
}

.nom-cookie {
    position: absolute;
    top: var(--title-top, -40px);
    right: 50px;
    font-size: var(--title-size, 80px);
    font-weight: 900;
    line-height: 1;
    text-align: right;
    color: var(--title-color);
    text-shadow: 0px 4px 4px rgba(12, 12, 12, 0.3);
    padding: 10px 20px;
    z-index: 11;
}

.illustration-cookie img {
    width: 412px;
    height: 444px;
    object-fit: contain;
    position: absolute;
    top: var(--pos-illustration-top);
    left: var(--pos-illustration-left);
    transition: all 0.3s ease;
}

.badges {
    position: absolute;
    top: 40px;
    right: 50px;
    display: flex;
    gap: 40px;
    z-index: 10;
}

.badge {
    height: 40px;
    width: auto;
}

.badges-elements {
    display: flex;
    gap: 0px;
}

.toppings,
.tartelettes,
.biscuits,
.promotion,
.ascension,
.eveil,
.bonbons,
.pierre-confiture {
    position: absolute;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* Hide mobile-specific interactive elements on Desktop */
.btn-info-trigger,
.btn-close-popup {
    display: none !important;
}

/* Cadre d'informations (Attributs recommandés) - Style Figma */
.info-frame {
    position: absolute;
    left: 1135px;
    top: 160px;
    width: 221px;
    height: 198px;
    background: #865c436b;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    font-family: 'CookieRun-Bold', sans-serif;
    color: #FFF0DC;
    z-index: 20;
    /* Ensure on top */
}

.info-frame-header {
    width: 100%;
    height: 57px;
    background: rgba(134, 92, 67, 0.61);
    border-radius: 20px 20px 0px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

.info-frame-icon {
    position: absolute;
    left: 10px;
    width: 34px;
    height: auto;
}

.info-frame h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
    line-height: 1.2;
    text-shadow: none;
    border: none;
    padding: 0;
    width: calc(100% - 60px);
    margin-left: 30px;
    text-shadow: 2px 2px 0 #3E2723, -1px -1px 0 #3E2723, 1px -1px 0 #3E2723, -1px 1px 0 #3E2723, 1px 1px 0 #3E2723;
}

.info-frame-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.info-frame p {
    margin: 0;
    font-family: 'CookieRun-Bold', sans-serif;
    font-weight: 900;
    font-size: 20px;
    line-height: 25px;
    text-align: center;
    text-shadow: 2px 2px 0 #3E2723, -1px -1px 0 #3E2723, 1px -1px 0 #3E2723, -1px 1px 0 #3E2723, 1px 1px 0 #3E2723;
}

/* Cadre d'informations (Attributs recommandés) - Style Figma */
.info-frame2 {
    position: absolute;
    left: 1060px;
    /* Standard centered position */
    top: 445px;
    /* Vertically centered with Biscuit (390+135 = 525 - 80 = 445) */
    width: 335px;
    /* Standard width */
    height: 160px;
    background: rgba(134, 92, 67, 0.42);
    /* Restored background */
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    /* Restored shadow */
    border-radius: 20px;
    transition: width 0.3s ease, left 0.3s ease;
    /* Ensure transition is here */
    display: flex;
    flex-direction: column;
    font-family: 'CookieRun-Bold', sans-serif;
    color: #FFF0DC;
    z-index: 20;
    /* Ensure on top */
}

.info-frame2.wide-mode {
    width: 390px;
    left: 1020px;
    /* Perfectly centered relative to normal mode (Center X = 1220px) */
}

.info-frame2.extra-wide-mode {
    width: 430px;
    left: 985px;
}

.info-frame2-header {
    width: 100%;
    height: 57px;
    background: rgba(134, 92, 67, 0.61);
    border-radius: 20px 20px 0px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

.info-frame2-icon {
    position: absolute;
    left: 10px;
    width: 34px;
    height: auto;
}

.info-frame2 h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
    line-height: 1.2;
    text-shadow: none;
    border: none;
    padding: 0;
    width: calc(100% - 60px);
    margin-left: 30px;
    text-shadow: 2px 2px 0 #3E2723, -1px -1px 0 #3E2723, 1px -1px 0 #3E2723, -1px 1px 0 #3E2723, 1px 1px 0 #3E2723;
}

.info-frame2-content {
    flex: 1;
    display: grid;
    grid-template-columns: auto auto;
    /* Pack columns based on content size */
    justify-content: center;
    /* Center the grid in the frame */
    align-items: center;
    align-content: center;
    /* Pack rows in center */
    column-gap: 20px;
    /* Reduced gap to fit checkboxes */
    row-gap: 0px;
    padding: 0 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}

.stat-checkbox {
    width: 18px;
    height: 18px;
    min-width: 18px;
    /* Prevent shrinking */
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid #5D4037;
    border-radius: 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-checkbox.checked {
    background-color: #8C5835;
    /* Slightly lighter/redder brown for contrast */
    box-shadow: none;
    border-color: #8C5835;
}

.stat-checkbox.checked::after {
    content: '';
    width: 5px;
    height: 10px;
    border: solid #FFF0DC;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
    background-color: transparent;
    border-radius: 1px;
}

.info-frame2 p {
    margin: 0;
    font-family: 'CookieRun-Bold', sans-serif;
    font-weight: 900;
    font-size: 20px;
    line-height: 40px;
    white-space: nowrap;
    /* Prevent wrapping */
    text-align: center;
    /* Dark brown outline matching request */
    text-shadow: 2px 2px 0 #3E2723, -1px -1px 0 #3E2723, 1px -1px 0 #3E2723, -1px 1px 0 #3E2723, 1px 1px 0 #3E2723;
}

.info-frame2.small-text p {
    font-size: 18px;
    /* Slightly smaller */
    line-height: 40px;
    letter-spacing: -0.5px;
    /* Tighten letters slightly */
}

.toppings {
    top: 170px;
    right: 530px;
}

.tartelettes {
    top: 170px;
    right: 335px;
}

.biscuits {
    top: 390px;
    right: 415px;
    transition: right 0.3s ease;
    /* Smooth transition */
}

.biscuits.shift-left-dynamic {
    right: 450px;
    /* Shifted left by ~85px to avoid overlap */
}

.biscuits.biscuits-sorcier {
    top: 390px;
}

.biscuits.biscuits-costaud {
    top: 390px;
}

.biscuits.biscuits-alchimiste {
    top: 390px;
}

.biscuits.biscuits-avocat {
    top: 390px;
}

.biscuits.biscuits-betterave {
    top: 390px;
}

.biscuits.biscuits-mure {
    top: 390px;
}

.biscuits.biscuits-carotte {
    top: 390px;
}

.biscuits.biscuits-cerise {
    top: 390px;
}

.biscuits.biscuits-piment {
    top: 390px;
}

.biscuits.biscuits-chevalier {
    top: 390px;
}

.biscuits.biscuits-boule-de-gomme {
    top: 390px;
}

.promotion {
    top: 590px;
    right: 865px;
    gap: 5px;
    /* Force minimum gap */
}

.ascension {
    top: 640px;
    right: 875px;
}

.eveil {
    top: 695px;
    right: 875px;
}

/* --- Overrides spécifiques par cookie --- */
[data-cookie-slug="cookie-cacao-noir"] .btn-eveil {
    font-size: 28px;
}

[data-cookie-slug="cookie-fromage-dore"] .btn-eveil {
    font-size: 30px;
}

[data-cookie-slug="cookie-lys-blanc"] .btn-eveil {
    font-size: 28px;
}

[data-cookie-slug="cookie-vanille-pure"] .promotion,
[data-cookie-slug="cookie-baie-de-houx"] .promotion,
[data-cookie-slug="cookie-cacao-noir"] .promotion {
    right: 830px;
}

[data-cookie-slug="cookie-fromage-dore"] .promotion {
    right: 815px;
}

[data-cookie-slug="cookie-vanille-pure"] .ascension,
[data-cookie-slug="cookie-baie-de-houx"] .ascension,
[data-cookie-slug="cookie-cacao-noir"] .ascension {
    right: 840px;
}

[data-cookie-slug="cookie-fromage-dore"] .ascension {
    right: 825px;
}

[data-cookie-slug="cookie-vanille-pure"] .eveil,
[data-cookie-slug="cookie-baie-de-houx"] .eveil,
[data-cookie-slug="cookie-cacao-noir"] .eveil {
    right: 840px;
}

[data-cookie-slug="cookie-fromage-dore"] .eveil {
    right: 825px;
}

[data-cookie-slug="cookie-fee-des-mers"] .promotion {
    right: 830px;
}

[data-cookie-slug="cookie-fee-des-mers"] .ascension {
    right: 840px;
}

[data-cookie-slug="cookie-reine-de-givre"] .promotion {
    right: 810px;
}

[data-cookie-slug="cookie-reine-de-givre"] .ascension {
    right: 820px;
}

[data-cookie-slug="cookie-perle-noire"] .promotion {
    right: 820px;
}

[data-cookie-slug="cookie-perle-noire"] .ascension {
    right: 830px;
}

[data-cookie-slug="cookie-clair-de-lune"] .promotion {
    right: 820px;
}

[data-cookie-slug="cookie-clair-de-lune"] .ascension {
    right: 830px;
}

[data-cookie-slug="cookie-archer-du-vent"] .promotion {
    right: 820px;
}

[data-cookie-slug="cookie-archer-du-vent"] .ascension {
    right: 830px;
}

[data-cookie-slug="cookie-esprit-du-feu"] .promotion {
    top: 615px;
    right: 890px;
}

[data-cookie-slug="cookie-esprit-du-feu"] .ascension {
    top: 660px;
    right: 900px;
}

[data-cookie-slug="cookie-arbre-millenaire"] .promotion {
    right: 820px;
}

[data-cookie-slug="cookie-arbre-millenaire"] .ascension {
    right: 830px;
}

[data-cookie-slug="cookie-cygne-de-sucre"] .promotion {
    top: 615px;
    right: 820px;
}

[data-cookie-slug="cookie-cygne-de-sucre"] .ascension {
    top: 660px;
    right: 830px;
}

[data-cookie-slug="cookie-creme-fraiche"] .promotion,
[data-cookie-slug="cookie-huitre"] .promotion,
[data-cookie-slug="cookie-sorbet"] .promotion,
[data-cookie-slug="cookie-poussiere-d-etoile"] .promotion,
[data-cookie-slug="cookie-capsaicine"] .promotion,
[data-cookie-slug="cookie-paillettes-brillantes"] .promotion,
[data-cookie-slug="cookie-corail-carmin"] .promotion,
[data-cookie-slug="cookie-roi-des-fees"] .promotion,
[data-cookie-slug="cookie-camelia"] .promotion,
[data-cookie-slug="farinel"] .promotion,
[data-cookie-slug="cookie-pate-toxique"] .promotion {
    right: 825px;
}

[data-cookie-slug="cookie-creme-fraiche"] .ascension,
[data-cookie-slug="cookie-huitre"] .ascension,
[data-cookie-slug="cookie-sorbet"] .ascension,
[data-cookie-slug="cookie-poussiere-d-etoile"] .ascension,
[data-cookie-slug="cookie-capsaicine"] .ascension,
[data-cookie-slug="cookie-paillettes-brillantes"] .ascension,
[data-cookie-slug="cookie-corail-carmin"] .ascension,
[data-cookie-slug="cookie-roi-des-fees"] .ascension,
[data-cookie-slug="cookie-camelia"] .ascension,
[data-cookie-slug="farinel"] .ascension,
[data-cookie-slug="cookie-pate-toxique"] .ascension {
    right: 835px;
}

[data-cookie-slug="cookie-jung-kook"] .promotion,
[data-cookie-slug="cookie-v"] .promotion,
[data-cookie-slug="cookie-jimin"] .promotion,
[data-cookie-slug="cookie-j-hope"] .promotion,
[data-cookie-slug="cookie-suga"] .promotion,
[data-cookie-slug="cookie-jin"] .promotion,
[data-cookie-slug="cookie-rm"] .promotion {
    right: 830px;
}

[data-cookie-slug="cookie-jung-kook"] .ascension,
[data-cookie-slug="cookie-v"] .ascension,
[data-cookie-slug="cookie-jimin"] .ascension,
[data-cookie-slug="cookie-j-hope"] .ascension,
[data-cookie-slug="cookie-suga"] .ascension,
[data-cookie-slug="cookie-jin"] .ascension,
[data-cookie-slug="cookie-rm"] .ascension {
    right: 840px;
}

[data-cookie-slug="cookie-farine-mystique"] .eveil,
[data-cookie-slug="cookie-epices-ardentes"] .eveil,
[data-cookie-slug="cookie-sucre-eternel"] .eveil {
    right: 840px;
    top: 600px;
}

[data-cookie-slug="cookie-lait-de-l-ombre"] .eveil {
    right: 830px;
    top: 650px;
}

[data-cookie-slug="cookie-sel-silencieux"] .eveil {
    right: 835px;
    top: 600px;
}


.bonbons {
    top: 160px;
    left: 30px;
}

.pierre-confiture {
    top: 170px;
    left: 30px;
}

/* Animations & Cycles */
.garniture-cycle,
.tartelette-cycle,
.biscuit-cycle,
.promotion-cycle,
.ascension-cycle,
.eveil-cycle,
.bonbon-cycle,
.pierre-cycle {
    cursor: pointer;
    transition: transform 0.2s ease;
    height: auto;
}

.garniture-cycle,
.tartelette-cycle {
    width: 180px;
}

.biscuit-cycle {
    width: 270px;
}

.promotion-cycle {
    width: 42px;
    margin-right: -7px;
    /* Pull them closer */
}

.ascension-cycle {
    width: 170px;
}

.bonbon-cycle {
    width: 130px;
}

.pierre-cycle {
    width: 180px;
}

.eveil-cycle {
    width: 170px;
}

.garniture-cycle:hover,
.tartelette-cycle:hover,
.biscuit-cycle:hover,
.promotion-cycle:hover,
.ascension-cycle:hover,
.eveil-cycle:hover,
.bonbon-cycle:hover,
.pierre-cycle:hover {
    transform: scale(1.1);
}



/* Boutons bas de page détail */
.btn-cookie-precedent,
.btn-cookie-suivant,
.btn-costume {
    position: absolute;
    width: 360px;
    height: 75px;
    cursor: pointer;
    border-radius: 100px;
    background: transparent;
    border: none;
    outline: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease-out;
}

.btn-cookie-precedent span,
.btn-cookie-suivant span,
.btn-costume span {
    padding: 18px 40px;
    display: inline-block;
    font-weight: 900;
    font-size: 30px;
    /* Taille plus grande demandée */
    white-space: nowrap;
    background: linear-gradient(180deg, #A6795B 0%, #865C43 100%);
    border-radius: 100px;
    color: #FFF0DC;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: inset 0px 0px 20px rgba(0, 0, 0, 0.2),
        inset 0px -4px 8px rgba(0, 0, 0, 0.1),
        inset 0px 0px 0px 3px rgba(155, 105, 75, 0.5),
        inset 0px 15px 20px -8px rgba(139, 90, 60, 0.7),
        inset 0px -15px 20px -8px rgba(139, 90, 60, 0.7),
        0px 6px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: all 0.15s ease-out;
}

.btn-cookie-precedent span::before,
.btn-cookie-suivant span::before,
.btn-costume span::before {
    content: '';
    position: absolute;
    width: 28px;
    height: 20px;
    top: 10px;
    /* Remonté pour être en haut */
    left: 12px;
    /* Déplacé vers la gauche */
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transform: rotate(-25deg);
    pointer-events: none;
    box-shadow: 0px 0px 12px rgba(255, 255, 255, 0.5);
}

.btn-cookie-precedent span::after,
.btn-cookie-suivant span::after,
.btn-costume span::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.03) 40%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0.15) 100%);
    border-radius: 100px;
    pointer-events: none;
}

.btn-cookie-precedent:hover span,
.btn-cookie-suivant:hover span,
.btn-costume:hover span {
    background: linear-gradient(180deg, #B88A6D 0%, #9A6E52 100%);
}

.btn-cookie-precedent:active,
.btn-cookie-suivant:active,
.btn-costume:active {
    transform: translateY(4px);
}


.btn-cookie-precedent {
    bottom: 100px;
    left: -70px;
}

.btn-cookie-suivant {
    bottom: 100px;
    right: -70px;
}

.btn-costume {
    bottom: 260px;
    left: -70px;
}

/* ==========================================================================
   POPUP COSTUMES
   ========================================================================== */
.popup-costume {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-content {
    background-color: var(--theme-text);
    padding: 55px;
    border-radius: 20px;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    color: var(--theme-secondary);
}

.popup-content h2 {
    margin-top: -10px;
    margin-bottom: 5px;
    text-align: center;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #865C43;
    cursor: pointer;
    transition: color 0.2s;
}

.close-popup:hover {
    color: #A6795B;
}

.costume-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 65px;
    margin-top: 30px;
    justify-content: center;
    align-items: flex-start;
}

.costume-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 220px;
    transition: width 0.3s ease;
}

/* Agrandissement spécifique pour le costume éveillé */
.costume-item.is-awakened-swap {
    width: auto;
    max-width: 200px;
}

.costume-toggle-wrapper {
    height: 280px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
}

.costume-item img.costume-toggle {
    cursor: pointer;
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    object-position: bottom;
    transition: transform 0.3s ease;
    margin-bottom: 0px;
    position: relative;
    z-index: 10;
}

.costume-item img.costume-toggle:hover {
    transform: scale(1.05);
}

.costume-icon {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.costume-icon img {
    width: 120px;
}

.costume-name {
    margin-top: -5px;
    font-size: 18px;
    color: #865C43;
    font-family: 'CookieRun-Bold', sans-serif;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ==========================================================================
   RESPONSIVE (ÉCRANS LARGES >= 1300px)
   ========================================================================== */
@media (min-width: 1300px) {

    body.accueil .header,
    body.accueil .main {
        max-width: 1460px;
        margin-inline: auto;
    }

    body.accueil .patch-container {
        flex: 0 0 800px;
    }

    body.accueil .header-top {
        justify-content: center;
        gap: 150px;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes illustrationSwap {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(0.95);
        filter: brightness(1.1);
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

.illustration-swap-anim {
    animation: illustrationSwap 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mythic-icon-small {
    height: 20px;
    width: auto;
    vertical-align: middle;
    margin-left: 5px;
}

/* ==========================================================================
   RESPONSIVE - ACCUEIL (body.accueil)
   ========================================================================== */

/* TABLETTE (<= 1024px) */
@media screen and (max-width: 1024px) {

    body.accueil .header-top {
        gap: 50px;
        flex-wrap: wrap;
    }

    body.accueil .logo {
        width: 300px;
    }

    body.accueil .patch-container {
        flex: 0 0 auto;
        width: 100%;
        max-width: 800px;
    }

    body.accueil .patch-bg {
        width: 100%;
        height: auto;
    }

    body.accueil .cartes-cookies {
        justify-content: center;
        gap: 20px;
    }
}

/* MOBILE (<= 768px) */
@media screen and (max-width: 768px) {
    body.accueil .header-top {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }

    body.accueil .logo {
        width: 350px;
    }

    body.accueil .menu {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        box-sizing: border-box;
    }

    body.accueil .patch-container {
        border-radius: 25px;
    }

    body.accueil .patch-bg {
        border-radius: 25px;
    }

    body.accueil .main {
        padding: 20px;
    }

    body.accueil .derniers-ajouts h2 {
        font-size: 24px;
        text-align: center;
    }

    body.accueil .cartes-cookies {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    body.accueil .carte-cookie {
        width: 160px;
        height: 160px;
    }

    /* Réduction des boutons du menu tablette */
    body.accueil .menu {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }

    .user-info {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .menu {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        flex-wrap: nowrap;
        width: 100%;
    }

    .nav-icon-link {
        width: 100px;
        height: 100px;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .nav-icon-link img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.4));
    }

    .nav-icon-link:hover {
        transform: scale(1.05);
    }

    .nav-icon-link:active {
        transform: scale(0.95);
    }

    /* Nettoyage des anciens styles body.accueil */
    body.accueil .btn span {
        display: none !important;
    }

    /* ==========================================================================
       RESPONSIVE - PAGE DÉTAIL (.page-cookie)
       ========================================================================== */
    .page-cookie {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .bloc-fond-cookie {
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        min-height: 180px;
        margin: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        padding-bottom: 15px;
        /* Reduced for compact layout */
    }

    .fond-floute {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        z-index: 0;
        background-position: 30% center !important;
        background-size: auto 100% !important;
    }

    .nom-cookie {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        text-align: center !important;
        font-size: 40px !important;
        margin: 15px 0 10px !important;
        z-index: 1 !important;
        order: 0 !important;
    }

    .badges {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        justify-content: center !important;
        margin-bottom: 15px !important;
        gap: 15px !important;
        z-index: 1 !important;
        order: 1 !important;
    }

    .badge {
        height: 30px !important;
    }

    /* Container Eveil (Antique) - Repositionné au dessus de l'illustration */
    .awaken-container {
        order: 2 !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 15px !important;
        margin: 10px auto !important;
        width: 100% !important;
    }

    .awaken-toggle,
    .btn-eveil {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        margin: 0 !important;
        display: flex !important;
    }

    .btn-eveil {
        width: auto !important;
        height: 50px !important;
        font-size: 20px !important;
        padding: 0 15px !important;
        order: 1 !important;
    }

    .awaken-toggle {
        width: 65px !important;
        height: 65px !important;
        order: 2 !important;
    }

    /* Range Costume et Bonbon */
    .row-costume-bonbon {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 90%;
        max-width: 400px;
        margin: 25px 0 10px 0;
        order: 3;
    }

    .row-costume-bonbon.is-centered {
        justify-content: center;
    }

    .btn-costume {
        position: relative !important;
        bottom: 0 !important;
        left: 0 !important;
        margin: 0 !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    .btn-costume img {
        width: 100px !important;
        height: auto !important;
        filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.4)) !important;
    }

    .bonbons {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        margin: 0 !important;
    }

    .bonbon-cycle {
        width: 100px !important;
        margin-right: 45px;
    }

    /* Illustration et navigation */
    .illustration-cookie {
        order: 4;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        height: 250px;
        margin: 10px 0;
    }

    .illustration-cookie img {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        max-width: 230px !important;
        max-height: 270px !important;
        width: auto !important;
        height: auto !important;
    }

    .btn-cookie-precedent,
    .btn-cookie-suivant {
        position: absolute !important;
        bottom: auto !important;
        top: 35% !important;
        transform: translateY(-50%) !important;
        width: auto !important;
        height: auto !important;
        z-index: 30 !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    .btn-cookie-precedent {
        left: 15px !important;
    }

    .btn-cookie-suivant {
        right: 15px !important;
    }

    .btn-cookie-precedent img,
    .btn-cookie-suivant img {
        width: 60px !important;
        height: auto !important;
        filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.5)) !important;
    }

    /* Promotion et Ascension */
    .promotion,
    .ascension,
    .eveil {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        justify-content: center !important;
        margin: 3px 0 !important;
        order: 5;
    }

    .promotion-cycle {
        width: 50px !important;
    }

    .ascension-cycle {
        width: 170px !important;
    }

    .eveil-cycle {
        width: 170px !important;
    }

    /* Eléments techniques et cadres */
    .detail-grid-mobile {
        display: flex;
        flex-direction: column;
        /* Stack vertically */
        width: 100%;
        gap: 10px;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
        order: 6;
    }

    .equipment-group {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 350px;
    }

    .btn-info-trigger {
        position: absolute;
        top: 5px;
        left: 90%;
        background: none;
        border: none;
        padding: 5px;
        cursor: pointer;
        z-index: 15;
        display: block !important;
    }

    .btn-info-trigger img {
        width: 35px;
        height: auto;
        filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.5));
    }

    .row-toppings-tartelettes {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .toppings,
    .tartelettes,
    .biscuits {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 !important;
    }

    .garniture-cycle,
    .tartelette-cycle {
        width: 150px !important;
    }

    .biscuit-cycle {
        width: 200px !important;
    }

    /* Popups Attributes */
    .mobile-popup {
        display: none !important;
        /* Hidden by default on mobile */
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0.8) !important;
        width: 250px !important;
        max-width: 90% !important;
        height: auto !important;
        z-index: 1000 !important;
        background: #4e342e !important;
        /* Solid dark background for popups */
        border: 3px solid #8C5835 !important;
        box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.8) !important;
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
        pointer-events: none;
    }

    .mobile-popup.show-popup {
        display: flex !important;
        transform: translate(-50%, -50%) scale(1) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .btn-close-popup {
        background: none;
        border: none;
        color: #FFF0DC;
        font-size: 24px;
        font-weight: bold;
        position: absolute;
        right: 10px;
        top: 5px;
        cursor: pointer;
        line-height: 1;
    }

    .info-frame-header,
    .info-frame2-header {
        height: 50px !important;
        padding-right: 40px !important;
        /* Space for close button */
    }

    .info-frame-content,
    .info-frame2-content {
        padding: 20px 15px !important;
    }

    .info-frame p,
    .info-frame2 p {
        font-size: 14px !important;
        line-height: 22px !important;
        margin: 8px 0 !important;
    }

    /* Ensure mobile elements are visible only in mobile view */
    .btn-info-trigger,
    .btn-close-popup {
        display: block !important;
    }

    .pierre-confiture {
        position: relative !important;
        bottom: 0 !important;
        left: 0 !important;
        justify-content: center !important;
        margin: 20px 0 !important;
        order: 7;
    }

    .pierre-cycle {
        width: 80px !important;
    }

    .costume-gallery {
        gap: 0px;
    }
}

/* --- SITE-WIDE HEADER & MENU RESPONSIVENESS --- */
@media screen and (max-width: 768px) {
    /* 1. Header Top & Background - Use high specificity to override everything */
    body .header-top,
    body:not(.accueil) .header-top {
        padding: 40px 15px !important; /* Unified mobile padding */
        min-height: auto !important;
        position: relative;
    }

    body.accueil .header-top {
        padding: 60px 15px !important;
    }

    .header-top::before {
        background-size: cover !important;
        background-position: center !important;
    }

    /* 2. Logo */
    .logo {
        width: 100% !important;
        max-width: 280px !important;
        height: auto !important;
    }

    body.accueil .logo {
        max-width: 320px !important;
    }

    /* 3. Menu Bar - Force single line and larger icons */
    body .menu,
    body.accueil .menu,
    body.list .menu {
        padding: 5px 0 !important;
        gap: 10px !important;
        flex-wrap: nowrap !important; /* Force single line */
        justify-content: center !important;
        width: 100% !important;
        overflow-x: auto; /* Allow horizontal scroll if needed on very small screens */
        -webkit-overflow-scrolling: touch;
    }

    .nav-icon-link {
        width: 105px !important; /* Larger icons */
        height: 105px !important;
        flex: 0 0 auto !important;
    }

    .nav-icon-link img {
        width: 100% !important;
        height: 100% !important;
    }

    .user-info {
        width: auto !important; /* Integrate on same line */
        justify-content: center !important;
        margin-top: 0 !important;
        flex: 0 0 auto !important;
    }

    /* Specific homepage adjustment if needed */
    body.accueil .header-top {
        padding: 200px 0 !important;
    }
    
    body:not(.accueil) .header-top {
        padding: 30px 0 !important;
    }
}

/* --- SITE-WIDE HEADER & MENU DESKTOP (Large Screens ≥ 1300px) --- */
@media screen and (min-width: 1300px) {
    /* 1. Header & Banner full width */
    .header,
    .header-top {
        width: 100% !important;
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    /* Background Banner opacity and centering */
    .header-top::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('https://res.cloudinary.com/dkgfa4apm/image/upload/v1771254526/MAJ_7_1_k2p1qc.webp') no-repeat center;
        background-size: cover;
        opacity: 0.5;
        z-index: -1;
    }

    /* 2. Standardized Logo Size */
    .logo {
        width: 500px !important;
        height: auto !important;
        margin: 0 auto;
        filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.4));
    }

    /* 3. Unified Menu Bar */
    .menu {
        width: 100% !important;
        max-width: none !important;
        padding: 20px 0 !important;
        gap: 40px !important;
        justify-content: center !important;
        background-color: #4a2b19;
        border-top: 2px solid #FFF0DC !important;
        border-bottom: 2px solid #FFF0DC !important;
    }

    .nav-icon-link {
        width: 150px !important;
        height: 150px !important;
    }

    /* Specific homepage adjustment if needed */
    body.accueil .header-top {
        padding: 200px 0 !important;
    }
    
    body:not(.accueil) .header-top {
        padding: 30px 0 !important;
    }
}