/* ===================== POLICES (Google Fonts) ===================== */
@import url('https://fonts.googleapis.com/css2?family=Aldrich&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ===================== VARIABLES & RESET ===================== */
:root {
    /* Couleurs principales */
    --bg: #060606;
    --bg-alt: #0d0d0f;
    --ink: #f5f3ef;
    --ink-dim: #9c9c9e;
    --ink-faint: #5c5c5e;
    --accent: #FFD600;
    --accent-dim: #c4a600;
    --yellow: #FFD600;
    --line: rgba(245, 243, 239, 0.14);
    --line-soft: rgba(245, 243, 239, 0.07);
    /* Polices */
    --font-main: 'Poppins', sans-serif;
    --font-headers: 'Aldrich', sans-serif;
    /* Dimensions */
    --header-h: 92px;
    --header-margin-bottom: 40px;
}

/* Reset global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background-color: var(--bg);
    color: var(--ink);
    padding-top: var(--header-h);
}

h1,
h2,
h3,
.display {
    font-family: var(--font-headers);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 600;
}

span,
p,
aside {
    font-family: Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: var(--font-headers);
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
}

ul {
    list-style: none;
}

::selection {
    background: var(--accent);
    color: #000;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}


/* ===================== SCROLLBAR PERSONNALISÉE ===================== */
/* Pour WebKit (Chrome, Safari, Edge, Opera) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #FFD600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #FFC400;
    box-shadow: 0 0 10px rgba(255, 214, 0, 0.5);
}

/* Pour le sidebar spécifiquement */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

.sidebar::-webkit-scrollbar-thumb {
    background: #FFD600;
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #FFC400;
}

/* Pour Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #FFD600 rgba(255, 255, 255, 0.05);
}

/* Pour Firefox - sidebar spécifiquement */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: #FFD600 rgba(255, 255, 255, 0.03);
}

/* Optionnel : Animation au survol pour plus d'élégance */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FFD600, #FFB300);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FFE44D, #FFC400);
    box-shadow: 0 0 15px rgba(255, 214, 0, 0.6);
}

/* Optionnel : Effet de lueur subtil */
::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #FFE44D, #FFB300);
    box-shadow: 0 0 20px rgba(255, 214, 0, 0.8);
}


/* ===================== HEADER ===================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 600;
    height: var(--header-h);
    display: flex;
    align-items: center;
    padding: 0 clamp(18px, 3vw, 48px);
    background: transparent;
    margin-bottom: var(--header-margin-bottom);
    transition: background 0.3s ease,
        opacity .5s cubic-bezier(.22, .8, .28, 1),
        transform .5s cubic-bezier(.22, .8, .28, 1),
        filter .5s cubic-bezier(.22, .8, .28, 1);
}

.site-header.scrolled {
    background: var(--bg);
    border-bottom: 1px solid var(--line-soft);
}

.site-header.hidden {
    opacity: 0;
    transform: translateY(-14px);
    filter: blur(4px);
    pointer-events: none;
}

.header-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.header-right {
    justify-content: flex-end;
}

/* ===================== BOUTONS ===================== */
.icon-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    padding: 8px 4px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    transition: color .3s ease;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.icon-btn:hover {
    color: var(--accent);
}

.hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--ink);
    padding: 10px;
    border-radius: 4px;
    transition: all .3s ease;
}

.hamburger-btn:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 20px;
    height: 14px;
}

.hamburger-icon span {
    height: 1px;
    /* Plus fin : 2px → 1px */
    width: 100%;
    background: currentColor;
    transition: all .3s cubic-bezier(.22, .8, .28, 1);
    display: block;
    border-radius: 0.5px;
}

.hamburger-btn.active .hamburger-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-headers);
    font-size: 11px;
    /* Plus fin : 12px → 11px */
    letter-spacing: .1em;
    /* Réduit l'espacement */
    font-weight: 400;
    /* Plus léger : 600 → 400 */
    padding: 8px 4px;
    transition: color .3s ease;
}

.lang-btn:hover {
    color: var(--accent);
}

.lang-btn .divider {
    width: 0.5px;
    /* Plus fin : 1px → 0.5px */
    height: 12px;
    background: var(--line);
    display: inline-block;
}

/* ===================== BRAND LOGO ===================== */
.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
    perspective: 600px;
}

.brand-lockup {
    display: flex;
    align-items: center;
}

.brand-mark {
    position: relative;
    height: 44px;
    width: auto;
    display: flex;
    align-items: center;
    transition: all .35s cubic-bezier(.34, 1.56, .64, 1);
    transform-style: preserve-3d;
    will-change: transform;
    cursor: pointer;
    transform-origin: center center;
}

.brand-mark img {
    height: 100%;
    width: auto;
    display: block;
    transition: all .35s cubic-bezier(.34, 1.56, .64, 1);
    pointer-events: none;
}

.brand-mark:hover {
    transform: translateY(-8px) scale(1.2);
}

.brand-mark:hover img {
    transform: scale(1.08);
}

.brand-mark:active {
    transform: translateY(-3px) scale(1.08);
    transition: all .15s cubic-bezier(.34, 1.56, .64, 1);
}

/* ===================== SEARCH DRAWER ===================== */
.search-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 700;
    background: rgba(6, 6, 6, .97);
    backdrop-filter: blur(10px);
    padding: 0 clamp(18px, 3vw, 48px);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.22, .8, .28, 1);
    border-bottom: 1px solid transparent;
}

