/* ===========================================================
   Étude notariale — feuille de style
   Système : vert forêt + terracotta sur fond ivoire, typographie
   éditoriale (Fraunces / Public Sans), composants arrondis.
   =========================================================== */

:root {
    --cream: #ffffff;
    --cream-deep: #f5f4f0;
    --paper: #ffffff;
    --ink: #1e2b22;
    --ink-soft: #56645a;
    --forest: #22392b;
    --forest-dark: #12201a;
    --forest-light: #3c5a47;
    --terracotta: #c1663b;
    --terracotta-dark: #9a4e2c;
    --terracotta-light: #eab088;
    --sand: #cfc7b6;
    --line: rgba(30, 43, 34, 0.11);
    --shadow-soft: 0 30px 60px -32px rgba(18, 32, 26, 0.22);
    --shadow-tight: 0 10px 30px -18px rgba(18, 32, 26, 0.18);
    --radius-xl: 32px;
    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-pill: 999px;
    --container: 1200px;
    --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
    --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.12;
    margin: 0 0 .5em;
    letter-spacing: -0.01em;
    color: var(--forest-dark);
}
p { margin: 0 0 1em; color: var(--ink-soft); }
.icon { width: 1em; height: 1em; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}
section { position: relative; }
.section { padding: 108px 0; }
.section--tight { padding: 72px 0; }
@media (max-width: 760px) {
    .section { padding: 72px 0; }
    .section--tight { padding: 52px 0; }
}

/* ---------- Texture de fond ---------- */
.texture-dots {
    background-image: radial-gradient(var(--line) 1.4px, transparent 1.4px);
    background-size: 22px 22px;
}
.bg-forest { background: var(--forest); color: var(--cream); }
.bg-forest h1, .bg-forest h2, .bg-forest h3, .bg-forest h4 { color: var(--cream); }
.bg-forest p { color: rgba(250, 246, 238, .78); }
.bg-cream-deep { background: var(--cream-deep); }
.bg-paper { background: var(--paper); }

/* ---------- Eyebrow / kicker ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--terracotta-dark);
    margin-bottom: 18px;
}
.bg-forest .eyebrow { color: var(--terracotta-light); }
.eyebrow::before {
    content: "";
    width: 26px;
    height: 1.5px;
    background: currentColor;
    display: inline-block;
}

h1 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: 1.35rem; }
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: .98rem;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
    white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon { transform: translate(3px, -3px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: var(--shadow-tight); }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--forest-dark); }
.btn-outline:hover { border-color: var(--forest); background: var(--paper); }
.bg-forest .btn-outline { border-color: rgba(250,246,238,.35); color: var(--cream); }
.bg-forest .btn-outline:hover { background: rgba(250,246,238,.1); }
.btn-light { background: var(--cream); color: var(--forest-dark); }
.btn-light:hover { background: #fff; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 18px; font-size: .88rem; }

/* ---------- Header : bandeau utilitaire + barre principale ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background .35s ease, box-shadow .35s ease;
}

/* Bandeau utilitaire sombre */
.topbar {
    background: var(--forest-dark);
    color: rgba(250, 246, 238, .72);
    font-size: .82rem;
    overflow: hidden;
    max-height: 46px;
    transition: max-height .35s ease, opacity .25s ease;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 46px; }
