/* ═══════════════════════════════════════════
   VARIABLES & RESET — Frais de notaire offerts
   ═══════════════════════════════════════════ */
:root {
    --blue-light: #007ac2;
    --blue-medium: #00416e;
    --blue-darker: #012340;
    --yellow: #ffbf35;
    --yellow-dark: #d4940a;
    --amber-500: #f59e0b;
    --amber-700: #b45309;
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --cream: #fffbeb;
    --cream-deep: #fef3c7;
    --grad-cta: linear-gradient(135deg, #ffbf35 0%, #f59e0b 60%, #f97316 100%);
    --white: #ffffff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --red-600: #dc2626;
    --green-600: #16a34a;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 2rem;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.12);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* Lenis (smooth scroll inertiel) — snippet officiel */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

html, body {
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    font-family: 'Lato', system-ui, -apple-system, sans-serif;
    color: var(--blue-darker);
    background: var(--slate-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
input, select { font-family: inherit; }

::selection { background: var(--yellow); color: var(--blue-darker); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ═══════════════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════════════ */
.cookie-overlay {
    position: fixed; inset: 0;
    background: rgba(1, 35, 64, 0.6);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 1; visibility: visible;
    transition: opacity 0.3s, visibility 0.3s;
}
.cookie-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.cookie-popup {
    background: var(--white); border-radius: var(--radius-xl);
    max-width: 440px; width: 100%;
    padding: 40px 32px 32px; text-align: center;
    box-shadow: var(--shadow-xl);
}
.cookie-icon { margin: 0 auto 16px; width: 56px; height: 56px; background: var(--slate-50); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--blue-light); }
.cookie-title { font-size: 1.25rem; font-weight: 900; margin-bottom: 8px; }
.cookie-text { font-size: 0.85rem; color: var(--slate-500); margin-bottom: 24px; line-height: 1.6; }
.cookie-text a { color: var(--blue-light); text-decoration: underline; }
.cookie-buttons { display: flex; flex-direction: column; gap: 10px; }
.cookie-accept { padding: 14px 24px; background: var(--green-600); color: white; font-weight: 700; font-size: 0.95rem; border-radius: 12px; transition: background 0.2s; }
.cookie-accept:hover { background: #15803d; }
.cookie-refuse { padding: 12px 24px; background: transparent; color: var(--slate-400); font-weight: 600; font-size: 0.85rem; border-radius: 12px; border: 1px solid var(--slate-200); transition: all 0.2s; }
.cookie-refuse:hover { border-color: var(--slate-400); color: var(--slate-600); }

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.fn-nav {
    position: absolute; top: 0; left: 0; right: 0;
    z-index: 50; padding: 20px 24px;
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center; gap: 24px;
}
.nav-logo img { height: 40px; }

@media (max-width: 767px) {
    .nav-logo img { height: 52px; }
}
.nav-link-map {
    display: none; color: rgba(255,255,255,0.85);
    font-weight: 600; font-size: 0.9rem;
    margin-left: auto; transition: color 0.2s;
}
.nav-link-map:hover { color: var(--yellow); }
.nav-cta {
    display: none; padding: 12px 24px;
    background: var(--white); color: var(--blue-darker);
    font-weight: 700; font-size: 0.85rem; border-radius: 99px;
    box-shadow: var(--shadow-lg); transition: background 0.2s;
}
.nav-cta:hover { background: var(--yellow); }

@media (min-width: 768px) {
    .nav-inner { justify-content: space-between; }
    .nav-cta, .nav-link-map { display: inline-flex; }
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero-fn {
    position: relative;
    background: linear-gradient(160deg, var(--blue-darker) 0%, #023459 55%, var(--blue-medium) 100%);
    color: var(--white);
    padding: 130px 24px 124px;
    overflow: hidden;
    text-align: center;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg-img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center 65%;
}
.hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(1,35,64,0.97) 0%, rgba(1,35,64,0.92) 45%, rgba(0,65,110,0.82) 100%);
}
.hero-bg-pattern {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,191,53,0.12) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 0%, transparent 70%);
}
.hero-content { position: relative; max-width: 880px; margin: 0 auto; }

.hero-title-fn { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero-title-fn > span:first-child {
    font-size: clamp(1.6rem, 4.5vw, 2.6rem);
    font-weight: 400; line-height: 1.25;
}
.hero-title-fn em { font-style: normal; font-weight: 900; }
.hero-aster { color: var(--yellow); font-size: 0.6em; }
.hero-offert-line {
    font-family: 'Lato', sans-serif;
    font-size: clamp(4rem, 13vw, 8.5rem);
    font-weight: 900; line-height: 0.95;
    letter-spacing: -3px;
    background: linear-gradient(100deg, #ffd166 0%, var(--yellow) 35%, var(--amber-500) 70%, var(--orange-500) 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    filter: drop-shadow(0 6px 22px rgba(245,158,11,0.4));
    margin: 6px 0;
    /* letter-spacing négatif : le S final déborde de la boîte, le padding compense pour ne pas couper le dégradé */
    padding: 0.05em 0.1em;
}
.hero-sub-line {
    font-size: clamp(1rem, 2.6vw, 1.35rem);
    font-weight: 700; color: rgba(255,255,255,0.92);
}

.hero-explain {
    max-width: 640px; margin: 28px auto 0;
    font-size: 1.05rem; line-height: 1.7;
    color: rgba(255,255,255,0.85);
}
.hero-explain strong { color: var(--yellow); font-weight: 700; }

.hero-cta-wrap { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero-cta-btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 19px 42px;
    background: var(--grad-cta); color: var(--blue-darker);
    font-size: 1.05rem; font-weight: 900;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(249,115,22,0.35);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    position: relative; overflow: hidden;
}
.hero-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(249,115,22,0.45); filter: brightness(1.05); }

/* Effet shine au survol des gros CTA */
.hero-cta-btn::after, .cta-transition-btn::after {
    content: '';
    position: absolute; top: 0; left: -70%;
    width: 45%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.5), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}
.hero-cta-btn:hover::after, .cta-transition-btn:hover::after { left: 130%; }
.hero-urgency {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.75);
}
.hero-urgency strong { color: var(--yellow); }

.hero-asterisk {
    margin-top: 36px;
    font-size: 0.75rem; line-height: 1.6;
    color: rgba(255,255,255,0.5);
    max-width: 620px; margin-left: auto; margin-right: auto;
}
.hero-asterisk a { color: rgba(255,255,255,0.7); text-decoration: underline; }
.hero-asterisk a:hover { color: var(--yellow); }

/* ═══════════════════════════════════════════
   TRUST BAR (carte flottante sur le hero)
   ═══════════════════════════════════════════ */
.trust-bar {
    background: transparent;
    padding: 0;
    margin-top: -56px;
    position: relative; z-index: 5;
}
.trust-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
    background: var(--white);
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 30px 22px;
}
.trust-item { text-align: center; }
.trust-item strong {
    display: block; font-size: 1.6rem; font-weight: 900;
    color: var(--blue-darker); line-height: 1.2;
}
.trust-item span { font-size: 0.82rem; color: var(--slate-500); }

@media (min-width: 768px) {
    .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ═══════════════════════════════════════════
   SECTIONS COMMUNES
   ═══════════════════════════════════════════ */
.section-header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-kicker {
    display: inline-block;
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px;
    color: var(--orange-600);
    margin-bottom: 12px;
}
.section-kicker-light { color: var(--yellow); }
.section-title {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 900; line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}
.section-header .section-title::after {
    content: '';
    display: block;
    width: 56px; height: 4px;
    border-radius: 99px;
    background: var(--grad-cta);
    margin: 16px auto 0;
}
.section-sub { font-size: 1rem; color: var(--slate-500); line-height: 1.7; }

/* ═══════════════════════════════════════════
   COMMENT ÇA MARCHE
   ═══════════════════════════════════════════ */
.how-section { padding: 80px 0; }
.how-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.how-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-100);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.how-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.how-num {
    position: absolute; top: 24px; right: 28px;
    font-size: 3.2rem; font-weight: 900;
    background: var(--grad-cta);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    opacity: 0.3;
    line-height: 1;
}
.how-icon {
    width: 56px; height: 56px;
    background: var(--blue-darker); color: var(--yellow);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.how-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.how-card p { font-size: 0.92rem; color: var(--slate-500); line-height: 1.7; }

@media (min-width: 768px) {
    .how-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Marquee photos terrains (défilement infini) */
.marquee {
    overflow: hidden;
    margin: 48px auto 0;
    max-width: 1100px;
    mask: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}
.marquee-track {
    display: flex;
    width: max-content;
    will-change: transform;
}
.marquee-group { display: flex; gap: 18px; padding-right: 18px; }
.marquee-item {
    margin: 0;
    flex-shrink: 0;
    width: 540px; height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}
.marquee-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.marquee-item:hover img { transform: scale(1.05); }
/* Le défilement est piloté en JS (décélération douce au survol) — voir script.js */

/* Badge économie (haut droite) */
.mi-badge {
    position: absolute; top: 16px; right: 16px;
    background: var(--grad-cta); color: var(--blue-darker);
    font-size: 0.95rem; font-weight: 900;
    padding: 8px 16px;
    border-radius: 99px;
    box-shadow: 0 4px 12px rgba(1,35,64,0.3);
    pointer-events: none;
}

/* Infos terrain (bas, sur scrim dégradé) */
.mi-info {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 52px 20px 17px;
    background: linear-gradient(180deg, transparent 0%, rgba(1,35,64,0.55) 45%, rgba(1,35,64,0.92) 100%);
    color: var(--white);
    display: flex; flex-direction: column; gap: 2px;
    pointer-events: none;
}
.mi-info strong { font-size: 1.25rem; font-weight: 900; line-height: 1.25; }
.mi-info span { font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.82); }
.marquee-caption {
    margin-top: 18px;
    text-align: center;
    font-size: 0.85rem; font-style: italic;
    color: var(--slate-400);
}

/* ═══════════════════════════════════════════
   CARTE + LISTE TERRAINS
   ═══════════════════════════════════════════ */
.map-section { padding: 80px 0; background: var(--white); }

.map-filters {
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}

/* Barre d'outils : recherche + tri */
.map-toolbar {
    display: flex; gap: 12px;
    max-width: 760px; margin: 0 auto 14px;
}
.map-search {
    position: relative; flex: 1;
}
.ms-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--slate-400); pointer-events: none;
}
#mapSearch {
    width: 100%;
    padding: 13px 40px 13px 44px;
    border: 1.5px solid var(--slate-200);
    border-radius: 12px;
    font-size: 0.92rem; font-weight: 600;
    color: var(--blue-darker);
    background: var(--white);
    transition: border-color 0.2s;
}
#mapSearch:focus { outline: none; border-color: var(--blue-darker); }
#mapSearch::placeholder { font-weight: 400; color: var(--slate-400); }
.map-search-clear {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--slate-100); color: var(--slate-500);
    font-size: 1.1rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.map-search-clear:hover { background: var(--slate-200); }
