/* ═══════════════════════════════════════════════════════════════════════════
   ASSUGERIS — Styles de la landing (accueil + landings de niche SEO).
   Source UNIQUE : ce fichier est chargé à l'identique par index.html et par
   chaque landing de niche (/malus, /obtemperer, …). Fini les copies inline
   périmées (c'est une copie périmée qui avait rendu le formulaire invisible).
   Inclut aussi les styles du wizard multi-etapes (memes classes mf- et mg-).
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
    --burgundy: #7B2D3B;
    --burgundy-dark: #5E1F2C;
    --burgundy-light: #9E4A5A;
    --burgundy-pale: #F5EAEC;
    --charcoal: #2D3436;
    --charcoal-light: #3D4648;
    --green: #2D8B5E;
    --green-light: #3BA876;
    --green-dark: #1F6B45;   /* texte vert sur fond clair — contraste AA (WCAG) */
    --green-pale: #E8F5EE;
    --cream: #F7F4EF;
    --white: #FEFDFB;
    --gray-50: #F5F2ED;
    --gray-100: #EFECE6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --radius: 10px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --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.12);
    --shadow-burgundy: 0 4px 20px rgba(123,45,59,0.2);
}

/* ═══════════ POLICES DE REPLI À MÉTRIQUES ALIGNÉES (anti-CLS) ═══════════
   Feintes de police calées sur les métriques réelles d'Outfit / Playfair
   Display (size-adjust + ascent/descent/line-gap-override calculés depuis les
   fichiers de police, méthode capsize/next-font). Le texte affiché avant le
   chargement de la vraie police occupe EXACTEMENT le même espace → la bascule
   police système → police de marque ne provoque aucun décalage (CLS ≈ 0). */
@font-face {
    font-family: 'Outfit Fallback';
    src: local('Arial');
    size-adjust: 128.23%;
    ascent-override: 77.99%;
    descent-override: 20.28%;
    line-gap-override: 0%;
}
@font-face {
    font-family: 'Playfair Fallback';
    src: local('Times New Roman');
    size-adjust: 158.58%;
    ascent-override: 68.23%;
    descent-override: 15.83%;
    line-gap-override: 0%;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', 'Outfit Fallback', sans-serif;
    color: var(--charcoal);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Playfair Display', 'Playfair Fallback', serif; color: var(--charcoal); }

/* ═══════════ NAV ═══════════ */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: calc(14px + env(safe-area-inset-top)) 32px 14px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(123,45,59,0.08);
    transition: all 0.4s ease;
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
}
.nav-logo img { height: 42px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
    color: var(--gray-600); text-decoration: none;
    font-size: 0.88rem; font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--burgundy); }
.nav-cta {
    background: var(--burgundy) !important; color: var(--white) !important;
    padding: 10px 24px !important; border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
}
.nav-cta:hover { background: var(--burgundy-dark) !important; transform: translateY(-1px); box-shadow: var(--shadow-burgundy); }

/* ═══════════ HERO ═══════════ */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex; align-items: center;
    background: linear-gradient(180deg, #FEFDFB 0%, #F7F4EF 100%);
    position: relative;
    padding: 120px 32px 80px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: 0; right: 0; width: 55%; height: 100%;
    background: linear-gradient(135deg, var(--burgundy-pale) 0%, rgba(123,45,59,0.03) 100%);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    pointer-events: none;
}
.hero-inner {
    max-width: 1200px; margin: 0 auto; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
    align-items: center; position: relative; z-index: 2;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--green-pale); border: 1px solid rgba(45,139,94,0.15);
    padding: 7px 16px; border-radius: 100px;
    font-size: 0.78rem; font-weight: 600; color: var(--green-dark);
    margin-bottom: 20px;
    animation: fadeInDown 0.7s ease forwards; opacity: 0;
}
.hero-badge .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--green);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.4); }
}
.hero h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.5rem);
    line-height: 1.12; letter-spacing: -0.02em;
    margin-bottom: 20px;
    animation: fadeInUp 0.7s 0.15s ease forwards; opacity: 0;
}
.hero h1 em { color: var(--burgundy); font-style: italic; }
.hero-sub {
    font-size: 1.05rem; color: var(--gray-500);
    line-height: 1.7; max-width: 460px;
    margin-bottom: 36px;
    animation: fadeInUp 0.7s 0.3s ease forwards; opacity: 0;
}
.hero-stats {
    display: flex; gap: 36px;
    animation: fadeInUp 0.7s 0.45s ease forwards; opacity: 0;
}
.hero-stat {}
.hero-stat .num {
    font-family: 'Playfair Display', 'Playfair Fallback', serif;
    font-size: 2rem; color: var(--burgundy);
    line-height: 1; font-weight: 700;
}
/* Valeur textuelle (ex. « De nombreux clients ») : plus petite pour tenir sur la carte */
.hero-stat .num.num--word,
.trust-n.trust-n--word,
.fact-n.fact-n--word { font-size: 1.15rem; line-height: 1.18; }
.hero-stat .label {
    font-size: 0.75rem; color: var(--gray-400);
    margin-top: 4px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.06em;
}

