/* ====================================================================
   Taillé pour le poste — style « ATELIER »
   Parti pris : l'atelier du tailleur. Papier patron, lignes de coupe en
   pointillés, repères de couturier, un MÈTRE DE COUTURIER comme jauge de
   score, typo expressive (Syne) + étiquettes machine à écrire (Space Mono).
   Bords francs, ombres « découpées », accents tomate + bleu craie.
   On bouscule les codes du SaaS propret. Léger pour petit GPU.
   ==================================================================== */

:root {
  --paper: #F4ECDC;
  --paper-2: #FBF6EC;
  --card: #FFFFFF;
  --ink: #1B1611;
  --ink-soft: #463E33;
  --muted: #8B8173;
  --hair: #E4DAC8;

  --tomato: #E8442A;
  --tomato-d: #C5371F;
  --tomato-soft: #FBE3DD;
  --chalk: #2F4FD6;
  --chalk-soft: #E7EBFB;
  --green: #11855A;
  --green-soft: #D9F0E5;
  --amber: #B57A12;
  --red: #D63B23;

  --tape: #F4CE57;
  --tape-edge: #E0B23A;

  --shadow-s: 3px 3px 0 var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 7px 7px 0 var(--ink);

  --r: 14px;
  --r-sm: 9px;
  --bd: 2.5px solid var(--ink);
  --maxw: 1120px;

  --display: "Syne", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-soft);
  background: var(--paper);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0 0 .5em;
}
p { text-wrap: pretty; margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 3px; }

section { padding: 84px 24px; }
section > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

/* ---------- Icônes ---------- */
.ic, .step-ic svg, .why-ic svg, .buy-reassure svg, .trust-row svg, .scissors {
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ic { width: 1.05em; height: 1.05em; flex: none; vertical-align: -2px; }

/* ---------- Étiquettes machine à écrire ---------- */
.kicker {
  display: inline-block; font-family: var(--mono); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; font-size: .8rem;
  color: var(--tomato-d); margin: 0 0 14px;
}
.piece-tag {
  position: absolute; top: -14px; left: 26px; z-index: 4;
  font-family: var(--mono); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: .68rem; color: var(--ink);
  background: var(--tape); border: var(--bd); padding: 4px 11px; border-radius: 6px;
}
.piece-tag.dark { background: var(--ink); color: var(--tape); }

/* ---------- En-têtes de section ---------- */
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }

/* ---------- Boutons (étiquettes estampillées) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--mono); font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; font-size: .82rem; text-decoration: none;
  border: var(--bd); border-radius: var(--r-sm); padding: 13px 22px; cursor: pointer;
  box-shadow: var(--shadow-s);
  transition: transform .1s ease, box-shadow .1s ease, background .15s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--tomato); color: #fff; }
.btn-quiet { background: var(--card); color: var(--ink); }
.btn-light { background: var(--tape); color: var(--ink); }
.btn-lg { padding: 15px 26px; font-size: .88rem; }
.btn-sm { padding: 9px 15px; font-size: .74rem; box-shadow: 2px 2px 0 var(--ink); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; box-shadow: var(--shadow-s); transform: none; cursor: default; }
.btn.is-busy .btn-label { opacity: .4; }

.linkish {
  background: none; border: none; padding: 0; cursor: pointer; font: inherit;
  color: var(--tomato-d); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px;
}
.linkish:hover { color: var(--tomato); }

/* ---------- Bandeau démo ---------- */
.demo-banner {
  background: var(--tape); color: var(--ink); text-align: center;
  font-family: var(--mono); font-size: .82rem; font-weight: 700;
  padding: 9px 16px; border-bottom: var(--bd);
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 24px; background: var(--paper);
  border-bottom: 2.5px solid transparent; transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: inline-flex; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.12rem; letter-spacing: -0.03em; color: var(--ink); }
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav > a:not(.btn) { text-decoration: none; color: var(--ink); font-family: var(--mono); font-size: .82rem; font-weight: 700; }
.header-nav > a:not(.btn):hover { color: var(--tomato-d); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center;
  padding-top: 76px; padding-bottom: 76px; position: relative;
}
.eyebrow {
  display: inline-block; font-family: var(--mono); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--ink);
  background: var(--card); border: var(--bd); padding: 7px 14px; border-radius: 7px;
  box-shadow: var(--shadow-s); margin: 0 0 24px;
}
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); line-height: 1.14; }
.hl { color: var(--tomato); position: relative; white-space: nowrap; }
.squiggle { position: absolute; left: -2%; bottom: -.05em; width: 104%; height: .32em; overflow: visible; }
.squiggle path {
  fill: none; stroke: var(--tomato); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 340; stroke-dashoffset: 340;
  animation: draw 1s .45s forwards cubic-bezier(.2,.7,.2,1);
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 31em; margin-top: 20px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.trust-row { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-family: var(--mono); font-size: .8rem; font-weight: 400; }
.trust-row .ic { color: var(--tomato); width: 1.15em; height: 1.15em; }

/* Carte aperçu */
.hero-card {
  position: relative; background: var(--card); border: var(--bd);
  border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-lg);
}
.preview-role { margin-bottom: 18px; }
.preview-role-label { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--muted); }
.preview-role-name { font-family: var(--display); font-weight: 700; font-size: 1.22rem; color: var(--ink); }
.preview-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0; }
.preview-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 18px 0 9px; }
.leg { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: .72rem; color: var(--ink-soft); }
.leg .dot { width: 11px; height: 11px; }