.map-sort {
    flex-shrink: 0;
    padding: 13px 38px 13px 16px;
    border: 1.5px solid var(--slate-200);
    border-radius: 12px;
    font-size: 0.9rem; font-weight: 700;
    color: var(--blue-darker);
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
    background-size: 14px;
    appearance: none; -webkit-appearance: none;
    cursor: pointer;
}
.map-sort:focus { outline: none; border-color: var(--blue-darker); }

/* Barre de résultats */
.map-resultsbar {
    max-width: 760px; margin: 0 auto 24px;
    display: flex; align-items: baseline; gap: 8px;
    font-size: 0.9rem;
}
.mrb-count { font-weight: 900; color: var(--blue-darker); }
.mrb-hint { font-size: 0.82rem; color: var(--slate-400); font-weight: 600; }
.filter-chip {
    padding: 10px 20px;
    background: var(--slate-50);
    border: 1.5px solid var(--slate-200);
    border-radius: 99px;
    font-size: 0.88rem; font-weight: 700;
    color: var(--slate-600);
    transition: all 0.2s;
}
.filter-chip:hover { border-color: var(--blue-darker); color: var(--blue-darker); }
.filter-chip.active {
    background: var(--blue-darker);
    border-color: var(--blue-darker);
    color: var(--white);
}
.chip-count { opacity: 0.65; font-weight: 400; }
.filter-chip.is-empty { opacity: 0.4; pointer-events: none; }

