/* ==========================================================================
   Accélérateur ecommerce — feuille de style partagée
   Palette (guide de normes) : crème #f6f4dc · encre #131109 · accent #e8491e
   Typo : PT Serif Bold (titres) · Lato (texte courant)
   ========================================================================== */

:root {
  --paper: #f6f4dc;
  --paper-2: #ecead0;
  --ink: #131109;
  --ink-70: #575548;
  --ink-45: #908e7d;
  --rule: #c9c7b2;
  --cream-70: #b2b09d;
  --rule-on-ink: rgba(246, 244, 220, .22);
  --accent: #e8491e;

  --serif: 'PT Serif', Georgia, 'Times New Roman', serif;
  --sans: Lato, 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(3rem, 8vw, 7rem);
  --max: 1120px;
  --logo-h: 56px;
}

/* ---------- Reset minimal ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

@media (min-width: 640px) {
  body { font-size: 1.0625rem; }
  :root { --logo-h: 72px; }
}

/* ---------- Typographie ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 1.1rem + 3vw, 3.75rem); line-height: 1.05; text-wrap: pretty; hyphens: manual; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
.label { font-family: var(--sans); font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.muted { color: var(--ink-70); }

/* ---------- Filets ---------- */
.rule-double { height: 7px; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75em;
  font-family: var(--sans); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; padding: 1rem 1.75rem;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn .arrow { display: inline-block; transition: transform .15s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* ---------- Stylo rouge (SVG inline) ---------- */
.pen { position: absolute; overflow: visible; pointer-events: none; }
.pen path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

.pen-u { position: relative; white-space: nowrap; }
.pen-u .pen { left: -2%; bottom: -.06em; width: 104%; height: .22em; }
.pen-o { position: relative; display: inline-block; }
.pen-o .pen { left: -7%; top: -12%; width: 114%; height: 124%; }
.pen-s { position: relative; display: inline-block; }
.pen-s .pen { left: -6%; top: 50%; width: 112%; height: .5em; transform: translateY(-50%); }

/* ---------- Tampon ---------- */
.stamp {
  display: inline-block;
  font-family: var(--serif); font-weight: 700; font-size: .9rem; line-height: 1;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px var(--accent);
  padding: .5em .7em .45em .85em;
  transform: rotate(-6deg);
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 60%, rgba(0, 0, 0, .55) 100%);
          mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 60%, rgba(0, 0, 0, .55) 100%);
}
.band .stamp { box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 3px var(--accent); mix-blend-mode: normal; }

/* ---------- Marqueurs de sévérité ---------- */
.marker { display: inline-block; width: 10px; height: 10px; flex: none; vertical-align: middle; }
.marker--crit { background: var(--accent); }
.marker--warn { background: repeating-linear-gradient(45deg, var(--accent) 0 1.5px, transparent 1.5px 4px); box-shadow: inset 0 0 0 1px var(--accent); }
.marker--ok { box-shadow: inset 0 0 0 1px var(--ink); }
.tag { display: inline-flex; align-items: center; gap: .5em; font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .3em .55em; border: 1px solid var(--ink); }
.tag .marker { width: 8px; height: 8px; }

/* ---------- Bande encre ---------- */
.band { background: var(--ink); color: var(--paper); position: relative; }
.band .label { color: var(--cream-70); }
.watermark { position: absolute; left: -10vw; bottom: -22vw; width: 72vw; max-width: none; color: var(--paper); opacity: .07; pointer-events: none; }

/* ==========================================================================
   Manchette
   ========================================================================== */
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .5rem; }
.masthead .logo { display: block; }
.masthead img { height: var(--logo-h); width: auto; margin-left: calc(var(--logo-h) * -.29); }
.nav-link { font-family: var(--sans); font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: .25em; white-space: nowrap; }
.nav-link:hover { color: var(--accent); }
@media (max-width: 479px) { .nav-link--hide-sm { display: none; } }

/* ==========================================================================
   Héros
   ========================================================================== */
.hero { padding-block: clamp(1.25rem, 3vw, 2.5rem) 0; }
.hero .label { color: var(--ink-70); margin-bottom: 1.25rem; }
.hero .wrap { container-type: inline-size; }
.hero h1 { font-size: 7.9cqi; line-height: 1.1; margin-bottom: 1.1rem; }
.hero .range { color: var(--accent); white-space: nowrap; }
.hero .nb { white-space: nowrap; }
.hero .lead { color: var(--ink-70); font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); margin-bottom: 1.25rem; }
@media (min-width: 640px) {
  .hero h1 { line-height: 1.05; margin-bottom: 1rem; }
}
@media (max-width: 639px) {
  .hero .lead { font-size: 1rem; }
  .hero .btn { width: 100%; padding-inline: 1rem; }
}
.hero .facts { display: flex; flex-wrap: wrap; gap: .35rem 0; margin-top: .9rem; font-size: .8125rem; color: var(--ink-70); }
.hero .facts span + span::before { content: "·"; margin-inline: .6rem; }