.topbar-info { display: flex; align-items: center; gap: 26px; white-space: nowrap; }
.topbar-info li { display: flex; align-items: center; gap: 8px; }
.topbar-info .icon { width: 15px; height: 15px; color: var(--terracotta-light); flex-shrink: 0; }
.topbar-info a:hover { color: var(--cream); }
.topbar-social { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.topbar-social .hours { display: flex; align-items: center; gap: 8px; }
.topbar-social .hours .icon { width: 15px; height: 15px; color: var(--terracotta-light); }
.topbar-portal { display: flex; align-items: center; gap: 8px; font-weight: 600; color: rgba(250,246,238,.85); padding-left: 18px; border-left: 1px solid rgba(250,246,238,.2); }
.topbar-portal .icon { width: 15px; height: 15px; color: var(--terracotta-light); }
.topbar-portal:hover, .topbar-portal.is-active { color: var(--cream); }
.topbar-social .links { display: flex; gap: 10px; padding-left: 18px; border-left: 1px solid rgba(250,246,238,.2); }
.topbar-social .links a { opacity: .7; }
.topbar-social .links a:hover { opacity: 1; color: var(--cream); }
.topbar-social .links .icon { width: 16px; height: 16px; }

/* Barre principale : blanche en permanence, pour rester lisible sur toutes les pages */
.headerbar {
    background: #fff;
    padding: 16px 0;
    position: relative;
    transition: padding .35s ease;
}
.headerbar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.site-header .brand-name { color: var(--forest-dark); }
.site-header .brand-tag { color: var(--ink-soft); }
.site-header .nav-link { color: var(--forest-dark); }
.site-header .header-phone { color: var(--forest-dark); }
.site-header .brand-mark { background: var(--forest); color: #fff; }
.site-header .header-phone .icon-circle { background: var(--forest); color: #fff; }
.site-header .nav-toggle { color: var(--forest-dark); }

.site-header.is-scrolled { box-shadow: 0 14px 40px -26px rgba(18,32,26,.45); }
.site-header.is-scrolled .topbar { max-height: 0; opacity: 0; }
.site-header.is-scrolled .headerbar { padding: 11px 0; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; white-space: nowrap; }
.brand img { height: 46px; width: auto; }
.brand-mark {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--forest);
    color: var(--cream);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 1.15rem;
    transition: background .35s ease, color .35s ease;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-size: 1.15rem; color: var(--forest-dark); transition: color .35s ease; }
.brand-tag { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); transition: color .35s ease; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav a.nav-link {
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    font-size: .92rem;
    font-weight: 600;
    color: var(--forest-dark);
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap;
    transition: color .35s ease, background .2s ease;
}
.main-nav a.nav-link .chevron { width: 11px; height: 11px; opacity: .65; transition: transform .25s ease; }
.has-dropdown:hover .nav-link .chevron { transform: rotate(180deg); }
.main-nav a.nav-link:hover { background: rgba(34,57,43,.07); }
.main-nav a.nav-link.is-active { background: rgba(34,57,43,.09); }
.nav-mobile-only, .nav-mobile-footer { display: none; }
.site-header.is-scrolled .main-nav a.nav-link:hover,
.site-header.is-scrolled .main-nav a.nav-link.is-active { background: rgba(34,57,43,.08); }
.has-dropdown { position: relative; }
.dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--paper);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 10px;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .2s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    font-size: .92rem;
    font-weight: 600;
    color: var(--forest-dark);
}
.dropdown a:hover { background: var(--cream-deep); }
.dropdown a .icon { width: 20px; height: 20px; color: var(--terracotta); flex-shrink: 0; }
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.header-phone .icon-circle { width: 38px; height: 38px; border-radius: 50%; background: var(--forest); color: var(--cream); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .35s ease, color .35s ease; }
.header-phone .icon-circle .icon { width: 17px; height: 17px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--forest-dark); }
.nav-toggle .icon { width: 26px; height: 26px; }
@media (max-width: 1240px) {
    .header-phone span:not(.icon-circle) { display: none; }
    .main-nav a.nav-link { padding: 10px 12px; font-size: .89rem; }
}

@media (max-width: 1100px) {
    .topbar-info li.is-optional { display: none; }
}
/* Éléments réservés au panneau mobile */
.nav-panel-head, .nav-panel-eyebrow, .nav-num, .nav-close { display: none; }
.main-nav .nav-label { display: inline; }

