/* ========================================
   HEADER & FOOTER - Against Stones
   Design professionnel avec effets dorés
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* html/body gradient → layout.css (tokens --as-bg-top / --as-bg-bottom) */

/* Coins header : taille et espacement communs (logo site, langue, auth, tour, crieur, menu) */
:root {
    --header-action-size: 40px;
    --header-action-gap: 10px;
    --header-action-icon: 22px;
    --header-action-logo: 38px;
    --header-corner-top: 32px;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    top: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.header-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 32px 20px 24px;
    background: linear-gradient(180deg, rgba(18, 22, 29, 0.94) 0%, rgba(18, 22, 29, 0.45) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    text-align: center;
}

/* LOGO */
.logo {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 16px;
}

.logo-image {
    width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.3));
    transition: all 0.3s ease;
}

.logo-image:hover {
    filter: drop-shadow(0 8px 24px rgba(212, 175, 55, 0.6));
    transform: scale(1.05) rotate(-2deg);
}

/* Titre du site (si vous voulez l'ajouter) */
.site-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.05em;
    text-align: center;
}

/* COLONNE INSTITUTIONNELLE */
.nav-info-col {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 12px 24px 0;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-info-col a {
    color: #8a8f9a;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    padding: 6px 10px;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-info-col a:hover,
.nav-info-col a.active {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.08);
}

.mobile-nav-section {
    display: block;
    color: #FFD700;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 16px 0 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav .mobile-nav-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* NAVIGATION DESKTOP — compact by default (staff / many items) */
.nav-menu,
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: linear-gradient(180deg, rgba(18, 22, 29, 0.72) 0%, rgba(18, 22, 29, 0.88) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-menu .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #b0b0b0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 8px;
    white-space: nowrap;
}

/* Few items (visiteur / public) — restore pre-compact sizing */
.nav-menu.nav-density-sparse {
    gap: 32px;
    padding: 16px 28px;
}

.nav-menu.nav-density-sparse .nav-link {
    gap: 8px;
    font-size: 15px;
    padding: 8px 12px;
}

.nav-menu.nav-density-sparse .nav-icon svg,
.nav-menu.nav-density-sparse .nav-icon-svg {
    width: 18px !important;
    height: 18px !important;
}

.nav-menu.nav-density-sparse .nav-icon .nav-megaphone-icon {
    width: 18px !important;
    height: 18px !important;
}

.nav-menu.nav-density-sparse .nav-link[href*="soutenir"] {
    padding: 10px 22px;
    border-radius: 8px;
    gap: 6px;
}

.nav-menu .nav-link .nav-icon {
    margin-right: 4px;
    opacity: 0.9;
}

.nav-menu .nav-link--staff {
    color: #c4b5a8;
}

.nav-menu .nav-link--staff:hover,
.nav-menu .nav-link--staff.active {
    color: var(--as-gold, #FFD700);
}

.nav-menu .nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.nav-menu .nav-icon svg,
.nav-menu .nav-icon-svg {
    width: 16px !important;
    height: 16px !important;
}

.nav-menu .nav-icon .nav-megaphone-icon {
    width: 16px !important;
    height: 16px !important;
    object-fit: contain;
    display: block;
}

.nav-menu .nav-label {
    line-height: 1.2;
}

.nav-menu .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #D4AF37);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
    color: #FFD700;
}

.nav-menu .nav-link:hover::before,
.nav-menu .nav-link.active::before {
    transform: scaleX(1);
}

.nav-menu .nav-link:hover .nav-icon,
.nav-menu .nav-link.active .nav-icon {
    color: #FFD700;
}

/* Bouton "Soutenir" avec style CTA */
.nav-menu .nav-link[href*="soutenir"] {
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    color: #000000;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    gap: 5px;
}

.nav-menu .nav-link[href*="soutenir"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.5);
    color: #000000;
}

.nav-menu .nav-link[href*="soutenir"]::before {
    display: none;
}

.nav-menu .nav-link[href*="soutenir"] .nav-icon {
    color: #000000;
}

.as-notif-badge {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* HEADER CORNER ACTIONS */
.header-left-actions,
.header-right-actions {
    position: absolute;
    top: var(--header-corner-top);
    display: flex;
    align-items: center;
    gap: var(--header-action-gap);
    z-index: 10;
}

.header-left-actions {
    left: 20px;
    right: auto;
}

.header-right-actions {
    right: 20px;
    left: auto;
}

.header-right-actions > * {
    flex-shrink: 0;
    align-self: center;
}

/* Bouton aide tour (boussole N) — aligné sur le mégaphone */
.as-tour-help-fab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    width: var(--header-action-size);
    height: var(--header-action-size);
    min-width: var(--header-action-size);
    min-height: var(--header-action-size);
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    z-index: 1;
    transition: transform 0.2s ease, filter 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.as-tour-help-fab .as-tour-help-icon {
    display: block;
    width: var(--header-action-logo);
    height: var(--header-action-logo);
    min-width: var(--header-action-logo);
    min-height: var(--header-action-logo);
    flex-shrink: 0;
    object-fit: contain;
    pointer-events: none;
}

@media (max-width: 768px) {
    .as-tour-help-fab .as-tour-help-icon {
        width: var(--header-action-logo);
        height: var(--header-action-logo);
    }
}

.as-tour-help-fab:hover,
.as-tour-help-fab:focus-visible,
.as-tour-help-fab--open {
    outline: none;
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px rgba(74, 158, 245, 0.62));
}

/* LANGUAGE SELECTOR */
.lang-selector {
    position: relative;
}

.lang-btn {
    box-sizing: border-box;
    width: var(--header-action-size);
    height: var(--header-action-size);
    min-width: var(--header-action-size);
    min-height: var(--header-action-size);
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #b0b0b0;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    border-color: #FFD700;
    color: #FFD700;
}

.lang-btn svg {
    width: var(--header-action-icon);
    height: var(--header-action-icon);
    stroke: currentColor;
    flex-shrink: 0;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: rgba(15, 21, 40, 0.96);
    border: 1px solid rgba(255, 215, 0, 0.12);
    border-radius: 12px;
    padding: 8px;
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 1001;
}

.lang-dropdown.active {
    display: block;
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #b0b0b0;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

.lang-dropdown a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
}

/* SITE SELECTOR (réutilise le style lang) */
.site-dropdown .site-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    color: #b0b0b0;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.2s ease;
}