/* ---------- Mètre de couturier (jauge de score) ---------- */
.score-readout { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
.score-num { font-family: var(--mono); font-weight: 700; font-size: 3.3rem; line-height: 1; color: var(--ink); }
.score-readout.big .score-num { font-size: 4.2rem; }
.score-slash { font-family: var(--mono); font-size: 1.1rem; color: var(--muted); }
.score-tag { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; color: var(--muted); align-self: center; }

.tape { position: relative; width: 100%; padding-top: 14px; }
.tape-rail {
  position: relative; height: 56px; background: var(--tape); border: var(--bd);
  border-radius: 7px; overflow: hidden; box-shadow: var(--shadow-s);
}
.tape-rail .tick { position: absolute; top: 0; width: 2px; background: var(--ink); }
.tape-rail .tick.major { height: 17px; }
.tape-rail .tick.minor { height: 9px; opacity: .5; }
.tape-rail .tnum { position: absolute; bottom: 7px; transform: translateX(-50%); font-family: var(--mono); font-size: .68rem; color: var(--ink); }
.tape-marker { position: absolute; top: 14px; height: 56px; left: 0; width: 0; z-index: 3; transition: left 1.1s cubic-bezier(.2,.8,.2,1); }
.tape-marker::before { content: ""; position: absolute; top: 0; bottom: 0; left: -2px; width: 4px; background: var(--tomato); }
.tape-marker::after {
  content: ""; position: absolute; top: -13px; left: -8px;
  border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 13px solid var(--tomato);
  filter: drop-shadow(1px 1px 0 var(--ink));
}

/* ---------- Ligne de coupe ---------- */
.cutline { display: flex; align-items: center; max-width: var(--maxw); margin: 0 auto; padding: 6px 24px; color: var(--ink); }
.cutline::before, .cutline::after { content: ""; flex: 1; border-top: 2.5px dashed var(--ink); opacity: .55; }
.scissors { width: 26px; height: 26px; margin: 0 16px; flex: none; }

/* ---------- Étapes ---------- */
.steps-section { border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); background: var(--paper-2); }
.steps { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; background: var(--card); border: var(--bd); border-radius: var(--r); padding: 30px 26px 26px; box-shadow: var(--shadow-s); }
.piece-num { position: absolute; top: 14px; right: 20px; font-family: var(--mono); font-weight: 700; font-size: 1.5rem; color: var(--hair); }
.step-ic { display: inline-grid; place-content: center; width: 48px; height: 48px; border: var(--bd); border-radius: 11px; background: var(--tape); color: var(--ink); margin-bottom: 18px; }
.step-ic svg { width: 24px; height: 24px; }
.steps .step:nth-child(2) .step-ic { background: var(--chalk-soft); }
.steps .step:nth-child(3) .step-ic { background: var(--tomato-soft); }
.step h3 { font-size: 1.24rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); margin: 0; }

