/* Citelo — tokens et base, partagés par toutes les pages */
:root {
  --encre: #1B2A41; --encre2: #27395A; --gris: #5B6778; --gris2: #9AA3B2;
  --papier: #FBFAF7; --fond: #F3F2EC; --ligne: #E4E2DA; --ligne2: #CFCCC1;
  --bleu: #1A56DB; --bleu-pale: #EAF0FD; --bleu-trait: #C6D5F7;
  --ok: #1F8A4C; --moyen: #C77C0B; --bas: #C2352B;
  --titre: 'Bricolage Grotesque', 'Public Sans', system-ui, sans-serif;
  --texte: 'Public Sans', system-ui, sans-serif;
  --r: 16px; --r2: 10px; --r3: 6px;
}
* { box-sizing: border-box; }
html { background: var(--papier); }
body { margin: 0; font-family: var(--texte); font-size: 16px; line-height: 1.5; color: var(--encre); background: var(--papier); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--titre); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(28px, 4.2vw, 38px); margin-bottom: 12px; max-width: 22ch; }
h2 { font-size: 21px; margin-bottom: 12px; }
header { display: flex; align-items: center; gap: 10px; padding: 22px 16px 6px; max-width: 760px; margin: 0 auto; }
header b { font-family: var(--titre); font-size: 24px; letter-spacing: -.02em; }
.tag { background: var(--bleu); color: #fff; font-weight: 700; font-size: 12px; padding: 2px 7px; border-radius: var(--r3); font-family: var(--texte); }
main { max-width: 760px; margin: 0 auto; padding: 0 16px 60px; }
.carte { background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); padding: 24px; margin-top: 18px; }
.btn { display: inline-block; background: var(--bleu); color: #fff; font-weight: 700; padding: 13px 22px; border-radius: var(--r2); text-decoration: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; margin-top: 18px; }
.btn:hover { background: #1447B8; }
:where(a, button, input, select, [tabindex]):focus-visible { outline: 3px solid var(--bleu-trait); outline-offset: 2px; }
/* Hero : la réponse de l'IA qui s'écrit, et pose le [1] sur vous */
.intro { background: var(--encre); color: #fff; border-radius: var(--r); padding: 28px 26px; margin-top: 16px; }
.intro .sous { color: #C9D1DE; }
.bulle { background: #fff; color: var(--encre); border-radius: var(--r2); padding: 18px 20px; margin-top: 18px; font-size: 17px; line-height: 1.55; min-height: 7.2em; }
.bulle .q { color: var(--gris); font-size: 14px; margin-bottom: 8px; }
.bulle .q::before { content: ''; display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(from 90deg, #4F8DF5, #9B6CF6, #4F8DF5); vertical-align: -4px; margin-right: 8px; }
.bulle mark { background: var(--bleu-pale); color: var(--bleu); padding: 1px 6px; border-radius: var(--r3); font-weight: 700; }
.bulle .cite { color: var(--bleu); font-weight: 700; font-size: 14px; vertical-align: 2px; }
.bulle .curseur { display: inline-block; width: 2px; height: 1em; background: var(--bleu); vertical-align: -2px; margin-left: 1px; animation: clignote 1s steps(2) infinite; }
@keyframes clignote { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bulle .curseur { display: none; } }
.sous { color: var(--gris); margin: 0; font-size: 15px; line-height: 1.5; }
label.l { display: block; font-weight: 600; font-size: 14px; margin-top: 16px; }
.zone { display: block; margin-top: 6px; border: 2px dashed var(--ligne2); border-radius: var(--r2); padding: 22px; text-align: center; cursor: pointer; }
.zone.sur { border-color: var(--bleu); background: var(--bleu-pale); }
.zone.ok { border-style: solid; border-color: var(--ok); }
input[type=file] { display: none; }
input[type=url], input[type=text], input[type=tel], select { width: 100%; margin-top: 6px; padding: 10px; border: 1px solid var(--ligne); border-radius: var(--r2); font: inherit; background: #fff; }
.btn:disabled { opacity: .5; cursor: default; }
.hero { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: center; }
@media (max-width: 600px) { .hero { grid-template-columns: 1fr; text-align: center; } }
.anneau { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; margin: auto; background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--ligne) 0); }
.anneau div { width: 118px; height: 118px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: var(--titre); font-size: 46px; font-weight: 800; letter-spacing: -.03em; }
.anneau small { font-size: 13px; font-weight: 600; color: var(--gris); letter-spacing: 0; display: block; margin-top: -6px; }
.piliers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.pilier { background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); padding: 18px; }
.pilier .n { font-family: var(--titre); font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.barre { height: 8px; background: var(--ligne); border-radius: 4px; margin: 8px 0 4px; overflow: hidden; }
.barre i { display: block; height: 100%; background: var(--c); width: calc(var(--v) * 1%); }
.pilier p { margin: 0; color: var(--gris); font-size: 13px; }
.crit { list-style: none; margin: 0; padding: 0; }
.crit li { display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--ligne); font-size: 14px; }
.crit li:first-child { border-top: 0; }
.pt { font-weight: 700; }
.pt small { font-size: 10px; color: var(--gris); font-weight: 600; }
.pourquoi li { grid-template-columns: 48px 1fr auto; align-items: center; }
.amel { font-size: 12px; font-weight: 600; color: var(--bleu); border: 1px solid var(--bleu); border-radius: 8px; padding: 7px 10px; text-decoration: none; white-space: nowrap; text-align: center; }
@media (max-width: 600px) { .pourquoi li { grid-template-columns: 48px 1fr; } .amel { grid-column: 2; justify-self: start; white-space: normal; } }
.crit .d { color: var(--gris); display: block; margin-top: 2px; }
.crit .c { display: block; margin-top: 4px; }
.ok { color: var(--ok); } .moyen { color: var(--moyen); } .bas { color: var(--bas); }
.flou { position: relative; }
.flou .crit { filter: blur(6px); user-select: none; pointer-events: none; }
.voile { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; }
.voile div { background: #fff; border: 1px solid var(--ligne2); border-radius: var(--r2); padding: 18px 22px; max-width: 400px; }
.voile .sous { margin-top: 6px; }
.err { color: var(--bas); font-weight: 600; margin-top: 12px; }
.info { background: var(--fond); border: 1px solid var(--ligne); border-radius: var(--r2); padding: 12px 14px; margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--encre); }
.info code { background: #fff; border: 1px solid var(--ligne); border-radius: 4px; padding: 0 4px; font-size: 12px; }
.gnair { background: var(--encre); color: #fff; }
.gnair .sous { color: var(--ligne2); }
.gnair .btn { background: #fff; color: var(--encre); margin-top: 12px; }
footer { color: var(--gris); font-size: 12px; margin-top: 24px; }
.print-only { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
    header, main { max-width: none; padding: 0; }
  .no-print, .voile, .heat-voile, .amel, .intro, #form { display: none !important; }
  .print-only { display: block; }
  .carte, .pilier { border: 1px solid var(--ligne2); break-inside: avoid; box-shadow: none; }
  .flou .crit { filter: blur(5px); }
  .anneau { background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--ligne) 0); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pt-carte, .barre i, .c1, .c2, .c3, .c0, .tag, .coach .ic { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pitch { margin-top: 18px; padding: 16px; border: 2px solid var(--bleu); border-radius: var(--r2); font-size: 14px; line-height: 1.5; }
}
.etape { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--ligne); }
.etape:first-of-type { border-top: 0; padding-top: 0; }
.num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ligne); color: var(--gris); font-weight: 700; display: grid; place-items: center; font-size: 14px; transition: .3s; }
.etape.fait .num { background: var(--ok); color: #fff; }
.etape.fait .num::before { content: '✓'; }
.etape.fait .num span { display: none; }
.etape > div:last-child { flex: 1; }
.etape b.t { display: block; font-size: 15px; }
.etape .sous { font-size: 13px; }
.coach { display: flex; gap: 12px; align-items: flex-start; background: var(--bleu-pale); border: 1px solid var(--bleu-trait); border-radius: var(--r2); padding: 14px 16px; margin-top: 16px; font-size: 14px; line-height: 1.5; }
.coach .ic { flex: none; width: 34px; height: 34px; border-radius: var(--r2); background: var(--bleu); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.chargement { text-align: center; padding: 40px 20px; }
.chargement .anneau div { font-size: 34px; }
.chargement .anneau small { font-size: 14px; }
.chargement ul { list-style: none; padding: 0; margin: 24px auto 0; max-width: 360px; text-align: left; }
.chargement li { padding: 8px 0; color: var(--ligne2); font-size: 15px; opacity: .35; transition: .4s; }
.chargement li.on { opacity: 1; color: var(--encre); font-weight: 600; }
.chargement li.ok { opacity: 1; color: var(--ok); }
.chargement li.ok::before { content: '✓ '; }
.verdict { font-size: 14px; margin-top: 10px; line-height: 1.5; }
.flou-zone { position: relative; }
.aide { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--ligne2); background: #fff; color: var(--gris); font: 700 12px var(--texte); cursor: pointer; margin-left: 8px; vertical-align: middle; }
.aide:hover { border-color: var(--bleu); color: var(--bleu); }
.hero { position: relative; } .hero-aide { position: absolute; top: 14px; right: 14px; }
.bulle-info { background: var(--encre); color: #fff; font-size: 13px; line-height: 1.5; padding: 12px 14px; border-radius: var(--r2); margin-top: 10px; }
@media print { .aide { display: none; } }
.ia { border-left: 4px solid var(--bleu); }
.etiq { font-family: var(--titre); font-size: 15px; font-weight: 700; color: var(--bleu); }
.phrase { font-family: var(--titre); font-size: 22px; font-weight: 500; line-height: 1.35; margin: 6px 0 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 16px; }
.stats div { background: var(--fond); border: 1px solid var(--ligne); border-radius: var(--r2); padding: 10px 12px; font-size: 13px; color: var(--gris); }
.stats b { display: block; font-family: var(--titre); font-size: 24px; color: var(--encre); }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }
.tagq { font-size: 11px; font-weight: 600; color: var(--gris); border: 1px solid var(--ligne); border-radius: 999px; padding: 1px 7px; margin-left: 6px; white-space: nowrap; }
.heat { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 420px; margin: 16px auto 8px; background: var(--fond); padding: 4px; border-radius: var(--r2); }
.pt-carte { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; }
.pt-carte.masque { background: var(--ligne2); filter: blur(2px); }
.pt-carte.moi { outline: 3px solid var(--encre); outline-offset: 2px; }
.c1 { background: var(--ok); } .c2 { background: var(--moyen); } .c3 { background: var(--bas); } .c0 { background: var(--gris2); }
.heat-voile { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; }
.legende { font-size: 12px; text-align: center; }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 4px 0 10px; vertical-align: middle; }