.site-dropdown .site-dropdown-item:hover,
.site-dropdown .site-dropdown-item.is-active {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
}

.site-dropdown {
    min-width: 200px;
    overflow: visible;
}

.site-dropdown-item__label,
.mobile-site-item__label {
    flex: 1;
    min-width: 0;
}

.site-status-badge {
    flex-shrink: 0;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #c9a227;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.25);
}

/* HAMBURGER (mobile / nav dense) */
.hamburger {
    display: none;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: var(--header-action-size);
    height: var(--header-action-size);
    min-width: var(--header-action-size);
    min-height: var(--header-action-size);
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #b0b0b0;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease, color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.hamburger:hover {
    border-color: #FFD700;
    color: #FFD700;
}

.hamburger svg {
    width: var(--header-action-icon);
    height: var(--header-action-icon);
    stroke: currentColor;
    flex-shrink: 0;
}

/* ========================================
   TITLE SECTION & HERO - Against Stones
   Version unifiée pour toutes les pages
   ======================================== */

/* ====================== HERO BACKGROUND ====================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 720px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 62%,
        rgba(0, 0, 0, 0.08) 82%,
        rgba(0, 0, 0, 0.22) 100%
    );
    pointer-events: none;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero:hover .hero-bg-image {
    transform: scale(1.04);
}

/* ====================== TITLE SECTION (utilisée sur TOUTES les pages) ====================== */
.title-section {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1100px;
    margin: 0px auto 48px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(42px, 6.8vw, 78px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -1.4px;
    color: #ffffff;
    margin-bottom: 14px;
    text-shadow: 0 8px 40px rgba(0, 0, 0, 0.75);
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(21px, 3.2vw, 28px);
    font-weight: 400;
    color: #FFD700;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

.hero-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(15.5px, 2.1vw, 19px);
    color: var(--as-text-secondary, #c8c8cc);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.55;
    font-weight: 300;
}

/* Staff consoles — compact header, no duplicate page title */
body:has(main.compta-page, main.employe-page, main.ingenieur-page, main.testeur-page, main.mod-page, main.crieur-page, main.staff-console-page, main.transparency-staff-page, main.statistiques-page) {
    --content-pad-y: 0;
}

body:has(main.compta-page, main.employe-page, main.ingenieur-page, main.testeur-page, main.mod-page, main.crieur-page, main.staff-console-page, main.transparency-staff-page, main.statistiques-page) .hero-subtitle,
body:has(main.compta-page, main.employe-page, main.ingenieur-page, main.testeur-page, main.mod-page, main.crieur-page, main.staff-console-page, main.transparency-staff-page, main.statistiques-page) .hero-tagline {
    display: none;
}

body:has(main.compta-page, main.employe-page, main.ingenieur-page, main.testeur-page, main.mod-page, main.crieur-page, main.staff-console-page, main.transparency-staff-page, main.statistiques-page) .title-section {
    margin-bottom: clamp(16px, 2.5vw, 28px);
}

body:has(main.compta-page, main.employe-page, main.ingenieur-page, main.testeur-page, main.mod-page, main.crieur-page, main.staff-console-page, main.transparency-staff-page, main.statistiques-page) .hero-title {
    font-size: clamp(1.65rem, 3.5vw, 2.35rem);
    margin-bottom: 0;
    letter-spacing: -0.02em;
}

body:has(.nav-density-dense) .header-inner {
    padding-inline: clamp(4.5rem, 12vw, 7rem);
}

body:has(.nav-density-dense) .title-section {
    padding-inline: clamp(1rem, 3vw, 2rem);
    max-width: min(1100px, calc(100% - 1rem));
}

body:has(main.compta-page, main.employe-page, main.ingenieur-page, main.testeur-page, main.mod-page, main.crieur-page, main.statistiques-page) {
    overflow-x: clip;
}

@media (max-width: 1024px) {
    body:has(.nav-density-dense) .header-inner {
        padding-inline: clamp(3.5rem, 10vw, 5.5rem);
        padding-bottom: 14px;
    }

    body:has(.nav-density-dense) .title-section {
        margin-bottom: 14px;
    }

    body:has(.nav-density-dense) .hero-title {
        font-size: clamp(1.45rem, 4vw, 2rem);
    }
}

@media (max-width: 390px) {
    body:has(.nav-density-dense) .header-inner {
        padding-inline: 3.25rem;
    }
}

/* ====================== HEADER INNER ADJUSTMENTS ====================== */
.header-inner {
    padding: 28px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ====================== BASE CONTENT ====================== */
.content {
    z-index: 2;
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: var(--layout-standard, 1200px);
    margin-left: auto;
    margin-right: auto;
    background: transparent;
    min-height: calc(100vh - 180px);
    padding: var(--content-pad-y, clamp(28px, 5vw, 48px)) var(--content-pad-x, clamp(16px, 4vw, 40px));
    color: var(--as-text, #f2f2f4);
}

/* Bouton signalement */
.btn-report {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-family: inherit;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-report:hover {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.08);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    
    .hero-title {
        font-size: clamp(36px, 8.5vw, 52px);
    }
    
    .hero-subtitle {
        font-size: clamp(19px, 4.5vw, 24px);
    }
    
    .header-inner {
        padding: 24px 20px 16px;
    }
}

@media (max-width: 480px) {
    .title-section {
        margin: 16px auto 28px;
    }
}

/* ========================================
   MOBILE MENU
   ======================================== */
.mobile-menu-overlay:not(.active) {
    display: none !important;
}

body.mobile-menu-open {
    overflow: hidden;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10050;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    display: block;
    pointer-events: auto;
}

.mobile-menu:not(.active) {
    right: -100% !important;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--as-surface-elevated) 0%, var(--as-bg-bottom) 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.6);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10051;
    overflow-y: auto;
    padding: 20px;
    pointer-events: none;
}

.mobile-menu.active,
.mobile-menu[data-state="open"] {
    right: 0;
    pointer-events: auto;
}

@media (max-width: 1024px) {
    .mobile-menu-overlay:has(+ .mobile-menu[data-open-default="1"][data-state="open"]) {
        display: block;
        pointer-events: auto;
    }
}

@media (min-width: 1025px) {
    .mobile-menu[data-open-default="1"][data-state="open"] {
        right: -100% !important;
        pointer-events: none;
    }

    .mobile-menu-overlay:has(+ .mobile-menu[data-open-default="1"][data-state="open"]) {
        display: none !important;
        pointer-events: none;
    }
}

.mobile-close {
    background: none;
    border: none;
    color: #b0b0b0;
    font-size: 32px;
    cursor: pointer;
    float: right;
    padding: 8px;
    transition: color 0.3s ease;
}

.mobile-close:hover {
    color: #FFD700;
}

.mobile-nav {
    clear: both;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav-group {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.mobile-nav-direct {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.2);
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-nav-direct span {
    flex: 1;
}

.mobile-nav-direct:hover,
.mobile-nav-direct.active {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
}

.mobile-nav-direct:hover .mobile-nav-group-icon,
.mobile-nav-direct.active .mobile-nav-group-icon {
    color: #FFD700;
}

.mobile-nav-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-nav-group-toggle span {
    flex: 1;
}

.mobile-nav-group-icon,
.mobile-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #94A3B8;
}

.mobile-nav-group-icon svg,
.mobile-nav-icon svg {
    width: 20px;
    height: 20px;
}

.mobile-nav-group-icon.nav-megaphone-icon,
.mobile-nav-icon.nav-megaphone-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.mobile-nav-chevron {
    transition: transform 0.25s ease;
    color: #64748B;
}

.mobile-nav-group.is-open .mobile-nav-chevron {
    transform: rotate(180deg);
}

.mobile-nav-group-panel {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 4px 8px 10px;
}

.mobile-nav-group-panel[hidden] {
    display: none !important;
}

.mobile-nav-group.is-open > .mobile-nav-group-panel:not([hidden]) {
    display: flex !important;
}

.mobile-nav-group-panel a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: #b0b0b0;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.25s ease;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

.mobile-nav-group-panel a span {
    flex: 1;
}

.mobile-nav-group-panel a:hover,
.mobile-nav-group-panel a.active {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
}

.mobile-nav-group-panel a:hover .mobile-nav-icon,
.mobile-nav-group-panel a.active .mobile-nav-icon {
    color: #FFD700;
}

.mobile-nav-highlight {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(212, 175, 55, 0.12)) !important;
    color: #FFD700 !important;
    font-weight: 700;
}

.mobile-nav-highlight .mobile-nav-icon {
    color: #FFD700;
}

.mobile-nav-group-panel .mobile-site-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    color: #b0b0b0;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-nav-group-panel .mobile-site-item .mobile-site-item__label {
    flex: 1;
}

.mobile-nav-group-panel .mobile-site-item:hover,
.mobile-nav-group-panel .mobile-site-item.is-active {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
}

.mobile-nav-group-panel .mobile-site-item:hover .mobile-nav-icon,
.mobile-nav-group-panel .mobile-site-item.is-active .mobile-nav-icon {
    color: #FFD700;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: linear-gradient(180deg, rgba(18, 22, 29, 0.15) 0%, rgba(0, 0, 0, 0.72) 55%, var(--as-footer-bg, #000000) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 64px 32px 32px;
    font-family: 'Montserrat', sans-serif;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

/* Colonne logo — toujours en premier dans le DOM */
.footer-col-logo .footer-logo {
    margin-bottom: 16px;
}

.footer-col-logo{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.footer-logo{
    margin-right: 20px;
}

.footer-logo-image {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
    transition: all 0.3s ease;
}

.footer-logo-image:hover {
    filter: drop-shadow(0 4px 16px rgba(212, 175, 55, 0.5));
    transform: scale(1.05);
}

.footer-desc {
    font-size: 14px;
    color: #94A3B8;
    line-height: 1.7;
    margin: 0;
}

/* Colonnes standards */
.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #94A3B8;
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    padding: 6px 0;
}

.footer-col a svg {
    width: 16px !important;
    height: 16px !important;
    stroke: currentColor;
    flex-shrink: 0;
}

.footer-col a:hover {
    color: var(--as-gold-muted, #c9a227);
    transform: translateX(2px);
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.social-pill {
    flex: 0 0 auto;
    width: 48px;
    min-width: 48px;
    height: 48px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(18, 18, 20, 0.92));
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #ffe566;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 2px 10px rgba(0, 0, 0, 0.28);
}

.social-pill svg,
.social-pill-icon {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

.social-pill svg {
    stroke: currentColor;
    fill: currentColor;
}

.social-pill--muted .social-pill-icon {
    opacity: 0.72;
    filter: grayscale(0.35);
}

.social-pill:hover {
    background: rgba(255, 215, 0, 0.16);
    color: #fff4a8;
    border-color: rgba(255, 215, 0, 0.55);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 4px 14px rgba(212, 175, 55, 0.28);
}

.social-pill--muted {
    opacity: 0.72;
    color: #c8d4e6;
    border-color: rgba(255, 255, 255, 0.22);
    cursor: default;
}

.social-pill--muted:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(18, 18, 20, 0.92));
    color: #c8d4e6;
    border-color: rgba(255, 255, 255, 0.22);
    transform: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 2px 10px rgba(0, 0, 0, 0.28);
}

.footer-col-social .social-links {
    max-width: 100%;
}

/* FOOTER BOTTOM */
.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: #64748B;
}

.footer-copyright {
    font-size: 14px;
    color: #64748B;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: #64748B;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #ffffff;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-col-logo {
        grid-column: 1 / -1;
    }
}

