/* Toutou Sec : système visuel commun (landing, pages produits, pages d'information).
   Grammaire « L'averse » : dehors sous la pluie, étiquettes factuelles, sujets posés sur sol mouillé. */

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

/* Palette tirée du logo : crème, jaune ciré, doré du golden, contours encre ; ciel doux pour la pluie. */
:root {
  --sc-canvas: #fff8ec;
  --sc-surface: #ffffff;
  --sc-ink: #1f1a15;
  --sc-ink-soft: #6a5b4c;
  --sc-accent: #ffcb2e;
  --sc-accent-ink: #1f1a15;
  --sc-font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --sc-font-text: "Nunito", system-ui, sans-serif;

  --ciel: #cfeafa;
  --ciel-fonce: #9fd2f0;
  --dore: #e9a65b;
  --peche: #ffe1cf;
  --menthe: #d9f3e4;
  --night: #33467a;
  --night-ink: #fff8ec;
  --night-soft: #d6def5;
  --puddle: #8cc4e6;
  --paper: #ffffff;
  --line: color-mix(in oklab, var(--sc-ink) 14%, transparent);
  --line-strong: color-mix(in oklab, var(--sc-ink) 30%, transparent);
  --trait: 2.5px solid var(--sc-ink);
  --ombre-franche: 4px 4px 0 var(--sc-ink);
  --label-shadow: var(--ombre-franche);
  --header-h: 5.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sc-canvas);
  color: var(--sc-ink);
  font-family: var(--sc-font-text);
  font-size: var(--sc-t-base, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sc-accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--sc-gutter, 1.5rem), var(--sc-maxw, 82rem)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--sc-font-display); font-weight: 700; line-height: 1.04; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: var(--sc-t-lg, 1.3rem); line-height: 1.45; max-width: 34ch; }
.soft { color: var(--sc-ink-soft); }
.small { font-size: var(--sc-t-sm, 0.92rem); }

