/* Mandaway - landing + auth · charte « Nocturne - clair » (tokens dans /_shared/tokens.css) */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.6; font-size: 17px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 5.4vw, 3.75rem); line-height: 1.03; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.4rem); line-height: 1.12; }
h3 { font-size: 1.28rem; line-height: 1.2; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { opacity: .82; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.accent { background: linear-gradient(120deg, #4f7cff, #3a5bef); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px;
    letter-spacing: .16em; color: var(--brand-dark); background: rgba(79,124,255,.09); border: 1px solid rgba(79,124,255,.24);
    padding: 7px 13px; border-radius: 999px; margin: 0 0 1.4rem; text-transform: uppercase; }
.section-lead { max-width: 700px; margin: 0 auto 2.6rem; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; }
.band > .container > h2 { text-align: center; margin-bottom: .4rem; }

/* --- Boutons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border-radius: 12px; padding: .82rem 1.35rem;
    font-weight: 600; font-size: 1rem; cursor: pointer; border: 1px solid transparent; letter-spacing: -.005em;
    white-space: nowrap;
    transition: transform .12s ease, box-shadow .2s ease, filter .2s ease; }
.btn i { font-size: .95em; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { color: #fff; filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: #d3dbe9; }
.btn-ghost:hover { border-color: #b9c5db; opacity: 1; }
.btn-lg { padding: 1rem 1.65rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* --- Iconographie (Font Awesome) --- */
.eyebrow i { font-size: 11px; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px;
    background: var(--brand-soft); color: var(--brand-dark); font-size: 19px; margin-bottom: 16px; }

/* --- Header --- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.82);
    backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600;
    font-size: 1.25rem; color: var(--ink); letter-spacing: -.01em; }
.brand:hover { opacity: 1; }
.brand-mark { position: relative; display: inline-flex; width: 28px; height: 28px; border-radius: 8px; font-size: 0;
    background: var(--grad); box-shadow: 0 4px 14px rgba(79,124,255,.4); flex: 0 0 auto; }
.brand-mark::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px;
    background: #fff; border-radius: 2px; transform: translate(-50%, -50%) rotate(45deg); }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); opacity: 1; }
.nav a.btn-ghost { color: var(--ink); }
.nav a.btn-primary { color: #fff; }

/* --- Hero --- */
.hero { position: relative; padding: 5.5rem 0 5rem; overflow: hidden;
    background: linear-gradient(180deg, #ffffff, var(--bg) 78%); }
.hero::before { content: ""; position: absolute; top: -160px; right: -120px; width: 560px; height: 560px; border-radius: 50%;
    background: radial-gradient(circle, rgba(79,124,255,.14), transparent 68%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.2rem; align-items: center; }
.hero-copy .lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 500px; line-height: 1.65; }
.hero-copy .lead strong, .hero-copy .lead b { color: var(--ink-2); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin: 2rem 0 1rem; }
.hero-trust { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .01em; }

/* Maquette dossier - parcours animé (états pilotés par _home/hero.js) */
.hero-card { display: flex; justify-content: center; }
.mock { position: relative; width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
    padding: 22px; box-shadow: var(--shadow-lg); }
.mock-head { display: flex; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #cdd6ea; }
.mock-title { margin-left: 6px; font-size: 13px; color: var(--ink-soft); }
.mock-body { position: relative; padding-top: 4px; }

/* Badge de statut du dossier (bascule « En cours » / « Vendu » en fin de boucle) */
.mock-status { margin-left: auto; flex: none; font-size: 11px; font-weight: 600; }
.mock-status span { display: none; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; }
.mock-status i { font-size: 9px; }
.st-live { background: var(--brand-soft); color: var(--brand-dark); }
.st-done { background: #ecfdf5; color: #0f9d6b; }
.mock-anim:not([data-phase="done"]) .st-live,
.mock-anim[data-phase="done"] .st-done { display: inline-flex; }

/* Rail de progression le long des étapes */
.mock-rail { position: absolute; left: 13px; top: 26px; bottom: 26px; width: 2px; border-radius: 2px; background: var(--line); }
.mock-rail-fill { position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(180deg, #5b83ff, #3a5bef);
    transform-origin: top; transform: scaleY(var(--prog, .5)); transition: transform .9s cubic-bezier(.4, 0, .2, 1); }

/* Étapes du parcours */
.mock-flow { position: relative; margin-top: 6px; }
.mock-flow li { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; font-size: 13px; line-height: 1.45;
    opacity: .42; transition: opacity .5s ease; }
.mock-flow li:first-child { padding-top: 4px; }
.mock-flow li.is-now, .mock-flow li.is-done { opacity: 1; }
.flow-ico { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 27px; height: 27px; border-radius: 50%; font-size: 11px; margin-top: 1px;
    background: var(--bg-alt); color: var(--muted); transition: background .5s ease, color .5s ease; }
.flow-ico > :first-child { transition: opacity .35s ease, transform .35s ease; }
.flow-check { position: absolute; inset: 0; display: inline-flex; align-items: center; justify-content: center;
    opacity: 0; transform: scale(.4); transition: opacity .35s ease, transform .35s ease; }
.is-now .flow-ico { background: var(--grad); color: #fff; animation: flowPulse 1.7s ease-out infinite; }
.is-done .flow-ico { background: #ecfdf5; color: #0f9d6b; }
.is-done .flow-ico > :first-child { opacity: 0; transform: scale(.5); }
.is-done .flow-check { opacity: 1; transform: scale(1); }
.mock-flow strong { display: block; color: var(--ink); font-weight: 600; }
.flow-note { color: var(--ink-soft); }
@keyframes flowPulse {
    0% { box-shadow: 0 0 0 0 rgba(79,124,255,.38); }
    70% { box-shadow: 0 0 0 11px rgba(79,124,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(79,124,255,0); }
}

/* Notifications éphémères : glissent depuis le bord bas-droit de la maquette */
.mock-anim { overflow: hidden; }
.mock-toast { position: absolute; right: 0; bottom: 0; z-index: 2; display: inline-flex; align-items: center; gap: 9px;
    background: var(--brand-soft); color: var(--brand-dark); border-radius: 14px 0 0 0;
    padding: 11px 20px 13px 16px; font-size: 12.5px; font-weight: 600;
    transform: translateX(105%); transition: transform .45s cubic-bezier(.33, 1, .36, 1); pointer-events: none; }
.mock-toast i { color: var(--brand-dark); font-size: 12px; }
.mock-anim[data-phase="2"] .mock-toast-vendeur,
.mock-anim[data-phase="3"] .mock-toast-rappel { transform: translateX(0); }
.mock-anim[data-phase="3"] .mock-toast-rappel { transition-delay: .25s; }

@media (prefers-reduced-motion: reduce) {
    .is-now .flow-ico { animation: none; box-shadow: 0 0 0 4px rgba(79,124,255,.14); }
    .mock-rail-fill { transition: none; }
    .mock-flow li, .flow-ico, .flow-ico > :first-child, .flow-check, .mock-toast { transition: none; }
}

/* --- Bandes --- */
.band { padding: 5rem 0; }
.band:nth-of-type(even):not(.cta-final) { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.75rem; box-shadow: var(--shadow-sm); }
.card h3 { color: var(--ink); }
.problems .grid-3 { margin-top: 2.2rem; max-width: 1060px; margin-left: auto; margin-right: auto; }

/* --- Trois temps : cartes visuelles animées --- */
.problems .card { transition: transform .25s ease, box-shadow .25s ease; }
.problems .card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.problems .card > p:last-child { margin-bottom: 0; color: var(--ink-soft); line-height: 1.6; }
.card-step { font-family: var(--font-mono); font-size: 11px; letter-spacing: .13em; text-transform: uppercase;
    color: var(--brand-dark); margin: 0 0 1.1rem; }
.card-viz { position: relative; height: 132px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2);
    margin-bottom: 1.3rem; overflow: hidden; }

/* Vignette 1 : ventes du quartier + fourchette */
.viz-bars { position: absolute; left: 18px; right: 18px; bottom: 0; height: 74%; display: flex; align-items: flex-end; gap: 9px; }
.viz-bars span { flex: 1; height: calc(var(--h) * 100%); border-radius: 6px 6px 0 0; background: var(--brand-100); transform-origin: bottom; }
.viz-bars .is-hot { background: var(--grad); }
.viz-chip { position: absolute; top: 11px; right: 11px; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
    background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
    padding: 4px 11px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--brand-dark); }

/* Vignette 2 : espace vendeur */
.viz-vendeur { padding: 14px 14px 0; }
.viz-msg { display: flex; align-items: center; gap: 9px; width: fit-content; background: #fff; border: 1px solid var(--line);
    border-radius: 10px; box-shadow: var(--shadow-sm); padding: 7px 12px; margin-bottom: 8px; font-size: 12px; color: var(--ink-2); }
.viz-msg i { color: var(--brand-dark); font-size: 11px; }
.viz-chip-seen { position: static; margin-left: 26px; background: var(--brand-soft); border: 0; box-shadow: none;
    font-family: var(--font); font-size: 12px; font-weight: 600; padding: 6px 12px; }
.viz-chip-seen i { font-size: 11px; }

/* Vignette 3 : échéances du compromis */
.viz-track { position: absolute; left: 34px; right: 34px; top: 58px; height: 2px; border-radius: 2px; background: var(--line); }
.viz-track-fill { position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(90deg, #5b83ff, #3a5bef);
    transform-origin: left; transform: scaleX(.5); }
.viz-steps { position: absolute; inset: 0; display: flex; justify-content: space-between; padding: 0 16px; }
.viz-steps li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 7px; padding-top: 22px; font-size: 11px; color: var(--muted); text-align: center; }
.viz-dot { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
    background: var(--bg-alt); border: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.viz-steps .done .viz-dot { background: #ecfdf5; border-color: #a7f3d0; color: #0f9d6b; }
.viz-steps .done { color: var(--ink-soft); }
.viz-steps .now .viz-dot { background: var(--grad); border: 0; color: #fff; }
.viz-steps .now { color: var(--ink-2); font-weight: 600; }
.viz-due { position: absolute; top: 12px; left: calc(50% + 14px); white-space: nowrap; font-style: normal;
    font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: var(--warn);
    background: #fff7ed; border: 1px solid #fed7aa; border-radius: 999px; padding: 1px 7px; }

/* Révélation au scroll (armée par landing.js, ignorée en motion réduit / sans JS) */
.problems.anim-armed .card { opacity: 0; }
.problems .card.in-view { opacity: 1; animation: cardIn .55s cubic-bezier(.2, .7, .3, 1) backwards; }
.problems .card.in-view:nth-child(2) { animation-delay: .12s; }
.problems .card.in-view:nth-child(3) { animation-delay: .24s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(20px); } }
.card.in-view .viz-bars span { animation: barIn .5s cubic-bezier(.2, .7, .3, 1) backwards; }
.card.in-view .viz-bars span:nth-child(1) { animation-delay: .30s; }
.card.in-view .viz-bars span:nth-child(2) { animation-delay: .36s; }
.card.in-view .viz-bars span:nth-child(3) { animation-delay: .42s; }
.card.in-view .viz-bars span:nth-child(4) { animation-delay: .48s; }
.card.in-view .viz-bars span:nth-child(5) { animation-delay: .54s; }
.card.in-view .viz-bars span:nth-child(6) { animation-delay: .60s; }
.card.in-view .viz-bars span:nth-child(7) { animation-delay: .66s; }
@keyframes barIn { from { transform: scaleY(0); } }
.card.in-view .viz-estim .viz-chip { animation: popIn .4s cubic-bezier(.2, .7, .3, 1) .78s backwards; }
.card.in-view .viz-msg { animation: msgIn .45s cubic-bezier(.2, .7, .3, 1) backwards; }
.card.in-view .viz-msg:nth-child(2) { animation-delay: .62s; }
.card.in-view .viz-msg:nth-child(1) { animation-delay: .42s; }
.card.in-view .viz-chip-seen { animation: popIn .4s cubic-bezier(.2, .7, .3, 1) .92s backwards; }
@keyframes msgIn { from { opacity: 0; transform: translateX(-12px); } }
@keyframes popIn { from { opacity: 0; transform: scale(.7); } }
.card.in-view .viz-dot { animation: popIn .35s cubic-bezier(.2, .7, .3, 1) backwards; }
.card.in-view .viz-steps li:nth-child(1) .viz-dot { animation-delay: .55s; }
.card.in-view .viz-steps li:nth-child(2) .viz-dot { animation-delay: .70s; }
.card.in-view .viz-steps li:nth-child(3) .viz-dot { animation-delay: .85s; }
.card.in-view .viz-track-fill { animation: fillIn .5s cubic-bezier(.2, .7, .3, 1) .7s backwards; }
@keyframes fillIn { from { transform: scaleX(0); } }
.card.in-view .viz-due { animation: popIn .35s cubic-bezier(.2, .7, .3, 1) 1s backwards, duePulse 2.4s ease-out 1.6s infinite; }
@keyframes duePulse {
    0% { box-shadow: 0 0 0 0 rgba(180,83,9,.25); }
    55% { box-shadow: 0 0 0 7px rgba(180,83,9,0); }
    100% { box-shadow: 0 0 0 0 rgba(180,83,9,0); }
}
/* --- Marque : les trois supports aux couleurs de l'agence --- */
.ag-scope { --ag: #e11d48; --ag-soft: #fdecf1; }
.ag-bar { display: flex; align-items: center; gap: 1.1rem; width: fit-content; margin: 2.4rem auto 1.5rem;
    padding: 9px 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); }
.ag-name { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display);
    font-weight: 600; font-size: 15px; color: var(--ink); }
.ag-glyph { display: inline-block; width: 11px; height: 11px; border-radius: 3px; background: var(--ag);
    transform: rotate(45deg); transition: background-color .6s ease; }
.ag-swatches { display: inline-flex; align-items: center; gap: 9px; padding-left: 1.1rem; border-left: 1px solid var(--line-2); }
.swatch { width: 17px; height: 17px; border-radius: 50%; background: var(--c); border: 0; padding: 0;
    cursor: pointer; transition: box-shadow .3s ease, transform .2s ease; }
.swatch:hover { transform: scale(1.18); }
.swatch.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); }
.ag-demo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; max-width: 1020px; margin: 0 auto; }
.ag-label { text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin: .9rem 0 0; }

/* Miniatures (web, mail, pdf) : les accents suivent var(--ag) */
.bd { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow-sm); padding: 14px; min-height: 172px; display: flex; flex-direction: column;
    align-items: flex-start; gap: 9px; overflow: hidden; }
.bd-chrome { display: flex; gap: 5px; }
.bd-chrome span { width: 7px; height: 7px; border-radius: 50%; background: #cdd6ea; }
.bd-band { display: flex; align-items: center; gap: 7px; align-self: stretch; margin: 2px -14px 4px;
    padding: 9px 14px; background: var(--ag); color: #fff; font-size: 12px; font-weight: 600;
    transition: background-color .6s ease; }
.bd-band .ag-glyph { background: #fff; width: 9px; height: 9px; }
.bd-pdf .bd-band { margin-top: -14px; }
.bd-line { height: 8px; border-radius: 4px; background: var(--bg-alt); width: var(--w, 60%); }
.bd-btn { margin-top: auto; display: inline-flex; padding: 6px 12px; border-radius: 8px; background: var(--ag);
    color: #fff; font-size: 11.5px; font-weight: 600; transition: background-color .6s ease; }
.bd-mailhead { display: flex; align-items: center; gap: 10px; }
.bd-avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
    border-radius: 50%; background: var(--ag); color: #fff; font-size: 11px; font-weight: 600;
    transition: background-color .6s ease; }
.bd-mailfrom { display: flex; flex-direction: column; line-height: 1.3; }
.bd-mailfrom strong { font-size: 12.5px; color: var(--ink); }
.bd-mailfrom em { font-style: normal; font-size: 11px; color: var(--muted); }
.bd-pdftitle { font-family: var(--font-display); font-size: 14px; color: var(--ink); }
.bd-price { margin-top: auto; font-family: var(--font-display); font-size: 19px; font-weight: 700;
    color: var(--ag); transition: color .6s ease; }
.ag-note { text-align: center; margin: 2.2rem 0 0; font-size: 13px; }

/* --- Conformité : le registre en ligne --- */
.conf-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center;
    max-width: 1020px; margin: 2.6rem auto 0; }
.conf-visual { display: flex; justify-content: center; }
.reg { width: 100%; max-width: 470px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
    box-shadow: var(--shadow); overflow: hidden; }
.reg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 20px;
    border-bottom: 1px solid var(--line-2); }
.reg-title { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; color: var(--ink); }
.reg-title i { color: var(--brand-dark); }
.reg-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600;
    background: #ecfdf5; color: #0f9d6b; border-radius: 999px; padding: 3px 10px; }
.reg-rows { padding: 2px 20px 6px; }
.reg-rows li { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 0;
    border-top: 1px solid var(--line-2); font-size: 13px; }
.reg-rows li:first-child { border-top: 0; }
.reg-link { position: absolute; top: -9px; left: 9px; z-index: 1; display: inline-flex; align-items: center;
    justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: #fff;
    border: 1px solid var(--brand-100); color: var(--brand-dark); font-size: 7px; }
.reg-num { flex: none; width: 38px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--brand-dark); }
.reg-info { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.reg-info strong { color: var(--ink); font-weight: 600; }
.reg-info span { color: var(--muted); font-size: 12px; }
.reg-lock { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600;
    background: #ecfdf5; color: #0f9d6b; border-radius: 999px; padding: 3px 9px; }
.reg-lock i { font-size: 9px; }
.reg-lock-wait { background: var(--brand-soft); color: var(--brand-dark); }
.reg-next .reg-info strong { color: var(--brand-dark); }
.reg-next { border-top-style: dashed; }
.reg-anchor { display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: var(--brand-soft);
    color: var(--brand-dark); font-family: var(--font-mono); font-size: 11px; line-height: 1.4; }
.reg-anchor i { font-size: 14px; flex: none; }

/* Listes de points (conformité, équipe) */
.points-list { display: flex; flex-direction: column; gap: 1.4rem; }
.points-list li { display: flex; align-items: flex-start; gap: 15px; }
.point-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); font-size: 15px; }
.points-list strong { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: .2rem; }
.points-list p { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }
.conf-note, .team-note { text-align: center; margin: 2.4rem 0 0; font-size: 13px; }

/* --- Équipe : le plan Agence --- */
.team-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center;
    max-width: 1020px; margin: 2.6rem auto 0; }
.team-visual { display: flex; justify-content: center; order: 2; }
.team { width: 100%; max-width: 470px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
    box-shadow: var(--shadow); overflow: hidden; }
.team-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 20px;
    border-bottom: 1px solid var(--line-2); }
.team-title { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14px; color: var(--ink); }
.team-title i { color: var(--brand-dark); }
.team-badge { flex: none; font-size: 11px; font-weight: 600; background: var(--brand-soft); color: var(--brand-dark);
    border-radius: 999px; padding: 3px 10px; }
.team-rows { padding: 2px 20px 6px; }
.team-rows li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); font-size: 13px; }
.team-rows li:first-child { border-top: 0; }
.team-avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
    border-radius: 50%; background: var(--c, var(--brand)); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.team-info { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.team-info strong { color: var(--ink); font-weight: 600; }
.team-info span { color: var(--muted); font-size: 12px; }
.team-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600;
    background: #ecfdf5; color: #0f9d6b; border-radius: 999px; padding: 3px 9px; }
.team-chip i { font-size: 9px; }
.team-chip-new { background: var(--brand-soft); color: var(--brand-dark); }
.team-foot { display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: var(--brand-soft);
    color: var(--brand-dark); font-family: var(--font-mono); font-size: 11px; line-height: 1.4; }
.team-foot i { flex: none; font-size: 13px; }

/* Révélation au scroll (sections armées par landing.js) */
.anim-armed .reveal-visual, .anim-armed .points-list > li, .anim-armed .ag-bar, .anim-armed .ag-item { opacity: 0; }
.reveal-visual.in-view, .points-list > li.in-view, .ag-bar.in-view, .ag-item.in-view { opacity: 1;
    animation: cardIn .55s cubic-bezier(.2, .7, .3, 1) backwards; }
.ag-item.in-view:nth-child(2) { animation-delay: .15s; }
.ag-item.in-view:nth-child(3) { animation-delay: .3s; }
.points-list > li.in-view:nth-child(1) { animation-delay: .15s; }
.points-list > li.in-view:nth-child(2) { animation-delay: .28s; }
.points-list > li.in-view:nth-child(3) { animation-delay: .41s; }
.points-list > li.in-view:nth-child(4) { animation-delay: .54s; }
.points-list > li.in-view:nth-child(5) { animation-delay: .67s; }
.team-visual.in-view .team-rows li { animation: cardIn .45s cubic-bezier(.2, .7, .3, 1) backwards; }
.team-visual.in-view .team-rows li:nth-child(1) { animation-delay: .2s; }
.team-visual.in-view .team-rows li:nth-child(2) { animation-delay: .34s; }
.team-visual.in-view .team-rows li:nth-child(3) { animation-delay: .48s; }
.team-visual.in-view .team-chip { animation: popIn .35s cubic-bezier(.2, .7, .3, 1) backwards; }
.team-visual.in-view .team-rows li:nth-child(1) .team-chip { animation-delay: .45s; }
.team-visual.in-view .team-rows li:nth-child(2) .team-chip { animation-delay: .59s; }
.team-visual.in-view .team-rows li:nth-child(3) .team-chip { animation-delay: .8s; }
.team-visual.in-view .team-new .team-chip-new { animation: popIn .35s cubic-bezier(.2, .7, .3, 1) .8s backwards,
    flowPulse 2.6s ease-out 1.7s infinite; }
.team-visual.in-view .team-foot { animation: cardIn .5s cubic-bezier(.2, .7, .3, 1) .7s backwards; }
.conf-visual.in-view .reg-rows li { animation: cardIn .45s cubic-bezier(.2, .7, .3, 1) backwards; }
.conf-visual.in-view .reg-rows li:nth-child(1) { animation-delay: .2s; }
.conf-visual.in-view .reg-rows li:nth-child(2) { animation-delay: .34s; }
.conf-visual.in-view .reg-rows li:nth-child(3) { animation-delay: .48s; }
.conf-visual.in-view .reg-rows li:nth-child(4) { animation-delay: .62s; }
.conf-visual.in-view .reg-lock { animation: popIn .35s cubic-bezier(.2, .7, .3, 1) backwards; }
.conf-visual.in-view .reg-rows li:nth-child(1) .reg-lock { animation-delay: .45s; }
.conf-visual.in-view .reg-rows li:nth-child(2) .reg-lock { animation-delay: .59s; }
.conf-visual.in-view .reg-rows li:nth-child(3) .reg-lock { animation-delay: .73s; }
.conf-visual.in-view .reg-rows li:nth-child(4) .reg-lock { animation-delay: .87s; }
.conf-visual.in-view .reg-link { animation: popIn .3s cubic-bezier(.2, .7, .3, 1) backwards; }
.conf-visual.in-view .reg-rows li:nth-child(2) .reg-link { animation-delay: .5s; }
.conf-visual.in-view .reg-rows li:nth-child(3) .reg-link { animation-delay: .64s; }
.conf-visual.in-view .reg-rows li:nth-child(4) .reg-link { animation-delay: .78s; }
.conf-visual.in-view .reg-next .reg-lock-wait { animation: popIn .35s cubic-bezier(.2, .7, .3, 1) .87s backwards,
    flowPulse 2.6s ease-out 1.8s infinite; }
.conf-visual.in-view .reg-anchor { animation: cardIn .5s cubic-bezier(.2, .7, .3, 1) 1s backwards; }

/* Tarifs - align-items par défaut (stretch) : les 3 cartes ont la même hauteur */
/* Bascule mensuel / annuel */
[hidden] { display: none !important; }
.tarif-switch { display: flex; width: fit-content; gap: 4px; margin: 2rem auto 0; padding: 4px; background: #fff;
    border: 1px solid var(--line); border-radius: 999px; }
.tarif-opt { display: inline-flex; align-items: center; gap: .5rem; border: 0; background: none; cursor: pointer;
    font: inherit; font-size: .95rem; font-weight: 600; color: var(--ink-soft); padding: .5rem 1.1rem;
    border-radius: 999px; transition: background .15s, color .15s; }
.tarif-opt:hover { color: var(--ink); }
.tarif-opt.is-on { background: var(--grad); color: #fff; }
.tarif-eco { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
    background: var(--brand-soft); color: var(--brand-dark); white-space: nowrap; }
.tarif-opt.is-on .tarif-eco { background: rgba(255,255,255,.22); color: #fff; }
.plan .price { margin-bottom: .35rem; }
.plan .tarif-note { font-size: 13px; color: var(--muted); margin: 0 0 1.3rem; }

.pricing-grid { margin-top: 2.6rem; max-width: 1000px; margin-left: auto; margin-right: auto; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.9rem; display: flex; flex-direction: column; position: relative; }
.plan-featured { border: 1.5px solid var(--brand); box-shadow: 0 24px 60px -22px rgba(79,124,255,.4); }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff;
    font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 999px; margin: 0; white-space: nowrap; }
.price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--ink); margin: .2rem 0 1.2rem; letter-spacing: -.02em; }
.price span { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--muted); margin-left: .35rem; letter-spacing: 0; }
.plan ul { margin-bottom: 1.5rem; flex: 1; }
.plan ul li { position: relative; padding: .5rem 0 .5rem 1.6rem; color: var(--ink-soft); font-size: .95rem; }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-dark); font-weight: 700; }

