/* KLAIV V8 — une seule feuille. Aucun script, aucune police téléchargée, aucune requête externe.
   Palette tirée du logo : papier, encre, vert, terre cuite. Les seules autres teintes vivent dans le caméléon.
   L'état sans animation est l'état de base : tout le mouvement est dans le bloc « no-preference » en bas. */
:root {
  --paper: #f6f3ec;
  --paper-2: #ece8dd;
  --ink: #20241e;
  --ink-2: #5a6055;
  --rule: #d8d3c5;
  --green: #355034;
  --green-deep: #2a402b;
  --on-green: #ccd4c5;
  --terra: #ad4c25;
  --ring: #7f7966;
  --crest: #cf663c;
  --skin-1: #9db592;
  --skin-2: #e0bd74;
  --skin-3: #e09a78;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --gut: clamp(20px, 5.5vw, 72px);
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ol, dl, dd { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
svg { display: block; }
::selection { background: var(--green); color: var(--paper); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 4px; border-radius: 4px; }
.wrap { width: min(100% - var(--gut) * 2, var(--max)); margin-inline: auto; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: var(--gut); top: -80px; z-index: 5; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 10px; }
.fl { width: .8em; height: .8em; flex: none; transition: transform .25s var(--ease); }

/* En-tête : le logo, et un seul lien */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.logo { display: block; padding-block: 6px; border-radius: 6px; }
.logo svg { height: 32px; width: auto; aspect-ratio: 359 / 100; }
.l-body { fill: var(--green); }
.l-crest { fill: var(--crest); }
.l-eye { fill: var(--paper); }
.l-word { fill: var(--ink); }
.top-link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 18px; border: 1px solid var(--ink); border-radius: 999px; font-size: .9375rem; font-weight: 500; white-space: nowrap; transition: background-color .2s, color .2s; }

/* Accueil */
.hero { display: grid; grid-template-areas: "h" "fig" "lead" "act"; padding-block: clamp(22px, 6vw, 40px) clamp(52px, 11vw, 76px); }
h1 { grid-area: h; font-size: clamp(2.25rem, 12.4vw, 3.6rem); font-weight: 600; line-height: 1.02; letter-spacing: -.038em; }
.moment { grid-area: fig; display: flex; align-items: center; gap: 18px; margin-block: 26px 24px; }
.cam { width: 88px; height: auto; flex: none; overflow: visible; }
.cam-skin { fill: var(--skin-1); }
.cam-crest { fill: var(--crest); }
.cam-line { fill: none; stroke: var(--green); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.cam-eye { fill: var(--paper); stroke: var(--green); stroke-width: 1.5; }
.moment figcaption { max-width: 9.5em; color: var(--green); font: italic 400 1.4375rem/1.2 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.lead { grid-area: lead; max-width: 31em; font-size: 1.125rem; line-height: 1.5; letter-spacing: -.008em; text-wrap: pretty; }
.actions { grid-area: act; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .75em; min-height: 54px; padding-inline: 26px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 500; white-space: nowrap; transition: background-color .2s; }
.mail { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: 5px; transition: color .2s, text-decoration-color .2s; }

/* Méthode et exemples : même gabarit, titre à gauche, contenu à droite */
.band { padding-block: clamp(44px, 9vw, 76px); border-top: 1px solid var(--rule); }
h2 { font-size: clamp(1.75rem, 7vw, 2.375rem); font-weight: 600; line-height: 1.08; letter-spacing: -.032em; text-wrap: balance; }
h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; text-wrap: balance; }
.band-note { margin-top: 14px; max-width: 22em; color: var(--ink-2); text-wrap: balance; }
.steps { margin-top: 30px; }
.steps li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); padding-block: 18px; border-top: 1px solid var(--rule); }
.steps li:last-child { padding-bottom: 0; }
.n { padding-top: .32em; color: var(--terra); font-size: .8125rem; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.steps p { grid-column: 2; margin-top: 4px; color: var(--ink-2); }
.cases { margin: 28px 0 0; }
.cases > div { padding-block: 15px; border-top: 1px solid var(--rule); }
.cases > div:last-child { border-bottom: 1px solid var(--rule); }
.cases dt { font-weight: 600; letter-spacing: -.012em; }
.cases dd { color: var(--ink-2); }

/* Preuve : le chiffre, les 30 commerces, la phrase */
.proof { background: var(--paper-2); padding-block: clamp(48px, 9vw, 80px); }
.proof-body { display: grid; gap: 26px; margin-top: 28px; }
.proof-num { display: flex; align-items: baseline; gap: .6rem; line-height: .86; }
.proof-num b { font-size: clamp(4.75rem, 20vw, 6.75rem); font-weight: 600; letter-spacing: -.05em; }
.proof-num span { color: var(--ink-2); font-size: 1.375rem; font-weight: 500; letter-spacing: -.02em; }
.dots { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 7px; width: min(100%, 236px); margin-top: 22px; }
.dots i { aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ring); }
.dots .x { background: var(--terra); box-shadow: none; }
.proof-main { max-width: 25em; font-size: clamp(1.25rem, 5.2vw, 1.5rem); line-height: 1.38; letter-spacing: -.018em; text-wrap: pretty; }
.proof-note { margin-top: 16px; max-width: 34em; color: var(--ink-2); font-size: .9375rem; text-wrap: pretty; }