@media (max-width: 980px) {
    .topbar { display: none; }
    .headerbar { padding: 14px 0; }
    .site-header.is-scrolled .headerbar { padding: 10px 0; }

    /* ---- Panneau plein écran, vert profond ---- */
    .main-nav {
        position: fixed; inset: 0;
        background-color: var(--forest-dark);
        flex-direction: column; align-items: stretch; justify-content: flex-start;
        padding: 22px 26px 40px;
        opacity: 0; visibility: hidden; pointer-events: none;
        transition: opacity .45s ease, visibility .45s;
        overflow-y: auto; z-index: 120; gap: 0;
        -webkit-overflow-scrolling: touch;
    }
    /* Photo de l'étude en filigrane + halo chaud : donne de la profondeur au fond */
    .main-nav::before {
        content: "";
        position: absolute; inset: 0;
        background-image: var(--nav-photo);
        background-size: cover;
        background-position: center;
        opacity: .11;
        pointer-events: none;
    }
    .main-nav::after {
        content: "";
        position: absolute; inset: 0;
        background:
            radial-gradient(120% 65% at 85% 8%, rgba(193,102,59,.22) 0%, rgba(193,102,59,0) 60%),
            linear-gradient(180deg, rgba(18,32,26,.55) 0%, rgba(18,32,26,.92) 55%, var(--forest-dark) 100%);
        pointer-events: none;
    }
    .main-nav > * { position: relative; z-index: 1; }
    .main-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

    /* En-tête du panneau : marque + fermeture */
    .nav-panel-head {
        display: flex; align-items: center; justify-content: space-between;
        padding-bottom: 30px;
        margin-bottom: 26px;
        border-bottom: 1px solid rgba(255,255,255,.13);
    }
    .main-nav .brand-mark { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); }
    .main-nav .brand-name { color: #fff; }
    .main-nav .brand-tag { color: rgba(255,255,255,.55); }
    .nav-close {
        display: flex; align-items: center; justify-content: center;
        position: static;
        width: 46px; height: 46px;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,.28);
        background: transparent; color: #fff;
        cursor: pointer; padding: 0;
        transition: background .25s ease, transform .25s ease;
    }
    .nav-close:hover { background: rgba(255,255,255,.1); transform: rotate(90deg); }
    .nav-close .icon { width: 18px; height: 18px; }

    .nav-panel-eyebrow {
        display: block;
        font-size: .68rem; font-weight: 700;
        letter-spacing: .22em; text-transform: uppercase;
        color: var(--terracotta-light);
        margin-bottom: 18px;
    }

    /* ---- Entrées de menu : numérotées, typographie éditoriale ---- */
    .main-nav > ul { flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
    .main-nav > ul > li {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .3, 1);
    }
    .main-nav.is-open > ul > li { opacity: 1; transform: none; }
    .main-nav.is-open > ul > li:nth-child(1) { transition-delay: .10s; }
    .main-nav.is-open > ul > li:nth-child(2) { transition-delay: .16s; }
    .main-nav.is-open > ul > li:nth-child(3) { transition-delay: .22s; }
    .main-nav.is-open > ul > li:nth-child(4) { transition-delay: .28s; }
    .main-nav.is-open > ul > li:nth-child(5) { transition-delay: .34s; }
    .main-nav.is-open > ul > li:nth-child(6) { transition-delay: .40s; }

    .site-header .main-nav a.nav-link {
        display: flex; align-items: baseline; gap: 16px;
        padding: 19px 2px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,.1);
        color: #fff;
        background: none;
    }
    .site-header .main-nav a.nav-link:hover,
    .site-header .main-nav a.nav-link:active { background: none; }
    .nav-num {
        display: block;
        font-family: var(--font-body);
        font-size: .7rem; font-weight: 700;
        letter-spacing: .1em;
        color: rgba(255,255,255,.38);
        flex-shrink: 0;
        transform: translateY(-2px);
    }
    .main-nav .nav-label {
        font-family: var(--font-display);
        font-size: 1.75rem;
        font-weight: 400;
        line-height: 1.1;
        letter-spacing: -0.01em;
    }
    .site-header .main-nav a.nav-link.is-active .nav-label { color: var(--terracotta-light); }
    .site-header .main-nav a.nav-link.is-active .nav-num { color: var(--terracotta); }

    .main-nav a.nav-link .chevron {
        margin-left: auto; width: 15px; height: 15px;
        color: rgba(255,255,255,.5);
        align-self: center;
    }
    .has-dropdown.is-open .nav-link .chevron { transform: rotate(180deg); color: var(--terracotta-light); }

    /* Sous-menu Services : accordéon sobre, décalé */
    .dropdown {
        position: static; visibility: visible; transform: none;
        box-shadow: none; background: transparent; min-width: 0;
        display: block;
        margin: 0; padding: 0 0 0 38px;
        max-height: 0; opacity: 0;
        overflow: hidden;
        transition: max-height .38s cubic-bezier(.4, 0, .2, 1), opacity .28s ease, padding .38s ease;
    }
    .has-dropdown.is-open .dropdown {
        max-height: 420px; opacity: 1;
        padding-top: 8px; padding-bottom: 14px;
    }
    .dropdown a {
        display: flex; align-items: center; gap: 12px;
        padding: 11px 0; font-size: .96rem; font-weight: 500;
        color: rgba(255,255,255,.72);
        border-radius: 0;
    }
    .dropdown a:hover { background: none; color: #fff; }
    .dropdown a .icon { width: 17px; height: 17px; color: var(--terracotta-light); }

    .nav-mobile-only { display: block; }

    /* ---- Pied du panneau : coordonnées + appel à l'action ---- */
    .nav-mobile-footer {
        display: block;
        margin-top: auto;
        padding-top: 38px;
        opacity: 0;
        transform: translateY(16px);
        transition: opacity .5s ease .46s, transform .5s ease .46s;
    }
    .main-nav.is-open .nav-mobile-footer { opacity: 1; transform: none; }
    .nav-contact-line {
        display: flex; align-items: flex-start; gap: 13px;
        padding: 9px 0;
        font-size: .92rem; line-height: 1.5;
        color: rgba(255,255,255,.72);
    }
    .nav-contact-line:hover { color: #fff; }
    .nav-contact-line .icon { width: 17px; height: 17px; color: var(--terracotta-light); flex-shrink: 0; margin-top: 3px; }
    .nav-mobile-footer .btn { margin-top: 22px; }
    .nav-mobile-footer .social-row { margin-top: 24px; justify-content: flex-start; }
    .nav-mobile-footer .social-row a { border-color: rgba(255,255,255,.25); color: #fff; }

    .nav-toggle { display: block; }
    body.nav-is-open { overflow: hidden; }
}

@media (max-width: 980px) and (max-height: 700px) {
    /* Écrans courts : on réduit pour éviter un scroll inutile */
    .main-nav .nav-label { font-size: 1.4rem; }
    .site-header .main-nav a.nav-link { padding: 14px 2px; }
    .nav-panel-head { padding-bottom: 20px; margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .main-nav, .main-nav > ul > li, .nav-mobile-footer { transition-duration: .01ms !important; }
}
@media (max-width: 620px) {
    .header-actions .btn-primary { display: none; }
    .header-actions { gap: 8px; }
}

/* ---------- Hero (image plein cadre) ---------- */
.hero {
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    color: var(--cream);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: var(--forest);
    padding-top: 140px;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(18,32,26,.92) 0%, rgba(18,32,26,.72) 32%, rgba(18,32,26,.4) 62%, rgba(18,32,26,.35) 100%);
}
.hero .container { position: relative; padding-bottom: 90px; }
.hero-copy { max-width: 760px; }
.hero h1 { color: var(--cream); }
.hero .lede { color: rgba(250,246,238,.85); }
.hero .stat strong, .page-header .stat strong { color: var(--cream); }
.hero .stat span, .page-header .stat span { color: rgba(250,246,238,.72); }
.hero .btn-outline, .page-header .btn-outline { border-color: rgba(250,246,238,.4); color: var(--cream); }
.hero .btn-outline:hover, .page-header .btn-outline:hover { background: rgba(250,246,238,.12); border-color: var(--cream); }
.hero .stat-row { margin-top: 44px; padding-top: 34px; border-top: 1px solid rgba(250,246,238,.18); }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-scroll-cue {
    position: absolute;
    right: 28px; bottom: 40px;
    display: flex; align-items: center; gap: 10px;
    color: rgba(250,246,238,.7);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    writing-mode: vertical-rl;
}
.hero-scroll-cue::after {
    content: "";
    display: block;
    width: 1px; height: 46px;
    background: rgba(250,246,238,.4);
    writing-mode: horizontal-tb;
}
@media (max-width: 760px) {
    .hero { min-height: 82vh; padding-top: 120px; align-items: flex-end; }
    .hero .container { padding-bottom: 60px; }
    .hero-scroll-cue { display: none; }
}

/* ---------- Page header (pages internes) : photo + dégradé ---------- */
.page-header {
    padding: 185px 0 100px;
    background-color: var(--forest);
    background-size: cover;
    background-position: center 38%;
    color: var(--cream);
    position: relative;
    overflow: hidden;
}
/* Dégradé dense à gauche (sous le texte) et plus transparent à droite (la photo respire) */
.page-header::before {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(14,26,20,.55) 0%, rgba(14,26,20,0) 22%),
        linear-gradient(96deg, rgba(14,26,20,.96) 0%, rgba(14,26,20,.9) 38%, rgba(14,26,20,.66) 68%, rgba(14,26,20,.5) 100%);
}
/* Liseré chaud en bas, rappel de la couleur d'accent */
.page-header::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--terracotta) 0%, rgba(193,102,59,0) 62%);
}
.page-header .container { position: relative; z-index: 1; }
@media (max-width: 760px) {
    .page-header { padding: 130px 0 70px; }
    .page-header::before {
        background: linear-gradient(180deg, rgba(14,26,20,.92) 0%, rgba(14,26,20,.86) 60%, rgba(14,26,20,.8) 100%);
    }
}
.page-header h1 { color: var(--cream); max-width: 16ch; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: rgba(250,246,238,.65); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--cream); }