.map-layout {
    display: grid; grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}
.map-wrap, .terrain-list-wrap { min-width: 0; }
.map-wrap { position: relative; }
#terrainMap {
    height: 420px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-200);
    z-index: 1;
}
.map-hint {
    position: absolute; bottom: 14px; left: 14px; z-index: 500;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(4px);
    border-radius: 99px;
    font-size: 0.75rem; font-weight: 600;
    color: var(--blue-darker);
    box-shadow: var(--shadow-md);
    pointer-events: none;
}
.map-hint svg { color: var(--blue-light); flex-shrink: 0; }

/* Markers custom (prix-tag) */
.price-marker {
    background: transparent !important;
    border: none !important;
}
.pm-bubble {
    position: relative;
    display: inline-flex; flex-direction: column; align-items: center;
    transform: translate(-50%, calc(-100% - 10px));
    cursor: pointer;
    filter: drop-shadow(0 4px 10px rgba(1,35,64,0.3));
    transition: transform 0.15s;
    animation: pin-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes pin-in {
    from { opacity: 0; transform: translate(-50%, calc(-100% - 26px)); }
    to { opacity: 1; transform: translate(-50%, calc(-100% - 10px)); }
}
.pm-bubble:hover { transform: translate(-50%, calc(-100% - 10px)) scale(1.08); }
.pm-tag {
    background: var(--blue-darker); color: var(--white);
    padding: 7px 12px 6px;
    border-radius: 10px;
    font-family: 'Lato', sans-serif;
    white-space: nowrap;
    text-align: center;
    border: 2px solid var(--white);
}
.pm-tag .pm-save {
    display: block;
    font-size: 13px; font-weight: 900; line-height: 1.15;
    color: var(--yellow);
}
.pm-tag .pm-loc {
    display: block;
    font-size: 9.5px; font-weight: 600; line-height: 1.2;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.pm-arrow {
    width: 0; height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 9px solid var(--white);
    margin-top: -1px;
}
.pm-arrow::after { content: ''; }
.pm-bubble.active .pm-tag { background: var(--grad-cta); }
.pm-bubble.active .pm-tag .pm-save { color: var(--blue-darker); }
.pm-bubble.active .pm-tag .pm-loc { color: rgba(1,35,64,0.7); }

/* Clusters */
.fn-cluster {
    background: transparent !important;
    border: none !important;
}
.fn-cluster-box {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    width: max-content;
    transform: translate(-50%, -50%);
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    transition: transform 0.15s;
}
.fn-cluster-box:hover { transform: translate(-50%, -50%) scale(1.07); }
.fcb-circle {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--blue-darker);
    border: 3px solid var(--yellow);
    color: var(--white);
    font-size: 1.1rem; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(1,35,64,0.45);
}
.fcb-save {
    background: var(--grad-cta);
    color: var(--blue-darker);
    font-size: 0.7rem; font-weight: 900;
    padding: 3px 10px; border-radius: 99px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(1,35,64,0.3);
    border: 1.5px solid var(--white);
}

/* Indicateurs de swipe (mobile uniquement) */
.swipe-hint {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 2px 0 10px;
    font-size: 0.78rem; font-weight: 600; color: var(--slate-500);
    transition: opacity 0.4s;
}
.swipe-hint strong { color: var(--blue-darker); }
.swipe-hint svg { color: var(--blue-light); flex-shrink: 0; }
.swipe-hint .swipe-anim { animation: swipe-wiggle 1.6s ease-in-out infinite; }
.swipe-hint.swipe-hint-hidden { opacity: 0; pointer-events: none; }
@keyframes swipe-wiggle {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}
.swipe-progress {
    height: 4px; border-radius: 99px;
    background: var(--slate-200);
    margin: 4px auto 0;
    max-width: 200px;
    overflow: hidden;
}
.swipe-progress-fill {
    height: 100%; width: 0;
    background: var(--grad-cta);
    border-radius: 99px;
    transition: width 0.15s linear;
}
@media (min-width: 980px) {
    .swipe-hint, .swipe-progress { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .swipe-hint .swipe-anim { animation: none; }
}

/* Liste terrains */
.terrain-list-wrap { position: relative; }
.terrain-list {
    display: grid; grid-template-columns: 1fr;
    gap: 14px;
}
.terrain-card {
    position: relative;
    background: var(--slate-50);
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.terrain-card:hover {
    border-color: var(--blue-darker);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.terrain-card.active {
    border-color: var(--amber-500);
    background: var(--cream);
    box-shadow: 0 8px 24px rgba(245,158,11,0.22);
}
.tc-photo {
    width: 100%; height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
    background: var(--slate-100);
}
.tc-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.terrain-card:hover .tc-photo img { transform: scale(1.05); }

.tc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tc-title { font-size: 1.08rem; font-weight: 900; line-height: 1.3; }
.tc-sub { font-size: 0.8rem; color: var(--slate-500); }
.tc-status {
    flex-shrink: 0;
    padding: 4px 10px; border-radius: 99px;
    font-size: 0.68rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.8px;
}
.tc-status-disponible { background: #dcfce7; color: #15803d; }
.tc-status-nouveau { background: var(--yellow); color: var(--blue-darker); }
.tc-status-option { background: var(--slate-200); color: var(--slate-600); }

.tc-specs { display: flex; gap: 18px; margin-bottom: 14px; }
.tc-spec { font-size: 0.85rem; color: var(--slate-600); display: inline-flex; align-items: center; gap: 6px; }
.tc-spec svg { color: var(--slate-400); flex-shrink: 0; }
.tc-spec strong { color: var(--blue-darker); font-weight: 700; }

.tc-save {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    background: var(--grad-cta);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 14px;
    box-shadow: 0 6px 16px rgba(249,115,22,0.22);
}
.tc-save-label { font-size: 0.72rem; font-weight: 700; color: rgba(1,35,64,0.75); text-transform: uppercase; letter-spacing: 0.8px; line-height: 1.3; }
.tc-save-amount { font-size: 1.25rem; font-weight: 900; color: var(--blue-darker); white-space: nowrap; }

.tc-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%;
    padding: 13px 18px;
    background: var(--blue-darker); color: var(--white);
    font-size: 0.9rem; font-weight: 900;
    border-radius: 12px;
    transition: background 0.2s, transform 0.15s;
}
.tc-cta:hover { background: var(--blue-medium); transform: translateY(-1px); }

.terrain-empty {
    padding: 48px 24px; text-align: center;
    color: var(--slate-400); font-size: 0.95rem;
    background: var(--slate-50);
    border: 1.5px dashed var(--slate-200);
    border-radius: var(--radius);
}

@media (min-width: 980px) {
    .map-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
    #terrainMap { height: 640px; }
    .terrain-list-wrap {
        max-height: 640px;
        overflow-y: auto;
        padding-right: 6px;
        scrollbar-width: thin;
        scrollbar-color: var(--slate-300) transparent;
    }
    .terrain-list-wrap::-webkit-scrollbar { width: 6px; }
    .terrain-list-wrap::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 99px; }
}

/* ═══════════════════════════════════════════
   CALCULATEUR
   ═══════════════════════════════════════════ */
.calc-section { padding: 80px 0; }
.calc-card {
    display: grid; grid-template-columns: 1fr;
    background: var(--blue-darker);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.calc-left { padding: 48px 32px; color: var(--white); }
.calc-title { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 900; letter-spacing: -0.5px; margin-bottom: 12px; margin-top: 8px; }
.calc-sub { font-size: 0.95rem; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 36px; }

.calc-label {
    display: block;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 6px;
}
.calc-price {
    font-size: 2.6rem; font-weight: 900;
    color: var(--white); line-height: 1.1;
    margin-bottom: 18px;
    font-variant-numeric: tabular-nums;
}

input[type="range"]#calcSlider {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 99px;
    outline: none;
    cursor: pointer;
}
#calcSlider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 28px; height: 28px;
    background: var(--yellow);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: grab;
}
#calcSlider::-moz-range-thumb {
    width: 28px; height: 28px;
    background: var(--yellow);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: grab;
}
.calc-range-labels {
    display: flex; justify-content: space-between;
    margin-top: 10px;
    font-size: 0.75rem; color: rgba(255,255,255,0.45);
}

.calc-right {
    background: rgba(255,255,255,0.05);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 48px 32px;
    display: flex; flex-direction: column; gap: 24px;
    position: relative; overflow: hidden;
}
.calc-right::before {
    content: '';
    position: absolute; top: -70px; right: -70px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,191,53,0.22), transparent 70%);
    pointer-events: none;
}
.calc-result { text-align: center; }
.calc-result-label {
    display: block;
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}
.calc-result-amount {
    display: block;
    font-size: clamp(2.4rem, 6vw, 3.4rem);
    font-weight: 900; line-height: 1.1;
    background: linear-gradient(100deg, #ffd166 0%, var(--yellow) 40%, var(--amber-500) 80%, var(--orange-500) 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 16px rgba(245,158,11,0.35));
    font-variant-numeric: tabular-nums;
    padding: 0.05em 0.08em;
}
.calc-result-note { display: block; margin-top: 8px; font-size: 0.78rem; color: rgba(255,255,255,0.5); }

.calc-detail {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    overflow: hidden;
}
.calc-detail-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 18px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
}
.calc-detail-row + .calc-detail-row { border-top: 1px solid rgba(255,255,255,0.12); }
.calc-detail-row strong { color: var(--white); font-weight: 900; font-variant-numeric: tabular-nums; }