/* Contact : le seul bloc sombre, à la couleur du logo */
.contact { background: var(--green-deep); color: var(--paper); padding-top: clamp(56px, 11vw, 100px); }
.contact h2 { font-size: clamp(2.25rem, 10.4vw, 4.25rem); line-height: 1.02; letter-spacing: -.038em; }
.contact-note { margin-top: 18px; max-width: 26em; color: var(--on-green); font-size: 1.125rem; line-height: 1.5; text-wrap: pretty; }
.email { display: inline-flex; align-items: center; gap: .55em; min-height: 48px; margin-top: 26px; padding-bottom: 5px; border-bottom: 2px solid var(--crest); font-size: clamp(1.5rem, 7vw, 2.375rem); font-weight: 500; line-height: 1.2; letter-spacing: -.028em; white-space: nowrap; transition: border-color .2s; }
.contact :focus-visible, .foot :focus-visible { outline-color: var(--paper); }
.foot { background: var(--green-deep); color: var(--on-green); padding-block: clamp(48px, 9vw, 84px) 22px; font-size: .875rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 28px; padding-top: 14px; border-top: 1px solid rgb(246 243 236 / .2); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }

@media (hover: hover) and (pointer: fine) {
  .top-link:hover { background: var(--ink); color: var(--paper); }
  .btn:hover { background: var(--green); }
  .btn:hover .fl, .email:hover .fl { transform: translate(2px, -2px); }
  .mail:hover { color: var(--ink); text-decoration-color: var(--terra); }
  .email:hover { border-color: var(--paper); }
  .foot a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 5px; }
}

@media (min-width: 44rem) {
  body { font-size: 1.125rem; }
  .top { padding-block: 20px; }
  .logo svg { height: 38px; }
  .hero { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "h fig" "lead fig" "act fig"; column-gap: clamp(28px, 6vw, 104px); align-items: start; padding-block: clamp(36px, 6.5vh, 76px) clamp(64px, 10vh, 108px); }
  h1 { font-size: clamp(3.6rem, 8.3vw, 6.25rem); line-height: .99; }
  .moment { flex-direction: column; align-items: flex-start; align-self: center; gap: 22px; margin: 0; padding-left: clamp(24px, 4vw, 56px); border-left: 1px solid var(--rule); }
  .cam { width: clamp(132px, 15.5vw, 196px); }
  .cam-line, .cam-eye { stroke-width: 1; }
  .moment figcaption { font-size: clamp(1.5rem, 2.5vw, 1.9375rem); max-width: 8.6em; }
  .lead { margin-top: 30px; font-size: 1.3125rem; line-height: 1.45; }
  .actions { margin-top: 34px; }
  .proof-body { grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
  .dots { width: 236px; }
  .foot-in { padding-top: 10px; }
}

@media (min-width: 62rem) {
  .band, .proof-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(32px, 5vw, 80px); }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; margin: 0; }
  .steps li { display: block; padding: 16px 0 0; border-top: 2px solid var(--ink); }
  .n { display: block; padding: 0 0 22px; }
  .steps p { margin-top: 8px; font-size: 1.0625rem; }
  .cases { margin: 0; }
  .cases > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); column-gap: 24px; padding-block: 16px; }
  .cases > div:first-child { border-top-color: var(--ink); border-top-width: 2px; }
  .proof-body { margin: 0; }
  .contact-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; align-items: end; }
  .email { margin: 0; }
}

/* Mouvement : une entrée, un caméléon qui change doucement de teinte, des blocs qui se posent au défilement.
   Sans ce bloc (préférence « réduire les animations », navigateur ancien), la page est complète et immobile. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  h1 { animation: rise .8s var(--ease) both; }
  .lead { animation: rise .8s .12s var(--ease) both; }
  .actions { animation: rise .8s .22s var(--ease) both; }
  .cam-line { stroke-dasharray: 1; animation: draw 1.7s .15s cubic-bezier(.6, 0, .2, 1) both; }
  .cam-skin { animation: fade 1s 1.25s ease-out both, skin 16s 2.8s ease-in-out infinite; }
  .cam-crest { animation: fade .6s 1.7s ease-out both; }
  .cam-eye { transform-box: fill-box; transform-origin: center; animation: fade .4s 1.3s ease-out both, blink 7s 4.6s infinite; }
  .moment figcaption { animation: rise .9s 1.35s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  @keyframes fade { from { opacity: 0; } }
  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes skin { 0%, 6% { fill: var(--skin-1); } 28%, 44% { fill: var(--skin-2); } 62%, 78% { fill: var(--skin-3); } 100% { fill: var(--skin-1); } }
  @keyframes blink { 0%, 95.5%, 100% { transform: scaleY(1); } 97.5% { transform: scaleY(.08); } }

  @supports (animation-timeline: view()) {
    .band-head, .steps li, .cases > div, .proof-in > h2, .proof-body > *, .contact-in > * { animation: settle linear both; animation-timeline: view(); animation-range: cover 0% cover 150px; }
    .dots { view-timeline: --dots block; }
    .dots .x { animation: dot linear both; animation-timeline: --dots; animation-range: cover calc(9% + var(--i) * 2.4%) cover calc(13% + var(--i) * 2.4%); }
    @keyframes settle { from { opacity: 0; transform: translateY(18px); } }
    @keyframes dot { from { background-color: transparent; box-shadow: inset 0 0 0 1.5px var(--ring); } }
  }
}

@media print {
  .skip, .top-link, .btn { display: none; }
  .contact, .foot { background: none; color: var(--ink); }
  .contact-note, .foot { color: var(--ink-2); }
}