.search-drawer.open {
    max-height: 130px;
    border-color: var(--line);
}

.search-drawer-inner {
    max-width: 1000px;
    margin: 0 auto;
    height: 130px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.search-drawer input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--font-headers);
    font-size: 22px;
    padding: 10px 2px;
    letter-spacing: .02em;
}

.search-drawer input:focus {
    outline: none;
    border-color: var(--accent);
}

.search-drawer input::placeholder {
    color: var(--ink-faint);
}

/* ===================== SEARCH MODAL ===================== */
.search-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 800;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s;
    backdrop-filter: blur(8px);
}

.search-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 801;
    width: min(600px, 90vw);
    background: #1a1a1a;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all .4s cubic-bezier(.22, .8, .28, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.search-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0 16px;
    height: 48px;
}

.search-input-wrapper svg {
    width: 20px;
    height: 20px;
    stroke: #999;
    flex-shrink: 0;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-headers);
    font-size: 16px;
    color: #fff;
    outline: none;
}

.search-input-wrapper input::placeholder {
    color: #777;
}

.search-modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all .3s ease;
}

.search-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.search-modal-close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.search-modal-body {
    padding: 24px;
}

.search-history-section {
    margin-bottom: 24px;
}

.search-history-title {
    font-size: 14px;
    font-weight: 600;
    color: #999;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.search-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===================== SIDEBAR MENU (CORRIGÉ - FOND NOIR) ===================== */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s cubic-bezier(.22, .8, .28, 1), visibility .4s;
    backdrop-filter: blur(6px);
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 901;
    width: min(380px, 85vw);
    background: #000000 !important;
    /* ✅ FOND NOIR FORCÉ */
    transform: translateX(-100%);
    transition: transform .45s cubic-bezier(.22, .8, .28, 1);
    box-shadow: 4px 0 30px rgba(0, 0, 0, .5);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar.open {
    transform: translateX(0);
}
.sidebar-header {
    display: flex;
    justify-content: center; /* Changé de space-between à center */
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    position: relative; /* Pour positionner le bouton de fermeture en absolu */
}

.sidebar-header .brand-mini img {
    height: 32px;
    width: auto;
}

/* Positionner le bouton de fermeture en absolu à droite */
.sidebar-close-btn {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #f5f5f5;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all .3s ease;
    -webkit-tap-highlight-color: transparent;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #FFD600;
}

.sidebar-close-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    pointer-events: none;
}


.sidebar-search {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.sidebar-search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0 14px;
    height: 48px;
    transition: all .3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-search-box:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 214, 0, 0.2);
}

.sidebar-search-box svg {
    width: 18px;
    height: 18px;
    stroke: #999;
    flex-shrink: 0;
    margin-right: 10px;
}

.sidebar-search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-headers);
    font-size: 14px;
    color: #ffffff;
    outline: none;
    padding: 0;
}

.sidebar-search-box input::placeholder {
    color: #777;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    font-family: var(--font-headers);
    font-size: 15px;
    font-weight: 500;
    color: #f5f5f5;
    transition: all .3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-nav a:hover {
    background: rgba(255, 214, 0, 0.08);
    border-left-color: var(--accent);
    padding-left: 30px;
    color: #FFD600;
}

.sidebar-nav a svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    flex-shrink: 0;
    stroke-width: 1.5;
}

.nav-arrow {
    margin-left: auto;
    width: 16px;
    height: 16px;
    stroke: #777;
    transition: all .3s ease;
}

.sidebar-nav a:hover .nav-arrow {
    transform: translateX(4px);
    stroke: var(--accent);
}

/* Suppression du fond jaune pour Contact */
.sidebar-nav a[href="/contact"] {
    background: transparent;
    color: #f5f5f5;
}

.sidebar-nav a[href="/contact"]:hover {
    background: rgba(255, 214, 0, 0.08);
    color: #FFD600;
}

.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.02);
}

.sidebar-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sidebar-footer span {
    font-family: var(--font-main);
    font-size: 12px;
    color: #888;
    letter-spacing: .04em;
}

.sidebar-social {
    display: flex;
    gap: 12px;
}

.sidebar-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f5f5f5;
    transition: all .3s ease;
}

.sidebar-social a:hover {
    background: #FFD600;
    border-color: #FFD600;
    color: #000000;
}

.sidebar-social svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* ===================== BACK TO TOP BUTTON ===================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 500;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #fff;
    transform: translateY(-3px);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
    :root {
        --header-margin-bottom: 30px;
    }
}

@media (max-width: 680px) {
    :root {
        --header-h: 74px;
        --header-margin-bottom: 20px;
    }

    .icon-btn .label {
        display: none;
    }

    .header-left {
        gap: 14px;
    }

    .header-right {
        gap: 14px;
    }

    .brand-mark {
        height: 36px;
    }

    .sidebar {
        width: min(320px, 90vw);
    }

    .search-modal {
        width: 95vw;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    
}

/* ===================== ACCESSIBILITÉ ===================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .brand-mark:hover,
    .brand-mark:active {
        transform: none;
        animation: none;
    }

    .sidebar,
    .search-modal,
    .search-drawer {
        transition-duration: 0.01ms;
    }
}


@media (max-width: 680px) {
    .activity-hero-mobile-offset {
        margin-top: -80px !important;
    }
}

@media (min-width: 681px) {
    .activity-hero-mobile-offset {
        margin-top: 0 !important;
    }
}

/* ================================================================
   CORRECTION ESPACE MOBILE
   ================================================================ */