.calc-cta {
    display: block; text-align: center;
    padding: 16px 24px;
    background: var(--grad-cta); color: var(--blue-darker);
    font-weight: 900; font-size: 0.98rem;
    border-radius: 13px;
    box-shadow: 0 8px 20px rgba(249,115,22,0.3);
    transition: filter 0.2s, transform 0.15s;
}
.calc-cta:hover { filter: brightness(1.05); transform: translateY(-1px); }

@media (min-width: 880px) {
    .calc-card { grid-template-columns: 7fr 5fr; }
    .calc-left { padding: 56px 48px; }
    .calc-right { padding: 56px 40px; border-top: none; border-left: 1px solid rgba(255,255,255,0.1); }
}

/* ═══════════════════════════════════════════
   SCOPE (inclus / pas inclus)
   ═══════════════════════════════════════════ */
.scope-section { padding: 80px 0; background: var(--white); }
.scope-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.scope-card {
    background: var(--slate-50);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    border: 1.5px solid var(--slate-100);
}
.scope-yes { background: var(--cream); border-color: rgba(245,158,11,0.45); }
.scope-no { border-color: var(--slate-200); }
.scope-head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.scope-icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.scope-icon-yes { background: #dcfce7; color: var(--green-600); }
.scope-icon-no { background: var(--slate-100); color: var(--slate-500); }
.scope-head h3 { font-size: 1.2rem; font-weight: 900; }
.scope-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.scope-list strong { display: block; font-size: 0.98rem; font-weight: 700; margin-bottom: 4px; }
.scope-list p { font-size: 0.88rem; color: var(--slate-500); line-height: 1.65; }

@media (min-width: 880px) {
    .scope-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════
   CONDITIONS CLÉS
   ═══════════════════════════════════════════ */
.conditions-section { padding: 80px 0; }
.cond-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.cond-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-100);
}
.cond-icon {
    width: 50px; height: 50px;
    background: var(--slate-50); color: var(--blue-light);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.cond-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.cond-card p { font-size: 0.9rem; color: var(--slate-500); line-height: 1.7; }

@media (min-width: 768px) {
    .cond-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════
   CTA TRANSITION
   ═══════════════════════════════════════════ */
.cta-transition { padding: 80px 0; background: var(--white); }
.cta-transition-inner {
    text-align: center;
    max-width: 760px; margin: 0 auto;
    background: linear-gradient(160deg, var(--blue-darker), #023459);
    border-radius: var(--radius-xl);
    padding: 56px 32px;
    color: var(--white);
    box-shadow: var(--shadow-xl);
}
.cta-transition-title { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 900; letter-spacing: -0.5px; margin-bottom: 14px; }
.cta-transition-title em { font-style: normal; color: var(--yellow); }
.cta-transition-text { font-size: 1rem; color: rgba(255,255,255,0.8); line-height: 1.7; max-width: 540px; margin: 0 auto 28px; }
.cta-transition-text strong { color: var(--white); }
.cta-transition-btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 18px 38px;
    background: var(--grad-cta); color: var(--blue-darker);
    font-size: 1rem; font-weight: 900;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(249,115,22,0.3);
    transition: transform 0.2s, filter 0.2s;
}
.cta-transition-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.cta-transition-reassure {
    display: flex; flex-wrap: wrap; gap: 18px; justify-content: center;
    margin-top: 24px;
    font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.7);
}
.cta-transition-reassure span { display: inline-flex; align-items: center; gap: 7px; }
.cta-transition-reassure svg { color: var(--yellow); }

/* ═══════════════════════════════════════════
   FORMULAIRE
   ═══════════════════════════════════════════ */
.form-section { padding: 80px 0; }
.form-wrapper {
    display: grid; grid-template-columns: 1fr;
    gap: 40px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--slate-100);
    position: relative;
}
.form-wrapper::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--grad-cta);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.form-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 99px;
    font-size: 0.78rem; font-weight: 700;
}
.badge-yellow { background: rgba(245,158,11,0.14); color: var(--amber-700); }
.badge-red { background: #fee2e2; color: var(--red-600); }
.form-left h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 900; letter-spacing: -0.5px; line-height: 1.25; margin-bottom: 14px; }
.form-left > p { font-size: 0.95rem; color: var(--slate-500); line-height: 1.7; margin-bottom: 28px; }
.form-left > p strong { color: var(--blue-darker); }

