/* rgpd.name — feuille de style unique.
   Direction « Le produit en action » : un seul fond gris rosé, encre brun-noir, vert pour l'action.
   Police Schibsted Grotesk (SIL Open Font License), hébergée sur ce serveur. Aucun appel extérieur. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ebe5e3;
  --surface: #e1dad7;
  --ink: #2b2622;
  --muted: #5f5753;
  --accent: #0f7d45;
  --accent-ink: #ffffff;
  --paper: #ffffff;
  --dark: #2b2622;
  --dark-ink: #ebe5e3;
  --dark-surface: #3a342f;

  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* Cinq tailles en tout. */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(1.75rem, 1.1rem + 3.2vw, 4rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2.4vw, 2.5rem);
  --section: clamp(5rem, 12vw, 11rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-reveal: 800ms;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--step-body); line-height: 1.45; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; background: var(--surface); }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--margin); top: -4rem; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { top: 0.5rem; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 800; text-wrap: balance; hyphens: none; }
.display { font-size: clamp(2.25rem, 10.2cqi, 4.25rem); line-height: 0.92; letter-spacing: -0.05em; }
.head { font-size: var(--step-head); line-height: 0.98; letter-spacing: -0.045em; max-width: 22ch; }
.lead { font-size: var(--step-lead); line-height: 1.32; letter-spacing: -0.02em; max-width: 34ch; font-weight: 400; }
.h3 { font-size: var(--step-body); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.4em; }
.small { font-size: var(--step-small); line-height: 1.45; }
.muted { color: var(--muted); }
p { max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 0.9em; }
.link-plain { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; font-weight: 600; }
.link-plain:hover { text-decoration-thickness: 0.14em; }

/* ---------- layout ---------- */
.wrap { padding-inline: var(--margin); max-width: 92rem; margin-inline: auto; }
.section { padding-block: calc(var(--section) / 2); }
.split { display: grid; gap: var(--gutter); }
@media (min-width: 64em) {
  .split { grid-template-columns: 5fr 7fr; align-items: start; }
  .split.reverse { grid-template-columns: 7fr 5fr; }
  .split.reverse > :first-child { order: 2; }
}

