/* Prospectio : systeme de design du site et de l'appli, style « Clair »
   (fond blanc, encre bleu nuit, indigo de marque, epingle corail ; tout en Hanken Grotesk, reperes en Spline Sans Mono).
   Clair par defaut, sombre en option. Les noms historiques (--foret, --sur-foret, --corail...) designent maintenant
   les surfaces de marque (indigo) et ce qui est pose dessus (blanc) : les composants n'ont pas eu a changer. */

:root {
  --encre: #0f1530; --indigo: #4f5ff5; --indigo-fort: #3a48d8; --indigo-clair: #8b98ff;
  --degrade-marque: linear-gradient(135deg, #3a48d8 0%, #4f5ff5 48%, #7d8bff 100%);
  --foret: #3a48d8; --foret-2: #4f5ff5; --papier: #ffffff; --corail: #4f5ff5; --corail-fort: #3a48d8; --sauge: #d4d9ff;
  --sur-foret: #ffffff; --sur-foret-2: rgba(255, 255, 255, .86); --sur-foret-3: rgba(255, 255, 255, .68);
  --fond: #ffffff;
  --fond-alt: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f3f5fa;
  --bord: #e8eaf2;
  --bord-fort: #d7dbe8;
  --texte: #0f1530;
  --texte-2: #4b5373;
  --texte-3: #7c839c;
  --acc: #4757f0;
  --acc-fort: #2f3cc9;
  --acc-doux: #eef0ff;
  --acc-texte: #2c38b5;
  --acc-2: #ff6b4a;
  --btn-fond: #0f1530; --btn-fond-hover: #262f5c; --btn-texte: #ffffff;
  --chaud: #e04b2f;
  --chaud-doux: #ffede8;
  --tiede: #b86e00;
  --tiede-doux: #fff3dc;
  --froid: #6b7391;
  --froid-doux: #f0f2f8;
  --ok: #15825a;
  --ok-doux: #e2f6ec;
  --alerte: #a8640a;
  --alerte-doux: #fff3dc;
  --danger: #d03a2c;
  --danger-doux: #fdecea;
  --ombre-1: 0 1px 2px rgba(15, 21, 48, .04), 0 2px 6px rgba(15, 21, 48, .04);
  --ombre-2: 0 16px 36px -12px rgba(15, 21, 48, .18);
  --ombre-3: 0 30px 70px -24px rgba(15, 21, 48, .40);
  --rayon: 16px;
  --rayon-petit: 10px;
  --police: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --police-titre: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --police-mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --topo: none;
  --points: radial-gradient(rgba(255, 255, 255, .2) 1px, transparent 1.5px) 0 0 / 22px 22px;
  color-scheme: light;
}

/* sombre seulement sur demande (bouton « Theme ») : le site reste blanc, meme si l'ordinateur est en mode sombre */
:root[data-theme="dark"] {
    --fond: #0b1020; --fond-alt: #0e1429; --surface: #121a33; --surface-2: #19223f; --bord: #253056; --bord-fort: #33406d;
    --texte: #eef0ff; --texte-2: #b9bfdc; --texte-3: #8b92b5;
    --acc: #95a1ff; --acc-fort: #b3bcff; --acc-doux: #1d2550; --acc-texte: #cdd3ff; --acc-2: #ff8a6f;
    --btn-fond: #eef0ff; --btn-fond-hover: #ffffff; --btn-texte: #0f1530;
    --chaud: #ff8f75; --chaud-doux: #3a1d17; --tiede: #f2b75a; --tiede-doux: #33270f;
    --froid: #9aa2c2; --froid-doux: #1a2140; --ok: #5fd39d; --ok-doux: #10301f;
    --alerte: #f2b75a; --alerte-doux: #33270f; --danger: #ff8a7d; --danger-doux: #3a1a17;
    --ombre-1: 0 1px 2px rgba(0, 0, 0, .35); --ombre-2: 0 16px 36px -12px rgba(0, 0, 0, .55); --ombre-3: 0 30px 70px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--texte); font: 15px/1.55 var(--police);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1, h2 { font-family: var(--police-titre); font-weight: 800; letter-spacing: -.03em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.015em; }
.mono { font-family: var(--police-mono); }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--acc) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
.ic { flex: none; display: inline-block; vertical-align: middle; }
.muted { color: var(--texte-3); }
.texte-2 { color: var(--texte-2); }
.petit { font-size: 13px; }
.gras { font-weight: 700; }
.centre { text-align: center; }
.cache { display: none !important; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--bord); margin: 20px 0; }

.conteneur { width: min(1180px, 100% - 40px); margin-inline: auto; }
.rangee { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.entre { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pile { display: grid; gap: 12px; }
.pile-grande { display: grid; gap: 22px; }
.grille-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grille-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grille-2, .grille-3 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ boutons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: var(--rayon-petit); border: 1px solid transparent; font: 600 14px/1 var(--police);
  cursor: pointer; text-decoration: none !important; white-space: nowrap; user-select: none;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .06s;
}
.btn:active { transform: translateY(1px); }
.btn-primaire { background: var(--btn-fond); color: var(--btn-texte); }
.btn-primaire:hover { background: var(--btn-fond-hover); }
.btn-cta { background: var(--btn-fond); color: var(--btn-texte); }
.btn-cta:hover { background: var(--btn-fond-hover); }
.btn-secondaire { background: var(--surface); color: var(--texte); border-color: var(--bord-fort); }
.btn-secondaire:hover { background: var(--surface-2); }
.btn-fantome { background: transparent; color: var(--texte-2); }
.btn-fantome:hover { background: var(--surface-2); color: var(--texte); }
.btn-chaud { background: var(--chaud); color: #fff; }
.btn-chaud:hover { filter: brightness(.95); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--bord)); }
.btn-petit { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; gap: 6px; }
.btn-grand { height: 52px; padding: 0 26px; font-size: 15.5px; border-radius: 999px; }
.btn-bloc { width: 100%; }
.btn-icone { width: 36px; padding: 0; }
.btn[disabled], .btn.desactive { opacity: .5; pointer-events: none; }
.cout {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; background: color-mix(in srgb, currentColor 18%, transparent);
}
.btn-secondaire .cout, .btn-fantome .cout { background: var(--acc-doux); color: var(--acc-texte); }

/* ------------------------------------------------------------------ formulaires */

.champ { display: grid; gap: 6px; margin-bottom: 14px; }
.champ > label, .etiquette { font-weight: 600; font-size: 13.5px; color: var(--texte); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=search], input[type=number],
input[type=tel], input[type=url], input[type=date], select, textarea {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--bord-fort); border-radius: var(--rayon-petit);
  background: var(--surface); color: var(--texte); font: 15px var(--police); transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 20%, transparent);
}
.aide { font-size: 12.5px; color: var(--texte-3); }
.message-erreur {
  background: var(--danger-doux); color: var(--danger); border-radius: var(--rayon-petit); padding: 10px 12px;
  font-size: 14px; margin-bottom: 14px; border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent);
}
.message-info {
  background: var(--acc-doux); color: var(--acc-texte); border-radius: var(--rayon-petit); padding: 10px 12px;
  font-size: 14px; margin-bottom: 14px;
}
.case { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--texte-2); cursor: pointer; }
input[type=checkbox], input[type=radio] { width: 17px; height: 17px; accent-color: var(--acc); margin: 2px 0 0; flex: none; }

/* ------------------------------------------------------------------ cartes, pastilles, badges */

.carte { background: var(--surface); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre-1); }
.carte-corps { padding: 20px; }
.carte-titre { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--bord); }
.carte-titre h2, .carte-titre h3 { margin: 0; font-size: 15px; }

.pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.pastille {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px;
  border-radius: 999px; border: 1px solid var(--bord-fort); background: var(--surface); color: var(--texte-2);
  font: 500 13.5px var(--police); cursor: pointer; user-select: none; transition: all .15s;
}
.pastille:hover { border-color: var(--acc); color: var(--texte); }
.pastille input { position: absolute; opacity: 0; pointer-events: none; }
.pastille:has(input:checked), .pastille.active { background: var(--acc-doux); border-color: var(--acc); color: var(--acc-texte); }
.pastille:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--acc) 45%, transparent); }

.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px;
  font: 600 12px/1 var(--police); background: var(--surface-2); color: var(--texte-2); white-space: nowrap;
}
.badge-chaud { background: var(--chaud-doux); color: var(--chaud); }
.badge-tiede { background: var(--tiede-doux); color: var(--tiede); }
.badge-froid { background: var(--froid-doux); color: var(--froid); }
.badge-ok { background: var(--ok-doux); color: var(--ok); }
.badge-alerte { background: var(--alerte-doux); color: var(--alerte); }
.badge-danger { background: var(--danger-doux); color: var(--danger); }
.badge-acc { background: var(--acc-doux); color: var(--acc-texte); }