/* ═══════════ FORM CARD ═══════════ */
.form-card {
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    animation: fadeInUp 0.7s 0.2s ease forwards; opacity: 0;
    position: relative;
}
.form-card::before {
    content: '';
    position: absolute; top: -1px; left: 32px; right: 32px; height: 3px;
    background: linear-gradient(90deg, var(--burgundy), var(--burgundy-light));
    border-radius: 0 0 3px 3px;
}
.form-title {
    font-family: 'Playfair Display', 'Playfair Fallback', serif;
    font-size: 1.4rem; color: var(--charcoal);
    margin-bottom: 2px;
}
.form-subtitle {
    font-size: 0.82rem; color: var(--gray-400);
    margin-bottom: 24px;
}

/* Progress bar */
.form-progress {
    display: flex; align-items: center;
    margin-bottom: 24px;
}
.p-step {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.68rem; font-weight: 600;
    color: var(--gray-400); white-space: nowrap;
    transition: color 0.3s; cursor: default;
}
.p-step.active { color: var(--burgundy); }
.p-step.done { color: var(--green); }
.p-num {
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--gray-100); color: var(--gray-400);
    font-size: 0.65rem; font-weight: 700; transition: all 0.3s;
    flex-shrink: 0;
}
.p-step.active .p-num { background: var(--burgundy); color: var(--white); }
.p-step.done .p-num { background: var(--green); color: var(--white); }
.p-line { flex: 1; height: 2px; background: var(--gray-200); margin: 0 5px; transition: background 0.3s; }
.p-line.done { background: var(--green); }

