/* =====================================================================
 * landing.css — page d'accueil publique.
 *
 * Aucune couleur en dur : tout vient de tokens.css / kit.css, donc la page
 * suit le thème et reste identique à la console. Direction : voir
 * docs/DIRECTION-site.md.
 *
 * Règle d'animation : l'état PAR DÉFAUT est l'état final (tout est visible
 * et allumé). Le JavaScript (landing.js) ne fait que rejouer la séquence
 * quand la classe `js` est posée sur <html>. Si le script ne s'exécute pas,
 * un filet CSS (voir « secours ») rétablit l'état final au bout de 2 s.
 * ===================================================================== */

/* ------------------------------------------------------------ bandeaux */
.band{background:var(--panel);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.stack{display:flex;flex-direction:column;gap:32px}
.stack-sm{display:flex;flex-direction:column;gap:20px}

/* ---------------------------------------------------------------- hero */
.hero-copy{display:flex;flex-direction:column;gap:20px;min-width:0}
.hero-cta{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:2px}
.hero-cta .btn{padding:14px 26px;font-size:15px}
.hero-note{font-size:13px;color:var(--mut)}
.hero-stat{display:flex;align-items:center;gap:14px;padding:14px 18px;width:fit-content;max-width:100%;
  background:var(--panel);border:1px solid var(--line);border-radius:var(--r-lg)}
.hero-stat .hs-ico{width:44px;height:44px;border-radius:var(--r-md);background:var(--accent-tint);
  color:var(--accent-text);display:flex;align-items:center;justify-content:center;flex:none}
.hero-stat .hs-main{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.hero-stat b{font-size:28px;line-height:1;letter-spacing:-.02em;font-weight:700}
.hero-stat .hs-main span{font-size:14px;color:var(--sub)}
.hero-stat small{display:block;font-size:12.5px;color:var(--mut);margin-top:3px}

/* La propagation : 16 familles d'objets qui s'allument de la source vers la
   destination — ce sont les 16 étapes réelles du moteur. */
.flow{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-xl);padding:18px;
  box-shadow:var(--sh-2);display:flex;flex-direction:column;gap:14px;min-width:0}
.flow-head{display:flex;justify-content:space-between;align-items:center;gap:10px;
  font-family:var(--font-mono);font-size:12px;color:var(--mut)}
.flow-head .path{display:flex;align-items:center;gap:8px}
.flow-head .path svg{color:var(--cyan)}
.flow-head .count{font-variant-numeric:tabular-nums}
.flow-head .count b{color:var(--accent-text);font-weight:500}
.tiles{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.tile{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 4px 10px;
  border-radius:var(--r-md);border:1px solid var(--line-soft);background:var(--surface);color:var(--mut);
  font-size:11.5px;line-height:1.2;text-align:center;overflow-wrap:anywhere;hyphens:auto;
  transition:background .3s var(--ease),border-color .3s var(--ease),color .3s var(--ease)}
.tile svg{width:22px;height:22px}
.tile.on,html:not(.js) .tile{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent-text)}
.js .tile.on{animation:tile-pop .38s var(--ease)}
@keyframes tile-pop{50%{transform:scale(1.07)}}
.flow-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
  border-top:1px solid var(--line-soft);padding-top:12px;font-size:13px}
.flow-foot .fails{display:inline-flex;align-items:center;gap:6px;color:var(--ok);font-weight:600}
.flow-foot .fails svg{width:16px;height:16px}
.js .flow-foot > *{opacity:0;transform:translateY(4px);
  transition:opacity .35s var(--ease),transform .35s var(--ease)}
.js .flow.done .flow-foot > *{opacity:1;transform:none}
.js .flow.done .flow-foot > :nth-child(2){transition-delay:.12s}
/* secours : si landing.js ne tourne pas, tout s'affiche à l'état final */
.js .flow:not([data-ready]) .tile{animation:fb-lit .01s 2s forwards}
.js .flow:not([data-ready]) .flow-foot > *{animation:fb-show .01s 2s forwards}
@keyframes fb-lit{to{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent-text)}}
@keyframes fb-show{to{opacity:1;transform:none}}
/* Mouvement réduit : la règle globale coupe les animations, donc aussi le
   filet ci-dessus — l'état final doit alors être posé statiquement. */
