/* ═══════════════════════════════════════════════════════════════════════
   LE HAUT DE PAGE « h8 » (08/11/2026) — on montre le logiciel.
   Gauche : la promesse, un champ, un bouton. Droite : la vraie Sélection IA (notes réelles d'une commune d'exemple) et un vrai courrier.
   Fond nuit uni, une seule lumière violette derrière le produit ; pas de grille, pas de filaments, pas d'étincelles.
   Se charge après scenes.css et ne vaut que sous .heros.h8.
   ═══════════════════════════════════════════════════════════════════════ */
.heros.h8{--v:#8D78ED;--v2:#A79AE7;--gris:#A9A6BD;--gris2:#7F7B96;--ligne:rgba(255,255,255,.09);
  position:relative;overflow:hidden;display:flex;align-items:center;min-height:max(720px,100svh);padding:118px 0 72px;
  background:radial-gradient(42% 52% at 76% 46%,rgba(101,71,232,0.064),transparent 70%),#060709}
.heros.h8::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.08),transparent)}
.h8-int{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:72px;align-items:center;width:100%;max-width:1320px;margin:0 auto;padding:0 56px}

/* ── Le texte ── */
.h8-texte{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.h8-sur{display:inline-flex;align-items:center;gap:9px;margin:0 0 22px;padding:6px 13px 6px 11px;border-radius:999px;border:1px solid rgba(170,158,227,0.28);background:rgba(101,71,232,0.08);color:#D7D1F2;font-size:14px;font-weight:600}
.h8-sur i{width:7px;height:7px;border-radius:50%;background:var(--v2);box-shadow:0 0 0 3px rgba(101,71,232,0.126)}
.h8-titre{margin:0;max-width:600px;font-size:clamp(40px,4.1vw,60px);line-height:1.05;font-weight:700;letter-spacing:-.035em;color:#fff}
.h8-titre span{display:block;margin-top:6px;color:#9A95B8}
.h8-sous{margin:22px 0 32px;max-width:520px;font-size:19px;line-height:1.55;color:var(--gris)}
.h8-champ{position:relative;display:flex;align-items:center;gap:10px;width:100%;max-width:580px;height:66px;padding:0 8px 0 18px;border-radius:16px;
  background:#0E0F13;border:1px solid rgba(255,255,255,.13);box-shadow:0 24px 60px -30px rgba(0,0,0,.9);transition:border-color .2s,box-shadow .2s}
.h8-champ:focus-within{border-color:rgba(170,158,227,0.7);box-shadow:0 0 0 4px rgba(101,71,232,0.126),0 24px 60px -30px rgba(0,0,0,.9)}
.h8-champ-ico{flex:none;color:#8F8AA8}
.h8-champ input{flex:1;min-width:0;height:100%;padding:0 4px;border:0;background:transparent;color:#fff;font:500 17px/1 inherit;font-family:inherit;outline:none}
.h8-champ input::placeholder{color:#6F6B86;font-weight:500}
.h8-btn{flex:none;display:inline-flex;align-items:center;gap:10px;height:50px;padding:0 20px 0 22px;border:0;border-radius:11px;background:var(--v);color:#fff;font:600 16.5px/1 inherit;font-family:inherit;cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 10px 24px -10px rgba(17,19,27,0.16);transition:background .2s,transform .2s}
.h8-btn:hover{background:#8D78ED;transform:translateY(-1px)}
.h8-btn:focus-visible{outline:2px solid #fff;outline-offset:2px}
.h8-btn[aria-busy="true"]{opacity:.7;pointer-events:none}
.h8-champ .suggestions{top:calc(100% + 8px)}
.h8-rassure{display:flex;flex-wrap:wrap;gap:8px 22px;margin:18px 0 0;padding:0;list-style:none}
.h8-rassure li{display:inline-flex;align-items:center;gap:8px;font-size:14.5px;color:var(--gris2)}
.h8-rassure svg{width:15px;height:15px;color:var(--v2)}

/* ── Le produit ── */
.h8-produit{position:relative;justify-self:end;width:100%;max-width:600px;padding:0 70px 70px 0}
.h8-app{position:relative;border-radius:18px;background:#101217;border:1px solid rgba(255,255,255,.1);overflow:hidden;
  box-shadow:0 1px 0 rgba(255,255,255,.06) inset,0 50px 100px -40px rgba(0,0,0,.95),0 0 0 1px rgba(0,0,0,.5)}
.h8-app-barre{display:flex;align-items:center;gap:7px;height:40px;padding:0 14px;border-bottom:1px solid var(--ligne);background:#0A0A0D}
.h8-app-barre i{width:10px;height:10px;border-radius:50%;background:#262935}
.h8-app-barre span{flex:1;margin-right:44px;text-align:center;font-size:12.5px;font-weight:500;color:#7F7B96}
.h8-app-corps{padding:20px 20px 18px}
.h8-app-sur{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-size:11.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#D3CDF0}
.h8-app-sur i{width:7px;height:7px;border-radius:50%;background:#4ADE80;box-shadow:0 0 0 3px rgba(74,222,128,.15)}
.h8-app-titre{margin:0 0 14px;font-size:18px;font-weight:600;letter-spacing:-.01em;color:#fff}
.h8-app-ent{display:grid;grid-template-columns:repeat(3,1fr);margin:0 0 12px;padding:0;list-style:none;border:1px solid var(--ligne);border-radius:11px;overflow:hidden}
.h8-app-ent li{display:flex;flex-direction:column;gap:2px;padding:9px 12px}
.h8-app-ent li + li{border-left:1px solid var(--ligne)}
.h8-app-ent li.fin{background:rgba(101,71,232,0.14)}
.h8-app-ent b{font-size:16px;font-weight:700;color:#fff;font-variant-numeric:tabular-nums}
.h8-app-ent li.fin b{color:#D2CCF0}
.h8-app-ent span{font-size:11.5px;color:var(--gris2)}
.h8-lignes{margin:0 0 14px;padding:0;list-style:none;border:1px solid var(--ligne);border-radius:12px;overflow:hidden}
.h8-lignes li{display:grid;grid-template-columns:20px 64px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 12px;transition:background .25s}
.h8-lignes li + li{border-top:1px solid var(--ligne)}
.h8-case{display:grid;place-items:center;width:20px;height:20px;border-radius:6px;background:var(--v);color:#fff}
.h8-case svg{width:12px;height:12px}
.h8-vue{--vw:64px;--vh:46px;position:relative;width:var(--vw);height:var(--vh);border-radius:8px;background-color:#15161C;background-repeat:no-repeat;overflow:hidden;box-shadow:0 0 0 1px rgba(255,255,255,.1);filter:saturate(1.05) brightness(1.06)}
.h8-vue i{position:absolute;left:50%;top:50%;width:24px;height:24px;margin:-12px 0 0 -12px;border-radius:50%;border:1.5px solid rgba(207,201,239,0.95);background:rgba(101,71,232,0.2);box-shadow:0 0 12px rgba(17,19,27,0.16)}
.h8-vue i::after{content:"";position:absolute;left:50%;top:50%;width:4px;height:4px;margin:-2px 0 0 -2px;border-radius:50%;background:#fff}
.h8-txt{display:flex;flex-direction:column;gap:3px;min-width:0}
.h8-txt b{font-size:14.5px;font-weight:600;color:#fff}
.h8-txt small{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--gris2);white-space:nowrap;overflow:hidden}
.h8-txt small svg{flex:none;color:var(--v2)}
.h8-score{display:flex;flex-direction:column;align-items:flex-end;gap:5px}
.h8-score b{font-size:20px;line-height:1;font-weight:700;color:#fff;font-variant-numeric:tabular-nums}
.h8-score b small{font-size:13px;font-weight:600;color:#C9C5DB}
.h8-score > i{display:block;width:64px;height:3px;border-radius:3px;background:rgba(255,255,255,.08);overflow:hidden}
.h8-score > i > i{display:block;height:100%;border-radius:3px;background:linear-gradient(90deg,#8D78ED,#C2BAEB)}
.h8-app-cta{display:flex;align-items:center;justify-content:center;gap:8px;height:44px;border-radius:11px;background:var(--v);color:#fff;font-size:14.5px;font-weight:600}

/* le courrier, posé sur le coin de l'application */
.h8-lettre{position:absolute;right:0;bottom:0;z-index:2;width:220px;margin:0;transform:rotate(4deg);transform-origin:50% 100%;transition:transform .5s cubic-bezier(.2,.8,.2,1)}
.h8-lettre img{display:block;width:100%;height:auto;border-radius:4px;box-shadow:0 30px 60px -18px rgba(0,0,0,.85),0 0 0 1px rgba(0,0,0,.2)}
.h8-lettre figcaption{position:absolute;left:50%;bottom:-16px;display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;transform:translateX(-50%) rotate(-4deg);white-space:nowrap;
  background:#14161C;border:1px solid rgba(255,255,255,.12);color:#E3E0F2;font-size:12px;font-weight:600;box-shadow:0 12px 24px -10px rgba(0,0,0,.8)}
.h8-lettre figcaption svg{color:var(--v2)}
.h8-produit:hover .h8-lettre{transform:rotate(1.5deg) translateY(-10px)}
.h8-produit:hover .h8-lignes li:first-child{background:rgba(101,71,232,0.08)}
.h8-legende{position:absolute;left:0;bottom:22px;margin:0;font-size:12px;color:#6F6B86}

/* l'entrée : une fois, discrète */
.h8-texte > *{animation:h8-monte .8s cubic-bezier(.16,1,.3,1) both}
.h8-texte > :nth-child(2){animation-delay:.06s}.h8-texte > :nth-child(3){animation-delay:.12s}.h8-texte > :nth-child(4){animation-delay:.18s}.h8-texte > :nth-child(5){animation-delay:.24s}
.h8-app{animation:h8-monte .9s cubic-bezier(.16,1,.3,1) .15s both}
.h8-lignes li{animation:h8-ligne .6s cubic-bezier(.16,1,.3,1) both;animation-delay:calc(.55s + var(--i) * .12s)}
.h8-lignes .h8-case{animation:h8-coche .4s cubic-bezier(.2,1.5,.4,1) both;animation-delay:calc(.8s + var(--i) * .12s)}
.h8-lettre{animation:h8-lettre 1s cubic-bezier(.16,1,.3,1) 1.15s both}
@keyframes h8-monte{from{opacity:0;transform:translateY(16px)}}
@keyframes h8-ligne{from{opacity:0;transform:translateX(10px)}}
@keyframes h8-coche{from{opacity:0;transform:scale(.4)}}
@keyframes h8-lettre{from{opacity:0;translate:30px 40px;rotate:8deg}}
.fige .h8-texte > *,.fige .h8-app,.fige .h8-lignes li,.fige .h8-case,.fige .h8-lettre{animation:none!important}
@media (prefers-reduced-motion:reduce){.h8-texte > *,.h8-app,.h8-lignes li,.h8-case,.h8-lettre{animation:none!important}.h8-lettre{transition:none}}

/* ── Écrans plus petits ── */
@media (max-width:1180px){
  .h8-int{grid-template-columns:minmax(0,1fr);gap:56px;padding:0 40px;max-width:760px}
  .heros.h8{padding:140px 0 64px;min-height:0}
  .h8-produit{justify-self:center;max-width:560px}
}
@media (max-width:620px){
  .heros.h8{padding:112px 0 48px}
  .h8-int{gap:40px;padding:0 16px}
  .h8-sur{font-size:13px;margin-bottom:18px}
  .h8-titre{font-size:clamp(31px,8.6vw,38px);line-height:1.08}
  .h8-sous{font-size:16.5px;margin:16px 0 22px}
  .h8-champ{flex-wrap:wrap;height:auto;padding:8px;gap:8px}
  .h8-champ-ico{margin-left:8px}
  .h8-champ input{height:46px;font-size:16px}
  .h8-btn{width:100%;justify-content:center;height:52px}
  .h8-rassure{flex-direction:column;gap:8px}
  .h8-produit{padding:0 0 70px}
  .h8-app-corps{padding:16px 14px 14px}
  .h8-lignes li{grid-template-columns:18px 52px minmax(0,1fr) auto;gap:10px;padding:9px 10px}
  .h8-vue{--vw:52px;--vh:40px}
  .h8-score > i{width:46px}
  .h8-lettre{width:132px;right:-6px;bottom:6px}
  .h8-lettre figcaption{display:none}
  .h8-legende{bottom:30px;max-width:58%}
}
/* réglages après relecture : titre plus compact ; le courrier ne cache plus les pourcentages */
@media (min-width:621px){.h8-titre{font-size:clamp(38px,3.6vw,54px);max-width:580px}}
.h8-produit{max-width:680px;padding:0 0 40px}
.h8-app{width:calc(100% - 190px)}
.h8-lettre{width:210px;right:0;bottom:16px}
@media (max-width:1180px){.h8-produit{max-width:620px}.h8-app{width:calc(100% - 150px)}.h8-lettre{width:180px}}
@media (max-width:620px){.h8-produit{padding:0 0 64px}.h8-app{width:100%}.h8-lettre{width:118px;right:-4px;bottom:0}}
@media (min-width:1181px){
  .h8-int{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:56px}
  .h8-titre{font-size:clamp(36px,3.3vw,50px);max-width:620px}
}
.h8-legende{max-width:calc(100% - 230px)}
@media (max-width:620px){.h8-legende{max-width:60%}}
@media (max-width:620px){
  .h8-produit{padding:0 0 150px}
  .h8-lettre{width:112px;right:4px;bottom:0}
  .h8-legende{bottom:auto;top:calc(100% - 136px);max-width:calc(100% - 140px)}
}
/* la barre : à 1180–1360 px, les liens chevauchaient « Se connecter » */
@media (max-width:1360px) and (min-width:1161px){.barre .liens{gap:20px!important;margin-left:24px!important}.barre .liens a{font-size:13.5px}}

/* ── 08/11/2026 (retours) : un aperçu plus grand et plus lisible, un courrier plus discret, un champ plus présent ── */
@media (min-width:1181px){
  .h8-int{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:48px;max-width:1400px}
  .h8-produit{max-width:760px}
  .h8-app{width:calc(100% - 120px)}
  .h8-app-corps{padding:24px 24px 22px}
  .h8-app-titre{font-size:21px}
  .h8-app-ent b{font-size:19px}
  .h8-app-ent span{font-size:12.5px}
  .h8-lignes li{grid-template-columns:22px 82px minmax(0,1fr) auto;gap:14px;padding:12px 14px}
  .h8-vue{--vw:82px;--vh:60px;border-radius:10px}
  .h8-vue i{width:30px;height:30px;margin:-15px 0 0 -15px}
  .h8-txt b{font-size:16.5px}
  .h8-txt small{font-size:13px}
  .h8-app-cta{height:50px;font-size:16px}
  .h8-lettre{width:170px;bottom:-10px;right:0;opacity:.96}
}
.h8-exemple{margin-left:auto;padding:3px 9px;border-radius:999px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);color:#C9C5DB;font-size:11px;font-weight:600;letter-spacing:0;text-transform:none}
.h8-app-sur{width:100%}
.h8-niv{padding:4px 10px;border-radius:999px;background:rgba(101,71,232,0.18);border:1px solid rgba(170,158,227,0.35);color:#E1DDF5;font-style:normal;font-size:12px;font-weight:600;white-space:nowrap}
.h8-rang{font-size:11.5px;color:#8F8AA8}
.h8-score{gap:6px}
/* le champ : plus de présence */
.h8-champ{height:72px;max-width:620px;background:#121318;border-color:rgba(170,158,227,0.35);box-shadow:0 0 0 6px rgba(101,71,232,0.056),0 24px 60px -30px rgba(0,0,0,.9)}
.h8-btn{height:56px;padding:0 22px 0 24px;font-size:17px}
.h8-rassure li{color:#A9A6BD}
@media (max-width:620px){
  .h8-champ{height:auto}
  .h8-btn{height:54px;font-size:16.5px}
  .h8-niv{font-size:11px;padding:3px 8px}
  .h8-rang{display:none}
  .h8-exemple{font-size:10.5px}
}
@media (max-width:620px){.h8-rassure{flex-direction:row;flex-wrap:wrap;gap:6px 16px}}
/* la liste des communes passe AU-DESSUS de tout ce qui suit le champ (la réassurance animée créait sa propre couche) */
.h8-champ{z-index:30}
.h8-champ .suggestions{z-index:40;background:#fff}