/* Form shared */
.fstep { display: none; }
.fstep.active { display: block; animation: slideIn 0.35s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.frow.single { grid-template-columns: 1fr; }
.fgroup { display: flex; flex-direction: column; gap: 4px; }
.fgroup label {
    font-size: 0.72rem; font-weight: 600; color: var(--gray-600);
    text-transform: uppercase; letter-spacing: 0.04em;
}
.fgroup label .req { color: var(--burgundy); margin-left: 2px; }
.fgroup input, .fgroup select, .fgroup textarea {
    padding: 11px 13px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-family: 'Outfit', 'Outfit Fallback', sans-serif;
    font-size: 0.9rem; color: var(--charcoal);
    background: var(--white);
    transition: all 0.25s; outline: none;
}
.fgroup input:focus, .fgroup select:focus, .fgroup textarea:focus {
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px rgba(123,45,59,0.08);
}
.fgroup input:not(:placeholder-shown):valid { border-color: var(--green); }
.fgroup input[type="date"] { color: var(--gray-400); }
.fgroup input[type="date"]:not([value=""]):valid { color: var(--charcoal); }
.fgroup input::placeholder, .fgroup textarea::placeholder { color: var(--gray-400); }
.fgroup select {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%239CA3AF' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    padding-right: 32px;
}
.fgroup textarea { resize: vertical; min-height: 72px; }

.tog { display: flex; gap: 8px; }
.tbtn {
    flex: 1; padding: 10px; text-align: center;
    border: 1.5px solid var(--gray-200); border-radius: 8px;
    background: var(--white); font-family: 'Outfit', 'Outfit Fallback', sans-serif;
    font-size: 0.85rem; font-weight: 500; color: var(--gray-500);
    cursor: pointer; transition: all 0.25s;
}
.tbtn:hover { border-color: var(--gray-300); }
.tbtn.on {
    border-color: var(--burgundy); background: rgba(123,45,59,0.04);
    color: var(--charcoal); font-weight: 600;
}

.sec-label {
    font-size: 0.68rem; font-weight: 700; color: var(--burgundy);
    text-transform: uppercase; letter-spacing: 0.1em;
    margin: 20px 0 12px; padding: 6px 10px;
    background: var(--burgundy-pale); border-radius: 6px;
    border-left: 3px solid var(--burgundy);
}
.sec-label:first-child { margin-top: 0; }

.form-btns { display: flex; gap: 10px; margin-top: 20px; }
.btn-main {
    flex: 1; padding: 13px 20px;
    background: var(--burgundy); color: var(--white);
    border: none; border-radius: var(--radius);
    font-family: 'Outfit', 'Outfit Fallback', sans-serif;
    font-size: 0.92rem; font-weight: 700;
    cursor: pointer; transition: all 0.3s;
}
.btn-main:hover { background: var(--burgundy-dark); transform: translateY(-1px); box-shadow: var(--shadow-burgundy); }
.btn-main:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-back {
    padding: 13px 18px;
    background: transparent; color: var(--gray-500);
    border: 1.5px solid var(--gray-200); border-radius: var(--radius);
    font-family: 'Outfit', 'Outfit Fallback', sans-serif;
    font-size: 0.88rem; font-weight: 600;
    cursor: pointer; transition: all 0.3s;
}
.btn-back:hover { border-color: var(--gray-300); color: var(--gray-700); }

.skip-txt {
    text-align: center; margin-top: 12px;
    font-size: 0.76rem; color: var(--gray-400);
}
.skip-txt a { color: var(--burgundy); cursor: pointer; text-decoration: underline; font-weight: 600; }

/* Toast notification */
.toast {
    display: none; position: fixed;
    top: 80px; left: 50%; transform: translateX(-50%);
    z-index: 200;
    background: var(--green); color: var(--white);
    padding: 16px 28px; border-radius: 12px;
    font-size: 0.9rem; font-weight: 600;
    box-shadow: 0 8px 32px rgba(45,139,94,0.3);
    animation: toastIn 0.5s ease;
    max-width: 90%;
}
.toast.show { display: block; }
.toast .toast-sub { font-weight: 400; font-size: 0.82rem; opacity: 0.85; margin-top: 4px; }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Encourage banner */
.encourage-banner {
    display: none;
    background: linear-gradient(135deg, var(--burgundy-pale), rgba(232,245,238,0.5));
    border: 1px solid rgba(123,45,59,0.1);
    border-radius: 12px;
    padding: 16px 20px; margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
}
.encourage-banner.show { display: block; }
.encourage-banner h4 {
    font-family: 'Playfair Display', 'Playfair Fallback', serif;
    font-size: 0.95rem; color: var(--charcoal);
    margin-bottom: 4px;
}
.encourage-banner p {
    font-size: 0.8rem; color: var(--gray-500); line-height: 1.5;
}

/* Success state */
.success-box {
    display: none; text-align: center; padding: 48px 24px;
}
.success-box.show { display: block; animation: fadeIn 0.5s ease; }
.success-icon {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--green-pale);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px; font-size: 1.8rem;
}
.success-box h3 { font-size: 1.25rem; margin-bottom: 8px; }
.success-box p { color: var(--gray-500); font-size: 0.88rem; line-height: 1.6; }

/* ═══════════ SECTIONS ═══════════ */
section { padding: 90px 32px; }
.sec-inner { max-width: 1200px; margin: 0 auto; }
.sec-tag {
    font-size: 0.7rem; font-weight: 700; color: var(--burgundy);
    text-transform: uppercase; letter-spacing: 0.14em;
    margin-bottom: 10px;
}
.sec-h2 {
    font-family: 'Outfit', 'Outfit Fallback', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.15; margin-bottom: 16px;
}
.sec-desc {
    font-size: 1rem; color: var(--gray-600); line-height: 1.7;
    max-width: 540px;
}

/* Section de contenu rédactionnel (prose) sur les pages landing —
   texte de fond lisible, sous-titres H3, listes et liens de marque. */