/* ---------- Cards ---------- */
.card {
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: var(--shadow-tight);
    border: 1px solid var(--line);
    height: 100%;
}
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.service-card { display: flex; flex-direction: column; gap: 18px; transition: transform .3s ease, box-shadow .3s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.service-card .icon-badge { width: 62px; height: 62px; border-radius: var(--radius-md); background: var(--cream-deep); color: var(--terracotta-dark); display: flex; align-items: center; justify-content: center; }
.service-card .icon-badge .icon { width: 30px; height: 30px; }
.service-card h3 { margin-bottom: 4px; }
.service-card .card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--terracotta-dark); font-size: .92rem; }
.service-card .card-link .icon { width: 16px; height: 16px; }

/* ---------- Domaines : index éditorial ---------- */
.domains-layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: start; }

.domains-list { border-top: 1px solid var(--line); }
.domain-row {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 22px;
    padding: 22px 8px 22px 4px;
    border-bottom: 1px solid var(--line);
    position: relative;
    transition: padding-left .35s ease;
}
.domain-row::before {
    content: "";
    position: absolute; left: 0; bottom: -1px;
    height: 1px; width: 0;
    background: var(--terracotta);
    transition: width .5s cubic-bezier(.4, 0, .2, 1);
}
.domain-row:hover::before, .domain-row.is-active::before { width: 100%; }
.domain-row:hover, .domain-row.is-active { padding-left: 18px; }

