/* =====================================================================
   HERO A/B VARIANTS — styles extraits des drafts 01-Versionning
   Chargé par index.html en permanence ; le middleware injecte le
   fragment correspondant (hero-a.html ou hero-c.html) à la place du
   hero scroll d'origine (control). Voir functions/_middleware.js.

   NB : les fragments sont injectés dans index.html qui a une nav
   position:fixed (top:20px). Le padding-top des grids ci-dessous
   dégage donc l'espace nécessaire pour ne pas passer sous la nav.
   ===================================================================== */

/* ============================ HERO A ================================
   Human cost — sombre, chaos documentaire (Excel + fil WhatsApp)
   ==================================================================== */
.heroA{
  background:#0B0B0C; color:#F4F3EF; overflow:hidden; position:relative;
  background-image:
    radial-gradient(120% 90% at 88% 8%, rgba(43,168,138,.14) 0%, rgba(43,168,138,0) 55%),
    radial-gradient(100% 80% at 0% 100%, rgba(255,255,255,.05) 0%, rgba(255,255,255,0) 50%);
}
.heroA-grid{
  display:grid; grid-template-columns:1.05fr 1fr; gap:clamp(24px,4vw,64px);
  align-items:center; max-width:1360px; margin:0 auto;
  padding:clamp(112px,11vw,150px) 24px clamp(64px,8vw,120px);
}
.heroA-eyebrow{
  display:inline-flex; align-items:center; gap:9px;
  font-family:"Inter Tight",system-ui,sans-serif; font-size:14px; font-weight:500; letter-spacing:.02em;
  color:#F4F3EF; padding:9px 18px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); border-radius:999px;
}
.heroA-eyebrow .dot{ width:7px; height:7px; border-radius:50%; background:#2BA88A; box-shadow:0 0 0 3px rgba(43,168,138,.22); }
.heroA-h1{
  font-family:"Inter Tight",system-ui,sans-serif; font-weight:600; letter-spacing:-0.03em; color:#F7F6F2;
  font-size:clamp(34px,4vw,58px); line-height:1.05; max-width:15ch; margin:26px 0 0;
}
.heroA-h1 mark{
  background:#2BA88A; color:#06150F; padding:0 .1em; border-radius:4px;
  display:inline-block; transform:rotate(-1.2deg); font-weight:600;
}
.heroA-pain{
  font-family:"Inter Tight",system-ui,sans-serif; font-size:clamp(16px,1.3vw,19px); line-height:1.55;
  color:#B7B6B0; max-width:46ch; margin:22px 0 0;
}
.heroA-pain b{ color:#F4F3EF; font-weight:600; }
.heroA-rule{ width:56px; height:3px; background:#2BA88A; border-radius:2px; margin:26px 0; }
.heroA-resolve{
  font-family:"Inter Tight",system-ui,sans-serif; font-weight:500; letter-spacing:-0.01em;
  font-size:clamp(17px,1.5vw,21px); line-height:1.35; color:#EDECE7; max-width:44ch;
}
.heroA-resolve b{ color:#fff; font-weight:600; }
.heroA-actions{ display:flex; align-items:center; gap:20px; flex-wrap:wrap; margin-top:30px; }
.heroA-btn{
  display:inline-flex; align-items:center; gap:10px; text-decoration:none;
  font-family:"Inter Tight",system-ui,sans-serif; font-weight:600; letter-spacing:-0.01em; font-size:16px;
  background:#2BA88A; color:#06150F; padding:16px 26px; border-radius:999px; white-space:nowrap;
  transition:background .2s;
}
.heroA-btn:hover{ background:#fff; }
.heroA-btn .arr{ font-size:17px; line-height:1; transition:transform .2s; }
.heroA-btn:hover .arr{ transform:translateX(4px); }
.heroA-micro{
  display:inline-flex; align-items:center; gap:9px; font-family:"Inter Tight",system-ui,sans-serif;
  font-size:13.5px; font-weight:500; color:#86857F; max-width:30ch; line-height:1.3;
}
.heroA-micro::before{ content:""; width:7px; height:7px; border-radius:50%; flex:0 0 auto; background:#2BA88A; box-shadow:0 0 0 3px rgba(43,168,138,.22); }

/* the mess: excel tracker + endless WhatsApp thread */
.heroA-mess{ position:relative; min-height:520px; }
.a-scrap{
  position:absolute; background:#FBFAF6; color:#1A1A1A; border-radius:10px;
  box-shadow:0 34px 60px -22px rgba(0,0,0,.7), 0 4px 12px rgba(0,0,0,.35);
  font-family:"Inter Tight",system-ui,sans-serif;
}
.a-xls{ width:min(372px,88%); left:0; bottom:0; transform:rotate(-3deg); overflow:hidden; }
.a-xls .bar{ background:#1E7145; color:#fff; padding:10px 14px; display:flex; align-items:center; gap:8px; }
.a-xls .bar .gi{ width:17px; height:17px; border-radius:3px; background:#fff; color:#1E7145; font-size:11px; font-weight:800; display:flex; align-items:center; justify-content:center; }
.a-xls .bar b{ font-size:12.5px; font-weight:600; }
.a-xls table{ width:100%; border-collapse:collapse; font-size:11.5px; }
.a-xls td,.a-xls th{ border:1px solid #E2E1DA; padding:7px 10px; text-align:left; color:#3A3A36; white-space:nowrap; }
.a-xls th{ background:#F2F1EB; font-weight:700; color:#6A6960; font-size:10.5px; letter-spacing:.02em; }
.a-xls .q{ color:#E0473B; font-weight:700; }
.a-xls .ok{ color:#1E7145; font-weight:700; }
.a-xls .grey{ color:#A6A59C; }
.a-xls .warn{ background:#FCEFD0; }

.a-wapp{ width:min(336px,88%); right:0; top:0; transform:rotate(2deg); overflow:hidden; background:#E7E0D8; }
.a-wapp .wh{ background:#1F7A6B; color:#fff; padding:10px 14px; display:flex; align-items:center; gap:10px; }
.a-wapp .wh .av{ width:30px; height:30px; border-radius:50%; background:rgba(255,255,255,.22); display:flex; align-items:center; justify-content:center; font-size:14px; flex:0 0 auto; }
.a-wapp .wh .ti{ display:flex; flex-direction:column; line-height:1.15; min-width:0; }
.a-wapp .wh .ti b{ font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.a-wapp .wh .ti span{ font-size:10px; color:rgba(255,255,255,.72); }
.a-wapp .wh .unr{ margin-left:auto; flex:0 0 auto; background:#E0473B; color:#fff; font-size:10px; font-weight:700; border-radius:999px; padding:2px 8px; }
.a-wapp .body{
  padding:12px 12px 16px; display:flex; flex-direction:column; gap:7px; max-height:420px; overflow:hidden;
  background-image:radial-gradient(rgba(0,0,0,.045) 1px, transparent 1px); background-size:14px 14px;
  -webkit-mask-image:linear-gradient(180deg, transparent 0, #000 64px); mask-image:linear-gradient(180deg, transparent 0, #000 64px);
}
.a-wapp .day{ align-self:center; background:rgba(0,0,0,.07); color:#5A5A52; font-size:9.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; padding:3px 10px; border-radius:8px; margin:3px 0; }
.a-bub{ max-width:86%; font-size:11.5px; line-height:1.32; padding:7px 10px 8px; border-radius:9px; position:relative; color:#1A1A1A; box-shadow:0 1px 1px rgba(0,0,0,.06); }
.a-bub .tm{ font-size:9px; color:#8A968F; float:right; margin:5px 0 -2px 9px; }
.a-bub.in{ background:#fff; align-self:flex-start; border-top-left-radius:2px; }
.a-bub.out{ background:#D6F2C4; align-self:flex-end; border-top-right-radius:2px; }
.a-bub .nm{ display:block; font-size:10px; font-weight:700; margin-bottom:2px; }
.a-bub .clip{ color:#5A5A52; }
.a-bub.typing{ background:#fff; align-self:flex-start; display:inline-flex; gap:4px; padding:10px 12px; }
.a-bub.typing i{ width:6px; height:6px; border-radius:50%; background:#B7B6AE; display:inline-block; animation:a-wtype 1.2s infinite; }
.a-bub.typing i:nth-child(2){ animation-delay:.18s; } .a-bub.typing i:nth-child(3){ animation-delay:.36s; }
@keyframes a-wtype{ 0%,60%,100%{ transform:translateY(0); opacity:.5; } 30%{ transform:translateY(-3px); opacity:1; } }
@media (prefers-reduced-motion: reduce){ .a-bub.typing i{ animation:none; } }

@media (max-width: 900px){
  .heroA-grid{ grid-template-columns:1fr; padding-top:clamp(96px,24vw,120px); }
  .heroA-mess{ min-height:440px; margin-top:12px; }
  .a-xls{ position:relative; left:auto; bottom:auto; margin-bottom:180px; }
  .a-wapp{ position:absolute; right:0; top:auto; bottom:0; }
}

/* ============================ HERO C ================================
   Version question — clair, motif "versions empilées"
   ==================================================================== */
.heroC{ background:var(--bg,#EFEEEA); overflow:hidden; position:relative; }
.heroC-grid{
  display:grid; grid-template-columns:1.05fr 1fr; gap:clamp(24px,5vw,72px);
  align-items:center; max-width:1360px; margin:0 auto;
  padding:clamp(112px,11vw,150px) 24px clamp(64px,8vw,120px);
}
.heroC-eyebrow{
  display:inline-flex; align-items:center; gap:9px;
  font-family:"Inter Tight",system-ui,sans-serif; font-size:14px; font-weight:500; letter-spacing:.02em;
  color:#1A1A1A; padding:9px 18px; background:#fff; border:1px solid rgba(10,10,10,.16); border-radius:999px;
}
.heroC-eyebrow .dot{ width:7px; height:7px; border-radius:50%; background:#2BA88A; box-shadow:0 0 0 3px rgba(43,168,138,.18); }
.heroC-h1{
  font-family:"Inter Tight",system-ui,sans-serif; font-weight:600; letter-spacing:-0.035em; color:#0A0A0A;
  font-size:clamp(32px,3.8vw,54px); line-height:1.05; max-width:15ch; margin:26px 0 0;
}
.heroC-h1 .g{ color:#1E8C72; }
.heroC-pain{
  font-family:"Inter Tight",system-ui,sans-serif; font-size:clamp(16px,1.3vw,19px); line-height:1.55;
  color:#4A4A4A; max-width:48ch; margin:22px 0 0;
}
.heroC-pain b{ color:#1A1A1A; font-weight:600; }
.heroC-rule{ width:56px; height:3px; background:#2BA88A; border-radius:2px; margin:26px 0; }
.heroC-resolve{
  font-family:"Inter Tight",system-ui,sans-serif; font-weight:500; letter-spacing:-0.01em;
  font-size:clamp(17px,1.5vw,21px); line-height:1.35; color:#1A1A1A; max-width:44ch;
}
.heroC-resolve b{ color:#0A0A0A; font-weight:600; }
.heroC-actions{ display:flex; align-items:center; gap:20px; flex-wrap:wrap; margin-top:30px; }
.heroC-btn{
  display:inline-flex; align-items:center; gap:10px; text-decoration:none;
  font-family:"Inter Tight",system-ui,sans-serif; font-weight:600; letter-spacing:-0.01em; font-size:16px;
  background:#0A0A0A; color:#fff; padding:16px 26px; border-radius:999px; white-space:nowrap;
  transition:background .2s;
}
.heroC-btn:hover{ background:#1E8C72; }
.heroC-btn .arr{ font-size:17px; line-height:1; transition:transform .2s; }
.heroC-btn:hover .arr{ transform:translateX(4px); }
.heroC-micro{
  display:inline-flex; align-items:center; gap:9px; font-family:"Inter Tight",system-ui,sans-serif;
  font-size:13.5px; font-weight:500; color:#8A8A8A; max-width:30ch; line-height:1.3;
}
.heroC-micro::before{ content:""; width:7px; height:7px; border-radius:50%; flex:0 0 auto; background:#2BA88A; box-shadow:0 0 0 3px rgba(43,168,138,.18); }

/* version stack */
.heroC-stage{ position:relative; }
.c-cap{
  font-family:"Inter Tight",system-ui,sans-serif; font-size:13px; font-weight:600; letter-spacing:.14em;
  text-transform:uppercase; color:#8A8A8A; margin-bottom:14px;
}
.c-countbar{ display:flex; align-items:baseline; gap:16px; margin-bottom:30px; }
.c-countbar s{
  font-family:"Inter Tight",system-ui,sans-serif; font-size:clamp(52px,6vw,78px); font-weight:700;
  letter-spacing:-0.05em; line-height:.8; color:#0A0A0A; text-decoration-color:#2BA88A; text-decoration-thickness:4px;
}
.c-countbar em{
  font-style:normal; font-family:"Inter Tight",system-ui,sans-serif; font-size:15px; font-weight:600;
  color:#8A8A8A; max-width:13ch; line-height:1.25;
}
.c-stack{ position:relative; height:212px; }
.c-file{
  position:absolute; left:0; width:min(480px,94%);
  display:flex; align-items:center; gap:14px; font-family:"Inter Tight",system-ui,sans-serif;
  background:#fff; border:1px solid rgba(10,10,10,.10); border-radius:14px;
  padding:16px 20px; box-shadow:0 20px 36px -26px rgba(0,0,0,.30);
}
.c-file .fi{ width:30px; height:38px; border-radius:5px; background:#e7e6e1; position:relative; flex:0 0 auto; }
.c-file .fi::after{ content:""; position:absolute; top:5px; right:5px; width:9px; height:9px; border-radius:0 5px 0 0; background:#cfceca; }
.c-file .fn{ font-size:15px; font-weight:500; color:#4A4A4A; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.c-file .fm{ margin-left:auto; font-size:12.5px; color:#8A8A8A; white-space:nowrap; }
.c-file.f1{ top:0;   transform:rotate(-2.2deg) translateX(20px); opacity:.45; }
.c-file.f2{ top:34px;transform:rotate(1.4deg)  translateX(8px);  opacity:.62; }
.c-file.f3{ top:70px;transform:rotate(-0.8deg) translateX(-4px); opacity:.82; }
.c-file.live{
  top:124px; left:-10px; width:min(520px,98%);
  background:#0A0A0A; border-color:#0A0A0A;
  box-shadow:0 34px 56px -26px rgba(0,0,0,.5);
}
.c-file.live .fi{ background:rgba(255,255,255,.14); }
.c-file.live .fi::after{ background:rgba(255,255,255,.28); }
.c-file.live .fn{ color:#fff; font-weight:600; }
.c-file.live .badge{
  margin-left:auto; display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600; color:#fff;
  background:rgba(43,168,138,.22); border:1px solid rgba(43,168,138,.5); padding:6px 12px; border-radius:999px; white-space:nowrap;
}
.c-file.live .badge .ld{ width:8px; height:8px; border-radius:50%; background:#2BA88A; box-shadow:0 0 0 3px rgba(43,168,138,.25); }
.heroC-answer{
  margin-top:30px; font-family:"Inter Tight",system-ui,sans-serif; font-size:18px; font-weight:600;
  color:#0A0A0A; display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
.heroC-answer .g{ color:#1E8C72; }

@media (max-width: 900px){
  .heroC-grid{ grid-template-columns:1fr; padding-top:clamp(96px,24vw,120px); }
  .heroC-stage{ margin-top:20px; }
  .c-stack{ height:240px; }
}