.prose-sec .sec-inner { max-width: 880px; }
.prose-sec .sec-desc { max-width: 880px; }
.prose-sec h3 {
    font-family: 'Playfair Display', 'Playfair Fallback', serif;
    font-size: 1.2rem; color: var(--charcoal);
    margin: 28px 0 8px; line-height: 1.3;
}
.prose-sec p { color: var(--gray-700); line-height: 1.72; margin: 0 0 15px; font-size: 1.02rem; }
.prose-sec ul { margin: 0 0 16px; padding-left: 22px; color: var(--gray-700); line-height: 1.7; }
.prose-sec li { margin-bottom: 8px; }
.prose-sec a { color: var(--burgundy); font-weight: 600; text-decoration: none; }
.prose-sec a:hover { text-decoration: underline; }
.prose-sec .prose-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; }
@media (max-width: 640px) { .prose-sec .prose-cols { grid-template-columns: 1fr; } }

/* Steps */
.steps-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 28px; margin-top: 52px;
}
.step-card {
    padding: 32px 24px; background: var(--white);
    border-radius: var(--radius-lg); border: 1px solid var(--gray-200);
    position: relative; transition: all 0.4s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(123,45,59,0.15); }
.step-n {
    font-family: 'Playfair Display', 'Playfair Fallback', serif;
    font-size: 3rem; color: rgba(123,45,59,0.7);
    line-height: 1; margin-bottom: 12px; font-weight: 700;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step-card p { font-size: 0.88rem; color: var(--gray-500); line-height: 1.6; }
.step-arr {
    position: absolute; right: -18px; top: 50%; transform: translateY(-50%);
    color: var(--burgundy-light); font-size: 1.1rem; z-index: 2;
}

/* Lien discret vers le site vitrine du cabinet */
.cabinet-link {
    display: flex; align-items: center; gap: 16px;
    max-width: 560px; margin: 36px auto 0;
    padding: 16px 20px; text-decoration: none;
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg); transition: all 0.3s;
}
.cabinet-link:hover {
    border-color: rgba(123,45,59,0.25);
    box-shadow: var(--shadow-md); transform: translateY(-2px);
}
.cabinet-ico {
    font-size: 1.4rem; flex-shrink: 0;
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--burgundy-pale);
}
.cabinet-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.cabinet-txt strong { font-size: 0.95rem; color: var(--charcoal); font-weight: 600; }
.cabinet-txt span { font-size: 0.8rem; color: var(--gray-500); line-height: 1.45; }
.cabinet-arr {
    flex-shrink: 0; color: var(--burgundy); font-size: 1.2rem; font-weight: 700;
    transition: transform 0.3s;
}
.cabinet-link:hover .cabinet-arr { transform: translateX(4px); }

/* Features */
.feat-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 20px; margin-top: 52px;
}
.feat-card {
    padding: 28px; background: #FFFFFF;
    border-radius: var(--radius-lg); border: 1px solid var(--gray-200);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}