/* ==========================================================================
   Logos clients (dans le héros, au-dessus du pli)
   ========================================================================== */
.clients { margin-top: clamp(1rem, 3vw, 1.75rem); padding-block: .75rem; }
.clients ul { display: grid; grid-template-columns: repeat(2, 1fr); justify-items: center; align-items: center; gap: 1.25rem 1rem; }
.clients img { height: 19px; width: auto; max-width: 100%; filter: brightness(0); opacity: .8; }
.clients img.tall { height: 26px; }
.clients img.mid { height: 30px; }
.clients img.xtall { height: 44px; }
.clients img.short { height: 14px; }
@media (min-width: 640px) {
  .clients { padding-block: 1rem; }
  .clients ul { display: grid; grid-template-columns: repeat(5, 1fr); justify-items: center; align-items: center; gap: 1rem 1.25rem; }
  .clients img { height: 20px; }
  .clients img.tall { height: 30px; }
  .clients img.mid { height: 36px; }
  .clients img.xtall { height: 54px; }
  .clients img.short { height: 15px; }
}

/* ==========================================================================
   Sommaire du rapport (Ce que vous recevez)
   ========================================================================== */
.deliverables { padding-block: calc(var(--section) / 2); }
.deliverables .wrap { display: grid; gap: 2rem; }
.deliverables .label { color: var(--ink-45); margin-bottom: .75rem; }
.deliv-lead { margin-top: 1rem; color: var(--ink-70); max-width: 34ch; }
.deliverables h2 { position: sticky; top: 2rem; }
.toc { border-top: 1px solid var(--ink); }
.toc li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; padding: 1.5rem .75rem; margin-inline: -.75rem; border-bottom: 1px solid var(--rule); transition: background-color .15s; }
.toc li:hover { background: var(--paper-2); }
.toc .n { font-family: var(--serif); font-weight: 700; font-size: 2.5rem; line-height: .9; color: var(--accent); font-variant-numeric: tabular-nums; }
.toc h3 { margin-bottom: .4rem; }
.toc p { color: var(--ink-70); max-width: 52ch; }
@media (min-width: 640px) {
  .toc li { grid-template-columns: 4.5rem 1fr; gap: 1.5rem; padding-block: 1.75rem; }
  .toc .n { font-size: 3rem; }
}
@media (min-width: 900px) {
  .deliverables .wrap { grid-template-columns: 4fr 8fr; gap: 4rem; align-items: start; }
  .deliverables header { position: sticky; top: 2rem; }
  .deliverables h2 { position: static; }
}

/* ==========================================================================
   Exemple d'audit (bande encre + feuille)
   ========================================================================== */
.sample { padding-block: var(--section); overflow: hidden; }
.sample .wrap { position: relative; z-index: 1; }
.sample h2 { margin-bottom: .75rem; }
.sample .intro { color: var(--cream-70); max-width: 56ch; margin-bottom: 2.5rem; }

.sheet {
  background: var(--paper); color: var(--ink);
  max-width: 760px; padding: clamp(1.25rem, 4vw, 2.75rem);
  outline: 1px solid rgba(246, 244, 220, .25); outline-offset: 8px;
}
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 2px solid var(--ink); margin-bottom: 1.75rem; }
.sheet-head .title { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.sheet-head .meta { font-size: .8125rem; color: var(--ink-45); margin-top: .3rem; }
.sheet-head .stamp { margin-top: .15rem; }

.score { display: grid; gap: 1.25rem; margin-bottom: 2rem; }
.score .big { font-family: var(--serif); font-weight: 700; font-size: clamp(4.5rem, 3rem + 6vw, 8rem); line-height: .85; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.score .big small { font-size: .35em; color: var(--ink-45); letter-spacing: 0; }
.ruler { position: relative; height: 24px; border-bottom: 1px solid var(--ink); margin-bottom: .9rem; }
.ruler::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--fill, 0%); background: var(--accent); }
.ruler::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 1px, transparent 1px) 0 0 / calc(100% / 20) 100% repeat-x; border-right: 1px solid var(--ink); }
.score .verdict { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--accent); line-height: 1.2; }
.grade { display: inline-block; font-family: var(--serif); font-weight: 700; font-size: .7em; line-height: 1; padding: .3em .45em .25em; border: 1.5px solid currentColor; vertical-align: .15em; letter-spacing: 0; }
.metric .val small { font-size: .5em; color: var(--ink-45); }
.metric .val .grade { color: var(--accent); font-size: .5em; margin-left: .2em; }
.split { border-top: 1px solid var(--ink); margin-bottom: 2rem; }
.split > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); font-size: .9375rem; }
.split dt { display: flex; align-items: center; gap: .6rem; }
.split dd { text-align: right; white-space: nowrap; }
.split dd b { font-family: var(--serif); font-size: 1.15rem; }
.split dd span { display: block; font-size: .8125rem; color: var(--ink-45); }
.score .sub { color: var(--ink-70); font-size: .9375rem; margin-top: .25rem; }
@media (min-width: 640px) {
  .score { grid-template-columns: auto 1fr; gap: 2.5rem; align-items: end; }
}