/* ---------- controls ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.3rem;
  font-weight: 600; text-decoration: none; white-space: nowrap; border-radius: 0;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button-ink { background: var(--ink); color: var(--paper); }
.button-ink:hover { background: #000; }
.button-accent { background: var(--accent); color: var(--accent-ink); }
.button-accent:hover { background: #0b6537; }
.field {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem; background: var(--paper); color: var(--ink);
  border: 0; border-radius: 0; font-size: max(1rem, var(--step-body));
}
textarea.field { min-height: 9rem; resize: vertical; line-height: 1.45; }
.field::placeholder { color: var(--muted); }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.wordmark { font-weight: 800; letter-spacing: -0.04em; font-size: 1.2rem; text-decoration: none; }
.top-nav { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.6rem); font-weight: 600; font-size: var(--step-small); }
.top-nav a:not(.button) { text-decoration: none; }
.top-nav a:not(.button):hover { text-decoration: underline; text-underline-offset: 0.2em; }
.top-nav a[aria-current="page"] { color: #0b6537; }
.top-nav .button { min-height: 2.6rem; padding: 0 1rem; }
@media (max-width: 40em) { .only-wide { display: none; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(1.5rem, 5vw, 4.5rem) calc(var(--section) / 2); }
.hero-text { container-type: inline-size; display: grid; gap: 1.2rem; align-content: start; padding-top: clamp(0rem, 2vw, 1.5rem); }
.hero-text .lead { max-width: 30ch; }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines .line > span { display: block; }

/* ---------- forms ---------- */
.form-row { display: flex; max-width: 30rem; }
.form-row .field { flex: 1; min-width: 0; }
.form-stack { display: grid; gap: 0.9rem; max-width: 36rem; }
.form-stack label { font-weight: 600; font-size: var(--step-small); }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--step-small); max-width: 32rem; margin-top: 0.8rem; }
.check input { width: 1.15rem; height: 1.15rem; margin: 0.1rem 0 0; accent-color: var(--accent); flex: none; }
.form-note { margin-top: 0.6rem; }
.form-msg { font-weight: 600; margin-top: 0.6rem; min-height: 1.45em; }
.form-msg.is-error { color: #a12a1b; }
.form-msg.is-ok { color: #0b6537; }
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore : champ piège invisible, pas un trait */

/* ---------- demo stage (interface fragment) ---------- */
.stage { position: relative; background: var(--surface); padding: clamp(0.9rem, 2vw, 1.6rem); display: grid; gap: 1rem; }
.shop { background: var(--paper); padding: 1.1rem 1.2rem 1.4rem; font-size: 0.9375rem; color: var(--ink); }
.shop-top { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; margin-bottom: 1.4rem; }
.shop-top span:last-child { color: var(--muted); font-weight: 400; }
.shop-body { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; align-items: center; }
.shop-pot { aspect-ratio: 1; background: var(--surface); display: grid; place-items: end center; padding-bottom: 0.9rem; }
.shop-pot span { width: 64%; height: 46%; background: #b9aaa3; border-radius: 0 0 50% 50% / 0 0 70% 70%; }
.shop-name { font-weight: 800; letter-spacing: -0.02em; font-size: 1.05rem; }
.shop-price { margin-top: 0.2rem; }
.shop-cart { display: inline-block; margin-top: 0.7rem; background: var(--ink); color: var(--paper); padding: 0.45rem 0.8rem; font-weight: 600; font-size: 0.8125rem; }
.demo-card {
  background: var(--paper); color: var(--ink); padding: 1rem 1.1rem 1.1rem; font-size: 0.875rem; line-height: 1.4;
  box-shadow: 0 10px 30px rgba(43, 38, 34, 0.22); /* taste-skill-ignore : la carte du bandeau flotte, comme sur un vrai site */
}
.card-title { font-weight: 800; font-size: 1rem; letter-spacing: -0.02em; margin-bottom: 0.3rem; }
.card-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin-top: 0.9rem; }
.card-buttons button {
  min-height: 2.6rem; padding: 0.4rem 0.3rem; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 0.8125rem;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.card-buttons button:hover:not(:disabled) { background: #000; }
.card-buttons button:active:not(:disabled) { transform: scale(0.96); }
.card-buttons button:disabled { cursor: default; }
.cats { margin-top: 0.6rem; }
.cats li { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; padding: 0.45rem 0; border-bottom: 2px solid var(--surface); }
.cats li:last-child { border-bottom: 0; }
.switch { width: 2.4rem; height: 1.35rem; background: #9a908b; position: relative; flex: none; border-radius: 999px; transition: background-color var(--t-hover) ease; }
.switch::after { content: ""; position: absolute; top: 0.15rem; left: 0.15rem; width: 1.05rem; height: 1.05rem; background: var(--paper); border-radius: 50%; transition: transform var(--t-hover) var(--ease-out); }
.switch[aria-checked="true"] { background: var(--accent); }
.switch[aria-checked="true"]::after { transform: translateX(1.05rem); }
.demo-log { background: var(--dark); color: var(--dark-ink); padding: 0.9rem 1rem; font-size: 0.875rem; line-height: 1.5; }
.log-title { font-weight: 800; color: var(--paper); margin-bottom: 0.25rem; }
.demo-log li { display: flex; justify-content: space-between; gap: 1rem; }
.demo-log .on { color: #8fd4ae; font-weight: 600; }
.demo-note { margin-top: 0.7rem; }
.log-note { margin-top: 0.5rem; color: var(--dark-ink); }
.demo-reopen {
  justify-self: start; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 0.875rem;
  min-height: 2.6rem; padding: 0 1rem; border-radius: 999px; box-shadow: 0 6px 18px rgba(43, 38, 34, 0.2); /* taste-skill-ignore : bouton flottant « Cookies » */
  transition: transform var(--t-press) var(--ease-out);
}
.demo-reopen:active { transform: scale(0.96); }
.demo-reopen[hidden], .demo-card[hidden] { display: none; }
@media (max-width: 47.99em) {
  .shop-top span:last-child { display: none; }
  .demo-card, .demo-reopen { order: 2; }
  .demo-log { order: 3; }
}
@media (min-width: 48em) {
  .stage { display: block; min-height: 33rem; }
  .shop { width: 86%; min-height: 22rem; }
  .demo-log { position: absolute; right: clamp(0.9rem, 2vw, 1.6rem); top: 5.5rem; width: 17rem; }
  .demo-card { position: absolute; left: clamp(1.8rem, 4vw, 3rem); bottom: clamp(1.4rem, 3vw, 2.2rem); width: min(23rem, 78%); }
  .demo-reopen { position: absolute; left: clamp(1.8rem, 4vw, 3rem); bottom: clamp(1.4rem, 3vw, 2.2rem); }
}

/* ---------- constat ---------- */
.statement { font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.02em; font-weight: 600; max-width: 40ch; }
@media (min-width: 64em) { .statement { font-size: 2.25rem; } }
.trio { display: grid; gap: var(--gutter); margin-top: clamp(2rem, 5vw, 4rem); }
@media (min-width: 48em) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio p { max-width: 38ch; }

/* ---------- dark row ---------- */
.dark { background: var(--dark); color: var(--dark-ink); }
.dark .head { color: var(--paper); }
.dark .lead { color: var(--paper); }
.row { margin-top: clamp(2rem, 5vw, 4rem); }
.dark .row { margin-top: clamp(2.5rem, 6vw, 5rem); }
.formes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.forme { background: var(--dark-surface); aspect-ratio: 4 / 3; position: relative; }
.forme span { position: absolute; background: var(--paper); }
.forme-barre span { left: 0; right: 0; bottom: 0; height: 22%; }
.forme-carte span { left: 8%; bottom: 8%; width: 46%; height: 34%; }
.forme-fenetre { background: #26211d; }
.forme-fenetre span { left: 22%; right: 22%; top: 26%; bottom: 26%; }
.formes figcaption { margin-top: 0.5rem; font-weight: 600; }
.formes figure.is-default figcaption::after { content: " · par défaut"; color: #8fd4ae; }
.panel { background: var(--paper); color: var(--ink); padding: 1.1rem 1.2rem; font-size: 0.9375rem; max-width: 30rem; }
.panel .cats li { padding: 0.6rem 0; }
.panel .cat-desc { display: block; color: var(--muted); font-size: 0.8125rem; font-weight: 400; }
.panel .cat-name { font-weight: 600; }
.panel .lock { color: var(--muted); font-size: 0.8125rem; white-space: nowrap; }
.quatre { display: grid; gap: var(--gutter); margin-top: clamp(3rem, 7vw, 6rem); }
@media (min-width: 48em) { .quatre { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72em) { .quatre { grid-template-columns: repeat(4, 1fr); } }
.quatre h3 { color: var(--paper); }

/* ---------- comparison (real table) ---------- */
.comparatif { background: var(--paper); padding: clamp(1rem, 2.4vw, 1.8rem); }
.comparatif table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.comparatif th, .comparatif td { text-align: left; padding: 0.75rem 0.6rem; vertical-align: top; }
.comparatif thead th { font-weight: 800; background: var(--surface); }
.comparatif tbody tr:nth-child(even) { background: #f6f3f2; }
.comparatif td:first-child { font-weight: 600; }
.comparatif .bad { color: #a12a1b; font-weight: 600; }
.comparatif .good { color: var(--accent); font-weight: 600; }
.comparatif figcaption { margin-top: 0.9rem; color: var(--muted); }
.piege-text { display: grid; gap: 1.1rem; align-content: start; }

/* ---------- letter ---------- */
.portrait img { width: 100%; max-width: 26rem; aspect-ratio: 1; object-fit: cover; filter: grayscale(1); }
.lettre-text { display: grid; gap: 1.1rem; align-content: start; }
.signature { font-weight: 800; letter-spacing: -0.02em; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; margin-top: 0.4rem; }

/* ---------- action tile ---------- */
.tile { background: var(--surface); padding: clamp(1.6rem, 5vw, 4.5rem); display: grid; gap: 1.2rem; }
.tile .head { max-width: 16ch; }

/* ---------- inner pages ---------- */
.page { padding-block: clamp(2rem, 6vw, 5rem) var(--section); }
.page-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2rem, 5vw, 4rem); container-type: inline-size; }
.page-head .head { max-width: 28ch; }
.page-head .lead { max-width: 40ch; }
.prose { max-width: 44rem; }
.prose figure img { width: 100%; max-width: 32rem; background: var(--paper); }
.prose figure figcaption { margin-top: 0.5rem; }
.prose figure img.large { max-width: 100%; }
.prose .comparatif { margin: 1.4rem 0; }
.requetes { background: var(--dark); color: var(--dark-ink); padding: 1.1rem 1.2rem; display: grid; gap: 1rem; }
@media (min-width: 40em) { .requetes { grid-template-columns: 1fr 1fr; } .requetes figcaption { grid-column: 1 / -1; } }
.requetes .req-titre { font-weight: 800; color: var(--paper); margin-bottom: 0.4rem; }
.prose .requetes ul { list-style: none; padding: 0; margin: 0; }
.requetes li + li { margin-top: 0.3rem; }
.prose .requetes code { background: var(--dark-surface); color: var(--dark-ink); font-size: 0.8125rem; word-break: break-all; }
.requetes figcaption { color: var(--dark-ink); margin-top: 0; }
.prose .comparatif figcaption { margin-top: 0.9rem; }
.prose h2 { font-size: var(--step-lead); letter-spacing: -0.025em; margin: 2.4rem 0 0.7rem; max-width: 30ch; }
.prose h3 { font-size: var(--step-body); margin: 1.6rem 0 0.4rem; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0.8rem 0; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose ul.guides-list { list-style: none; padding-left: 0; }
.prose li + li { margin-top: 0.4rem; }
.prose p + ul, .prose ul + p, .prose ol + p { margin-top: 0.8rem; }
.prose dl { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: 0.5rem 1.2rem; margin-top: 0.8rem; }
.prose dt { font-weight: 600; }
.prose blockquote { background: var(--surface); padding: 1rem 1.2rem; margin: 1.2rem 0; }
.prose figure { margin: 1.8rem 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--surface); padding: 0.05em 0.3em; }
.meta { color: var(--muted); }
.guides-list li + li { margin-top: 1.6rem; }
.guides-list a { font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.025em; text-decoration: none; }
.guides-list a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
.notice { background: var(--surface); padding: 1rem 1.2rem; }

/* ---------- footer ---------- */
.pied { padding-block: calc(var(--section) / 2) 2.5rem; display: grid; gap: 1.4rem; }
.pied-note { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; max-width: 32ch; line-height: 1.3; }
.pied-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.3rem; font-size: var(--step-small); }
.pied-links a { text-decoration: none; }
.pied-links a:hover { text-decoration: underline; }

/* ---------- motion (content stays visible without JavaScript) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .lines .line > span { transform: translateY(105%); animation: rise-line 900ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .demo-log.is-new { animation: log-in 420ms var(--ease-out); }
}
@keyframes rise-line { to { transform: none; } }
@keyframes log-in { from { opacity: 0.2; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- qui voit vos visiteurs ---------- */
.flux { list-style: none; padding: 0; margin: clamp(2rem, 5vw, 4rem) 0 0; display: grid; gap: 2px; background: var(--surface); }
.flux li { display: grid; gap: 0.3rem 1.5rem; padding: clamp(1rem, 2.4vw, 1.6rem); background: var(--paper); }
.flux-qui { font-weight: 800; letter-spacing: -0.02em; font-size: var(--step-lead); line-height: 1.15; }
.flux-quand { font-weight: 700; }
.flux-quand.good { color: var(--accent); }
.flux-quand.bad { color: #a12a1b; }
.flux-pourquoi { color: var(--muted); }
@media (min-width: 48em) { .flux li { grid-template-columns: 5fr 3fr 6fr; align-items: baseline; } }
.flux-note { margin-top: 1.2rem; max-width: 60ch; }

/* ---------- sous le capot ---------- */
.dark .head + .lead { margin-top: 1rem; }
.steps { list-style: none; padding: 0; margin: clamp(2.5rem, 6vw, 5rem) 0 0; display: grid; gap: clamp(2rem, 4vw, 3rem) var(--gutter); }
@media (min-width: 56em) { .steps { grid-template-columns: repeat(2, 1fr); } }
.steps li { display: grid; gap: 0.7rem; align-content: start; border-top: 1px solid var(--dark-surface); padding-top: 1.2rem; }
.steps h3 { color: var(--paper); margin: 0; }
.steps p { max-width: 44ch; }
.dark code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.875em; }
.steps pre { margin: 0.3rem 0 0; background: var(--dark-surface); color: var(--dark-ink); padding: 1rem 1.1rem; overflow-x: auto; font-size: 0.875rem; line-height: 1.5; max-width: 100%; }
.steps pre code { font-size: inherit; }
.capot-note { margin-top: clamp(2rem, 5vw, 3.5rem); max-width: 70ch; color: var(--dark-ink); opacity: 0.85; }
.dark .link-plain { color: var(--paper); }