/* ---------- Outil ---------- */
.tool { background: var(--paper); }
.tool-card { position: relative; background: var(--card); border: var(--bd); border-radius: var(--r); padding: 40px 38px; box-shadow: var(--shadow-lg); }
.tool-head { text-align: center; margin-bottom: 26px; }
.tool-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.tool-head p { color: var(--muted); margin: 0; }

.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; }
.field-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.field label { font-family: var(--mono); font-weight: 700; color: var(--ink); font-size: .9rem; }
.field-hint { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.field-hint.ok { color: var(--green); }
textarea {
  font-family: var(--font); font-size: .98rem; line-height: 1.55; color: var(--ink);
  padding: 15px; border: var(--bd); border-radius: var(--r-sm); resize: vertical; background: var(--paper-2);
  transition: box-shadow .12s ease, background .12s ease;
}
textarea::placeholder { color: #ab9f8d; }
textarea:focus { outline: none; background: #fff; box-shadow: var(--shadow-s); }

/* moyens d'import (fichier / lien) */
.src-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 11px; }
.src-label { font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.src {
  font-family: var(--mono); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .02em;
  background: var(--card); color: var(--ink); border: 2px solid var(--ink); border-radius: 7px;
  padding: 6px 11px; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); transition: transform .1s ease, box-shadow .1s ease, background .12s ease;
}
.src:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.src.is-on { background: var(--tape); }
.src-or { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.src-url { display: flex; gap: 9px; margin-bottom: 11px; flex-wrap: wrap; }
.src-url input { flex: 1; min-width: 200px; font-family: var(--font); font-size: .95rem; padding: 11px 13px; border: var(--bd); border-radius: var(--r-sm); background: var(--paper-2); color: var(--ink); }
.src-url input:focus { outline: none; background: #fff; box-shadow: var(--shadow-s); }
.src-url .btn { white-space: nowrap; }
.src-status { display: block; font-family: var(--mono); font-size: .74rem; color: var(--green); margin-top: 7px; min-height: 1.1em; }
.src-status.error { color: var(--red); }
.src-status.working { color: var(--tomato-d); }
.tool-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.status { color: var(--muted); font-family: var(--mono); font-size: .82rem; }
.status.error { color: var(--red); }
.status.working { color: var(--tomato-d); }

.notice { background: var(--chalk-soft); border: var(--bd); color: var(--ink); padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 22px; font-weight: 500; }

/* ---------- Résultat ---------- */
.result { position: relative; margin-top: 34px; border: var(--bd); border-radius: var(--r); padding: 40px 38px; background: var(--card); box-shadow: var(--shadow-lg); }
.result-head { position: relative; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.score-readout.big { flex-direction: column; align-items: flex-start; gap: 2px; flex: none; }
.result-summary { flex: 1; min-width: 260px; }
.result-eyebrow { font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; color: var(--tomato-d); margin: 0 0 7px; }
.result-summary h3 { font-size: 1.5rem; margin-bottom: 10px; }
.result-summary p { color: var(--ink-soft); margin: 0; font-size: 1.06rem; }
.result-tape { margin-top: 26px; }

.result-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 32px; }
.result-block h4 { display: flex; align-items: center; gap: 9px; font-size: 1.08rem; margin-bottom: 14px; }
.dot { width: 13px; height: 13px; border: 2px solid var(--ink); display: inline-block; flex: none; }
.dot-ok { background: var(--green); }
.dot-miss { background: var(--tomato); }
.kws { display: flex; flex-wrap: wrap; gap: 9px; }
.kws .kw { opacity: 0; transform: translateY(6px); animation: chipIn .4s forwards; }
@keyframes chipIn { to { opacity: 1; transform: none; } }

.kw {
  font-family: var(--font); font-weight: 600; font-size: .9rem;
  padding: 6px 13px; border: 2px solid var(--ink); border-radius: 8px; background: var(--card); color: var(--ink);
}
.kw-ok { background: var(--green-soft); }
.kw-miss { background: var(--tomato-soft); }

/* Paywall */
.paywall { margin-top: 36px; border-top: 2.5px dashed var(--ink); padding-top: 32px; display: grid; grid-template-columns: 1.5fr .9fr; gap: 34px; align-items: center; }
.paywall-text h3 { font-size: 1.5rem; margin-bottom: 16px; }
.paywall-fine { color: var(--muted); font-size: .9rem; margin: 14px 0 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.ticks li { padding-left: 30px; position: relative; color: var(--ink-soft); }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 14px; height: 8px; border-left: 3px solid var(--tomato); border-bottom: 3px solid var(--tomato); transform: rotate(-45deg); }
.paywall-buy { text-align: center; background: var(--tape); border: var(--bd); border-radius: var(--r); padding: 26px 24px; box-shadow: var(--shadow-s); }
.price-row { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin-bottom: 16px; }
.price { font-family: var(--mono); font-weight: 700; font-size: 2.5rem; color: var(--ink); line-height: 1; }
.price-tag { font-family: var(--mono); color: var(--ink-soft); font-size: .8rem; }
.buy-reassure { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--ink-soft); font-family: var(--mono); font-size: .76rem; margin: 12px 0 0; }

/* ---------- Pourquoi ---------- */
.why { background: var(--chalk-soft); border-top: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.why-item { background: var(--card); border: var(--bd); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-s); }
.why-ic { display: inline-grid; place-content: center; width: 46px; height: 46px; border: var(--bd); border-radius: 11px; background: var(--tape); color: var(--ink); margin-bottom: 16px; }
.why-ic svg { width: 24px; height: 24px; }
.why-item:nth-child(2) .why-ic { background: var(--card); }
.why-item:nth-child(3) .why-ic { background: var(--green-soft); }
.why-item:nth-child(4) .why-ic { background: var(--tomato-soft); }
.why-item h3 { font-size: 1.2rem; margin-bottom: 6px; }
.why-item p { color: var(--ink-soft); margin: 0; }

/* ---------- Tarif ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 800px; }
.plan { position: relative; border: var(--bd); border-radius: var(--r); padding: 32px; background: var(--card); box-shadow: var(--shadow-s); }
.plan-feature { box-shadow: var(--shadow-lg); }
.plan-badge { position: absolute; top: -14px; left: 28px; background: var(--tomato); color: #fff; border: var(--bd); font-family: var(--mono); font-weight: 700; text-transform: uppercase; font-size: .68rem; padding: 4px 12px; border-radius: 6px; }
.plan-name { font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; color: var(--muted); margin: 0 0 10px; }
.plan-price { font-family: var(--display); font-weight: 800; font-size: 2.3rem; color: var(--ink); margin: 0 0 22px; }
.plan-price small { font-family: var(--mono); font-size: .8rem; font-weight: 400; color: var(--muted); }
.plan .ticks { margin-bottom: 26px; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper-2); border-top: 2.5px solid var(--ink); }
.faq-list { max-width: 760px; }
details { border: var(--bd); border-radius: var(--r-sm); background: var(--card); padding: 4px 22px; margin-bottom: 12px; box-shadow: var(--shadow-s); }
summary { font-family: var(--display); font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-size: 1.08rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--tomato); font-family: var(--mono); font-size: 1.5rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; color: var(--ink-soft); }

/* ---------- Appel final ---------- */
.cta-final { background: var(--paper); }
.cta-box { position: relative; background: var(--ink); color: #E9E1D3; border-radius: var(--r); padding: 64px 40px; text-align: center; border: var(--bd); box-shadow: var(--shadow-lg); }
.cta-box .piece-tag.tape-tag { background: var(--tape); color: var(--ink); left: 50%; transform: translateX(-50%); }
.cta-box h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.6rem); max-width: 18em; margin-inline: auto; }
.cta-box p { max-width: 34em; margin-inline: auto; margin-bottom: 28px; color: #C7BCA8; font-family: var(--mono); font-size: .95rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--ink); color: #B6AB99; padding: 52px 24px; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; border-top: var(--bd); }
.brand-footer .brand-name { color: #fff; }
.footer-brand p { margin: 12px 0 0; max-width: 28em; font-size: .92rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: #B6AB99; text-decoration: none; font-family: var(--mono); font-size: .8rem; }
.footer-links a:hover { color: #fff; }
.footer-support { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.foot-support-prompt { font-family: var(--mono); font-size: .8rem; color: #C7BCA8; }
.kofi-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: .8rem;
  background: var(--tape); color: var(--ink); text-decoration: none;
  border: 2.5px solid var(--ink); border-radius: var(--r-sm); padding: 11px 17px;
  box-shadow: 3px 3px 0 var(--tomato); transition: transform .1s ease, box-shadow .1s ease;
}
.kofi-btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--tomato); }
.kofi-btn .heart { width: 1.05em; height: 1.05em; fill: var(--tomato); }

/* ---------- Pages texte / livraison ---------- */
.deliver { max-width: 880px; margin: 0 auto; padding: 64px 24px; }
.deliver h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.deliver .lede { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 34px; }
.doc { border: var(--bd); border-radius: var(--r); background: var(--card); margin-bottom: 26px; overflow: hidden; box-shadow: var(--shadow-s); }
.doc-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; background: var(--paper-2); border-bottom: var(--bd); }
.doc-head h2 { font-size: 1.15rem; margin: 0; }
.doc pre { margin: 0; padding: 22px; white-space: pre-wrap; word-wrap: break-word; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--ink); }
.loader { text-align: center; padding: 70px 20px; color: var(--muted); font-family: var(--mono); }
.spinner { width: 40px; height: 40px; margin: 0 auto 20px; border: 4px solid var(--hair); border-top-color: var(--tomato); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.changes { background: var(--chalk-soft); border: var(--bd); border-radius: var(--r); padding: 22px 26px; box-shadow: var(--shadow-s); }
.changes h3 { margin-top: 0; }
.changes ul { margin: 0; padding-left: 20px; }
.changes li { margin-bottom: 8px; color: var(--ink-soft); }

.legal { max-width: 760px; margin: 0 auto; padding: 64px 24px; }
.legal h1 { font-size: 2.1rem; }
.legal h2 { font-size: 1.25rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal a { color: var(--tomato-d); }

/* ---------- Touches ludiques ---------- */
.mascot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.mascot-peek { position: absolute; top: -40px; right: 24px; width: 62px; height: 70px; z-index: 5; animation: bob 3.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-7px) rotate(5deg); } }

.result-cheer { display: flex; align-items: center; gap: 14px; background: var(--tomato-soft); border: var(--bd); border-radius: var(--r); padding: 14px 18px; margin-top: 26px; box-shadow: var(--shadow-s); }
.result-cheer .mascot { width: 44px; height: 50px; flex: none; }
.result-cheer p { margin: 0; color: var(--ink); font-weight: 600; }

.confetti { position: absolute; inset: -10px; pointer-events: none; overflow: visible; z-index: 2; }
.confetti i { position: absolute; top: 40%; left: 20%; width: 10px; height: 10px; border: 1.5px solid var(--ink); opacity: 0; }
.confetti.go i { animation: pop .9s ease-out forwards; }
@keyframes pop {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(.4) rotate(0); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(var(--rot)); }
}

/* ---------- Apparition au défilement ---------- */
html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .kws .kw { opacity: 1; transform: none; animation: none; }
  .tape-marker { transition: none; }
  .squiggle path { stroke-dashoffset: 0; animation: none; }
  .mascot-peek { animation: none; }
  .confetti { display: none; }
  .spinner { animation-duration: 2s; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
  .hero-card { order: -1; max-width: 470px; }
  .steps { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 58px 20px; }
  .header-nav > a:not(.btn) { display: none; }
  .tool-card, .result { padding: 24px; }
  .tool-grid { grid-template-columns: 1fr; }
  .result-cols { grid-template-columns: 1fr; gap: 24px; }
  .paywall { grid-template-columns: 1fr; gap: 24px; }
  .result-head { gap: 18px; }
  .score-readout.big .score-num { font-size: 3.4rem; }
  .cta-box { padding: 46px 24px; }
}

/* ====================================================================
   BLOG / CONSEILS — pages d'articles et index, style atelier
   ==================================================================== */
.blogbody main { max-width: 760px; margin: 0 auto; padding: 40px 24px 24px; }
.blog-index { max-width: 1000px; padding: 40px 24px; }

.crumb { font-family: var(--mono); font-size: .78rem; color: var(--muted); margin: 0 0 18px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--tomato-d); }
.crumb span { margin: 0 6px; }

.article h1 { font-size: clamp(1.9rem, 5vw, 2.9rem); margin-bottom: .3em; }
.article-meta { font-family: var(--mono); font-size: .82rem; color: var(--muted); margin: 0 0 32px; }

.article-body { font-size: 1.08rem; }
.article-body > h2 {
  font-size: 1.5rem; margin: 1.7em 0 .5em; padding-top: .2em;
}
.article-body > h3 { font-size: 1.18rem; margin: 1.4em 0 .4em; }
.article-body p { margin: 0 0 1.15em; }
.article-body ul, .article-body ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.article-body li { margin: 0 0 .5em; }
.article-body li::marker { color: var(--tomato); font-weight: 700; }
.article-body strong { color: var(--ink); }
.article-body a { color: var(--tomato-d); text-decoration: underline; text-underline-offset: 2px; }
.article-body blockquote {
  margin: 1.5em 0; padding: 14px 22px; border-left: 4px solid var(--tape);
  background: var(--paper-2); font-style: italic; border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.article-cta {
  position: relative; margin: 48px 0 12px; padding: 34px 30px;
  background: var(--tape); border: var(--bd); border-radius: var(--r); box-shadow: var(--shadow);
}
.article-cta h2 { margin: 6px 0 .4em; font-size: 1.5rem; }
.article-cta p { margin: 0 0 18px; color: var(--ink-soft); }

.related { margin: 44px 0 0; border-top: 2px dashed var(--hair); padding-top: 28px; }
.related h2 { font-size: 1.3rem; margin-bottom: 18px; }
.rel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rel-list a {
  display: block; padding: 16px 18px; background: var(--card); border: var(--bd);
  border-radius: var(--r-sm); text-decoration: none; box-shadow: var(--shadow-s);
  transition: transform .12s ease;
}
.rel-list a:hover { transform: translate(-1px, -1px); }
.rel-title { display: block; font-family: var(--display); font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.rel-desc { display: block; font-size: .9rem; color: var(--muted); }

/* index du blog */
.post-grid { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.post-card a {
  display: flex; flex-direction: column; height: 100%; padding: 26px 24px;
  background: var(--card); border: var(--bd); border-radius: var(--r);
  box-shadow: var(--shadow); text-decoration: none; transition: transform .12s ease;
}
.post-card a:hover { transform: translate(-2px, -2px); }
.post-card h2 { font-size: 1.35rem; margin: 4px 0 .4em; }
.post-desc { color: var(--ink-soft); margin: 0 0 16px; flex: 1; }
.post-more { font-family: var(--mono); font-weight: 700; font-size: .8rem; color: var(--tomato-d); text-transform: uppercase; letter-spacing: .05em; }

@media (max-width: 720px) {
  .post-grid { grid-template-columns: 1fr; }
  .article-cta { padding: 26px 22px; }
}