.form-trust { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--slate-50); border-radius: var(--radius); }
.trust-icon { width: 46px; height: 46px; background: var(--blue-darker); color: var(--yellow); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.form-trust strong { display: block; font-size: 0.92rem; }
.form-trust span { font-size: 0.8rem; color: var(--slate-500); }

/* Progress */
.form-progress { display: flex; align-items: flex-start; margin-bottom: 30px; }
.fp-step-wrap {
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    flex-shrink: 0;
}
.fp-step {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--slate-100); color: var(--slate-400);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 900;
    transition: all 0.3s;
}
.fp-step.active { background: var(--blue-darker); color: var(--white); box-shadow: 0 0 0 4px rgba(1,35,64,0.1); }
.fp-step.done { background: var(--grad-cta); color: var(--blue-darker); }
.fp-step-label {
    font-size: 0.72rem; font-weight: 700;
    color: var(--slate-400);
    text-transform: uppercase; letter-spacing: 0.6px;
    white-space: nowrap;
}
.fp-step-wrap:has(.fp-step.active) .fp-step-label,
.fp-step-wrap:has(.fp-step.done) .fp-step-label { color: var(--blue-darker); }
.fp-line { flex: 1; height: 3px; background: var(--slate-100); margin: 16px 10px 0; border-radius: 99px; overflow: hidden; }
.fp-fill { height: 100%; width: 0; background: var(--grad-cta); transition: width 0.4s; }