.metrics { display: grid; border-top: 2px solid var(--ink); margin-bottom: 2rem; }
.metric { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.metric .val { font-family: var(--serif); font-weight: 700; font-size: 2.25rem; line-height: 1; font-variant-numeric: tabular-nums; margin-bottom: .35rem; }
.metric .lbl { font-size: .8125rem; color: var(--ink-70); margin-bottom: .65rem; }
@media (min-width: 480px) {
  .metrics { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rule); }
  .metric { padding: 1.25rem 1.25rem; border-bottom: 0; border-right: 1px solid var(--rule); }
  .metric:first-child { padding-left: 0; }
  .metric:last-child { border-right: 0; padding-right: 0; }
}

.findings-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .5rem; }
.findings-head .label { color: var(--ink-45); }
.findings { border-top: 1px solid var(--ink); }
.findings li { display: grid; grid-template-columns: 10px 1fr; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); font-size: .9375rem; line-height: 1.45; }
.findings .marker { margin-top: .4em; }
.findings strong { font-weight: 700; }
.redact { color: transparent; background: var(--ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .15em; user-select: none; -webkit-user-select: none; pointer-events: none; }
.findings-foot { margin-top: 1rem; color: var(--ink-45); }

.opportunity { margin-top: 3rem; max-width: 760px; }
.opportunity .label { margin-bottom: .75rem; }
.opportunity .figure { font-family: var(--serif); font-weight: 700; font-size: clamp(2.5rem, 2rem + 3vw, 4.5rem); line-height: 1; color: var(--accent); padding: .15em .3em; margin: 0 0 .5rem -.3em; letter-spacing: -.02em; }
.opportunity p:last-child { color: var(--paper); max-width: 48ch; }

/* ==========================================================================
   Comment ça fonctionne
   ========================================================================== */
.steps { padding-block: var(--section); }
.steps h2 { margin-bottom: 2.5rem; }
.steps ol { display: grid; border-top: 1px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; padding: 1.5rem 0 1.75rem; border-bottom: 1px solid var(--rule); }
.steps .n { font-family: var(--serif); font-weight: 700; font-size: clamp(3rem, 2rem + 2vw, 4.5rem); line-height: .85; color: var(--ink); }
.steps h3 { margin-bottom: .5rem; font-size: 1.2rem; }
.steps p { color: var(--ink-70); }
@media (min-width: 900px) {
  .steps ol { grid-template-columns: repeat(3, 1fr); }
  .steps li { display: block; padding: 2rem 2rem 2.5rem; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); }
  .steps li:first-child { padding-left: 0; }
  .steps li:last-child { border-right: 0; padding-right: 0; }
  .steps .n { margin-bottom: 1.25rem; }
}

/* ==========================================================================
   Offre finale + pied de page
   ========================================================================== */
.offer { padding-block: var(--section) clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.offer .wrap { max-width: 760px; }
.offer .kicker { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 2rem; text-align: center; }
.offer .kicker::before, .offer .kicker::after { content: ""; flex: 1; height: 1px; background: var(--rule-on-ink); }
.offer h2 { margin-bottom: 1.5rem; }
.price { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.price .old { font-family: var(--serif); font-weight: 700; font-size: 1.85rem; color: var(--cream-70); padding: 0 .15em; line-height: 1; }
.price .stamp { font-size: 1.05rem; }
.offer .note { margin-top: 1.25rem; color: var(--cream-70); font-size: .8125rem; }
@media (max-width: 639px) { .offer .btn { width: 100%; } }

.footer { border-top: 1px solid var(--rule-on-ink); padding-block: 1.25rem; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer img { height: var(--logo-h); width: auto; margin-left: calc(var(--logo-h) * -.29); }
.footer small { color: var(--cream-70); font-size: .8125rem; }

/* ==========================================================================
   Page formulaire
   ========================================================================== */
.form-page { height: 100dvh; display: flex; flex-direction: column; }
.form-page .masthead { flex: none; }
.form-page .tf { flex: 1; min-height: 0; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