.domain-num {
    font-family: var(--font-display);
    font-size: .95rem;
    color: var(--sand);
    letter-spacing: .06em;
    transition: color .3s ease;
}
.domain-row:hover .domain-num, .domain-row.is-active .domain-num { color: var(--terracotta); }

.domain-thumb {
    display: block;
    width: 84px; height: 64px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    filter: saturate(.85);
    transition: filter .4s ease, transform .4s ease;
}
.domain-row:hover .domain-thumb, .domain-row.is-active .domain-thumb { filter: saturate(1); transform: scale(1.04); }

.domain-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.domain-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--forest-dark);
    transition: color .3s ease;
}
.domain-row:hover .domain-title, .domain-row.is-active .domain-title { color: var(--terracotta-dark); }
.domain-desc { font-size: .92rem; color: var(--ink-soft); }

.domain-arrow {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    color: var(--forest-dark);
    flex-shrink: 0;
    transition: all .3s ease;
}
.domain-arrow .icon { width: 17px; height: 17px; }
.domain-row:hover .domain-arrow, .domain-row.is-active .domain-arrow {
    background: var(--terracotta); border-color: var(--terracotta); color: #fff;
    transform: rotate(0) scale(1.06);
}

.domains-preview {
    position: sticky;
    top: 140px;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: var(--forest);
}
/* Sélecteur descendant obligatoire : .img-cover (déclaré plus bas) impose sinon position:relative */
.domains-preview .domain-visual {
    position: absolute;
    inset: 0;
    border-radius: 0;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity .6s ease, transform 1.1s cubic-bezier(.2, .6, .2, 1);
}
.domains-preview .domain-visual.is-active { opacity: 1; transform: scale(1); }
.domain-visual::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(18,32,26,.85) 0%, rgba(18,32,26,.15) 55%, transparent 100%);
}
.domain-visual-label {
    position: absolute; left: 28px; right: 28px; bottom: 28px;
    display: flex; align-items: center; gap: 14px;
    color: var(--cream);
    font-family: var(--font-display);
    font-size: 1.25rem;
    z-index: 2;
}
.domain-visual-label .icon { width: 30px; height: 30px; color: var(--terracotta-light); flex-shrink: 0; }