@media (prefers-reduced-motion:reduce){
  .tile{background:var(--accent-soft);border-color:var(--accent-line);color:var(--accent-text)}
  .js .flow-foot > *{opacity:1;transform:none}
}

/* ------------------------------------------------------------- preuves */
.proof{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.pf{display:flex;align-items:center;gap:14px;padding:26px 24px;border-left:1px solid var(--line-soft);min-width:0}
.pf:first-child{border-left:0;padding-left:0}
.pf .pi{width:42px;height:42px;border-radius:var(--r-md);background:var(--accent-tint);color:var(--accent-text);
  display:flex;align-items:center;justify-content:center;flex:none}
.pf b{display:block;font-size:26px;line-height:1.05;letter-spacing:-.02em;font-weight:700}
.pf span{display:block;font-size:13px;color:var(--sub);line-height:1.35;margin-top:2px}

/* -------------------------------------------------------------- gestes */
.gestes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.geste{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-lg);padding:22px;
  display:flex;flex-direction:column;gap:12px;min-width:0}
.geste .icon-tile{width:56px;height:56px;border-radius:16px}
.geste h3{margin:0;font-size:19px;font-weight:700;letter-spacing:-.015em}
.geste p{margin:0;font-size:14px;line-height:1.55;color:var(--sub);flex:1}
.geste .tag{align-self:flex-start}
.geste-foot{display:flex;align-items:center;justify-content:space-between;gap:8px 12px;flex-wrap:wrap}
/* Bordé et non un simple lien texte : c'est l'entrée vers la démo, elle ne
   doit pas se confondre avec le badge d'offre à côté. */
.geste-more{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:600;
  color:var(--accent-text);border:1px solid var(--accent-line);background:var(--accent-tint);
  padding:5px 11px;border-radius:var(--r-pill)}
.geste-more:hover{border-color:var(--accent);color:var(--accent-text)}

/* ------------------------------------------------------------- étapes */
ol.steps{list-style:none;margin:0;padding:0}
.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.step{display:flex;gap:14px;align-items:flex-start;padding:0 24px;border-left:1px solid var(--line-soft)}
.step:first-child{border-left:0;padding-left:0}
.step .n{width:32px;height:32px;border-radius:50%;background:var(--accent);color:#fff;
  font-family:var(--font-mono);font-size:13px;font-weight:500;
  display:flex;align-items:center;justify-content:center;flex:none}
.step b{display:block;font-size:17px;font-weight:600}
.step span{display:block;font-size:14px;color:var(--sub);line-height:1.5;margin-top:2px}

/* ----------------------------------------------------------- deux volets */
.g-split{display:grid;grid-template-columns:5fr 7fr;gap:48px;align-items:center}
.g-split.flip{grid-template-columns:7fr 5fr}
.split-copy{display:flex;flex-direction:column;gap:14px;min-width:0}

/* -------------------------------------------------------------- rapport */
.report{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;
  box-shadow:var(--sh-2);min-width:0}
.report-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 18px;
  border-bottom:1px solid var(--line-soft);background:var(--surface);
  font-family:var(--font-mono);font-size:12px;color:var(--mut)}
.report table{width:100%;border-collapse:collapse;font-size:13px}
.report th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.04em;font-weight:600;
  color:var(--mut);padding:10px 18px;border-bottom:1px solid var(--line)}
.report td{padding:11px 18px;border-bottom:1px solid var(--line-soft);vertical-align:middle}
.report td.name{font-family:var(--font-mono);font-size:12px;color:var(--sub);overflow-wrap:break-word}
.report td:last-child,.report th:last-child{text-align:right}
.report-foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;
  padding:12px 18px;background:var(--surface);font-size:13px}
.report-foot .total{display:inline-flex;align-items:center;gap:6px;color:var(--ok);font-weight:600}
.report-foot .total svg{width:16px;height:16px}
.legend{display:flex;flex-wrap:wrap;gap:6px}

/* ----------------------------------------------------- face à Studio */
.vs{width:100%;border-collapse:collapse;font-size:15px;background:var(--panel);
  border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden}