/* Steps */
.fn-step { display: none; }
.fn-step.active { display: block; animation: step-in 0.35s ease; }
@keyframes step-in {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}
.fn-step h3 { font-size: 1.2rem; font-weight: 900; margin-bottom: 18px; }

.terrain-search-wrap { position: relative; margin-bottom: 14px; }
.ts-icon {
    position: absolute; left: 16px; top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    pointer-events: none;
}
#fnTerrainSearch {
    width: 100%;
    padding: 15px 16px 15px 46px;
    border: 1.5px solid var(--slate-200);
    border-radius: 12px;
    font-size: 0.95rem; font-weight: 600;
    color: var(--blue-darker);
    background: var(--white);
    transition: border-color 0.2s;
}
#fnTerrainSearch:focus { outline: none; border-color: var(--blue-darker); }
#fnTerrainSearch::placeholder { font-weight: 400; color: var(--slate-400); }

.terrain-suggest {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: var(--white);
    border: 1.5px solid var(--slate-200);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 30;
    max-height: 280px; overflow-y: auto;
}
.ts-item {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: var(--white);
    text-align: left;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--slate-100);
    transition: background 0.15s;
}
.ts-item:last-child { border-bottom: none; }
.ts-item:hover, .ts-item:focus { background: var(--cream); outline: none; }
.ts-item-loc { font-weight: 700; color: var(--blue-darker); }
.ts-item-loc small { display: block; font-weight: 400; color: var(--slate-500); font-size: 0.76rem; }
.ts-item-save { font-weight: 900; color: var(--orange-600); white-space: nowrap; font-size: 0.85rem; }
.ts-empty { padding: 14px 16px; font-size: 0.85rem; color: var(--slate-400); }

.terrain-step-links {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.ts-link { font-size: 0.82rem; font-weight: 700; color: var(--blue-light); text-decoration: underline; }
.ts-link:hover { color: var(--blue-darker); }
.ts-skip { background: none; font-size: 0.82rem; font-weight: 600; color: var(--slate-400); text-decoration: underline; }
.ts-skip:hover { color: var(--slate-600); }

.terrain-selected-preview {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    flex-wrap: wrap;
    background: var(--blue-darker); color: var(--white);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    font-size: 0.88rem;
}
.terrain-selected-preview .tsp-loc { font-weight: 700; }
.terrain-selected-preview .tsp-loc small { display: block; font-weight: 400; color: rgba(255,255,255,0.65); font-size: 0.76rem; }
.terrain-selected-preview .tsp-save { color: var(--yellow); font-weight: 900; white-space: nowrap; }
.tsp-change {
    background: rgba(255,255,255,0.12); color: var(--white);
    font-size: 0.72rem; font-weight: 700;
    padding: 6px 12px; border-radius: 8px;
    flex-shrink: 0;
    transition: background 0.2s;
}
.tsp-change:hover { background: rgba(255,255,255,0.22); }

/* Fields */
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; }
.field input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--slate-200);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.field input:focus { outline: none; border-color: var(--blue-darker); }
.field input.touched:invalid { border-color: var(--red-600); }

@media (min-width: 560px) {
    .field-row { grid-template-columns: 1fr 1fr; }
}

/* Honeypot */
.field-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Buttons */
.btn-next, .btn-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%;
    padding: 17px 28px;
    background: var(--grad-cta); color: var(--blue-darker);
    font-size: 1rem; font-weight: 900;
    border-radius: 13px;
    box-shadow: 0 8px 20px rgba(249,115,22,0.25);
    transition: filter 0.2s, transform 0.15s, opacity 0.2s;
    margin-top: 8px;
}
.btn-next:hover, .btn-submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-next:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-row { display: flex; gap: 12px; align-items: center; }
.btn-row .btn-next, .btn-row .btn-submit { flex: 1; }
.btn-back {
    padding: 17px 22px;
    background: var(--slate-100); color: var(--slate-600);
    font-size: 0.9rem; font-weight: 700;
    border-radius: 13px;
    transition: background 0.2s;
    margin-top: 8px;
}
.btn-back:hover { background: var(--slate-200); }