@media (max-width: 900px) {
    .domains-preview { display: none; }
    .domains-layout { grid-template-columns: 1fr; gap: 0; }
    .domains-list { border-top: none; }
    .domain-row {
        grid-template-columns: auto 1fr;
        grid-template-areas: "thumb thumb" "num text" "num arrow";
        gap: 0 18px;
        padding: 0 0 28px;
        margin-bottom: 28px;
        border-bottom: 1px solid var(--line);
    }
    .domain-row:hover, .domain-row.is-active { padding-left: 0; }
    .domain-row::before { display: none; }
    .domain-thumb {
        display: block;
        grid-area: thumb;
        width: 100%; height: auto;
        aspect-ratio: 16 / 9;
        border-radius: var(--radius-lg);
        margin-bottom: 20px;
    }
    .domain-row:hover .domain-thumb, .domain-row.is-active .domain-thumb { transform: none; }
    .domain-num { grid-area: num; align-self: start; padding-top: 6px; color: var(--terracotta); }
    .domain-text { grid-area: text; }
    .domain-title { font-size: 1.3rem; }
    .domain-arrow {
        grid-area: arrow;
        width: auto; height: auto;
        border: none; border-radius: 0;
        justify-content: flex-start;
        margin-top: 12px;
        color: var(--terracotta-dark);
        font-weight: 700; font-size: .9rem;
    }
    .domain-arrow::before { content: "En savoir plus"; margin-right: 8px; }
    .domain-row:hover .domain-arrow, .domain-row.is-active .domain-arrow { background: none; color: var(--terracotta-dark); transform: none; }
}

/* ---------- Section head ---------- */
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head-row .section-head { margin-bottom: 0; }
@media (max-width: 760px) {
    .section-head-row { margin-bottom: 40px; }
    .section-head-row .btn { width: 100%; justify-content: center; }
}

/* ---------- À propos / stats ---------- */
.stat-row { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 40px; }
.stat { }
.stat strong { font-family: var(--font-display); font-size: 2.6rem; color: var(--forest-dark); display: block; }
.bg-forest .stat strong { color: var(--cream); }
.stat span { font-size: .85rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.bg-forest .stat span { color: rgba(250,246,238,.7); }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-top: 20px; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding: 0 0 44px 74px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--forest); color: var(--cream); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; box-shadow: var(--shadow-tight); z-index: 1; }
.timeline-item h4 { margin-bottom: 6px; }
.timeline-item p { margin-bottom: 0; }