.score {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none;
  font: 800 21px/1 var(--police-titre); background: var(--froid-doux); color: var(--froid);
}
.score-chaud { background: var(--chaud-doux); color: var(--chaud); }
.score-tiede { background: var(--tiede-doux); color: var(--tiede); }
.etoiles { color: #f5a524; font-weight: 700; white-space: nowrap; }

/* texte remplace (jamais le vrai : le serveur n'envoie rien) */
.masque { color: var(--texte-3); letter-spacing: .08em; }

/* ------------------------------------------------------------------ site public */

.entete-site {
  position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--bord);
  background: color-mix(in srgb, var(--fond) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px);
}
.entete-site .conteneur { display: flex; align-items: center; gap: 22px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 800 21px/1 var(--police-titre); color: var(--texte); text-decoration: none !important; letter-spacing: -.035em; }
.logo-marque { width: 19px; height: 25px; flex: none; }
.nav-site { display: flex; gap: 2px; margin-left: 12px; }
.nav-site a { padding: 8px 12px; border-radius: 8px; color: var(--texte-2); font-weight: 500; font-size: 14.5px; text-decoration: none; }
.nav-site a:hover, .nav-site a.actif { color: var(--texte); background: var(--surface-2); }
.actions-site { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.burger { display: none; }
@media (max-width: 860px) {
  .nav-site { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: 10px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--bord); box-shadow: var(--ombre-2); }
  .nav-site.ouvert { display: flex; }
  .burger { display: inline-flex; }
  .actions-site .btn-fantome { display: none; }
}

.hero {
  padding: 76px 0 112px; position: relative; overflow: hidden; overflow: clip; isolation: isolate; color: #fff;
  background:
    radial-gradient(900px 480px at 88% -12%, rgba(255, 138, 108, .40), transparent 62%),
    radial-gradient(1000px 560px at 8% -6%, rgba(255, 255, 255, .30), transparent 60%),
    linear-gradient(180deg, #4656f2 0%, #6b7cfa 55%, #95a3ff 100%);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--points);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 28%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 28%, #000 15%, transparent 72%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 680px; height: 680px; left: 50%; top: 30%; margin-left: -340px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .30), transparent 64%); pointer-events: none;
  animation: derive 16s ease-in-out infinite alternate; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.045em;
  margin: 20px 0 20px; max-width: 940px; }
.hero h1 .degrade { color: var(--encre); font-style: normal; }
.hero .chapeau { color: rgba(255, 255, 255, .92); }
.hero .preuves, .hero .hero-chiffres { color: rgba(255, 255, 255, .92); }
.hero .preuves .ic, .hero .hero-chiffres .ic { color: #fff; }
.hero .surtitre { color: rgba(255, 255, 255, .8); }
.hero a:not(.btn) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero-actions .btn-primaire { background: var(--encre); color: #fff; box-shadow: 0 14px 28px -12px rgba(15, 21, 48, .7); }
.hero-actions .btn-primaire:hover { background: #1d2552; }
.hero-actions .btn-secondaire { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-actions .btn-secondaire:hover { background: rgba(255, 255, 255, .26); }
.demo-fenetre { color: var(--texte); }
.hero-grille { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.surtitre {
  display: inline-flex; align-items: center; gap: 8px; color: var(--acc); font: 600 12px var(--police-mono);
  text-transform: uppercase; letter-spacing: .1em;
}
.chapeau { font-size: 1.18rem; line-height: 1.6; color: var(--texte-2); max-width: 600px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 18px; }
.preuves { display: flex; gap: 8px 20px; flex-wrap: wrap; color: var(--texte-2); font-size: 14px; }
.preuves span { display: inline-flex; gap: 6px; align-items: center; }
.preuves .ic { color: var(--ok); }
@media (max-width: 900px) { .hero { padding: 44px 0 88px; } .hero-grille { grid-template-columns: 1fr; gap: 32px; } }

/* apercu de l'appli dans le hero */
.apercu { background: var(--surface); border: 1px solid var(--bord); border-radius: 18px; box-shadow: var(--ombre-3); overflow: hidden; }
.apercu-barre { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--bord); background: var(--surface-2); }
.apercu-barre i { width: 10px; height: 10px; border-radius: 50%; background: var(--bord-fort); display: block; }
.apercu-barre .recherche { margin-left: 10px; flex: 1; height: 28px; border-radius: 8px; background: var(--surface); border: 1px solid var(--bord); font-size: 12.5px; color: var(--texte-3); display: flex; align-items: center; padding: 0 10px; gap: 6px; }
.apercu-corps { padding: 14px; display: grid; gap: 10px; }

.section { padding: 96px 0; }
.section-alt { background: var(--fond-alt); }
.section-titre { text-align: center; max-width: 780px; margin: 0 auto 52px; display: grid; justify-items: center; gap: 4px; }
.section-titre h2 { font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -.04em; line-height: 1.06; margin: 10px 0 14px; }
.section-titre p { color: var(--texte-2); font-size: 1.1rem; margin: 0; }
@media (max-width: 700px) { .section { padding: 60px 0; } }

.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.etape { padding: 28px; position: relative; }
.etape-num { position: absolute; top: 22px; right: 24px; font: 600 13px var(--police-mono); color: var(--texte-3); letter-spacing: .06em; }
.etape p { color: var(--texte-2); margin: 0; }
@media (max-width: 900px) { .etapes { grid-template-columns: 1fr; } }

.fonctions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fonction { padding: 24px; }
.fonction-icone { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-doux); color: var(--acc); margin-bottom: 14px; }
.fonction p { color: var(--texte-2); margin: 0; font-size: 14.5px; }
.fonction .exclusif { margin-top: 12px; }
@media (max-width: 900px) { .fonctions { grid-template-columns: 1fr; } }

.comparatif { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.comparatif th, .comparatif td { padding: 13px 14px; border-bottom: 1px solid var(--bord); text-align: center; }
.comparatif th:first-child, .comparatif td:first-child { text-align: left; }
.comparatif thead th { font-size: 13px; color: var(--texte-3); font-weight: 600; }
.comparatif .nous { background: var(--acc-doux); color: var(--acc-texte); font-weight: 700; }
.oui { color: var(--ok); font-weight: 700; }
.non { color: var(--texte-3); }

/* tarifs */
.bascule { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--bord); gap: 4px; }
.bascule button { border: 0; background: transparent; height: 34px; padding: 0 16px; border-radius: 999px; font: 600 13.5px var(--police); color: var(--texte-2); cursor: pointer; }
.bascule button.actif { background: var(--surface); color: var(--texte); box-shadow: var(--ombre-1); }
.tarifs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.tarif { padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.tarif-conseille { border: 2px solid var(--acc); box-shadow: var(--ombre-2); }
.tarif-ruban { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.tarif h3 { margin: 0; font-size: 17px; }
.tarif .accroche { color: var(--texte-2); font-size: 14px; margin: 0; min-height: 42px; }
.prix { display: flex; align-items: baseline; gap: 4px; }
.prix strong { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.prix span { color: var(--texte-3); font-size: 14px; }
.tarif ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 14px; color: var(--texte-2); }
.tarif li { display: flex; gap: 8px; align-items: flex-start; }
.tarif li .ic { color: var(--ok); margin-top: 2px; }
.tarif .btn { margin-top: auto; }
@media (max-width: 1050px) { .tarifs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tarifs { grid-template-columns: 1fr; } }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--bord); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-weight: 600; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--texte-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--texte-2); margin: 0 0 16px; }

.cta-final {
  border-radius: 28px; padding: 72px 32px; text-align: center; color: #fff; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(700px 360px at 85% 0%, rgba(255, 138, 108, .35), transparent 60%), var(--degrade-marque);
  box-shadow: var(--ombre-3);
}
.cta-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--points);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); }
.cta-final h2 { color: #fff; font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 800; letter-spacing: -.04em; max-width: 760px; margin: 0 auto 14px; }
.cta-final p { color: var(--sur-foret-2); font-size: 1.05rem; }
.cta-final .btn-secondaire { background: #fff; color: var(--encre); border-color: #fff; box-shadow: 0 14px 28px -12px rgba(15, 21, 48, .6); }
.cta-final .btn-secondaire:hover { background: #eef0ff; }

.pied-site { border-top: 1px solid var(--bord); padding: 44px 0 36px; color: var(--texte-3); font-size: 14px; margin-top: 40px; }
.pied-grille { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.pied-grille h4 { font-size: 13px; color: var(--texte); margin-bottom: 10px; }
.pied-grille a { display: block; color: var(--texte-3); padding: 3px 0; }
@media (max-width: 760px) { .pied-grille { grid-template-columns: 1fr 1fr; } }

.page-texte { max-width: 760px; margin: 0 auto; padding: 56px 0; }
.page-texte h1 { font-size: 2rem; }
.page-texte h2 { font-size: 1.25rem; margin-top: 1.6em; }
.page-texte p, .page-texte li { color: var(--texte-2); }

/* pages de connexion */
.auth { min-height: calc(100dvh - 69px); display: grid; place-items: center; padding: 40px 16px; }
.auth-carte { width: min(440px, 100%); padding: 32px; border-radius: 20px; }
.auth-carte h1 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-carte .sous-titre { color: var(--texte-2); margin-bottom: 22px; }
.auth-pied { text-align: center; margin-top: 18px; font-size: 14px; color: var(--texte-2); }
.cadeau { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--ok-doux); color: var(--ok); font-size: 14px; font-weight: 600; margin-bottom: 18px; }

/* ------------------------------------------------------------------ appli */

.appli { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100dvh; }
.appli { background: var(--fond-alt); }
.barre-laterale {
  position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 2px; padding: 20px 14px;
  background: var(--surface); color: var(--texte); overflow-y: auto; border-right: 1px solid var(--bord);
}
.barre-laterale .nav-appli a.actif { background: var(--acc-doux); color: var(--acc-texte); box-shadow: inset 3px 0 0 var(--acc); }
.barre-laterale .nav-appli a.actif .ic { color: var(--acc); }
.barre-laterale .carte-formule { background: var(--fond-alt); border: 1px solid var(--bord); }
.barre-laterale .carte-formule a { color: var(--acc); }
.barre-laterale .logo { padding: 2px 8px 20px; }
.nav-appli { display: grid; gap: 2px; }
.nav-appli a, .nav-appli button {
  display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 12px; border-radius: 10px; width: 100%;
  color: var(--texte-2); font: 500 14.5px var(--police); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left;
}
.nav-appli a:hover, .nav-appli button:hover { background: var(--surface-2); color: var(--texte); text-decoration: none; }
.nav-appli a.actif { background: var(--acc-doux); color: var(--acc-texte); font-weight: 600; }
.nav-appli .compte-nav { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--texte-3); }
.nav-sep { height: 1px; background: var(--bord); margin: 12px 6px; }
.bas-lateral { margin-top: auto; display: grid; gap: 10px; }
.carte-formule { padding: 14px; border-radius: 12px; background: var(--surface-2); font-size: 13px; color: var(--texte-2); }
.carte-formule strong { color: var(--texte); }
.jauge { height: 6px; border-radius: 99px; background: var(--bord); overflow: hidden; margin: 8px 0; }
.jauge i { display: block; height: 100%; border-radius: 99px; background: var(--corail); }

.principal { min-width: 0; display: flex; flex-direction: column; }
.entete-appli {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 28px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--bord);
}
.entete-appli h1 { font-size: 20px; margin: 0; letter-spacing: -.03em; }
.entete-appli .droite { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.compteur {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 5px 0 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--bord-fort); font-weight: 700; font-size: 14px; color: var(--texte);
}
.compteur .ic { color: var(--acc); }
.compteur.bas { border-color: var(--chaud); }
.compteur .btn { height: 26px; padding: 0 10px; font-size: 12px; border-radius: 999px; }
.contenu { padding: 28px; width: 100%; max-width: 1280px; }
.titre-page { margin-bottom: 22px; }
.titre-page h1 { margin: 0 0 4px; font-size: 1.6rem; }
.titre-page p { margin: 0; color: var(--texte-2); }

.nav-mobile { display: none; }
@media (max-width: 900px) {
  .appli { grid-template-columns: 1fr; }
  .barre-laterale { display: none; }
  .nav-mobile {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; background: var(--surface);
    border-top: 1px solid var(--bord); padding-bottom: env(safe-area-inset-bottom);
  }
  .nav-mobile a { flex: 1; height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--texte-3); text-decoration: none; }
  .nav-mobile a.actif { color: var(--acc); }
  .entete-appli { padding: 0 16px; }
  .entete-appli .logo-mobile { display: inline-flex; }
  .contenu { padding: 18px 16px 96px; }
}
.logo-mobile { display: none; }