.btn-submit { position: relative; }
.btn-submit-loader {
    display: none;
    width: 18px; height: 18px;
    border: 2.5px solid rgba(1,35,64,0.25);
    border-top-color: var(--blue-darker);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-submit.loading .btn-submit-loader { display: inline-block; }
.btn-submit.loading svg { display: none; }

.form-privacy { margin-top: 14px; font-size: 0.75rem; color: var(--slate-400); text-align: center; }

/* Success */
.form-success { display: none; text-align: center; padding: 24px 0; }
.form-success.show { display: block; animation: step-in 0.4s ease; }
.success-icon {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
    background: #dcfce7; color: var(--green-600);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.form-success h3 { font-size: 1.4rem; font-weight: 900; margin-bottom: 10px; }
.form-success p { font-size: 0.95rem; color: var(--slate-500); line-height: 1.7; max-width: 400px; margin: 0 auto 24px; }
.success-cta {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px;
    background: var(--blue-darker); color: var(--white);
    font-weight: 700; font-size: 0.92rem;
    border-radius: 12px;
    transition: background 0.2s;
}
.success-cta:hover { background: var(--blue-medium); }

@media (min-width: 880px) {
    .form-wrapper { grid-template-columns: 5fr 6fr; padding: 56px 48px; }
}

/* ═══════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════ */
.faq-section { padding: 80px 0; background: var(--white); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--slate-50);
    border: 1.5px solid var(--slate-100);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--slate-300); }