/* ---------- En-tête : wordmark, deux produits, index des sept modèles ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  display: flex; align-items: center; gap: 1.5rem;
  padding-inline: var(--sc-gutter, 1.5rem);
  background: color-mix(in oklab, var(--sc-canvas) 88%, transparent);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: var(--trait);
}
.bar__mark { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font-family: var(--sc-font-display); font-weight: 700; font-size: 1.55rem; letter-spacing: -0.01em; }
.bar__mark img { height: calc(var(--header-h) - 0.7rem); width: auto; }
.bar__nav { display: flex; gap: 1.25rem; margin-left: auto; }
.bar__nav a { text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.bar__nav a:hover, .bar__nav a[aria-current="page"] { border-bottom-color: var(--sc-ink); }
.swatches { display: flex; gap: 0.4rem; align-items: center; padding-left: 1.25rem; border-left: 1px solid var(--line); }
.swatch {
  --c: #ccc;
  width: 1.15rem; height: 1.15rem; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--c); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--c) 70%, black);
  display: inline-block; position: relative;
  transition: transform 160ms var(--sc-ease-out, ease-out);
}
.swatch:hover { transform: rotate(-45deg) translate(1px, -1px) scale(1.12); }
.swatch[data-epuise]::after { content: ""; position: absolute; inset: 45% -10%; height: 2px; background: var(--sc-ink); transform: rotate(90deg); }
.bar__menu { display: none; margin-left: auto; font: inherit; font-weight: 600; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.45rem 1rem; color: var(--sc-ink); }
.sheet { display: none; }

@media (max-width: 860px) {
  :root { --header-h: 4.9rem; }
  .bar__nav, .swatches { display: none; }
  .bar__menu { display: inline-block; }
  .sheet[data-open] {
    display: block; position: fixed; inset: var(--header-h) 0 auto 0; z-index: 59;
    background: var(--sc-surface); border-bottom: 1px solid var(--line); padding: 1.25rem var(--sc-gutter, 1.25rem) 1.75rem;
  }
  .sheet a { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
}

/* ---------- Étiquette : le même schéma pour chaque modèle ---------- */
.label {
  background: var(--paper);
  border: var(--trait);
  border-radius: 18px;
  box-shadow: var(--label-shadow);
  padding: 0.85rem 1rem 0.9rem;
  font-size: 0.92rem; line-height: 1.4;
  min-width: 13.5rem;
  position: relative;
}
.label::before { /* l'œillet de l'étiquette */
  content: ""; position: absolute; top: 0.7rem; right: 0.75rem; width: 0.55rem; height: 0.55rem; border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--line-strong);
}
.label__name { font-family: var(--sc-font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.1; margin-bottom: 0.35rem; padding-right: 1.2rem; }
.label dl { display: grid; grid-template-columns: auto 1fr; gap: 0.1rem 0.75rem; margin: 0; }
.label dt { color: var(--sc-ink-soft); }
.label dd { margin: 0; font-weight: 600; }
.label .etat--off { color: #9b2c2c; }
.label a.label__go { display: inline-block; margin-top: 0.6rem; font-weight: 700; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 700; font-size: 1.02rem; white-space: nowrap;
  background: var(--sc-accent); color: var(--sc-accent-ink);
  border: var(--trait); border-radius: 999px; padding: 0.9rem 1.6rem; min-height: 3rem;
  text-decoration: none; cursor: pointer;
  box-shadow: 3px 3px 0 var(--sc-ink);
  transition: transform 140ms var(--sc-ease-out, ease-out), box-shadow 140ms var(--sc-ease-out, ease-out);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--sc-ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--sc-ink); }
.btn[disabled] { background: #eee5d6; color: #8a7b6a; border-color: #b9ab98; cursor: not-allowed; box-shadow: none; transform: none; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--sc-ink); }

/* ---------- Sujets détourés posés sur un sol mouillé, avec leur reflet ---------- */
.subject { position: relative; display: inline-block; }
.subject img { position: relative; z-index: 2; }
.subject img.subject__reflet {
  position: absolute; width: 100%; max-width: none; height: auto; left: 0; right: 0; top: 100%; z-index: 1;
  transform: scaleY(-1); transform-origin: center;
  opacity: 0.28; filter: blur(1.5px) saturate(0.8);
  -webkit-mask-image: linear-gradient(to top, black 0%, transparent 42%);
          mask-image: linear-gradient(to top, black 0%, transparent 42%);
  pointer-events: none;
}
.subject::after { /* la flaque */
  content: ""; position: absolute; z-index: 0; left: -14%; right: -14%; top: 96%; height: 34%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--puddle) 34%, transparent), transparent 72%);
  pointer-events: none;
}

/* ---------- Pied de page ---------- */
.foot { border-top: var(--trait); background: var(--ciel); padding: 2.5rem 0 3rem; font-size: 0.92rem; color: var(--sc-ink-soft); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot__logo { width: 9.5rem; height: auto; margin-bottom: 0.8rem; }
.foot h2 { font-size: 1.15rem; color: var(--sc-ink); margin-bottom: 0.6rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__legal { margin-top: 2rem; font-size: 0.84rem; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr; } }

/* ---------- Pages de contenu (information, légal, commande) ---------- */
.page { padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)) 0 clamp(3rem, 7vw, 6rem); }
.prose { max-width: 68ch; }
.prose h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem); margin-bottom: 1.25rem; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); margin: 2.6rem 0 0.75rem; }
.prose h3 { font-size: 1.15rem; margin: 1.6rem 0 0.4rem; letter-spacing: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.35rem; }
.note { background: var(--peche); border: var(--trait); padding: 0.9rem 1.1rem; border-radius: 16px; margin: 1.5rem 0; }
.placeholder { background: #fff3c4; padding: 0 0.25em; border-radius: 3px; }

/* ---------- Pluie (canvas du geste signature) ---------- */
.pluie { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pluie--loin { z-index: 0; opacity: 0.55; }
.pluie--pres { z-index: 40; }
main { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .btn, .swatch { transition: none; }
}