.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.tuile { padding: 18px; }
.tuile .libelle { color: var(--texte-3); font-size: 13px; font-weight: 500; display: flex; gap: 6px; align-items: center; }
.tuile .valeur { font: 800 32px/1.15 var(--police-titre); letter-spacing: -.01em; margin-top: 4px; }
.tuile .detail { font-size: 13px; color: var(--texte-2); }

/* recherche et liste de prospects */
.barre-recherche { padding: 16px; display: grid; gap: 14px; }
.ligne-recherche { display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr) auto; gap: 10px; }
@media (max-width: 760px) { .ligne-recherche { grid-template-columns: 1fr; } }
.resultats-entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 10px; flex-wrap: wrap; }
.liste { display: grid; gap: 10px; }
.prospect {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 16px;
  cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.prospect:hover { border-color: var(--bord-fort); box-shadow: var(--ombre-2); }
.prospect.selectionne { border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 15%, transparent); }
.prospect-titre { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.prospect-sous { color: var(--texte-2); font-size: 13.5px; margin-top: 2px; }
.prospect-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.prospect-droite { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.prospect .verrou { color: var(--texte-3); }
.case-selection { display: flex; align-items: center; }
@media (max-width: 640px) {
  .prospect { grid-template-columns: auto minmax(0, 1fr); }
  .prospect-droite { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}
.barre-selection {
  position: sticky; bottom: 16px; z-index: 15; margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px 12px 18px; border-radius: 14px; background: var(--texte); color: var(--fond); box-shadow: var(--ombre-3);
}
@media (max-width: 900px) { .barre-selection { bottom: 76px; } }
.plus { display: flex; justify-content: center; margin-top: 16px; }

/* panneau lateral (fiche prospect) */
.voile { position: fixed; inset: 0; background: rgba(10, 14, 30, .38); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 55; }
.voile.ouvert { opacity: 1; pointer-events: auto; }
.panneau {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(580px, 100vw); background: var(--surface);
  box-shadow: var(--ombre-3); transform: translateX(104%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); z-index: 60;
  display: flex; flex-direction: column;
}
.panneau.ouvert { transform: none; }
#panneau-contenu { display: flex; flex-direction: column; flex: 1; min-height: 0; }   /* la fiche defile, l'en-tete reste */
.panneau-entete { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--bord); }
.panneau-corps { overflow-y: auto; overscroll-behavior: contain; padding: 20px 20px 40px; flex: 1; min-height: 0; display: grid; gap: 18px; align-content: start; }
.panneau-pied { padding: 14px 18px; border-top: 1px solid var(--bord); display: flex; gap: 10px; background: var(--surface); }
.bloc h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--texte-3); margin-bottom: 10px; }
.infos { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; }
.infos dt { color: var(--texte-3); }
.infos dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.arguments { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.arguments li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.arguments li .ic { color: var(--acc); margin-top: 2px; }
.criteres { display: grid; gap: 8px; }
.critere { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; }
.critere .jauge { grid-column: 1 / -1; margin: 0; }
.mur-deblocage {
  border-radius: 14px; padding: 18px; text-align: center; display: grid; gap: 10px; justify-items: center;
  background: linear-gradient(180deg, var(--acc-doux), transparent); border: 1px dashed color-mix(in srgb, var(--acc) 45%, transparent);
}
.contact-masque { display: grid; gap: 6px; font-size: 14px; }
.contact-masque div { display: flex; gap: 8px; align-items: center; color: var(--texte-3); }

/* statuts du suivi */
.statuts { display: flex; gap: 6px; flex-wrap: wrap; }
.colonnes-suivi { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.colonne { background: var(--surface-2); border-radius: var(--rayon); padding: 12px; display: grid; gap: 8px; align-content: start; min-height: 160px; }
.colonne h3 { font-size: 13px; display: flex; justify-content: space-between; margin: 2px 4px 6px; }
.carte-suivi { padding: 12px; font-size: 13.5px; cursor: pointer; }
.carte-suivi strong { display: block; font-size: 14px; }

/* tableaux */
.tableau { width: 100%; border-collapse: collapse; font-size: 14px; }
.tableau th { text-align: left; font-size: 12.5px; color: var(--texte-3); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--bord); }
.tableau td { padding: 12px 14px; border-bottom: 1px solid var(--bord); vertical-align: middle; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau-defile { overflow-x: auto; }

/* etats vides, chargement, notifications */
.vide { text-align: center; padding: 52px 20px; color: var(--texte-2); display: grid; justify-items: center; gap: 10px; }
.vide .ic { color: var(--texte-3); }
.vide h3 { margin: 0; color: var(--texte); }
.vide p { margin: 0; max-width: 440px; }
.squelette {
  border-radius: 10px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--bord) 37%, var(--surface-2) 63%);
  background-size: 400% 100%; animation: brille 1.3s ease infinite;
}
@keyframes brille { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.htmx-indicator { opacity: 0; transition: opacity .2s; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }
.chargement-liste.htmx-request { opacity: .55; transition: opacity .2s; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: tourne .7s linear infinite; display: inline-block; }
@keyframes tourne { to { transform: rotate(360deg); } }

#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--texte); color: var(--fond); padding: 12px 16px; border-radius: 12px; box-shadow: var(--ombre-3); font-weight: 500; font-size: 14px; animation: entree .25s ease; }
.toast-erreur { background: var(--danger); color: #fff; }
.toast-succes { background: var(--ok); color: #fff; }
@keyframes entree { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { #toasts { bottom: 84px; } }

/* fenetre modale (plus de credits, confirmations) */
.modale-fond { position: fixed; inset: 0; z-index: 80; background: rgba(10, 14, 30, .45); display: grid; place-items: center; padding: 16px; animation: entree .2s ease; }
.modale { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; border-radius: 20px; padding: 28px; }
.mini-tarifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.mini-tarif { border: 1px solid var(--bord); border-radius: 12px; padding: 14px; text-align: center; }
.mini-tarif.conseille { border: 2px solid var(--acc); }
.mini-tarif strong { display: block; font-size: 22px; }
@media (max-width: 520px) { .mini-tarifs { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ telephone : en-tete compact, filtres sur une ligne */
@media (max-width: 760px) {
  .entete-appli { gap: 10px; min-height: 56px; }
  .entete-appli h1 { font-size: 16px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .compteur { padding: 0 12px; }
  .compteur .muted, .compteur .btn, .entete-appli .droite > .btn-icone { display: none; }
  .barre-recherche { padding: 12px; gap: 10px; }
  .barre-recherche .aide { display: none; }
  .ligne-recherche { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ligne-recherche > div:last-child { grid-column: 1 / -1; }
  .barre-recherche .pastilles { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 4px; scrollbar-width: none; }
  .barre-recherche .pastilles::-webkit-scrollbar { display: none; }
  .pastille { flex: none; }
  .etiquette { font-size: 12.5px; }
  .resultats-entete { margin-top: 14px; }
  .prospect { padding: 12px; gap: 12px; }
  .score { width: 40px; height: 40px; font-size: 18px; border-radius: 11px; }
}

/* ------------------------------------------------------------------ choix d'une ville */
.champ-ville { position: relative; }
.suggestions { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 25; }
.suggestions-liste { list-style: none; margin: 0; padding: 6px; max-height: 330px; overflow: auto; box-shadow: var(--ombre-3); }
.suggestions-liste button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 10px;
  border: 0; background: none; border-radius: 8px; color: var(--texte); font: 14px var(--police); cursor: pointer; text-align: left;
}
.suggestions-liste button:hover, .suggestions-liste button:focus-visible { background: var(--surface-2); outline: none; }
@media (max-width: 760px) { .ligne-recherche > .champ-ville { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ alertes */
.cloche { position: relative; }
.pastille-nb { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px;
  background: var(--chaud); color: #fff; font: 700 10.5px/17px var(--police); text-align: center; }

/* ------------------------------------------------------------------ carte interactive */
.carte-page { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.carte-panneau { max-height: calc(100dvh - 120px); overflow-y: auto; }
.carte-zone { height: calc(100dvh - 120px); min-height: 460px; overflow: hidden; padding: 0; position: relative; }

/* filtres et bouton « chercher dans cette zone » poses sur la carte, comme sur Google Maps */
.carte-filtres { position: absolute; z-index: 500; top: 12px; left: 12px; right: 12px; display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; pointer-events: none; }
.carte-filtres::-webkit-scrollbar { display: none; }
.carte-filtres > * { pointer-events: auto; flex: none; box-shadow: var(--ombre-2); }
.carte-filtres select { width: auto; max-width: 210px; height: 34px; padding-top: 0; padding-bottom: 0; border-radius: 999px;
  font-size: 13.5px; background-color: var(--surface); }
.zone-bouton { position: absolute; z-index: 500; top: 62px; left: 50%; transform: translateX(-50%); border-radius: 999px;
  box-shadow: var(--ombre-3); white-space: nowrap; }
.zone-bouton[hidden] { display: none; }
.zone-bouton .spinner { display: none; width: 14px; height: 14px; }
.zone-bouton.htmx-request .spinner { display: inline-block; }
.zone-entete { display: grid; gap: 2px; }
.zone-liste { display: grid; gap: 2px; margin: 0 -8px; }
.zone-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: 12px;
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .15s; }
.zone-item:hover, .zone-item.actif { background: var(--surface-2); }
.zone-item.actif { box-shadow: inset 3px 0 0 var(--acc); }
.zone-item .score { width: 38px; height: 38px; font-size: 14px; border-radius: 10px; }
.zone-texte { display: grid; gap: 1px; min-width: 0; font-size: 12.5px; }
.zone-texte strong { font-size: 14px; }
.zone-texte > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zone-cadenas { margin-left: auto; flex: none; display: inline-flex; color: var(--texte-3); }
.zone-analyse { padding-top: 14px; border-top: 1px solid var(--bord); }
.carte-avance summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--texte-2); }
.carte-avance[open] summary { color: var(--texte); }
#carte { width: 100%; height: 100%; border-radius: var(--rayon); }
.legende { display: grid; gap: 6px; color: var(--texte-2); }
.legende .point { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; }
.legende .anneau { background: transparent; border: 2px dashed var(--froid); }
.leaflet-popup-content { font: 13.5px/1.45 var(--police); }
.popup-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.popup-actions .btn { height: 28px; font-size: 12.5px; }
.leaflet-container a.btn-primaire { color: #fff; }
:root[data-theme="dark"] .leaflet-tile { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); }
@media (max-width: 900px) {
  .carte-page { grid-template-columns: 1fr; }
  .carte-panneau { max-height: none; }
  .carte-zone { height: 62dvh; min-height: 360px; order: -1; }
  .zone-bouton { top: 58px; }
}

/* ------------------------------------------------------------------ envoi WhatsApp */
.btn-whatsapp { background: #25d366; color: #0b3d1f; border-color: transparent; }
.btn-whatsapp:hover { background: #1fbe5b; color: #0b3d1f; }
.message-succes { background: var(--ok-doux); color: var(--ok); border-radius: var(--rayon-petit); padding: 10px 12px; font-size: 14px; }

/* ------------------------------------------------------------------ accueil : chiffres, demo animee, comparatif */
.hero-chiffres { margin: 18px 0 0; color: var(--texte-2); font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.hero-chiffres .ic { color: var(--acc); margin-top: 2px; flex: none; }

.demo { min-width: 0; }
.demo-fenetre { position: relative; }
.demo-solde { margin-left: 8px; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px;
  background: var(--acc-doux); color: var(--acc-texte); font: 700 12px var(--police); flex: none; }
.demo-curseur { display: inline-block; width: 1.5px; height: 13px; margin-left: 1px; background: var(--acc); opacity: 0; vertical-align: -2px; }
.demo.e-saisie .demo-curseur { opacity: 1; animation: demo-clignote 1s steps(1) infinite; }
.demo-ecran { position: relative; height: 352px; overflow: hidden; background: var(--fond-alt); }
.demo-fictif { position: absolute; right: 12px; bottom: 8px; z-index: 3; font-size: 10.5px; color: var(--texte-3); letter-spacing: .02em; }
.demo-scene { position: absolute; inset: 14px; display: grid; align-content: start; gap: 10px; opacity: 0; transform: translateY(12px);
  transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.demo[data-etape="1"] .demo-liste, .demo[data-etape="2"] .demo-liste, .demo[data-etape="3"] .demo-maquette,
.demo[data-etape="4"] .demo-envoi, .demo[data-etape="5"] .demo-envoi, .demo[data-etape="6"] .demo-signe { opacity: 1; transform: none; }
.demo-sous { display: block; color: var(--texte-3); font-size: 12px; }

/* liste */
.demo-filtres { display: flex; gap: 6px; flex-wrap: wrap; }
.demo-pastille { height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; font: 500 12px var(--police);
  border: 1px solid var(--bord-fort); background: var(--surface); color: var(--texte-2); transition: all .3s ease; }
.demo.e-resultats .demo-pastille:not(.demo-pastille-off) { background: var(--acc-doux); border-color: var(--acc); color: var(--acc-texte); }
.demo-ligne { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--bord); box-shadow: var(--ombre-1); opacity: 0; transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease, border-color .3s, box-shadow .3s; }
.demo.e-resultats .demo-ligne { opacity: 1; transform: none; }
.demo.e-resultats .demo-l2 { transition-delay: .12s; }
.demo.e-resultats .demo-l3 { transition-delay: .24s; }
.demo-ligne .score { width: 40px; height: 40px; font-size: 15px; border-radius: 11px; }
.demo-texte { min-width: 0; flex: 1; display: grid; gap: 1px; }
.demo-texte strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-texte strong .ic { color: var(--texte-3); vertical-align: -1px; }
.demo-action { flex: none; display: inline-flex; }
.demo-action .btn { pointer-events: none; }
.demo-revele, .demo-ok { display: none; }
.demo.e-debloque .demo-bouton { display: none; }
.demo.e-debloque .demo-l1 .demo-revele { display: inline; }
.demo.e-debloque .demo-l1 .demo-contact { display: block; font-size: 12px; color: var(--ok); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo.e-debloque .demo-ok { display: inline-flex; }
.demo.e-debloque .demo-l1 { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-doux), var(--ombre-1); }

/* maquette */
.demo-fiche-titre { display: flex; align-items: center; gap: 10px; }
.demo-fiche-titre .score { width: 38px; height: 38px; font-size: 14px; border-radius: 10px; }
.demo-fiche-titre strong { font-size: 15px; }
.demo-fiche-titre .demo-sous { color: var(--ok); font-weight: 600; }
.demo-fiche-titre .demo-sous .ic { vertical-align: -2px; }
.demo-lancer { justify-self: start; pointer-events: none; }
.demo.e-redaction .demo-lancer { display: none; }
.demo-redaction { display: none; gap: 8px; padding: 12px; border-radius: 12px; background: var(--acc-doux); color: var(--acc-texte); font-size: 12.5px; font-weight: 600; }
.demo.e-redaction .demo-redaction { display: grid; }
.demo-redaction .ic { vertical-align: -2px; }
.demo-barre { height: 6px; border-radius: 99px; background: color-mix(in srgb, var(--acc) 18%, transparent); overflow: hidden; }
.demo-barre i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--corail); }
.demo.e-redaction .demo-barre i { animation: demo-remplit 1.9s ease-in-out forwards; }
.demo.e-redige .demo-redaction { display: none; }
.mini-site { border-radius: 12px; overflow: hidden; border: 1px solid var(--bord); box-shadow: var(--ombre-2); background: #fff; color: #1e293b;
  opacity: 0; transform: scale(.96); transform-origin: top center; transition: opacity .5s ease, transform .5s ease; }
.demo.e-redige .mini-site { opacity: 1; transform: none; }
.mini-nav { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-size: 11px; color: #64748b; border-bottom: 1px solid #e2e8f0; }
.mini-nav b { color: #0f172a; font-size: 12px; }
.mini-hero { display: grid; gap: 5px; justify-items: start; padding: 16px 14px; color: #fff;
  background: linear-gradient(120deg, rgba(15, 23, 42, .92), rgba(30, 41, 59, .78)), linear-gradient(45deg, #475569, #0f172a); }
.mini-sur { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #fdba74; font-weight: 700; }
.mini-hero strong { font-size: 17px; line-height: 1.2; letter-spacing: -.01em; }
.mini-note { font-size: 11.5px; color: #fde68a; }
.mini-bouton { margin-top: 4px; padding: 6px 12px; border-radius: 8px; background: #ea580c; color: #fff; font-size: 11.5px; font-weight: 700; }
.mini-services { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 12px; background: #f8fafc; }
.mini-services span { font-size: 10.5px; padding: 4px 8px; border-radius: 6px; background: #fff; border: 1px solid #e2e8f0; color: #334155; }

/* envoi et alerte */
.demo-canaux { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.demo-canaux .btn { pointer-events: none; }
.demo-canaux .demo-sous { margin-left: 4px; }
.demo-tel { border-radius: 16px; border: 1px solid var(--bord); background: var(--surface); overflow: hidden; box-shadow: var(--ombre-1); }
.demo-tel-entete { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--bord); font-size: 13px; }
.demo-tel-entete small { display: block; color: var(--texte-3); font-size: 11px; }
.demo-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--texte-2); font: 700 11px var(--police); }
.demo-fil { min-height: 150px; padding: 12px; background: var(--surface-2); display: flex; justify-content: flex-end; align-items: flex-start; }
.demo-bulle { max-width: 86%; padding: 9px 11px; border-radius: 12px 12px 3px 12px; font-size: 12.5px; line-height: 1.45; color: var(--texte);
  background: color-mix(in srgb, var(--ok) 15%, var(--surface)); opacity: 0; transform: translateY(14px) scale(.98);
  transition: opacity .4s ease, transform .4s ease; }
.demo.e-envoye .demo-bulle { opacity: 1; transform: none; }
.demo-lien { display: block; margin: 7px 0 4px; padding: 7px 9px; border-radius: 8px; background: var(--surface); border-left: 3px solid var(--ok); }
.demo-lien b { display: block; font-size: 12px; }
.demo-lien small { color: var(--texte-3); font-size: 11px; }
.demo-coches { display: block; text-align: right; font-size: 10.5px; color: var(--acc); }
.demo-alerte { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 11px 12px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--chaud); box-shadow: var(--ombre-3);
  opacity: 0; transform: translateY(-16px); transition: opacity .4s ease, transform .45s cubic-bezier(.2, .9, .3, 1.2); }
.demo.e-ouvert .demo-alerte { opacity: 1; transform: none; }
.demo-alerte b { display: block; font-size: 13px; }
.demo-alerte small { display: block; color: var(--texte-3); font-size: 11.5px; }
.demo-alerte > span:nth-child(2) { flex: 1; min-width: 0; }
.demo-alerte-icone { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--chaud-doux); color: var(--chaud); }
.demo.e-ouvert .demo-alerte-icone { animation: demo-sonne .9s ease-in-out .4s 2; }
.demo-alerte .btn { pointer-events: none; flex: none; }

/* etapes cliquables et legende */
.demo-etapes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.demo-etape { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 6px;
  border-radius: 10px; border: 1px solid var(--bord); background: var(--surface); color: var(--texte-2); font: 600 12.5px var(--police);
  cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.demo-etape:hover { border-color: var(--acc); color: var(--texte); }
.demo-etape:focus-visible { outline: 3px solid color-mix(in srgb, var(--acc) 45%, transparent); outline-offset: 1px; }
.demo-etape[aria-pressed="true"] { background: var(--acc-doux); border-color: var(--acc); color: var(--acc-texte); }
.demo-num { width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--surface-2); color: var(--texte-3); flex: none; }
.demo-etape[aria-pressed="true"] .demo-num { background: var(--btn-fond); color: var(--btn-texte); }
.demo-progres { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--acc); }
.demo.e-joue .demo-etape[aria-pressed="true"] .demo-progres { animation: demo-progres var(--duree, 4s) linear forwards; }
.demo.e-pause .demo-progres { animation-play-state: paused !important; }
.demo-legende { margin: 10px 2px 0; min-height: 42px; color: var(--texte-2); font-size: 14px; text-align: center; }
.demo-legende span { display: none; }
.demo[data-etape="1"] [data-legende="1"], .demo[data-etape="2"] [data-legende="2"], .demo[data-etape="3"] [data-legende="3"],
.demo[data-etape="4"] [data-legende="4"], .demo[data-etape="5"] [data-legende="5"], .demo[data-etape="6"] [data-legende="6"] { display: inline; }

@keyframes demo-clignote { 50% { opacity: 0; } }
@keyframes demo-remplit { to { width: 100%; } }
@keyframes demo-progres { to { width: 100%; } }
@keyframes demo-presse { 0%, 100% { transform: scale(1); } 45% { transform: scale(.93); box-shadow: 0 0 0 6px color-mix(in srgb, var(--acc) 22%, transparent); } }
@keyframes demo-sonne { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(5deg); } }
@media (prefers-reduced-motion: reduce) {
  .demo *, .demo *::before, .demo *::after { animation: none !important; transition: none !important; }
  .demo .demo-barre i { width: 100%; }
}
@media (max-width: 560px) {
  .demo-ecran { height: 372px; }
  .demo-scene { inset: 10px; }
  .demo-etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .demo-etape { font-size: 11.5px; gap: 4px; padding: 0 4px; height: 36px; }
  .demo-num { display: none; }
  .demo-ligne { gap: 9px; padding: 9px 10px; }
  .demo-action .btn { padding: 0 8px; }
  .demo-texte strong { white-space: normal; font-size: 13.5px; line-height: 1.25; }
  .demo-legende { font-size: 13.5px; }
  .apercu-barre .recherche { min-width: 0; overflow: hidden; white-space: nowrap; }
}

/* comparatif nomme */
.comparatif-carte { max-width: 980px; margin: 0 auto; }
.comparatif-noms th[scope="row"] { font-weight: 600; text-align: left; color: var(--texte); font-size: 14px; }
.comparatif-noms td { font-size: 13.5px; color: var(--texte-2); }
.comparatif-noms td.nous { color: var(--acc-texte); font-weight: 600; }
.comparatif-noms thead th { font-size: 14px; color: var(--texte); font-weight: 700; }
.comparatif-noms thead th.nous { color: var(--acc-texte); }
.comparatif-noms .oui .ic { color: var(--ok); }
.comparatif-noms td.nous .oui .ic { color: var(--acc); }
.comparatif-noms .non { font-size: 16px; }
.comparatif-note { max-width: 980px; margin: 14px auto 0; text-align: center; }
.comparatif-glisser { display: none; text-align: center; margin: 0 0 10px; }
@media (max-width: 700px) {
  .comparatif-glisser { display: block; }
  .comparatif-noms { min-width: 780px; }
  .comparatif-noms th[scope="row"], .comparatif-noms thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 150px; box-shadow: 1px 0 0 var(--bord); }
}

/* demo : pointeur, appel, signature (style Cartographe) */
.demo-etape { font-size: 12px; gap: 5px; padding: 0 4px; }
.demo-num { width: 17px; height: 17px; font-size: 10.5px; }
@media (max-width: 1240px) and (min-width: 901px) { .demo-num { display: none; } }
.hero .demo-legende { color: var(--sur-foret-2); }
.hero .demo-etape { border-color: transparent; }
.demo-pointeur { position: absolute; left: 0; top: 0; z-index: 6; width: 22px; height: 22px; margin: -3px 0 0 -4px; pointer-events: none;
  opacity: 0; transform: translate(70%, 260px); transition: transform .75s cubic-bezier(.45, .05, .25, 1), opacity .25s;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.demo-pointeur.visible { opacity: 1; }
.demo-pointeur::after { content: ""; position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -10px 0 0 -10px; border-radius: 50%;
  border: 2px solid var(--corail); opacity: 0; transform: scale(.3); }
.demo-pointeur.clic::after { animation: demo-onde .55s ease-out; }
.demo-pointeur.clic svg { animation: demo-appui .3s ease-out; }
.demo-en-appel { display: none; }
.demo.e-appel .demo-avant-appel { display: none; }
.demo.e-appel .demo-en-appel { display: inline; }
.demo.e-appel .demo-appeler { background: var(--ok); }
.demo.e-appel .demo-alerte { border-color: var(--ok); }
.demo-contrat { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--bord); box-shadow: var(--ombre-1); display: grid; gap: 12px;
  opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.demo.e-signe .demo-contrat { opacity: 1; transform: none; }
.demo-contrat-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.demo-contrat-tete strong { font: 800 18px/1.2 var(--police-titre); display: block; }
.demo-contrat-lignes { display: grid; gap: 7px; border-top: 1px dashed var(--bord-fort); padding-top: 11px; font-size: 13px; color: var(--texte-2); }
.demo-contrat-lignes div { display: flex; justify-content: space-between; gap: 10px; }
.demo-contrat-lignes b { font: 600 12.5px var(--police-mono); color: var(--texte); }
.demo-objectif { padding: 14px; border-radius: 14px; background: var(--foret); color: var(--sur-foret); display: grid; gap: 9px;
  opacity: 0; transform: translateY(10px); transition: opacity .4s ease .25s, transform .4s ease .25s; }
.demo.e-signe .demo-objectif { opacity: 1; transform: none; }
.demo-objectif-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--sur-foret-2); }
.demo-objectif-tete b { font: 800 26px/1 var(--police-titre); color: var(--sur-foret); }
.demo-objectif .demo-sous { color: var(--sur-foret-3); }
.demo-jauge { display: block; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--sur-foret) 16%, transparent); overflow: hidden; }
.demo-jauge i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--corail); transition: width 1.2s cubic-bezier(.3, .8, .3, 1) .35s; }
.demo.e-signe .demo-jauge i { width: 100%; }
@keyframes demo-onde { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes demo-appui { 50% { transform: scale(.85); } }
@media (prefers-reduced-motion: reduce) { .demo-pointeur { display: none; } }

/* ------------------------------------------------------------------ guide « tes premiers 1 000 € » */
.hero-guide { padding: 64px 0 56px; }
.hero-guide h1 { max-width: 920px; }
.hero-guide .chapeau { max-width: 700px; }
.guide-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; max-width: 940px; }
.guide-chiffres div { padding: 16px 18px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--sur-foret) 18%, transparent);
  background: color-mix(in srgb, var(--sur-foret) 6%, transparent); }
.guide-chiffres b { display: block; font: 800 30px/1.1 var(--police-titre); color: var(--sur-foret); margin-bottom: 4px; }
.guide-chiffres span { color: var(--sur-foret-2); font-size: 14px; }
.guide-avertissement { margin: 14px 0 0; color: var(--sur-foret-3); font-size: 13px; }
.guide-grille { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding-top: 56px; padding-bottom: 24px; align-items: start; }
.guide-sommaire { position: sticky; top: 92px; display: grid; gap: 2px; }
.guide-sommaire-titre { font: 500 12px var(--police-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--texte-3); margin: 0 0 8px 10px; }
.guide-sommaire a { display: flex; gap: 8px; align-items: baseline; padding: 6px 10px; border-radius: 8px; color: var(--texte-2); font-size: 14px; text-decoration: none; }
.guide-sommaire a i { font: normal 500 11.5px var(--police-mono); color: var(--corail); }
.guide-sommaire a:hover { background: var(--surface-2); color: var(--texte); }
.guide-sommaire a.actif { background: var(--acc-doux); color: var(--acc-texte); font-weight: 600; }
.guide-sommaire a.btn { margin-top: 14px; justify-content: center; color: #fff; }
.guide-article { max-width: 720px; min-width: 0; font-size: 16.5px; line-height: 1.7; }
.guide-article section { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--bord); scroll-margin-top: 90px; }
.guide-article section:last-child { border-bottom: 0; margin-bottom: 0; }
.guide-article h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 500; line-height: 1.15; margin-bottom: .6em; }
.guide-article p, .guide-article li { color: var(--texte-2); }
.guide-article b { color: var(--texte); }
.guide-num { display: inline-block; font: 600 13px var(--police-mono); color: var(--corail); border-bottom: 1.5px solid var(--corail); padding-bottom: 5px; margin-bottom: 14px; }
.guide-etiquette { display: flex; align-items: center; gap: 6px; font: 500 11.5px var(--police-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--texte-3); margin-bottom: 8px; }
.guide-script { margin: 22px 0; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--bord); }
.guide-script p { font: italic 400 18.5px/1.55 var(--police-titre); color: var(--texte); margin: 0 0 .6em; }
.guide-script p:last-child { margin-bottom: 0; }
.guide-script p b { font-style: normal; }
.guide-encadre { margin: 22px 0; padding: 16px 20px; border-radius: 14px; background: var(--acc-doux); }
.guide-encadre .guide-etiquette, .guide-encadre p { color: var(--acc-texte); }
.guide-encadre p { margin: 0; }
.guide-piege { padding-left: 14px; border-left: 3px solid var(--corail); font-size: 15.5px; margin: 0; }
.guide-article .guide-resume { background: var(--foret); color: var(--sur-foret); border-radius: 18px; padding: 26px 28px; border-bottom: 0; }
.guide-resume h2 { color: var(--sur-foret); }
.guide-resume ol { margin: 0; padding-left: 22px; }
.guide-article .guide-resume li { color: var(--sur-foret-2); margin-bottom: 6px; }
.guide-article .guide-resume b { color: var(--sur-foret); }
.guide-liste li, .guide-erreurs li { margin-bottom: 8px; }
.guide-coches { list-style: none; padding: 0; display: grid; gap: 10px; margin: 18px 0; }
.guide-coches li { position: relative; padding-left: 26px; }
.guide-coches li::before { content: "✓"; position: absolute; left: 2px; top: 0; color: var(--ok); font-weight: 700; }
.guide-objections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.guide-objections div { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--bord); }
.guide-objections b { font: 800 17px var(--police-titre); }
.guide-objections p { margin: 6px 0 0; font-size: 15px; }
.calculateur { padding: 22px; display: grid; gap: 20px; margin-top: 18px; }
.calc-champs { display: grid; gap: 16px; }
.calc-champ { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 6px 14px; align-items: center; font-size: 14.5px; font-weight: 600; color: var(--texte); }
.calc-champ > span { grid-column: 1 / -1; }
.calc-champ input[type=range] { width: 100%; accent-color: var(--corail); }
.calc-champ output { font: 600 15px var(--police-mono); text-align: right; }
.calc-champ select { grid-column: 1 / -1; max-width: 220px; }
.calc-resultats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.calc-resultats div { padding: 14px; border-radius: 12px; background: var(--surface-2); line-height: 1.35; }
.calc-resultats b { display: block; font: 800 30px/1.1 var(--police-titre); color: var(--texte); margin-bottom: 4px; }
.calc-resultats span { font-size: 13px; color: var(--texte-2); }
.calc-resultats .calc-formule { background: var(--foret); }
.calc-resultats .calc-formule b, .calc-resultats .calc-formule span { color: var(--sur-foret); }
@media (max-width: 900px) {
  .guide-grille { grid-template-columns: 1fr; gap: 20px; padding-top: 0; }
  .guide-sommaire { position: sticky; top: 68px; z-index: 6; display: flex; overflow-x: auto; gap: 6px; padding: 10px 20px; margin: 0 -20px;
    background: color-mix(in srgb, var(--fond) 94%, transparent); border-bottom: 1px solid var(--bord); scrollbar-width: none; }
  .guide-sommaire::-webkit-scrollbar { display: none; }
  .guide-sommaire-titre, .guide-sommaire a.btn { display: none; }
  .guide-sommaire a { flex: none; white-space: nowrap; border: 1px solid var(--bord-fort); border-radius: 999px; font-size: 13px; padding: 5px 12px; }
  .guide-chiffres, .guide-objections { grid-template-columns: 1fr; }
  .calc-resultats { grid-template-columns: 1fr 1fr; }
  .guide-article { font-size: 16px; }
}

/* ------------------------------------------------------------------ objectif « premiers 1 000 € » (tableau de bord) */
.objectif { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 0; overflow: hidden; margin-bottom: 18px; padding: 0; }
.objectif-gauche { position: relative; isolation: isolate; padding: 22px 24px; background: var(--foret); color: var(--sur-foret); display: grid; gap: 8px; align-content: start; }
.objectif-gauche::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--topo) 70% 30% / 260% no-repeat; }
.objectif-sur { display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--police-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--sur-foret-3); }
.objectif-gauche h2 { margin: 0; font-size: 1.55rem; font-weight: 800; color: var(--sur-foret); }
.objectif-ca { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.objectif-ca b { font: 800 34px/1 var(--police-titre); color: var(--sur-foret); }
.objectif-ca span { color: var(--sur-foret-2); font-size: 14px; }
.objectif-jauge { display: block; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--sur-foret) 16%, transparent); overflow: hidden; }
.objectif-jauge i { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: var(--corail); }
.objectif-gauche p { margin: 2px 0 0; color: var(--sur-foret-2); font-size: 14px; }
.objectif-gauche p strong { color: var(--sur-foret); }
.objectif-guide { color: #f3b4a3; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.objectif-etapes { list-style: none; margin: 0; padding: 12px; display: grid; gap: 2px; align-content: center; }
.objectif-etapes a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--texte-2); text-decoration: none; font-size: 14.5px; }
.objectif-etapes a:hover { background: var(--surface-2); color: var(--texte); }
.objectif-coche { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--bord-fort);
  font: 600 11.5px var(--police-mono); color: var(--texte-3); }