.feat-card::after {
    content: '';
    position: absolute; top: 0; left: 0; width: 3px; height: 100%;
    background: var(--burgundy);
    border-radius: 3px 0 0 3px;
    opacity: 0; transition: opacity 0.3s;
}
.feat-card:hover { border-color: rgba(123,45,59,0.2); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feat-card:hover::after { opacity: 1; }
.feat-ico {
    width: 44px; height: 44px; border-radius: 10px;
    background: var(--burgundy-pale);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 16px;
}
.feat-card h3 { color: var(--charcoal); font-size: 1.05rem; margin-bottom: 6px; }
.feat-card p { color: var(--gray-500); font-size: 0.85rem; line-height: 1.6; }

/* Situations grid (landing pages) */
.sit-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 18px; margin-top: 52px;
}
a.sit-card {
    display: block; padding: 26px 22px; background: var(--white);
    border-radius: var(--radius-lg); border: 1px solid var(--gray-200);
    text-decoration: none; color: var(--charcoal); transition: all 0.3s;
}
a.sit-card:hover { border-color: rgba(123,45,59,0.25); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sit-card .sit-ico { font-size: 1.35rem; margin-bottom: 10px; display: block; }
.sit-card h3 { font-size: 1rem; margin-bottom: 5px; color: var(--charcoal); }
.sit-card p { font-size: 0.82rem; color: var(--gray-500); line-height: 1.55; }
@media (max-width: 900px) { .sit-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sit-grid { grid-template-columns: 1fr; } }

/* Situation cards with a two-choice mini-menu (accueil) : Trouver une assurance / Lire le blog */
.sit-grid--menu { align-items: start; }
.sit-card--menu {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.sit-card--menu:hover { border-color: rgba(123,45,59,0.25); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sit-card--menu.open { border-color: rgba(123,45,59,0.4); box-shadow: var(--shadow-md); transform: none; }
.sit-card-btn {
    display: block; width: 100%; text-align: left; cursor: pointer;
    background: none; border: 0; padding: 26px 22px 20px; font: inherit; color: var(--charcoal);
}
.sit-card-btn .sit-ico { font-size: 1.35rem; margin-bottom: 10px; display: block; }
.sit-card-btn h3 { font-size: 1rem; margin-bottom: 5px; color: var(--charcoal); }
.sit-card-btn p { font-size: 0.82rem; color: var(--gray-500); line-height: 1.55; }
.sit-card-btn:focus-visible { outline: 2px solid var(--burgundy); outline-offset: -2px; border-radius: var(--radius-lg); }
.sit-choose {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
    font-family: 'Outfit', 'Outfit Fallback', sans-serif; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.01em;
    color: var(--burgundy);
}
.sit-chev { transition: transform 0.3s; font-size: 0.85em; line-height: 1; }
.sit-card--menu.open .sit-chev { transform: rotate(180deg); }
.sit-menu {
    display: grid; gap: 8px; padding: 0 16px;
    max-height: 0; opacity: 0; visibility: hidden; overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease, visibility 0s linear 0.35s;
}
.sit-card--menu.open .sit-menu {
    max-height: 280px; opacity: 1; visibility: visible; padding: 0 16px 18px;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease, visibility 0s;
}
.sit-menu-link {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: var(--radius);
    background: var(--gray-50); border: 1px solid var(--gray-200);
    text-decoration: none; color: var(--charcoal); transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.sit-menu-link:hover { background: var(--burgundy-pale); border-color: rgba(123,45,59,0.3); transform: translateX(2px); }
.sml-ico { font-size: 1.1rem; flex-shrink: 0; }
.sml-txt { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.sml-txt strong { font-family: 'Outfit', 'Outfit Fallback', sans-serif; font-size: 0.9rem; font-weight: 600; color: var(--charcoal); }
.sml-txt em { font-style: normal; font-size: 0.72rem; color: var(--gray-500); margin-top: 2px; }
.sml-arr { color: var(--burgundy); font-weight: 700; flex-shrink: 0; }
a.sit-card--direct { display: flex; flex-direction: column; }
a.sit-card--direct .sit-choose { margin-top: auto; }

/* Trust */
.trust-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px; margin-top: 52px;
}
.trust-card {
    text-align: center; padding: 28px 16px;
    background: var(--white); border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}
.trust-n {
    font-family: 'Playfair Display', 'Playfair Fallback', serif;
    font-size: 2.2rem; color: var(--burgundy); font-weight: 700; line-height: 1;
}
.trust-l { font-size: 0.78rem; color: var(--gray-500); margin-top: 6px; font-weight: 500; }

/* CTA */
.cta-block {
    background: var(--burgundy-dark); text-align: center;
    border-radius: var(--radius-xl);
    margin: 0 32px 72px; padding: 72px 40px;
    position: relative; overflow: hidden;
}
.cta-block::before {
    content: '';
    position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(123,45,59,0.15) 0%, transparent 60%);
}
.cta-block h2 { color: var(--white); font-size: 2.2rem; margin-bottom: 12px; position: relative; z-index: 1; }
.cta-block p { color: rgba(255,255,255,0.5); font-size: 0.95rem; margin-bottom: 28px; position: relative; z-index: 1; }
.cta-link {
    display: inline-block; padding: 14px 36px;
    background: var(--burgundy); color: var(--white);
    border-radius: var(--radius); font-size: 0.95rem; font-weight: 700;
    text-decoration: none; transition: all 0.3s; position: relative; z-index: 1;
}
.cta-link:hover { background: var(--burgundy-light); transform: translateY(-2px); box-shadow: var(--shadow-burgundy); }
.cta-link.alt { background: transparent; border: 1.5px solid rgba(255,255,255,0.3); color: white; margin-left: 10px; }
.cta-link.alt:hover { background: rgba(255,255,255,0.08); }

/* Footer */
footer {
    padding: 36px 32px calc(36px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--gray-200);
}
.foot-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.foot-txt { font-size: 0.78rem; color: var(--gray-600); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { font-size: 0.78rem; color: var(--gray-600); text-decoration: none; }
.foot-links a:hover { color: var(--burgundy); }

/* Footer « plan du site » : liens vers toutes les situations, guides et blog */
.foot-cols {
    max-width: 1200px; margin: 0 auto 26px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 24px;
}
.foot-col h4 {
    font-family: 'Playfair Display', 'Playfair Fallback', serif;
    font-size: 0.9rem; color: var(--charcoal); font-weight: 600; margin-bottom: 11px;
}
.foot-col a { display: block; font-size: 0.8rem; color: var(--gray-600); text-decoration: none; padding: 3px 0; line-height: 1.4; }
.foot-col a:hover { color: var(--burgundy); }
.foot-cols + .foot-inner { border-top: 1px solid var(--gray-200); padding-top: 22px; }
@media (max-width: 860px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-cols { grid-template-columns: 1fr; gap: 20px; } }

/* WhatsApp */
.phone-float {
    position: fixed;
    bottom: calc(24px + env(safe-area-inset-bottom));
    right: calc(24px + env(safe-area-inset-right));
    z-index: 99;
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
}
.phone-float .phone-number {
    background: #FFFFFF;
    padding: 15px 28px;
    border-radius: 15px;
    font-family: 'Outfit', 'Outfit Fallback', sans-serif;
    font-size: 1.45rem; font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--burgundy);
    box-shadow: 0 6px 24px rgba(0,0,0,0.14);
    border: 1.5px solid rgba(123,45,59,0.18);
    animation: blink-number 2s ease-in-out infinite;
}
.phone-float .phone-btn {
    width: 74px; height: 74px;
    background: var(--burgundy); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(123,45,59,0.35);
    transition: all 0.3s;
    flex-shrink: 0;
}
.phone-float:hover .phone-btn {
    transform: scale(1.08);
    background: var(--burgundy-dark);
    box-shadow: 0 6px 24px rgba(123,45,59,0.45);
}
.phone-float .phone-btn svg { width: 33px; height: 33px; fill: white; }
/* Anime uniquement l'opacité (propriété composable) → pas de repaint sur
   border-color/box-shadow, animation gardée sur le compositeur. */
@keyframes blink-number {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.72; }
}

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Responsive */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero::before { display: none; }
    .steps-grid { grid-template-columns: 1fr; }
    .step-arr { display: none; }
    .feat-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    nav { padding: 10px 16px; }
    .nav-links { display: none; }
    .hero { padding: 90px 16px 50px; }
    .form-card { padding: 24px 18px; }
    .frow { grid-template-columns: 1fr; }
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    section { padding: 60px 16px; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
    .cta-block { margin: 0 16px 40px; padding: 52px 20px; }
    .cta-block h2 { font-size: 1.6rem; }
    .cta-link.alt { margin-left: 0; margin-top: 10px; }
    .foot-inner { flex-direction: column; gap: 12px; text-align: center; }
    .p-step span:not(.p-num) { display: none; }
}

/* Loading spinner on button */
.btn-main .spinner {
    display: none; width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white; border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 0 auto;
}
.btn-main.loading .spinner { display: inline-block; }
.btn-main.loading .btn-text { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════ FORMULAIRE MULTI-ÉTAPES (universel : mobile + PC) ═══════════ */
#mobileFlow { display: flex; flex-direction: column; }

@media (max-width: 768px) {
    .form-card { padding: 20px 16px 28px; }
}

.mf-header {
    display: flex; align-items: center; gap: 10px;
    padding-bottom: 22px;
}
.mf-back-btn {
    width: 34px; height: 34px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--gray-100); border-radius: 50%;
    font-size: 1rem; cursor: pointer; border: none;
    color: var(--charcoal); transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.mf-back-btn:active { background: var(--gray-200); }
.mf-prog-wrap {
    flex: 1; height: 5px; background: var(--gray-200);
    border-radius: 10px; overflow: hidden;
}
.mf-prog-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--burgundy), var(--burgundy-light));
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mf-counter {
    font-size: 0.68rem; font-weight: 600; color: var(--gray-500);
    flex-shrink: 0; min-width: 28px; text-align: right;
}

.mf-q { display: none; }
.mf-q.mf-active { display: block; }
.mf-q.mf-in-fwd { animation: mfInFwd 0.28s cubic-bezier(0.4, 0, 0.2, 1) both; }
.mf-q.mf-in-bwd { animation: mfInBwd 0.28s cubic-bezier(0.4, 0, 0.2, 1) both; }
@keyframes mfInFwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }
@keyframes mfInBwd { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: translateX(0); } }