/* CTA final */
.cta-final { position: relative; text-align: center; color: #fff; overflow: hidden; background: var(--grad-cta); }
.cta-final::before { content: ""; position: absolute; top: -80px; right: -40px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.12); }
.cta-final .container { position: relative; }
.cta-final h2 { color: #fff; }
.cta-final p { color: #d5deff; font-size: 1.1rem; margin-bottom: 1.8rem; }
.cta-final .btn-primary { background: #fff; color: var(--brand-strong); box-shadow: 0 16px 40px -12px rgba(0,0,0,.3); }
.cta-final .btn-primary:hover { color: var(--brand-strong); filter: none; }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 1.6rem; background: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-inner .muted { max-width: 360px; margin: .3rem 0 0; font-size: 13px; line-height: 1.6; }
.footer-nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.footer-nav a { color: var(--ink-soft); font-size: 14px; }
.footer-legal { margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* Erreur */
.error-page { padding: 6rem 0; }

/* --- Auth & formulaires --- */
.auth-wrap { max-width: 460px; margin: 4rem auto; padding: 0 24px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 2.4rem; }
.auth-card h1 { font-size: 1.7rem; }
.auth-alt { text-align: center; margin: 1.3rem 0 0; font-size: .92rem; color: var(--muted); }
.form { display: flex; flex-direction: column; gap: 1.05rem; margin-top: 1.3rem; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .form-field { flex: 1; min-width: 130px; }
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field > span { font-weight: 600; font-size: .9rem; }
.form-field small { font-weight: 400; color: var(--muted); }
.form-field input, .form-field select, .form-field textarea { font: inherit; font-size: 16px; padding: .72rem .8rem; min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 11px; background: #fff; color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
/* Acceptation des CGV : cible tactile confortable, texte lisible sans être criard. */
.form-check { display: flex; align-items: flex-start; gap: .65rem; font-size: .88rem; color: var(--ink-soft); line-height: 1.5; }
.form-check input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin-top: .12rem; accent-color: var(--brand); }
.form-check a { text-decoration: underline; text-underline-offset: 2px; }
.alert { border-radius: 11px; padding: .9rem 1.1rem; font-size: .92rem; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.alert-ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #0f9d6b; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero { padding: 3.5rem 0 3rem; }
    .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-card { order: -1; }
    .grid-3, .grid-2, .pricing-grid { grid-template-columns: 1fr; }
    .conf-grid { grid-template-columns: 1fr; gap: 2.2rem; }
    .team-grid { grid-template-columns: 1fr; gap: 2.2rem; }
    .team-visual { order: 0; }
    .ag-demo { grid-template-columns: 1fr; max-width: 420px; }
    .band { padding: 3.5rem 0; }
    .nav { gap: .8rem; }
    .nav a:not(.btn) { display: none; }
    /* Boutons du header au gabarit compact : à la taille desktop ils dominent
       le logo et « Essai gratuit » finit sur deux lignes. */
    .nav .btn { padding: .55rem .95rem; font-size: .92rem; border-radius: 10px; }
}
@media (max-width: 520px) {
    .container { padding: 0 16px; }
    .header-inner { height: 60px; }
    .site-header .brand-logo { height: 30px; }
    .nav { gap: .6rem; }
    .nav .btn { padding: .45rem .75rem; font-size: .85rem; }
    .auth-wrap { margin: 1.6rem auto; padding: 0 16px; }
    .auth-card { padding: 1.5rem 1.2rem; }
}

/* ---------- Pages légales (mentions, CGV, confidentialité) ---------- */
.legal { padding: 3.5rem 0 5rem; }
.legal-inner { width: 100%; max-width: 780px; margin: 0 auto; padding: 0 24px; }
.page-legal h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: .35em; }
.legal-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    color: var(--brand-dark); margin: 0 0 .6rem; }
.legal-maj { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin: 0 0 1.6rem; }
.legal-chapo { font-size: 1.08rem; color: var(--ink-2); background: var(--brand-soft);
    border-left: 3px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1.1rem 1.3rem; margin: 0 0 2.4rem; }
.legal h2 { font-size: 1.4rem; margin: 2.6rem 0 .8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal h3 { font-size: 1.06rem; margin: 1.8rem 0 .5rem; color: var(--ink-2); }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 1rem; }
.legal ul li { margin-bottom: .5rem; }
.legal code { font-family: var(--font-mono); font-size: .86em; background: var(--bg-alt);
    padding: .1em .4em; border-radius: var(--radius-xs); color: var(--ink-2); }
.legal a { text-decoration: underline; text-underline-offset: 2px; }

.legal-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2.4rem; }
.legal-nav a { font-size: 14px; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px;
    color: var(--ink-soft); background: #fff; text-decoration: none; }
.legal-nav a:hover { border-color: var(--brand-100); color: var(--brand-dark); opacity: 1; }
.legal-nav a.is-active { background: var(--brand-soft); border-color: var(--brand-100); color: var(--brand-dark); font-weight: 600; }

.legal-id { display: grid; grid-template-columns: 220px 1fr; gap: .1rem 1.5rem; margin: 0 0 1.5rem;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; }
.legal-id dt { font-size: 13px; font-family: var(--font-mono); color: var(--muted); padding: .5rem 0; }
.legal-id dd { margin: 0; padding: .5rem 0; color: var(--ink-2); }

.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 1.6rem; font-size: 15px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: .75rem .9rem;
    border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.legal-table thead th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
    color: var(--muted); background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.legal-table tbody td:first-child { color: var(--ink-2); font-weight: 600; }

/* Valeur d'identité non renseignée : doit sauter aux yeux en relecture. */
mark.a-completer { background: #fef2c0; color: #92400e; font-family: var(--font-mono); font-size: .85em;
    padding: .1em .4em; border-radius: var(--radius-xs); }

@media (max-width: 620px) {
    .legal { padding: 2.2rem 0 3.5rem; }
    .legal-inner { padding: 0 16px; }
    .legal-id { grid-template-columns: 1fr; gap: 0; padding: 1rem 1.1rem; }
    .legal-id dt { padding: .6rem 0 .1rem; }
    .legal-id dd { padding: 0 0 .6rem; border-bottom: 1px solid var(--line-2); }
    .legal-id dd:last-child { border-bottom: 0; }
    /* Tableaux larges : défilement horizontal contenu, la page ne bouge pas. */
    .legal-table { display: block; overflow-x: auto; white-space: nowrap; }
    .legal-table td, .legal-table th { white-space: normal; min-width: 150px; }
}