.vs th,.vs td{padding:14px 18px;border-bottom:1px solid var(--line-soft)}
.vs thead th{background:var(--surface);font-size:13px;color:var(--sub);text-align:center;font-weight:600}
.vs thead th:first-child{text-align:left}
.vs tbody th{text-align:left;font-weight:500}
.vs td{text-align:center;width:112px}
.vs td svg{width:20px;height:20px}
.vs .yes{color:var(--ok)} .vs .no{color:var(--err)}
.vs tbody tr:last-child > *{border-bottom:0}
.vs-note{font-size:13px;color:var(--mut);margin:0}

/* -------------------------------------------------------------- offres */
.plans4{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}
.plan-note{margin:-4px 0 0;font-size:12.5px;color:var(--mut);line-height:1.45}
.plan-price s{font-size:15px;color:var(--mut)}
.plan{background:var(--panel);border:1px solid var(--line);border-radius:var(--r-lg);padding:22px;
  display:flex;flex-direction:column;gap:14px;min-width:0}
.plan.pop{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent),var(--sh-2)}
.plan-top{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:26px}
.plan-name{font-size:16px;font-weight:600}
.tag.accent{color:#fff;background:var(--accent);border-color:var(--accent)}
.plan-price{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap}
.plan-price b{font-size:34px;line-height:1;letter-spacing:-.02em;font-weight:700}
.plan-price span{font-size:13px;color:var(--mut)}
.plan .tag{align-self:flex-start}
.plan ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px;font-size:14px;flex:1}
.plan li{display:flex;align-items:center;gap:9px}
.plan li svg{width:16px;height:16px;flex:none}
.plan li.yes svg{color:var(--ok)}
.plan li.no{color:var(--mut)} .plan li.no svg{color:var(--mut)}
.plan .btn,.plan .btn2{justify-content:center;margin-top:4px}
.plans-foot{display:flex;flex-wrap:wrap;gap:6px 20px;font-size:13px;color:var(--mut)}
.plans-foot a{font-weight:600}

/* --------------------------------------------------------- appel final */
.final{display:flex;flex-direction:column;align-items:center;gap:18px;text-align:center}
.final h2{max-width:640px}
.final .lede{max-width:520px}
.final .btn{padding:14px 26px;font-size:15px;margin-top:4px}

/* ================================================================ mobile */
@media (max-width:1300px){
  .plans4{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:1100px){
  .gestes{grid-template-columns:repeat(2,minmax(0,1fr))}
  .plans4{grid-template-columns:1fr;max-width:460px;margin-inline:auto}
}
@media (max-width:900px){
  /* Sur mobile, la séquence des pictogrammes passe juste après le bouton ;
     la carte « 2 jours » et la ligne de réassurance viennent dessous. */
  .g-hero{gap:18px}
  .hero-copy{display:contents}
  .hero-copy > .kicker{order:1}
  .hero-copy > h1{order:2}
  .hero-copy > .lede{order:3}
  .hero-copy > .hero-cta{order:4}
  .g-hero > .flow{order:5}
  .hero-copy > .hero-stat{order:6}
  .hero-copy > .hero-note{order:7}
  .g-split,.g-split.flip{grid-template-columns:1fr;gap:28px}
  .g-split.flip .split-copy{order:-1}
  .proof{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pf,.pf:first-child{border-left:0;padding:18px 6px;border-top:1px solid var(--line-soft)}
  .pf:nth-child(-n+2){border-top:0}
  .steps{grid-template-columns:1fr;gap:18px}
  .step,.step:first-child{border-left:0;padding:0}
  .flow{padding:14px}
}
@media (max-width:620px){
  .gestes,.plans4{grid-template-columns:1fr}
  /* geste = une ligne : icône à gauche, texte à droite (moitié moins haut) */
  .geste{display:grid;grid-template-columns:56px 1fr;column-gap:14px;row-gap:4px;padding:16px;align-items:start}
  .geste .icon-tile{grid-row:1 / span 3}
  .geste h3,.geste p,.geste-foot{grid-column:2}
  .geste-foot{margin-top:6px}
  .plan ul{display:grid;grid-template-columns:1fr 1fr;gap:9px 12px}
  .tile{font-size:10.5px;padding:10px 2px 8px}
  .vs th,.vs td{padding:12px 10px}
  .vs td{width:64px}
  .report th,.report td,.report-head,.report-foot{padding-left:12px;padding-right:12px}
}
@media (max-width:420px){
  .tile{font-size:10px;padding:10px 1px 8px}
  .tiles{gap:6px}
}