.faq-item summary {
    padding: 20px 52px 20px 24px;
    font-size: 0.98rem; font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '';
    position: absolute; right: 24px; top: 50%;
    width: 10px; height: 10px;
    border-right: 2.5px solid var(--slate-400);
    border-bottom: 2.5px solid var(--slate-400);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item p { padding: 0 24px 22px; font-size: 0.9rem; color: var(--slate-500); line-height: 1.75; }
.faq-item p strong { color: var(--blue-darker); }

/* ═══════════════════════════════════════════
   CONDITIONS LÉGALES
   ═══════════════════════════════════════════ */
.legal-section { padding: 0 0 80px; background: var(--white); }
.legal-details {
    max-width: 760px; margin: 0 auto;
    border: 1.5px dashed var(--slate-200);
    border-radius: var(--radius);
}
.legal-details summary {
    padding: 18px 24px;
    font-size: 0.85rem; font-weight: 700;
    color: var(--slate-500);
    cursor: pointer;
    list-style: none;
    position: relative;
}
.legal-details summary::-webkit-details-marker { display: none; }
.legal-body { padding: 0 24px 22px; }
.legal-body p { font-size: 0.8rem; color: var(--slate-400); line-height: 1.7; margin-bottom: 10px; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.fn-footer { background: var(--blue-darker); color: var(--white); padding: 48px 0 32px; }
.footer-top {
    display: flex; flex-direction: column; align-items: center; gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.footer-links a { font-size: 0.82rem; color: var(--slate-400); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 0.78rem; color: var(--slate-500); margin-bottom: 4px; }

@media (min-width: 768px) {
    .footer-top { flex-direction: row; justify-content: space-between; }
}

/* ═══════════════════════════════════════════
   EXIT-INTENT
   ═══════════════════════════════════════════ */
.exit-overlay {
    position: fixed; inset: 0;
    background: rgba(1,35,64,0.7);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
}
.exit-overlay.show { opacity: 1; visibility: visible; pointer-events: auto; }
.exit-popup {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 460px; width: 100%;
    padding: 48px 36px 36px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    transform: translateY(12px);
    transition: transform 0.3s;
}
.exit-overlay.show .exit-popup { transform: translateY(0); }
.exit-close {
    position: absolute; top: 14px; right: 18px;
    background: transparent; font-size: 1.8rem;
    color: var(--slate-400); line-height: 1;
}
.exit-icon {
    width: 72px; height: 72px;
    margin: 0 auto 18px;
    background: rgba(255,191,53,0.15); color: var(--yellow-dark);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.exit-title { font-size: 1.35rem; font-weight: 900; line-height: 1.3; margin-bottom: 10px; }
.exit-text { font-size: 0.9rem; color: var(--slate-500); line-height: 1.65; margin-bottom: 24px; }
.exit-cta {
    display: block;
    padding: 16px 28px;
    background: var(--grad-cta); color: var(--blue-darker);
    font-weight: 900; font-size: 0.98rem;
    border-radius: 13px;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px rgba(249,115,22,0.25);
    transition: filter 0.2s;
}
.exit-cta:hover { filter: brightness(1.05); }
.exit-sub { font-size: 0.75rem; color: var(--slate-400); }

/* ═══════════════════════════════════════════
   STICKY CTA BAR
   ═══════════════════════════════════════════ */
.sticky-cta-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 900;
    display: flex; gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 -6px 24px rgba(1,35,64,0.12);
    transform: translateY(110%);
    transition: transform 0.35s;
}
.sticky-cta-bar.show { transform: translateY(0); }
.sticky-cta-primary {
    flex: 1.4;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 18px;
    background: var(--grad-cta); color: var(--blue-darker);
    font-weight: 900; font-size: 0.9rem;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(249,115,22,0.3);
}
.sticky-cta-secondary {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 14px;
    background: var(--blue-darker); color: var(--white);
    font-weight: 600; font-size: 0.85rem;
    border-radius: 12px;
    gap: 5px;
}

@media (min-width: 880px) {
    .sticky-cta-bar { left: auto; right: 24px; bottom: 24px; border-radius: 16px; max-width: 420px; padding: 12px; }
}

/* ═══════════════════════════════════════════
   ANIMATIONS SCROLL
   ═══════════════════════════════════════════ */
.anim { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.anim.seen { opacity: 1; transform: translateY(0); }

/* Stagger : les cartes d'une même grille apparaissent en cascade
   (pas sur .how-card : le delay casserait la réactivité de son hover) */
.cond-grid .cond-card:nth-child(2),
.scope-grid .scope-card:nth-child(2) { transition-delay: 0.12s; }
.cond-grid .cond-card:nth-child(3) { transition-delay: 0.24s; }
.trust-grid .trust-item:nth-child(2) { transition-delay: 0.08s; }
.trust-grid .trust-item:nth-child(3) { transition-delay: 0.16s; }
.trust-grid .trust-item:nth-child(4) { transition-delay: 0.24s; }

/* Une fois apparue, la carte retrouve un hover réactif */
.how-card.seen { transition: opacity 0.6s ease, transform 0.25s ease, box-shadow 0.25s ease; }

.anim-fade { opacity: 0; animation: fade-in 0.8s ease forwards; animation-delay: var(--d, 0s); }
.anim-slide { opacity: 0; animation: slide-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; animation-delay: var(--d, 0s); }
.anim-scale { opacity: 0; animation: scale-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; animation-delay: var(--d, 0s); }
.anim-up { opacity: 0; animation: slide-up 0.7s ease forwards; animation-delay: var(--d, 0s); }

@keyframes fade-in { to { opacity: 1; } }
@keyframes slide-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scale-in { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
    .anim, .anim-fade, .anim-slide, .anim-scale, .anim-up {
        opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important;
    }
    .pm-bubble { animation: none !important; }
    .hero-cta-btn::after, .cta-transition-btn::after { display: none; }
    .marquee-track { animation: none !important; }
    .marquee { overflow-x: auto; mask: none; -webkit-mask: none; }
    html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════
   OPTIMISATIONS MOBILE
   ═══════════════════════════════════════════ */

/* ── Tablette & mobile : carte + carrousel terrains ── */
@media (max-width: 979px) {
    #terrainMap { height: 400px; }

    /* Filtres provinces : rangée scrollable edge-to-edge */
    .map-filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px 20px 12px;
        margin: 0 -20px 16px;
    }
    .map-filters::-webkit-scrollbar { display: none; }
    .filter-chip { flex-shrink: 0; white-space: nowrap; }

    /* Liste terrains : carrousel horizontal avec snap */
    .terrain-list {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 20px;
        scrollbar-width: none;
        padding: 6px 20px 18px;
        margin: 0 -20px;
    }
    .terrain-list::-webkit-scrollbar { display: none; }
    .terrain-card {
        flex: 0 0 84%;
        max-width: 340px;
        scroll-snap-align: center;
    }
    .terrain-card:hover { transform: none; }
    .terrain-empty { flex: 0 0 100%; }
}

/* ── Mobile : confort de lecture & rythme vertical ── */
@media (max-width: 768px) {
    /* iOS zoome automatiquement sur les champs < 16px : on force 16px */
    .field input, #fnTerrainSearch, #mapSearch, .map-sort { font-size: 16px; }

    /* Barre d'outils carte : recherche pleine largeur, tri dessous */
    .map-toolbar { flex-wrap: wrap; }
    .map-search { flex: 1 1 100%; }
    .map-sort { flex: 1 1 100%; }
    .map-resultsbar { justify-content: center; flex-wrap: wrap; }

    .how-section, .map-section, .calc-section, .scope-section,
    .conditions-section, .cta-transition, .form-section, .faq-section { padding: 56px 0; }
    .legal-section { padding: 0 0 56px; }
    .section-header { margin-bottom: 32px; }

    /* Marquee : items plus compacts */
    .marquee { margin-top: 36px; }
    .marquee-item { width: 260px; height: 195px; }
    .marquee-group { gap: 12px; padding-right: 12px; }
    .mi-badge { font-size: 0.72rem; padding: 5px 10px; top: 9px; right: 9px; }
    .mi-info { padding: 30px 12px 10px; }
    .mi-info strong { font-size: 0.9rem; }
    .mi-info span { font-size: 0.72rem; }
}

/* ── Petit mobile : hero, cartes, formulaire ── */
@media (max-width: 560px) {
    .hero-fn { padding: 118px 18px 88px; }
    .hero-explain { font-size: 0.95rem; margin-top: 22px; }
    .hero-cta-wrap { margin-top: 28px; }
    .hero-cta-btn { width: 100%; justify-content: center; padding: 18px 24px; font-size: 1rem; }
    .hero-asterisk { margin-top: 26px; font-size: 0.7rem; }

    .trust-bar { margin-top: -42px; }
    .trust-grid { gap: 16px 10px; padding: 22px 14px; }
    .trust-item strong { font-size: 1.25rem; }
    .trust-item span { font-size: 0.72rem; }

    .how-card { padding: 28px 20px 26px; }
    .how-num { top: 18px; right: 20px; font-size: 2.6rem; }

    .map-hint { font-size: 0.68rem; padding: 7px 11px; bottom: 10px; left: 10px; max-width: 78%; }

    .calc-left, .calc-right { padding: 36px 22px; }
    .calc-price { font-size: 2.1rem; }
    .calc-sub { margin-bottom: 28px; }

    .scope-card { padding: 28px 20px; }
    .cond-card { padding: 26px 20px; }

    .cta-transition-inner { padding: 40px 22px; }

    .form-wrapper { padding: 28px 18px; border-radius: var(--radius-lg); }
    .fn-step h3 { font-size: 1.1rem; }
    .btn-back { padding: 15px 18px; }
    .btn-next, .btn-submit { padding: 15px 20px; font-size: 0.95rem; }
    .fp-step-label { font-size: 0.65rem; }

    .faq-item summary { padding: 17px 44px 17px 18px; font-size: 0.92rem; }
    .faq-item summary::after { right: 18px; }
    .faq-item p { padding: 0 18px 20px; }
}