/* ========================================
   RESPONSIVE - TABLET (dense staff nav)
   ======================================== */
@media (max-width: 1024px) {
    .main-nav.nav-density-dense {
        display: none !important;
    }

    .header:has(.nav-density-dense) .hamburger {
        display: inline-flex;
    }

    .header:has(.nav-density-dense) .title-section {
        margin-bottom: clamp(16px, 3vw, 24px);
    }

    .header:has(.nav-density-dense) .hero-title {
        font-size: clamp(1.65rem, 4.5vw, 2.25rem);
        margin-bottom: 8px;
    }

    .header:has(.nav-density-dense) .hero-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
    }

    .header:has(.nav-density-dense) .hero-tagline {
        font-size: clamp(0.88rem, 2vw, 1rem);
    }

    .header:has(.nav-density-dense) .header-inner {
        padding-bottom: 16px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
    /* Masquer la navigation desktop */
    .nav-menu {
        display: none !important;
    }

    /* Afficher le hamburger */
    .hamburger {
        display: inline-flex;
    }

    /* Header */
    .header-inner {
        padding: 24px 20px;
    }

    .logo-image {
        width: 80px;
    }

    /* Footer */
    .footer {
        padding: 48px 20px 24px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-col-logo {
        grid-column: auto;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .footer-col-logo .footer-logo {
        margin-right: 0;
        margin-bottom: 0;
    }

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

    .footer-legal {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 32px;
    }

    .logo-image {
        width: 70px;
    }
}

/* ========================================
   PAGE 404
   ======================================== */
.warning-zone {
    max-width: 820px;
    margin: 0 auto;
}

.official-signs {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin-bottom: 50px;
}

.warning-sign {
    background: #FFD700;
    color: #000;
    border: 8px solid #000;
    padding: 20px 28px;
    width: 280px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    font-weight: 700;
    transform: rotate(-3deg);
    transition: transform 0.4s;
}

.warning-sign:hover {
    transform: rotate(3deg) scale(1.05);
}

.sign-header {
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 12px;
    border-bottom: 3px solid #000;
    padding-bottom: 8px;
}

.sign-body {
    font-size: 1.25rem;
    line-height: 1.4;
}

.error-code {
    font-size: 9rem;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    margin: 30px 0 20px;
}

.main-message {
    font-size: 1.6rem;
    color: #CBD5E1;
    margin-bottom: 50px;
}

/* ====================== AUTH TOGGLE (Top Left) ====================== */
.auth-toggle {
    display: flex;
    align-items: center;
    gap: var(--header-action-gap);
    padding: 0;
}

.auth-btn {
    box-sizing: border-box;
    width: var(--header-action-size);
    height: var(--header-action-size);
    min-width: var(--header-action-size);
    min-height: var(--header-action-size);
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #b0b0b0;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    text-decoration: none;
}

.auth-btn:hover {
    border-color: #FFD700;
    color: #FFD700;
}

.icon-profile, .icon-login, .icon-logout {
    width: var(--header-action-icon);
    height: var(--header-action-icon);
    stroke: currentColor;
    flex-shrink: 0;
}

/* Effet doré sur hover */
.auth-btn:hover .icon-profile,
.auth-btn:hover .icon-login,
.auth-btn:hover .icon-logout {
    stroke: #FFD700;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --header-action-size: 36px;
        --header-action-gap: 8px;
        --header-action-icon: 20px;
        --header-action-logo: 34px;
        --header-corner-top: 24px;
    }

    .auth-toggle {
        gap: var(--header-action-gap);
        display: none;
    }
}

/* deploy-sync: 20260613b */