/* ---------- Méthode / étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 30px 24px 24px; background: var(--paper); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.step-number { font-family: var(--font-display); font-size: 2.3rem; color: var(--sand); display: block; margin-bottom: 10px; }
.step h4 { margin-bottom: 8px; }
.step p { font-size: .93rem; margin-bottom: 0; }

/* ---------- Listes à puces stylées ---------- */
.check-list li, .bullet-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.check-list li:last-child, .bullet-list li:last-child { margin-bottom: 0; }
.check-list .icon { width: 22px; height: 22px; color: var(--terracotta); flex-shrink: 0; margin-top: 1px; }
.bullet-list .bullet { width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); margin-top: 9px; flex-shrink: 0; }
.check-list strong { color: var(--forest-dark); }

/* ---------- Testimonial ---------- */
.testimonial-card { background: var(--cream-deep); border-radius: var(--radius-xl); padding: 48px; position: relative; }
.testimonial-card .icon.quote { width: 42px; height: 42px; color: var(--terracotta); margin-bottom: 18px; }
.testimonial-quote { font-family: var(--font-display); font-size: 1.4rem; color: var(--forest-dark); line-height: 1.4; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--forest); color: var(--cream); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); }
.author-name { font-weight: 700; color: var(--forest-dark); }
.author-role { font-size: .85rem; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { border-radius: var(--radius-xl); padding: 64px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin-bottom: 0; }
@media (max-width: 760px) {
    .cta-band { padding: 36px 26px; border-radius: var(--radius-lg); }
    .cta-band .btn { width: 100%; justify-content: center; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-dark); color: rgba(250,246,238,.75); padding: 90px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-name, .footer-brand .brand-tag { color: var(--cream); }
.footer-brand p { max-width: 34ch; margin-top: 16px; }
.footer-col h4 { color: var(--cream); font-size: 1rem; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a:hover { color: var(--cream); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.footer-contact .icon { width: 19px; height: 19px; color: var(--terracotta-light); flex-shrink: 0; margin-top: 2px; }
.social-row { display: flex; gap: 10px; margin-top: 22px; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(250,246,238,.25); display: flex; align-items: center; justify-content: center; }
.social-row a:hover { background: var(--terracotta); border-color: var(--terracotta); }
.social-row .icon { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid rgba(250,246,238,.15); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; }
.footer-bottom a:hover { color: var(--cream); }

/* ---------- Formulaires ---------- */
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 8px; color: var(--forest-dark); }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--line);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: .96rem;
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 4px rgba(193,102,59,.14);
}
.field textarea { resize: vertical; min-height: 130px; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (max-width: 560px) { .check-grid { grid-template-columns: 1fr; } }
.check-pill { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-pill); font-size: .9rem; font-weight: 600; cursor: pointer; }
.check-pill input { width: auto; }
.check-pill:has(input:checked) { border-color: var(--terracotta); background: rgba(193,102,59,.08); }
.alert { padding: 16px 20px; border-radius: var(--radius-md); margin-bottom: 24px; font-weight: 600; }
.alert-success { background: #e4f0e6; color: #235026; }
.alert-error { background: #fbe6e0; color: #8a2f16; }

/* ---------- Blog ---------- */
.article-card { display: flex; flex-direction: column; }
.article-meta { display: flex; gap: 14px; font-size: .8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.article-meta .tag { color: var(--terracotta-dark); font-weight: 700; }
.article-card h3 a:hover { color: var(--terracotta-dark); }
.article-excerpt { font-size: .95rem; }
.article-body { max-width: 68ch; margin: 0 auto; }
.article-body p { color: var(--ink); font-size: 1.06rem; }
.article-body h2 { margin-top: 1.5em; }

/* ---------- Suivi de dossier ---------- */
.dossier-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.dossier-badge {
    font-family: var(--font-display); font-size: 1.15rem;
    background: var(--forest); color: var(--cream);
    padding: 10px 18px; border-radius: var(--radius-pill); white-space: nowrap;
}
.dossier-steps { counter-reset: none; }
.dossier-steps li { display: flex; align-items: center; gap: 16px; padding: 12px 0; position: relative; }
.dossier-steps li:not(:last-child)::after {
    content: ""; position: absolute; left: 17px; top: 46px; bottom: -6px; width: 2px; background: var(--line);
}
.dossier-steps li.is-done:not(:last-child)::after { background: var(--terracotta); }
.dossier-step-dot {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--cream-deep); color: var(--ink-soft);
    font-weight: 700; font-size: .85rem; flex-shrink: 0; z-index: 1;
}
.dossier-step-dot .icon { width: 16px; height: 16px; }
.dossier-steps li.is-done .dossier-step-dot { background: var(--terracotta); color: #fff; }
.dossier-steps li.is-current .dossier-step-dot { background: var(--forest); color: var(--cream); box-shadow: 0 0 0 5px rgba(34,57,43,.12); }
.dossier-step-label { color: var(--ink-soft); }
.dossier-steps li.is-done .dossier-step-label { color: var(--ink); }
.dossier-steps li.is-current .dossier-step-label { color: var(--forest-dark); font-weight: 700; }
.dossier-note { display: flex; gap: 16px; background: var(--cream-deep); border-radius: var(--radius-md); padding: 22px; margin-top: 28px; }
.dossier-note .icon { width: 26px; height: 26px; color: var(--terracotta); flex-shrink: 0; }

/* ---------- Divers ---------- */
.divider-flourish { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--sand); margin: 8px 0 30px; }
.divider-flourish .icon { width: 24px; height: 24px; }
.divider-flourish::before, .divider-flourish::after { content: ""; height: 1px; width: 60px; background: var(--line); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.sticky-side { position: sticky; top: 120px; }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-tight); }
.map-frame iframe { width: 100%; height: 360px; border: 0; display: block; }

.blob { position: absolute; z-index: -1; filter: blur(0); opacity: .5; }

/* ---------- Photographie (remplace les illustrations SVG) ---------- */
.img-cover {
    background-size: cover;
    background-position: center;
    background-color: var(--cream-deep);
    border-radius: var(--radius-lg);
    position: relative;
}
.img-cover.is-round-xl { border-radius: var(--radius-xl); }
.media-badge {
    position: absolute;
    display: flex; align-items: center; justify-content: center;
    width: 58px; height: 58px;
    border-radius: var(--radius-md);
    background: var(--paper);
    color: var(--terracotta-dark);
    box-shadow: var(--shadow-tight);
}
.media-badge .icon { width: 28px; height: 28px; }

.home-photo { aspect-ratio: 4 / 3; }
.home-photo .media-badge { top: 22px; left: 22px; }

.portrait-photo { aspect-ratio: 3 / 4; }
.portrait-photo .media-badge { bottom: -22px; right: 24px; }

.service-card-media { aspect-ratio: 4 / 3; margin-bottom: 4px; }
.service-card-media .media-badge { bottom: -18px; left: 18px; width: 50px; height: 50px; }
.service-card-media .media-badge .icon { width: 24px; height: 24px; }
.service-card { padding-bottom: 42px; }

.article-media.img-cover { aspect-ratio: 16 / 11; border-radius: var(--radius-lg); margin-bottom: 20px; overflow: visible; }
.article-media .media-badge { bottom: -16px; right: 18px; width: 46px; height: 46px; }
.article-media .media-badge .icon { width: 22px; height: 22px; }

.ref-tile { text-align: center; }
.ref-tile .img-cover { aspect-ratio: 1 / 1; margin-bottom: 14px; }
.ref-tile h4 { font-size: .95rem; color: var(--cream); }

.service-band { aspect-ratio: 21 / 9; margin-top: -64px; position: relative; z-index: 2; box-shadow: var(--shadow-soft); }
.service-band .media-badge { bottom: 22px; left: 22px; }
@media (max-width: 760px) { .service-band { aspect-ratio: 4 / 3; margin-top: -40px; } }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--forest); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0; z-index: 999; }
.skip-link:focus { left: 0; }