.mf-qlabel {
    font-family: 'Playfair Display', 'Playfair Fallback', serif;
    font-size: 1.4rem; font-weight: 700; color: var(--charcoal);
    line-height: 1.3; margin-bottom: 6px;
}
.mf-qhint {
    font-size: 0.78rem; color: var(--gray-500);
    margin-bottom: 18px; line-height: 1.4;
}

.mf-inp {
    width: 100%; padding: 14px 16px;
    font-size: 1rem; font-family: 'Outfit', 'Outfit Fallback', sans-serif;
    border: 2px solid var(--gray-200); border-radius: 14px;
    outline: none; background: var(--white); color: var(--charcoal);
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none; display: block;
}
.mf-inp:focus { border-color: var(--burgundy); box-shadow: 0 0 0 4px rgba(123,45,59,0.08); }
.mf-inp.mf-err { border-color: #E53E3E; animation: mfShake 0.3s ease; }
@keyframes mfShake {
    0%, 100% { transform: translateX(0); }
    25%, 75% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
}

.mf-select {
    width: 100%; padding: 14px 44px 14px 16px;
    font-size: 1rem; font-family: 'Outfit', 'Outfit Fallback', sans-serif;
    border: 2px solid var(--gray-200); border-radius: 14px;
    outline: none; background: var(--white); color: var(--charcoal);
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%239CA3AF' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
    transition: border-color 0.2s; display: block;
}
.mf-select:focus { border-color: var(--burgundy); }

.mf-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mf-tbtn {
    padding: 13px 10px; font-family: 'Outfit', 'Outfit Fallback', sans-serif;
    font-size: 1rem; font-weight: 600;
    border: 2px solid var(--gray-200); border-radius: 12px;
    background: var(--white); color: var(--charcoal);
    cursor: pointer; transition: all 0.15s ease; text-align: center;
    -webkit-tap-highlight-color: transparent;
}
.mf-tbtn:active { transform: scale(0.96); }
.mf-tbtn.mf-on { border-color: var(--burgundy); background: var(--burgundy); color: white; }

/* Autocomplete code postal / ville (API geo.api.gouv.fr) */
.mf-postal-wrap { position: relative; }
.mf-postal-list {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20;
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    max-height: 260px; overflow-y: auto; padding: 4px;
}
.mf-postal-item {
    display: block; width: 100%; text-align: left;
    padding: 10px 12px; font-family: 'Outfit', 'Outfit Fallback', sans-serif;
    font-size: 0.92rem; color: var(--charcoal);
    background: transparent; border: none; border-radius: 8px;
    cursor: pointer; transition: background 0.12s;
    -webkit-tap-highlight-color: transparent;
}
.mf-postal-item:hover, .mf-postal-item:focus { background: var(--gray-100); outline: none; }
.mf-postal-item + .mf-postal-item { border-top: 1px solid var(--gray-100); }
.mf-postal-cp { font-weight: 700; color: var(--burgundy); margin-right: 6px; }
.mf-postal-nom { color: var(--charcoal); }

/* Grouped-screen flow: several related fields per screen */
.mg-field { margin-bottom: 14px; }
.mg-field > label {
    display: block; font-size: 0.7rem; font-weight: 600;
    color: var(--gray-600); text-transform: uppercase;
    letter-spacing: 0.04em; margin-bottom: 6px;
}
.mg-field > label .req { color: var(--burgundy); margin-left: 2px; }
textarea.mf-inp { resize: vertical; min-height: 76px; }
.mg-lead-ok {
    background: var(--green-pale); color: var(--green-dark);
    font-size: 0.78rem; font-weight: 600;
    padding: 9px 12px; border-radius: 8px; margin-bottom: 14px;
    border: 1px solid rgba(45,139,94,0.15);
}
.mg-restore {
    background: var(--burgundy-pale); color: var(--charcoal);
    font-size: 0.76rem; padding: 9px 12px; border-radius: 8px;
    margin-bottom: 14px; border: 1px solid rgba(123,45,59,0.12);
}
.mg-restore a { color: var(--burgundy); font-weight: 700; text-decoration: underline; cursor: pointer; }
.mg-trust {
    text-align: center; margin-top: 12px;
    font-size: 0.72rem; color: var(--gray-500);
}

.mf-next-btn {
    width: 100%; padding: 17px; margin-top: 18px;
    font-family: 'Outfit', 'Outfit Fallback', sans-serif; font-size: 1rem; font-weight: 700;
    background: var(--burgundy); color: white; border: none;
    border-radius: 14px; cursor: pointer; transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.mf-next-btn:active { transform: scale(0.98); background: var(--burgundy-dark); }
.mf-next-btn:disabled { opacity: 0.6; pointer-events: none; }
.mf-next-btn .mf-spin {
    display: none; width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3); border-top-color: white;
    border-radius: 50%; animation: spin 0.6s linear infinite; flex-shrink: 0;
}
.mf-next-btn.mf-loading .mf-btxt { display: none; }
.mf-next-btn.mf-loading .mf-spin { display: block; }

/* Multi-field screens (2 questions grouped on one screen) */
.mf-multi-field { margin-bottom: 14px; }
.mf-multi-field label {
    display: block; font-size: 0.72rem; font-weight: 600; color: var(--gray-500);
    text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px;
}

/* Choice grid (situation picker) */
.mf-choices { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.mf-choice {
    display: flex; align-items: center; gap: 12px;
    padding: 15px 16px; font-family: 'Outfit', 'Outfit Fallback', sans-serif;
    font-size: 0.95rem; font-weight: 600;
    border: 2px solid var(--gray-200); border-radius: 14px;
    background: var(--white); color: var(--charcoal);
    cursor: pointer; transition: all 0.15s ease; text-align: left;
    -webkit-tap-highlight-color: transparent;
}
.mf-choice:active { transform: scale(0.98); }
.mf-choice.mf-on { border-color: var(--burgundy); background: rgba(123,45,59,0.05); }
.mf-choice .mf-choice-ico { font-size: 1.2rem; flex-shrink: 0; }

/* Split decision screen (after lead capture) */
.mf-split-icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--green-pale);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 14px;
}
.mf-split-sub { font-size: 0.85rem; color: var(--gray-500); line-height: 1.55; margin-bottom: 22px; }
.mf-split-btn-primary {
    width: 100%; padding: 17px; margin-bottom: 10px;
    font-family: 'Outfit', 'Outfit Fallback', sans-serif; font-size: 1rem; font-weight: 700;
    background: var(--burgundy); color: white; border: none;
    border-radius: 14px; cursor: pointer; transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.mf-split-btn-primary:active { transform: scale(0.98); background: var(--burgundy-dark); }
.mf-split-btn-secondary {
    width: 100%; padding: 15px;
    font-family: 'Outfit', 'Outfit Fallback', sans-serif; font-size: 0.9rem; font-weight: 600;
    background: transparent; color: var(--gray-600); border: 1.5px solid var(--gray-200);
    border-radius: 14px; cursor: pointer; transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.mf-split-btn-secondary:active { background: var(--gray-100); }

/* Always-visible early-exit link during the optional deep-dive */
.mf-skip-exit {
    display: block; text-align: center; margin-top: 16px;
    font-size: 0.78rem; color: var(--gray-400);
    text-decoration: underline; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* PC : on met deux champs par ligne pour que les écrans courts
   remplissent bien la carte large — l'esprit mobile, adapté au grand écran. */
@media (min-width: 769px) {
    .mf-q.mf-active { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
    .mf-q .mg-field { min-width: 0; }
    .mf-q .mg-field.mg-wide,
    .mf-q .mf-qlabel, .mf-q .mf-qhint,
    .mf-q .mf-next-btn, .mf-q .mg-trust,
    .mf-q .mg-lead-ok, .mf-q .mg-restore { grid-column: 1 / -1; }
}
