﻿        /* ── RESET & BASE ── */
        *, *::before, *::after { box-sizing: border-box; }
        html, body {
            font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
            margin: 0;
        }
        html { overflow-x: hidden; }
        body { overflow-x: hidden; max-width: 100vw; }
        :root {
            --brand: #0E4E63;
            --accent: #e8a020;
            --primary: #009688;
            --text: #1E293B;
            --muted: #6b7280;
            --sand: #fdf6ee;
            --border: #e5e7eb;
            --hdr-h: 72px;
        }

        /* ── HEADER SHELL ── */
        .header-modern {
            position: sticky;
            top: 0;
            z-index: 1000;
            height: var(--hdr-h);
            width: 100%;
            background: rgba(255,255,255,.92);
            backdrop-filter: saturate(180%) blur(14px);
            -webkit-backdrop-filter: saturate(180%) blur(14px);
            border-bottom: 1px solid transparent;
            transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
            overflow: visible;
        }
        .header-modern.is-scrolled {
            border-bottom-color: var(--border);
            box-shadow: 0 8px 24px -12px rgba(14,78,99,.18);
            background: rgba(255,255,255,.98);
        }
        .header-container {
            max-width: 1320px;
            margin: 0 auto;
            padding: 0 24px;
            height: 100%;
            display: flex;
            align-items: center;
            gap: 20px;
        }

        /* ── LOGO ── */
        .logo-link {
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            text-decoration: none;
            gap: 1px;
            transition: transform .2s ease;
        }
        .logo-link:hover { transform: translateY(-1px); }
        .logo-link img { height: 38px; display: block; }
        .logo-sub {
            font-size: 0.64rem;
            color: var(--muted);
            white-space: nowrap;
            letter-spacing: 0.02em;
            font-weight: 500;
        }
        @media (max-width: 1180px) { .logo-sub { display: none; } }

        /* ── NAV (desktop) ── */
        .nav-modern {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 2px;
        }
        .nav-modern > a,
        .nav-dropdown-trigger {
            position: relative;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 9px 14px;
            border-radius: 10px;
            text-decoration: none;
            color: var(--text);
            font-weight: 500;
            font-size: 0.88rem;
            letter-spacing: .005em;
            white-space: nowrap;
            border: none;
            background: none;
            cursor: pointer;
            font-family: inherit;
            transition: color .18s ease, background .18s ease;
        }
        .nav-modern > a::after,
        .nav-dropdown-trigger::after {
            content: "";
            position: absolute;
            left: 14px; right: 14px;
            bottom: 6px;
            height: 2px;
            border-radius: 2px;
            background: linear-gradient(90deg, var(--brand), var(--primary));
            transform: scaleX(0);
            transform-origin: left center;
            transition: transform .25s cubic-bezier(.2,.7,.2,1);
            pointer-events: none;
        }
        .nav-modern > a:hover,
        .nav-dropdown-trigger:hover,
        .nav-modern > a.is-active {
            color: var(--brand);
            background: rgba(14,78,99,.05);
        }
        .nav-modern > a:hover::after,
        .nav-dropdown-trigger:hover::after,
        .nav-modern > a.is-active::after,
        .nav-dropdown:hover .nav-dropdown-trigger::after { transform: scaleX(1); }

        /* ── DROPDOWNS ── */
        .nav-dropdown { position: relative; }

        .nav-dropdown-trigger .arrow {
            font-size: 0.55rem;
            transition: transform 0.25s cubic-bezier(.2,.7,.2,1);
            opacity: 0.55;
        }
        .nav-dropdown:hover .arrow,
        .nav-dropdown.open .arrow { transform: rotate(180deg); }

        .nav-dropdown-menu::before {
            content: "";
            position: absolute;
            top: -12px; left: 0; right: 0;
            height: 12px;
        }

        .nav-dropdown-menu {
            display: flex;
            flex-direction: column;
            position: absolute;
            top: 100%;
            margin-top: 6px;
            left: 50%;
            transform: translateX(-50%) translateY(-6px);
            background: #fff;
            border-radius: 16px;
            box-shadow:
                0 24px 48px -16px rgba(14,78,99,.22),
                0 2px 6px rgba(0,0,0,.05);
            border: 1px solid rgba(14,78,99,.08);
            padding: 8px;
            min-width: 280px;
            z-index: 600;
            opacity: 0;
            visibility: hidden;
            transition: opacity .18s ease, transform .2s cubic-bezier(.2,.7,.2,1), visibility 0s .2s;
        }
        .nav-dropdown:hover .nav-dropdown-menu,
        .nav-dropdown.open .nav-dropdown-menu,
        .nav-dropdown:focus-within .nav-dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
            transition-delay: 0s;
        }

        .nav-dropdown-menu a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 11px 12px;
            border-radius: 12px;
            text-decoration: none;
            color: var(--text);
            font-weight: 600;
            font-size: 0.86rem;
            transition: background .15s ease, transform .15s ease;
        }
        .nav-dropdown-menu a:hover {
            background: linear-gradient(135deg, rgba(14,78,99,.06), rgba(0,150,136,.06));
            color: var(--brand);
            transform: translateX(2px);
        }
        .nav-dropdown-menu .menu-icon {
            font-size: 1.05rem;
            flex-shrink: 0;
            width: 36px; height: 36px;
            border-radius: 10px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, rgba(14,78,99,.08), rgba(0,150,136,.08));
        }
        .nav-dropdown-menu .menu-label {
            display: flex;
            flex-direction: column;
            gap: 2px;
            color: inherit;
            font-size: inherit;
            letter-spacing: normal;
            text-transform: none;
            margin: 0;
        }
        .nav-dropdown-menu .menu-label small {
            font-weight: 400;
            color: var(--muted);
            font-size: 0.74rem;
            line-height: 1.35;
        }

        /* Parking badge */
        .parking-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: linear-gradient(135deg, var(--sand), #fff4e0);
            color: var(--brand) !important;
            border: 1px solid rgba(232,160,32,.35) !important;
            border-radius: 999px;
            padding: 7px 16px !important;
            font-size: 0.82rem !important;
            font-weight: 700 !important;
        }
        .parking-badge::after { display: none !important; }
        .parking-badge:hover {
            background: linear-gradient(135deg, var(--accent), #d89016) !important;
            color: #fff !important;
            border-color: transparent !important;
            box-shadow: 0 6px 16px -6px rgba(232,160,32,.55);
        }

        /* ── AUTH ZONE ── */
        .auth-desktop {
            flex-shrink: 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* CTA primary: Créer un compte */
        #btn-inscription {
            display: inline-flex; align-items: center; gap: 6px;
            padding: 10px 20px;
            border-radius: 999px;
            font-size: 0.85rem;
            font-weight: 700;
            text-decoration: none;
            white-space: nowrap;
            background: linear-gradient(135deg, var(--brand), #1a7a9a);
            color: #fff;
            border: none;
            box-shadow: 0 6px 18px -6px rgba(14,78,99,.4);
            transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
        }
        #btn-inscription:hover {
            transform: translateY(-1px);
            box-shadow: 0 10px 24px -8px rgba(14,78,99,.5);
            filter: brightness(1.05);
        }

        /* CTA secondary: Se connecter */
        #btn-connexion {
            display: inline-flex; align-items: center; gap: 6px;
            padding: 10px 18px;
            border-radius: 999px;
            font-size: 0.85rem;
            font-weight: 600;
            text-decoration: none;
            white-space: nowrap;
            background: transparent;
            color: var(--brand);
            border: 1.5px solid rgba(14,78,99,.2);
            transition: background .15s ease, border-color .15s ease;
        }
        #btn-connexion:hover { background: rgba(14,78,99,.06); border-color: var(--brand); }

        /* Zone utilisateur connecté — avatar + dropdown */
        .user-menu-wrapper {
            position: relative;
        }
        #btn-compte {
            display: inline-flex; align-items: center; gap: 8px;
            padding: 6px 14px 6px 6px;
            border-radius: 22px;
            font-size: 0.85rem;
            font-weight: 600;
            text-decoration: none;
            white-space: nowrap;
            background: var(--sand);
            color: var(--text);
            border: 1.5px solid var(--border);
            cursor: pointer;
            transition: border-color .15s, box-shadow .15s;
        }
        #btn-compte:hover { border-color: var(--brand); box-shadow: 0 2px 8px rgba(14,78,99,.12); }
        .user-avatar {
            width: 28px; height: 28px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--brand), #1a7a9a);
            color: #fff;
            font-size: 0.8rem;
            font-weight: 700;
            display: flex; align-items: center; justify-content: center;
            flex-shrink: 0;
        }
        .user-menu-dropdown {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 8px;
            background: #fff;
            border-radius: 14px;
            box-shadow: 0 12px 48px rgba(0,0,0,.14);
            border: 1px solid var(--border);
            padding: 6px;
            min-width: 240px;
            max-height: calc(100vh - var(--hdr-h) - 24px);
            overflow-y: auto;
            z-index: 600;
            flex-direction: column;
        }
        .user-menu-dropdown::before {
            content: "";
            position: absolute;
            top: -16px; left: 0; right: 0;
            height: 16px;
        }
        .user-menu-wrapper:hover .user-menu-dropdown,
        .user-menu-wrapper:focus-within .user-menu-dropdown { display: flex; }
        .user-menu-dropdown a {
            display: flex; align-items: center; gap: 10px;
            padding: 10px 14px;
            border-radius: 10px;
            text-decoration: none;
            color: var(--text);
            font-weight: 600;
            font-size: 0.85rem;
            transition: background .15s;
        }
        .user-menu-dropdown a:hover { background: var(--sand); color: var(--brand); }
        .user-menu-dropdown .logout-link { color: #ef4444; }
        .user-menu-dropdown .logout-link:hover { background: #fef2f2; color: #dc2626; }
        .user-menu-divider { height: 1px; background: var(--border); margin: 4px 0; }

        #btn-deconnexion { display: none; } /* caché, géré dans le dropdown */

        /* ── BURGER ── */
        .burger-container { position: relative; flex-shrink: 0; }
        .burger {
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 5px;
            width: 40px;
            height: 40px;
            cursor: pointer;
            border-radius: 8px;
            transition: background 0.15s;
        }
        .burger:hover { background: var(--sand); }
        .burger span {
            display: block;
            width: 22px;
            height: 2.5px;
            background: var(--brand);
            border-radius: 2px;
            transition: transform 0.25s, opacity 0.25s;
        }
        .burger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
        .burger.active span:nth-child(2) { opacity: 0; }
        .burger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

        /* ── MOBILE DRAWER ── */
        .mobile-menu {
            display: none;
            position: fixed;
            top: var(--hdr-h);
            left: 0;
            width: 100vw;
            height: calc(100vh - var(--hdr-h));
            background: #fff;
            overflow-y: auto;
            overflow-x: hidden;
            flex-direction: column;
            padding: 12px 16px 32px;
            border-top: 1px solid var(--border);
            z-index: 999;
        }
        .mobile-menu.open { display: flex; }

        .mobile-menu a, .mobile-menu .mobile-section-title {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 13px 14px;
            border-radius: 10px;
            text-decoration: none;
            color: var(--text);
            font-weight: 600;
            font-size: 0.92rem;
            transition: background 0.15s;
        }
        .mobile-menu a:hover { background: var(--sand); color: var(--brand); }
        .mobile-menu hr { border: none; border-top: 1px solid var(--border); margin: 8px 0; }
        .mobile-section-title {
            font-size: 0.7rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: var(--muted);
            padding: 10px 14px 4px;
            cursor: default;
        }
        .mobile-auth-btn {
            display: block !important;
            text-align: center;
            padding: 12px !important;
            border-radius: 22px !important;
            margin: 4px 0;
        }
        #btn-connexion-mobile  { background: var(--primary) !important; color: #fff !important; }
        #btn-inscription-mobile { border: 1.5px solid var(--primary) !important; color: var(--primary) !important; background: none !important; }
        #btn-compte-mobile     { background: var(--brand) !important; color: #fff !important; }
        #btn-deconnexion-mobile { background: #ef4444 !important; color: #fff !important; }

        /* ── RESPONSIVE ── */
        @media (max-width: 1440px) {
            .nav-modern > a, .nav-dropdown-trigger { font-size: .82rem; padding: 8px 10px; gap: 4px; }
            .header-container { gap: 12px; padding: 0 16px; }
        }
        @media (max-width: 1280px) {
            .nav-modern > a, .nav-dropdown-trigger { font-size: .78rem; padding: 7px 8px; }
            .nav-modern { gap: 0; }
            #btn-inscription, #btn-connexion { padding: 9px 14px; font-size: .8rem; }
        }
        @media (max-width: 1180px) {
            .logo-sub { display: none; }
        }
        @media (max-width: 1100px) {
            .nav-modern { display: none; }
            .auth-desktop { display: none; }
            .burger { display: flex; }
        }

        #btn-compte-mobile { color: var(--text); }