.objectif-etapes .ok .objectif-coche { background: var(--ok); border-color: var(--ok); color: #fff; }
.objectif-etapes .ok .objectif-texte { color: var(--texte-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--texte-3) 60%, transparent); }
.objectif-etapes .actuelle a { background: var(--acc-doux); color: var(--acc-texte); font-weight: 600; }
.objectif-etapes .actuelle .objectif-coche { border-color: var(--corail); color: var(--corail); }
.objectif-compte { margin-left: auto; font: 500 12px var(--police-mono); color: var(--texte-3); white-space: nowrap; }
.champ-montant { display: grid; gap: 6px; }
@media (max-width: 900px) { .objectif { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ potentiel d'une recherche, en euros */
.potentiel { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; padding: 8px 14px; border-radius: 12px;
  background: var(--foret); color: var(--sur-foret); }
.potentiel-sur { font: 500 11.5px var(--police-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--sur-foret-3); }
.potentiel b { font: 800 22px/1 var(--police-titre); color: var(--sur-foret); }
.potentiel-hyp { font-size: 12.5px; color: var(--sur-foret-2); }
.potentiel a { color: #fff; text-decoration: underline; }
.zone-entete + .potentiel { margin: 2px 0 4px; }

/* ------------------------------------------------------------------ « tape ta ville » (accueil) */
.apercu-ville { margin: 30px auto 6px; display: grid; gap: 10px; width: min(580px, 100%); justify-items: center; }
.apercu-label { display: inline-flex; align-items: center; gap: 7px; font: 600 12px var(--police-mono); text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .85); }
.apercu-champ { width: 100%; display: flex; gap: 8px; padding: 7px; border-radius: 999px; background: #fff;
  box-shadow: 0 20px 44px -16px rgba(15, 21, 48, .5); }
.apercu-champ input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; color: #0f1530; border-radius: 999px; font-size: 16px; padding: 0 16px; box-shadow: none; }
.apercu-champ input::placeholder { color: #7c839c; }
.apercu-champ input:focus { box-shadow: none; }
.apercu-champ .btn { height: 46px; flex: none; border-radius: 999px; padding: 0 20px; }
.apercu-champ .spinner { display: none; width: 14px; height: 14px; }
.htmx-request .apercu-champ .spinner, .apercu-ville.htmx-request .spinner { display: inline-block; }
#apercu-resultat:empty { display: none; }
.apercu-resultat { max-width: 580px; margin: 6px auto 18px; text-align: left; box-shadow: var(--ombre-3); padding: 16px 18px; border-radius: 14px; background: var(--papier); color: #14231f; display: grid; gap: 10px; justify-items: start; }
.apercu-titre { margin: 0; font-size: 15.5px; }
.apercu-potentiel { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.apercu-potentiel span { font: 500 11.5px var(--police-mono); text-transform: uppercase; letter-spacing: .06em; color: #66736c; }
.apercu-potentiel b { font: 800 30px/1 var(--police-titre); color: #0f1530; letter-spacing: -.03em; }
.apercu-potentiel small { font-size: 13px; color: #3f4d47; }
.apercu-note { margin: 0; font-size: 13px; color: #3f4d47; }
@media (max-width: 560px) { .apercu-champ { flex-direction: column; border-radius: 22px; } .apercu-champ .btn { width: 100%; } }

/* ------------------------------------------------------------------ mes prospects : colonnes a glisser-deposer */
.colonne { transition: background .15s, box-shadow .15s; }
.colonne.survol { background: var(--acc-doux); box-shadow: inset 0 0 0 2px var(--acc); }
.colonne .colonne-vide { display: none; }
.colonne.vide .colonne-vide { display: block; }
.colonne-total { margin: -2px 4px 4px; font: 800 15px var(--police-titre); color: var(--ok); }
.carte-suivi[draggable="true"] { cursor: grab; }
.carte-suivi.en-glisse { opacity: .45; }
.carte-suivi .deplacer { width: auto; max-width: 26px; height: 26px; padding: 0 2px; flex: none; border-radius: 8px; font-size: 12px;
  opacity: 0; transition: opacity .15s; color: var(--texte-2); }
.carte-suivi:hover .deplacer, .carte-suivi:focus-within .deplacer { opacity: 1; }
@media (hover: none) { .carte-suivi .deplacer { opacity: 1; max-width: 110px; } }

.reseaux { display: grid; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--bord-fort); }

/* ------------------------------------------------------------------ ta journee (tableau de bord) */
.journee { padding: 16px 18px; margin-bottom: 18px; display: grid; gap: 12px; justify-items: start; }
.journee-tete { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.journee-tete h2 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.journee-objectif { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px var(--police-mono); color: var(--texte-3); }
.journee-objectif .objectif-jauge { width: 120px; background: var(--surface-2); }
.journee-chiffres { width: 100%; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.journee-chiffres div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 2px; }
.journee-chiffres b { font: 800 24px/1.1 var(--police-titre); }
.journee-chiffres span { font-size: 12.5px; color: var(--texte-2); }
@media (max-width: 900px) { .journee-chiffres { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.mot-cle summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--texte-2); display: inline-flex; align-items: center; gap: 6px; }
.mot-cle[open] summary { color: var(--texte); }

/* ------------------------------------------------------------------ accueil : preuve sociale, chiffres, avant / apres */
.preuve-sociale { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .42); color: #fff; font-size: 13.5px; font-weight: 600;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.preuve-sociale .ic { width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: #fff; color: var(--indigo); }
.bande-chiffres { position: relative; z-index: 3; margin-top: -58px; }
.bande-grille { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; padding: 24px 28px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--bord); box-shadow: var(--ombre-2); }
.bande-grille div { display: grid; gap: 2px; }
.bande-grille b { font: 800 26px/1.15 var(--police-titre); }
.bande-grille span { font-size: 13px; color: var(--texte-2); }
@media (max-width: 900px) { .bande-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bande-grille div:last-child { grid-column: 1 / -1; } }
.avant-apres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto; }
.avant-apres .carte { padding: 24px 26px; }
.avant-apres h3 { display: flex; align-items: center; gap: 8px; font: 800 1.3rem var(--police-titre); margin-bottom: 12px; }
.avant-apres ul { margin: 0; padding-left: 20px; display: grid; gap: 9px; color: var(--texte-2); }
.avant h3 { color: var(--texte-3); }
.avant h3 .ic { color: var(--danger); }
.apres { background: var(--foret); border-color: var(--foret); }
.apres h3 { color: var(--sur-foret); }
.apres h3 .ic { color: var(--sauge); }
.apres ul { color: var(--sur-foret-2); }
@media (max-width: 760px) { .avant-apres { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ site du client en ligne, editeur de textes */
.site-en-ligne { margin-top: 10px; }
.tableau.dns td { font-size: 13px; padding: 6px 8px; }
.tableau.dns td.mono { font-family: var(--police-mono); }
.editeur-maquette textarea { min-height: 0; }

/* ---------------------------------------------------------------- note sur 100 : le chiffre, son echelle, son detail */
.score { align-content: center; }
.score small { display: block; font: 600 9px/1 var(--police-mono); opacity: .7; margin-top: 3px; letter-spacing: .02em; text-align: center; }
.legende-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; font-size: 13px; color: var(--texte-2); line-height: 1.7; }
.legende-note > .ic { flex: none; margin-top: 4px; color: var(--acc); }
.legende-note .badge { font-size: 11px; padding: 1px 7px; vertical-align: 1px; }
.note-expliquee { border: 1px solid var(--bord); border-radius: var(--rayon-petit); background: var(--surface); }
.note-expliquee > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 14px; }
.note-expliquee > summary::-webkit-details-marker { display: none; }
.note-jauge { flex: none; display: block; width: 56px; height: 8px; border-radius: 99px; overflow: hidden; background: var(--froid-doux); color: var(--froid); }
.note-jauge i { display: block; height: 100%; border-radius: 99px; background: currentColor; }
.note-jauge.score-chaud { background: var(--chaud-doux); color: var(--chaud); }
.note-jauge.score-tiede { background: var(--tiede-doux); color: var(--tiede); }
.note-pourquoi { margin-left: auto; color: var(--acc); font-weight: 600; font-size: 13px; white-space: nowrap; }
.note-expliquee[open] .note-pourquoi { opacity: .55; }
.note-corps { padding: 0 12px 12px; display: grid; gap: 12px; }

/* ---------------------------------------------------------------- message WhatsApp visible avant l'envoi */
.apercu-message > summary { cursor: pointer; font-size: 13px; color: var(--texte-2); display: inline-flex; align-items: center; gap: 6px; }
.apercu-texte { white-space: pre-wrap; font-size: 13px; line-height: 1.55; color: var(--texte-2); background: var(--surface-2);
                border-radius: var(--rayon-petit); padding: 10px 12px; margin: 8px 0; max-height: 280px; overflow: auto; }
.apercu-message .etiquette { display: block; margin-top: 10px; }
/* envoi en 2 temps : premier message sans lien, puis la maquette quand il a repondu */
.envoi-temps { gap: 8px; padding: 12px; border-radius: var(--rayon-petit); background: var(--acc-doux); }
.envoi-etape { font-size: 13px; color: var(--texte-2); display: inline-flex; align-items: center; gap: 8px; }
.envoi-temps .envoi-etape { flex-basis: 100%; }
.envoi-etape b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--acc);
                 color: #fff; font-size: 11px; }


/* ================================================================== style clair : hero centre, verre, animations */

/* hero centre, demo de l'appli dans un cadre en verre, puces flottantes */
.hero-centre { display: grid; justify-items: center; text-align: center; }
.hero-centre .chapeau { margin-inline: auto; }
.hero-centre .hero-actions, .hero-centre .preuves { justify-content: center; }
.hero-centre > * { animation: monte .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-centre > :nth-child(2) { animation-delay: .08s; }
.hero-centre > :nth-child(3) { animation-delay: .16s; }
.hero-centre > :nth-child(4) { animation-delay: .24s; }
.hero-centre > :nth-child(5) { animation-delay: .3s; }
.hero-centre > :nth-child(n+6) { animation-delay: .36s; }
.hero-demo { position: relative; max-width: 860px; margin: 56px auto 0; padding: 10px; border-radius: 26px;
  background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 60px 110px -50px rgba(15, 21, 48, .65);
  animation: monte 1s cubic-bezier(.2, .7, .2, 1) .45s both; }
.hero-demo .apercu { border-radius: 18px; box-shadow: none; border-color: rgba(15, 21, 48, .06); }
.hero-demo .demo-legende { margin-top: 12px; }
.hero .hero-chiffres { justify-content: center; text-align: center; margin: 22px auto 0; max-width: 720px; }
.puce-flottante { position: absolute; z-index: 7; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px;
  background: #fff; color: #0f1530; font: 700 13px var(--police); white-space: nowrap; box-shadow: 0 18px 36px -14px rgba(15, 21, 48, .45);
  animation: flotte 6s ease-in-out infinite; pointer-events: none; }
.puce-flottante .ic { color: var(--indigo); }
.puce-1 { top: 64px; left: -56px; }
.puce-1 .ic { color: #e04b2f; }
.puce-2 { top: 46%; right: -64px; animation-delay: -2s; }
.puce-2 .ic { color: #1faa57; }
.puce-3 { bottom: 70px; left: -40px; animation-delay: -4s; }
@media (max-width: 1060px) { .puce-flottante { display: none; } }

/* chiffres : nombres en degrade de marque */
.bande-grille b { font: 800 30px/1.1 var(--police-titre); letter-spacing: -.035em; background: var(--degrade-marque);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .bande-grille b { background: none; color: var(--acc-fort); }

/* metiers qui defilent */
.section-defile { padding: 46px 0 6px; text-align: center; overflow: hidden; }
.defile-titre { margin: 0 0 18px; font: 600 12px var(--police-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--texte-3); }
.defile { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.defile-piste { display: flex; gap: 12px; width: max-content; animation: defile 70s linear infinite; }
.defile:hover .defile-piste { animation-play-state: paused; }
.defile-piste span { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--bord); color: var(--texte-2); font-weight: 600; font-size: 14.5px; white-space: nowrap; }

/* titres en deux tons, icones des etapes */
.accent { color: var(--acc); }
.etape-icone, .fonction-icone { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--acc-doux); color: var(--acc); }
.etape h3, .fonction h3 { font-size: 1.15rem; }
.avant-apres .carte { padding: 28px 30px; border-radius: 22px; }
.apres { background: var(--degrade-marque); border-color: transparent; box-shadow: var(--ombre-3); }
.comparatif .nous { background: var(--acc-doux); }
.tarif { border-radius: 22px; }
.tarif-conseille { border: 2px solid var(--acc); box-shadow: 0 30px 60px -28px rgba(71, 87, 240, .45); }
.faq details { padding: 2px 0; }
.faq summary { font-size: 16.5px; }
.entete-site { background: color-mix(in srgb, var(--surface) 84%, transparent); }
.entete-site .btn { border-radius: 999px; }
.nav-site a { border-radius: 999px; }

/* bouton : fleche dans un rond, qui avance au survol */
.rond-fleche { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: -14px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); transition: transform .25s ease; }
.btn-secondaire .rond-fleche, .cta-final .rond-fleche { background: var(--acc-doux); border-color: transparent; color: var(--acc); }
.btn:hover .rond-fleche { transform: translateX(3px); }
.btn-grand > .ic:last-child, .apercu-champ .btn > .ic:last-child { transition: transform .25s ease; }
.btn-grand:hover > .ic:last-child, .apercu-champ .btn:hover > .ic:last-child { transform: translateX(3px); }

/* cartes qui se soulevent au survol */
.etape, .fonction, .tarif, .avant-apres .carte, .tuile { transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease, border-color .3s; }
.etape:hover, .fonction:hover, .tarif:hover { transform: translateY(-5px); box-shadow: var(--ombre-2); border-color: var(--bord-fort); }

/* apparition au defilement (classes posees par anim.js : sans JavaScript, tout reste visible) */
.revele { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--delai, 0s); }
.revele.visible { opacity: 1; transform: none; }

/* appli : contenu, listes et tuiles qui entrent en douceur */
.contenu { animation: apparait .35s ease both; }
.liste > .prospect { animation: apparait .4s cubic-bezier(.2, .7, .2, 1) both; }
.liste > .prospect:nth-child(2) { animation-delay: .04s; }
.liste > .prospect:nth-child(3) { animation-delay: .08s; }
.liste > .prospect:nth-child(4) { animation-delay: .12s; }
.liste > .prospect:nth-child(5) { animation-delay: .16s; }
.liste > .prospect:nth-child(6) { animation-delay: .2s; }
.liste > .prospect:nth-child(n+7) { animation-delay: .24s; }
.tuiles > * { animation: apparait .45s cubic-bezier(.2, .7, .2, 1) both; }
.tuiles > :nth-child(2) { animation-delay: .05s; }
.tuiles > :nth-child(3) { animation-delay: .1s; }
.tuiles > :nth-child(n+4) { animation-delay: .15s; }
.prospect { border-radius: 14px; }
.prospect:hover { transform: translateY(-1px); }
.tuile .valeur { letter-spacing: -.035em; }

@keyframes monte { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes apparait { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes derive { from { transform: translate3d(-6%, -3%, 0) scale(1); } to { transform: translate3d(6%, 4%, 0) scale(1.12); } }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes defile { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .revele { opacity: 1; transform: none; }
  .defile-piste { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}
.entete-site { transition: box-shadow .25s ease, background .25s ease; }
.entete-site.descendu { box-shadow: 0 10px 30px -18px rgba(15, 21, 48, .35); }

.preuves-reglage { display: grid; gap: 8px; margin: -4px 0 6px 74px; padding: 12px; border-radius: 12px; background: var(--fond-alt); border: 1px dashed var(--bord-fort); }
@media (max-width: 700px) { .preuves-reglage { margin-left: 0; } }
.resultat-reglage { margin: -6px 0 4px 74px; }
@media (max-width: 700px) { .resultat-reglage { margin-left: 0; } }
.stats-reglage { margin: -2px 0 8px 74px; }
.stats-reglage > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--acc); display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 700px) { .stats-reglage { margin-left: 0; } }

/* ---------------------------------------------------------------- ma page agence */
.ma-page { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 20px; align-items: start; }
.etapes-page { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.etapes-page li { display: flex; align-items: center; gap: 10px; }
.etapes-page li.fait { color: var(--texte-2); }
.etapes-page li.fait .ic { color: var(--ok); }
.etapes-page .rond { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--bord-fort); flex: none; }
.apercu-page { overflow: hidden; position: sticky; top: 84px; }
.apercu-page-barre { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--bord); background: var(--surface-2); }
.apercu-page-barre i { width: 10px; height: 10px; border-radius: 50%; background: var(--bord-fort); }
.apercu-page-barre span { margin-left: 8px; font-size: 12.5px; color: var(--texte-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apercu-page-ecran { container-type: inline-size; height: 620px; overflow: hidden; position: relative; }
.apercu-page-ecran iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 1240px; border: 0; pointer-events: none;
  transform-origin: 0 0; transform: scale(.5); }
@media (max-width: 1000px) { .ma-page { grid-template-columns: 1fr; } .apercu-page { position: static; } }
.assistant { display: grid; gap: 18px; }
.assistant fieldset { border: 0; padding: 0 0 4px; margin: 0; display: grid; gap: 4px; }
.assistant fieldset + fieldset, .assistant .btn-primaire + fieldset { padding-top: 16px; border-top: 1px solid var(--bord); }
.assistant legend { display: flex; align-items: center; gap: 10px; font: 700 16px var(--police); color: var(--texte); margin-bottom: 10px; padding: 0; }
.assistant legend span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--acc-doux); color: var(--acc-texte); font-size: 13px; }
.assistant legend em { font-style: normal; font-weight: 500; color: var(--texte-3); font-size: 13.5px; }
.assistant .btn-primaire { justify-self: start; }
.tuto { margin: 0 0 6px; padding-left: 18px; display: grid; gap: 6px; }
