/* Styles communs du layout (extraits de _Layout.cshtml pour être mis en cache par le navigateur) */
        :root {
            --primary: #173c34;
            --primary-dark: #171310;
            --primary-light: #5a4f44;
            --accent: #7d6f5f;
            --text-dark: #1a1a2e;
            --text-gray: #64748b;
            --text-light: #94a3b8;
            --border: #e2e8f0;
            --bg-light: #f8fafc;
            --bg-dark: #0f172a;
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
            --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
            --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
        }

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

        body {
            font-family: 'Poppins', 'Segoe UI', sans-serif;
            color: var(--text-dark);
            line-height: 1.6;
        }

        /* ============================================
           POLICE UNIQUE : Poppins sur tout le site, pour
           coller à la typo géométrique du wordmark du logo.
           Neutralise les restes d'autres polices déclarées
           dans les pages ; les polices d'icônes (Font Awesome,
           Bootstrap Icons) sont préservées.
           ============================================ */
        body, h1, h2, h3, h4, h5, h6, p, a, span, div, li, td, th, dt, dd,
        label, button, input, select, textarea, blockquote, figcaption, small, strong, em, b {
            font-family: 'Poppins', 'Segoe UI', 'Segoe UI Emoji', sans-serif !important;
        }

        /* Typo corporate : pas de graisses lourdes. Les faces 700+ de Poppins
           ne sont plus chargées (cf. <link> ci-dessus), donc tout font-weight
           >= 700 écrit dans les pages retombe automatiquement sur 600. */
        body {
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        h1, h2, h3, h4, h5, h6 {
            font-weight: 600 !important;
            letter-spacing: -0.015em;
        }

        strong, b {
            font-weight: 600;
        }

        .fa, .fas, .far, .fal, .fat, .fad,
        i[class^="fa-"], i[class*=" fa-"],
        span[class^="fa-"], span[class*=" fa-"] {
            font-family: "Font Awesome 6 Free" !important;
            font-weight: 900;
        }

        .far { font-weight: 400; }

        .fab, i.fab, span.fab {
            font-family: "Font Awesome 6 Brands" !important;
            font-weight: 400;
        }

        .bi, i[class^="bi-"], i[class*=" bi-"] {
            font-family: "bootstrap-icons" !important;
        }

        /* ============================================
                   HEADER
                   ============================================ */
        .site-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 80px;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(0,0,0,0.06);
            z-index: 1000;
            transition: all 0.3s ease;
        }

            .site-header.scrolled {
                height: 70px;
                box-shadow: var(--shadow);
            }

        .header-inner {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 24px;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        /* Logo */
        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
        }

            .logo img {
                height: 70px;
                width: auto;
                transition: all 0.3s ease;
            }

        .site-header.scrolled .logo img {
            height: 55px;
        }

        /* Navigation */
        .main-nav {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        /* Nav épurée : plus de pastille pleine au survol, un simple trait
           d'accent qui s'anime sous le lien — lecture plus légère, en phase
           avec la typo géométrique fine du nouveau logo. */
        .nav-link {
            position: relative;
            padding: 10px 20px;
            color: var(--text-dark);
            text-decoration: none;
            font-family: 'Poppins', 'Segoe UI', sans-serif !important;
            font-weight: 500;
            font-size: 0.92rem;
            letter-spacing: 0.01em;
            border-radius: 6px;
            transition: color 0.2s ease, background-color 0.2s ease;
        }

            .nav-link:hover {
                color: var(--primary);
                background-color: rgba(23, 60, 52, 0.07);
            }

            .nav-link.active {
                color: #fff;
                background-color: var(--primary);
                font-weight: 500;
                box-shadow: 0 2px 8px rgba(23, 60, 52, 0.25);
            }

                .nav-link.active:hover {
                    color: #fff;
                    background-color: var(--primary);
                }

        /* Header Actions */
        .header-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: nowrap;
        }

        /* Groupe utilitaire (devise + langue) : un seul cadre partagé avec
           séparateur, plutôt que deux pastilles bordées côte à côte — moins
           de bruit visuel, plus proche du toggle pays déjà utilisé ailleurs. */
        /* Pas d'overflow:hidden ici : ça découpait le menu ES/EN qui doit
           s'ouvrir sous ce cadre (bug corrigé le 14/09 — le menu de langue
           ne s'ouvrait plus du tout sur le site publié). Le coin arrondi en
           pilule se fait directement sur les deux éléments visibles. */
        .utility-group {
            display: flex;
            align-items: stretch;
            border: 1px solid var(--border);
            border-radius: 10px;
            flex-shrink: 0;
        }

        .utility-group .currency-select { border-radius: 9px 0 0 9px; }
        .utility-group .lang-btn { border-radius: 0 9px 9px 0; }

        .currency-select {
            padding: 9px 10px 9px 13px;
            border: none;
            border-right: 1px solid var(--border);
            background: white;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
        }

            .currency-select:hover {
                background: rgba(38,32,26,0.04);
            }

        /* ============================================
           SÉLECTEUR DE LANGUE — desktop
           ============================================ */
        .lang-selector {
            position: relative;
        }

        .lang-btn {
            display: flex;
            align-items: center;
            height: 100%;
            gap: 6px;
            padding: 9px 13px;
            border: none;
            background: white;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
            color: var(--text-dark);
            white-space: nowrap;
        }

        .lang-btn:hover {
            background: rgba(38,32,26,0.04);
        }

        .lang-btn .flag {
            display: inline-flex;
            line-height: 1;
        }

        /* Drapeaux ronds en SVG (les emoji drapeaux sont mal rendus sous Windows) */
        .flag-img {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: block;
            flex-shrink: 0;
            box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
        }
        .lang-option .flag { display: inline-flex; }
        .mobile-lang-option .flag-img { width: 22px; height: 22px; }
        .footer-lang-btn { display: inline-flex; align-items: center; gap: 7px; }
        .footer-lang-btn .flag-img { width: 16px; height: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); }

        .lang-btn .chevron {
            font-size: 0.7rem;
            color: var(--text-gray);
            transition: transform 0.2s;
        }

        .lang-selector.open .lang-btn .chevron {
            transform: rotate(180deg);
        }

        .lang-dropdown {
            position: absolute;
            top: calc(100% + 6px);
            right: 0;
            background: white;
            border: 1px solid var(--border);
            border-radius: 12px;
            box-shadow: var(--shadow-lg);
            overflow: hidden;
            min-width: 140px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-6px);
            transition: all 0.2s ease;
            z-index: 2000;
        }

        .lang-selector.open .lang-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .lang-option {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 11px 16px;
            cursor: pointer;
            font-size: 0.88rem;
            font-weight: 500;
            color: var(--text-dark);
            transition: background 0.15s;
            text-decoration: none;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
        }

        .lang-option:hover {
            background: var(--bg-light);
            color: var(--primary);
        }

        .lang-option.active {
            background: rgba(38,32,26,0.08);
            color: var(--primary);
            font-weight: 700;
        }

        .lang-option .flag {
            font-size: 1.1rem;
        }

        /* Ghost : reste lisible sans concurrencer visuellement le CTA orange,
           seule action qui doit vraiment attirer l'œil dans le header. */
        .btn-login {
            display: inline-flex;
            align-items: center;
            padding: 10px 18px;
            background: transparent;
            color: var(--primary) !important;
            border: 1px solid var(--border);
            border-radius: 6px;
            font-weight: 600;
            font-size: 0.88rem;
            text-decoration: none;
            white-space: nowrap;
            transition: all 0.2s;
        }

            .btn-login:hover {
                border-color: var(--primary);
                background: rgba(38,32,26,0.04);
            }

        .btn-register {
            padding: 10px 22px;
            background: transparent;
            color: var(--primary) !important;
            border: 2px solid var(--primary);
            border-radius: 6px;
            font-weight: 600;
            font-size: 0.9rem;
            text-decoration: none;
            transition: all 0.2s;
        }

            .btn-register:hover {
                background: var(--primary);
                color: white !important;
            }

        /* CTA principale : publier une parcelle (vert plein, sable au survol) */
        .btn-publish-cta {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 10px 20px;
            background: #b8622f;
            color: #fff !important;
            border: none;
            border-radius: 6px;
            font-weight: 700;
            font-size: 0.88rem;
            white-space: nowrap;
            text-decoration: none;
            transition: background 0.2s, color 0.2s, transform 0.2s;
        }

            .btn-publish-cta:hover {
                background: #9a4f24;
                color: #fff !important;
                transform: translateY(-1px);
            }

            .mobile-auth .btn-publish-cta {
                justify-content: center;
                padding: 15px;
                font-size: 1rem;
            }

        /* Burger */
        .burger {
            display: none;
            flex-direction: column;
            gap: 5px;
            padding: 10px;
            background: none;
            border: none;
            cursor: pointer;
            z-index: 1001;
        }

            .burger span {
                display: block;
                width: 26px;
                height: 3px;
                background: var(--text-dark);
                border-radius: 3px;
                transition: all 0.3s;
            }

            .burger.active span:nth-child(1) {
                transform: rotate(45deg) translate(6px, 6px);
            }

            .burger.active span:nth-child(2) {
                opacity: 0;
            }

            .burger.active span:nth-child(3) {
                transform: rotate(-45deg) translate(5px, -5px);
            }

        @media (max-width: 991px) {
            .main-nav, .header-actions {
                display: none !important;
            }

            .burger {
                display: flex !important;
            }
        }

        /* ============================================
                   MOBILE MENU
                   ============================================ */
        .mobile-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            backdrop-filter: blur(4px);
            z-index: 3900;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
        }

            .mobile-overlay.active {
                opacity: 1;
                visibility: visible;
            }

        /* Au-dessus des contrôles Leaflet (zoom, attribution) et du bouton WhatsApp */
        .mobile-menu, .mobile-menu.active { z-index: 4000; }

        .mobile-menu {
            position: fixed;
            top: 0;
            right: -100%;
            width: 320px;
            max-width: 90%;
            height: 100%;
            background: white;
            z-index: 999;
            transition: right 0.3s ease;
            overflow-y: auto;
            box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        }

            .mobile-menu.active {
                right: 0;
            }

        .mobile-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px;
            border-bottom: 1px solid var(--border);
        }

            .mobile-header img {
                height: 45px;
            }

        .mobile-close {
            background: var(--bg-light);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 10px;
            font-size: 24px;
            color: var(--text-gray);
            cursor: pointer;
            transition: all 0.2s;
        }

            .mobile-close:hover {
                background: var(--border);
            }

        .mobile-controls {
            display: flex;
            gap: 10px;
            padding: 14px 20px;
            background: var(--bg-light);
            border-bottom: 1px solid var(--border);
        }

        .mobile-controls select {
            flex: 1;
            padding: 11px 12px;
            border: 1px solid var(--border);
            border-radius: 10px;
            font-size: 0.88rem;
            background: white;
        }

        /* Sélecteur langue mobile */
        .mobile-lang-select {
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            align-self: center;
            gap: 0;
            padding: 0;
            border: 1px solid var(--border);
            border-radius: 10px;
            overflow: hidden;
            background: white;
        }

        .mobile-lang-option {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 46px;
            height: 42px;
            font-size: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            border: none;
            background: none;
            color: var(--text-gray);
            border-right: 1px solid var(--border);
            transition: all 0.15s;
            flex-direction: column;
            gap: 1px;
            text-decoration: none;
            line-height: 1;
        }

        .mobile-lang-option:last-child {
            border-right: none;
        }

        .mobile-lang-option .m-flag {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            font-size: 1.15rem;
            line-height: 1;
        }

        .mobile-lang-option:hover {
            background: rgba(38,32,26,0.06);
            color: var(--primary);
        }

        .mobile-lang-option.active {
            background: var(--primary);
            color: white;
        }

        .mobile-auth {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 20px;
            border-bottom: 1px solid var(--border);
        }

            .mobile-auth .btn-login,
            .mobile-auth .btn-register {
                text-align: center;
                padding: 14px;
            }

        .mobile-nav a {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 18px 24px;
            color: var(--text-dark);
            text-decoration: none;
            font-family: 'Poppins', 'Segoe UI', sans-serif !important;
            font-weight: 500;
            border-bottom: 1px solid var(--border);
            transition: all 0.2s;
        }

            .mobile-nav a:hover,
            .mobile-nav a.active {
                background: var(--bg-light);
                color: var(--primary);
            }

            .mobile-nav a.active {
                border-left: 4px solid var(--primary);
            }

            .mobile-nav a i {
                width: 22px;
                font-size: 1.1rem;
                color: var(--primary);
            }

        /* ============================================
                   MAIN CONTENT
                   ============================================ */
        main {
            padding-top: 80px;
            min-height: calc(100vh - 400px);
        }

        /* ============================================
                   PAGES LÉGALES
                   ============================================ */
        .legal-page {
            max-width: 900px;
            margin: 0 auto;
            padding: 60px 24px;
        }

            .legal-page h1 {
                font-size: 2.5rem;
                font-weight: 700;
                color: var(--primary-dark);
                text-align: center;
                margin-bottom: 12px;
            }

        .legal-divider {
            width: 60px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            margin: 0 auto 40px;
            border-radius: 2px;
        }

        .legal-page h2 {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--primary);
            margin: 40px 0 16px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--border);
        }

        .legal-page p,
        .legal-page li {
            color: var(--text-gray);
            line-height: 1.8;
        }

        .legal-card,
        .legal-page table td:first-child,
        .legal-page .info-card,
        .legal-page [style*="border-left"] {
            background: var(--bg-light);
            border-left: 4px solid var(--accent);
            padding: 24px 32px 24px 28px !important;
            margin: 24px 0;
            border-radius: 0 12px 12px 0;
        }

        .legal-page table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
        }

            .legal-page table td {
                padding: 14px 24px;
                border-bottom: 1px solid var(--border);
                vertical-align: top;
            }

                .legal-page table td:first-child {
                    font-weight: 600;
                    color: var(--text-dark);
                    width: 200px;
                    border-left: 4px solid var(--accent);
                    padding-left: 24px !important;
                    background: var(--bg-light);
                }

                .legal-page table td:last-child {
                    padding-left: 20px;
                }

        .legal-page ul,
        .legal-page ol {
            padding-left: 32px;
            margin: 16px 0;
        }

        .legal-page li {
            margin-bottom: 12px;
            padding-left: 10px;
        }

        .legal-page h3 {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1.15rem;
            font-weight: 600;
            color: var(--text-dark);
            margin: 28px 0 16px;
            padding: 14px 20px;
            background: var(--bg-light);
            border-radius: 10px;
            border-left: 4px solid var(--primary);
        }

        .legal-page div[style*="border-left"] {
            padding: 20px 28px !important;
            margin: 20px 0;
            border-radius: 0 10px 10px 0;
            background: #f8fafc;
        }

        /* ============================================
                   REGION CARDS
                   ============================================ */
        .region-card {
            position: relative;
            overflow: hidden;
            border-radius: 16px;
            display: block;
            text-decoration: none;
        }

            .region-card img {
                width: 100%;
                height: 280px;
                object-fit: cover;
                transition: transform 0.4s ease;
            }

            .region-card:hover img {
                transform: scale(1.08);
            }

            .region-card::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
                height: 70%;
                background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
                pointer-events: none;
            }

        .region-card-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 24px;
            z-index: 2;
        }

        .region-card h3 {
            color: #fff !important;
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 8px;
            text-shadow: 0 2px 8px rgba(0,0,0,0.3);
        }

        .region-card p {
            color: rgba(255,255,255,0.9) !important;
            font-size: 0.95rem;
        }

        .region-count {
            position: absolute;
            top: 16px;
            right: 16px;
            background: var(--primary);
            color: white;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            z-index: 3;
        }
