/* Polices hébergées sur le site (SIL OFL 1.1, licences dans assets/fonts/) */
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/big-shoulders-display-v24-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/big-shoulders-display-v24-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-v23-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-v23-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* OD-LAYOUT-PRIMITIVES v1 — structure only: display, flex/grid, overflow, wrapping, ratio.
   Put this @layer first; product CSS outside the layer always wins. */
@layer od-layout {
  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }

  /* containers */
  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }

  /* stacked information: each piece is its own line — never sibling inline spans */
  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }

  /* media keeps its intrinsic ratio by default; never a distorted or cropped
     cover by accident. height:auto lets the ratio win over an <img height="…">
     attribute. Cropping to a uniform box is an explicit opt-in: set --od-ratio
     AND add .od-media-cover together (per the core rule, only where a crop is
     deliberate — tile thumbs, decorative fills — never on full-frame content). */
  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }

  /* data text only — authored copy is rewritten to its budget instead */
  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }   /* block-level reservation for a shared baseline */
  .od-nowrap  { white-space: nowrap; }           /* 数字+单位 · 价格+起 · 日期+星期 */
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; } /* CJK labels break at spaces / <wbr> first */

  /* screen skeleton (optional): bars take their own space, the middle scrolls — no padding guessed for chrome */
  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }

  /* horizontal rail: the next item peeks at the edge; trailing room survives overflow */
  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
             padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }

  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
/* /OD-LAYOUT-PRIMITIVES v1 */

/* ============ Design tokens ============ */
:root {
  /* palette */
  --paper: #FDFBF6;        /* blanc cassé lumineux */
  --ink: #14213D;          /* bleu nuit profond — 15:1 sur paper */
  --ink-soft: #2E3B5E;     /* texte secondaire — 10:1 sur paper */
  --mustard: #E8AE1B;      /* jaune moutarde — 8:1 avec ink */
  --mustard-soft: #FBE8B0; /* aplat clair moutarde, texte ink dessus */
  --terra: #B8461F;        /* terracotta franc — 5,1:1 sur paper */
  --terra-soft: #F6D9CC;
  --stone: #7D91A6;        /* gris-bleu pierre des dolmens — 3,1:1 sur paper */
  --white: #FFFFFF;
  --focus: var(--terra);

  /* type */
  --font-display: "Big Shoulders Display", "Arial Narrow", "Liberation Sans Narrow", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: 1.125rem;     /* 18px */
  --fs-small: 1rem;        /* 16px */
  --fs-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h3: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  --fs-h2: clamp(2.75rem, 2rem + 3.4vw, 5rem);
  --fs-h1: clamp(2.75rem, 1.6rem + 5.2vw, 6rem);
  --fs-giant: clamp(8rem, 5rem + 14vw, 17rem);
  --lh-body: 1.6;

  /* spacing — base 8 */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1280px;
  --measure: 68ch;

  /* shape */
  --radius: 4px;
  --lift: 6px;             /* décalage de l'ombre pleine */
  --border: 3px solid var(--ink);

  /* motion */
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.55, 0, 1, .45);
  --t-fast: 180ms;
  --t-mid: 280ms;
  --t-reveal: 400ms;
  --stagger: 40ms;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: .95; margin: 0; letter-spacing: .005em; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--mustard); color: var(--ink); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section[id] { scroll-margin-top: 88px; }

.skip {
  position: absolute; left: var(--s2); top: var(--s2); z-index: 100;
  background: var(--ink); color: var(--paper); padding: var(--s1) var(--s2);
  font-weight: 600; text-decoration: none; border-radius: var(--radius);
  transform: translateY(-200%);
}
.skip:focus { transform: none; outline-color: var(--mustard); }

/* Barre de progression de lecture (décorative) */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 5px; z-index: 60;
  background: var(--terra); transform-origin: 0 50%; transform: scaleX(var(--sp, 0));
  pointer-events: none;
}

/* ============ Boutons — face + ombre pleine, rebond élastique ============ */
.btn {
  display: inline-block; position: relative;
  background: var(--ink); border-radius: var(--radius);
  text-decoration: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit;
}
.btn__face {
  display: block; padding: 14px 24px; min-height: 52px;
  border: var(--border); border-radius: var(--radius);
  background: var(--mustard); color: var(--ink);
  font-weight: 600; font-size: var(--fs-body); line-height: 1.3;
  transform: translate(calc(var(--lift) * -1), calc(var(--lift) * -1));
  transition: transform var(--t-fast) var(--ease-in);
}
.btn--terra .btn__face { background: var(--terra); color: var(--white); }
.btn--paper .btn__face { background: var(--paper); }
.btn:active .btn__face { transform: translate(0, 0); transition-duration: 90ms; }
.btn:focus-visible { outline-offset: 4px; }
@media (hover: hover) {
  .btn:hover .btn__face {
    transform: translate(calc(var(--lift) * -1.6), calc(var(--lift) * -1.6)) rotate(-1.5deg);
    transition: transform var(--t-mid) var(--ease-bounce);
  }
}
.btn[disabled] { cursor: progress; }
.btn[disabled] .btn__face { transform: translate(-2px, -2px); }

.link {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px;
  text-decoration-color: var(--terra);
}
@media (hover: hover) { .link:hover { text-decoration-color: currentColor; text-decoration-thickness: 3px; } }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: var(--border);
}
.site-header__bar { --od-gap: var(--s3); min-height: 76px; }
.brand {
  --od-gap: 12px; text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 900; font-size: 1.75rem; letter-spacing: .02em; text-transform: uppercase;
}
.brand__mark { width: 44px; height: 36px; flex: none; }
.brand__mark .cap { transform-box: fill-box; transform-origin: center; transition: transform var(--t-mid) var(--ease-bounce); }
@media (hover: hover) { .brand:hover .brand__mark .cap { transform: translateY(-4px) rotate(-6deg); } }
/* Pierres des dolmens : même gris-bleu + contour ink ~3px à l'écran (épaisseur selon l'échelle du viewBox) */
.stone { fill: var(--stone); stroke: #14213D; stroke-linejoin: round; }
.brand__mark .stone    { stroke-width: 3; }   /* 44x36 affiché à 44px : 1 unité = 1px */
.dolmen .stone         { stroke-width: 2.5; } /* 400 de large affiché jusqu'à 520px : ~1,3px/unité */
.success__stone .stone { stroke-width: 3; }   /* 120x100 affiché à 120px : 1 unité = 1px */

.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; --od-gap: var(--s1); }
.nav__link {
  display: block; padding: 10px 12px; min-height: 44px; text-decoration: none; font-weight: 500;
  border-radius: var(--radius); position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px;
  background: var(--terra); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform var(--t-fast) var(--ease-in);
}
@media (hover: hover) {
  .nav__link:hover::after { transform: scaleX(1); transition: transform var(--t-mid) var(--ease-bounce); }
}
.nav__link[aria-current="true"]::after { transform: scaleX(1); }
.nav__cta .btn__face { padding: 10px 18px; min-height: 44px; }

.menu-toggle {
  display: none; margin-left: auto;
  font: inherit; font-weight: 600; color: var(--ink);
  background: var(--paper); border: var(--border); border-radius: var(--radius);
  min-height: 44px; padding: 8px 16px; cursor: pointer;
}
.menu-toggle__icon { width: 20px; height: 14px; flex: none; }
.menu-toggle__icon rect { transition: transform var(--t-mid) var(--ease-bounce), opacity var(--t-fast); transform-box: fill-box; transform-origin: center; }
.menu-toggle[aria-expanded="true"] .r1 { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .r2 { opacity: 0; }
.menu-toggle[aria-expanded="true"] .r3 { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899px) {
  .js .menu-toggle { display: flex; }
  .js .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: var(--border);
    padding: var(--s2) var(--gutter) var(--s4);
    display: none;
  }
  .js .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link { font-size: 1.25rem; }
  .nav__cta { margin-top: var(--s2); }
  .no-js .site-header__bar { flex-wrap: wrap; padding-block: var(--s1); }
  .no-js .nav { margin-left: 0; width: 100%; }
}

/* ============ Hero ============ */
.hero { padding-block: var(--s6) var(--s7); position: relative; }
.hero__grid { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--s6); } }

.eyebrow {
  --od-gap: 12px;
  font-weight: 600; font-size: var(--fs-small); letter-spacing: .14em; text-transform: uppercase;
  color: var(--terra);
}
.eyebrow__dot { width: 14px; height: 18px; flex: none; }

.hero h1 {
  margin-top: var(--s3);
  font-size: var(--fs-h1); font-weight: 900; text-transform: uppercase;
  line-height: 1.05; letter-spacing: .01em;
  overflow-wrap: break-word; hyphens: manual;
}
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::before {
  content: ""; position: absolute; z-index: -1; left: -.08em; right: -.08em; bottom: .02em; height: .42em;
  background: var(--mustard); transform-origin: 0 50%; transform: scaleX(1) skewX(-8deg);
}
.h1-coda { display: block; color: var(--terra); margin-top: .12em; }
.plug { position: relative; display: inline-block; }
.plug::after {
  content: ""; position: absolute; left: -.05em; right: -.05em; top: 52%; height: .09em;
  background: var(--ink); border-radius: 2px; transform: rotate(-4deg) scaleX(1); transform-origin: 0 50%;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .plug:hover { animation: wiggle 420ms var(--ease-out); }
}

.hero__sub {
  margin-top: var(--s4); max-width: 46ch;
  font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-soft);
}
.hero__actions { --od-gap: var(--s3); margin-top: var(--s5); }
.hero__note { font-size: var(--fs-small); color: var(--ink-soft); }

/* Dolmen interactif */
.dolmen-wrap { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.dolmen-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 24px; color: inherit; font: inherit;
}
.dolmen-btn:focus-visible { outline-offset: 6px; }
.dolmen { width: 100%; height: auto; aspect-ratio: 400 / 360; overflow: visible; }
.dolmen .track { transition: transform 500ms var(--ease-out); }
.dolmen .sun-t   { transform: translate(calc(var(--mx, 0) * -14px), calc(var(--my, 0) * -10px)); }
.dolmen .left-t  { transform: translate(calc(var(--mx, 0) * 5px), 0); }
.dolmen .right-t { transform: translate(calc(var(--mx, 0) * 7px), 0); }
.dolmen .cap-t   { transform-box: fill-box; transform-origin: 50% 100%;
                   transform: translate(calc(var(--mx, 0) * 10px), calc(var(--my, 0) * 4px)) rotate(calc(var(--mx, 0) * 3deg)); }
.dolmen .pupil   { transform: translate(calc(var(--mx, 0) * 4px), calc(var(--my, 0) * 3px)); transition: transform 200ms var(--ease-out); }
.dolmen .eyes    { transform-box: fill-box; transform-origin: center; }
.dolmen .spark   { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .dolmen .cap-float { animation: breathe 4.2s ease-in-out infinite; }
  .dolmen .eyes { animation: blink 5.5s infinite; }
  .dolmen .spark { animation: twinkle 3s ease-in-out infinite; }
  .dolmen .spark:nth-of-type(2) { animation-delay: -1s; }
  .dolmen .spark:nth-of-type(3) { animation-delay: -2s; }
  .dolmen-btn.is-boop .cap-float { animation: boop 520ms var(--ease-bounce); }
}

.bubble {
  position: absolute; left: 4%; top: -4%; max-width: 280px;
  background: var(--white); color: var(--ink); border: var(--border); border-radius: 18px;
  padding: 12px 16px; font-size: var(--fs-small); font-weight: 500; line-height: 1.4;
  box-shadow: var(--lift) var(--lift) 0 var(--ink);
  opacity: 0; transform: translateY(8px) scale(.92); transform-origin: 20% 100%;
  transition: opacity 180ms var(--ease-in), transform 180ms var(--ease-in);
  pointer-events: none;
}
.bubble::after {
  content: ""; position: absolute; left: 40px; bottom: -12px; width: 18px; height: 18px;
  background: var(--white); border-right: var(--border); border-bottom: var(--border);
  transform: rotate(45deg) skew(8deg, 8deg);
}
.bubble.is-on { opacity: 1; transform: none; transition: opacity 260ms var(--ease-out), transform 300ms var(--ease-bounce); }
.dolmen-hint { margin-top: var(--s2); text-align: center; font-size: var(--fs-small); color: var(--ink-soft); }

/* ============ Bandeau défilant ============ */
.ticker { background: var(--ink); color: var(--mustard); border-block: var(--border); position: relative; }
.ticker__viewport { overflow: hidden; }
.ticker__track { display: flex; width: max-content; }
.ticker__list {
  display: flex; list-style: none; margin: 0; padding: 18px 0; flex: none;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  text-transform: uppercase; letter-spacing: .03em; line-height: 1.1;
}
.ticker__list li { display: flex; align-items: center; gap: var(--s3); padding-inline: var(--s3) 0; white-space: nowrap; }
.ticker__list li::after { content: ""; width: 14px; height: 18px; background: var(--terra); border-radius: 40% 40% 20% 20%; flex: none; margin-left: var(--s3); }
@media (prefers-reduced-motion: no-preference) {
  .ticker__track { animation: ticker 38s linear infinite; }
  .ticker.is-paused .ticker__track { animation-play-state: paused; }
  @media (hover: hover) { .ticker:hover .ticker__track { animation-play-state: paused; } }
}
.ticker__pause {
  position: absolute; right: var(--s2); top: 50%; transform: translateY(-50%);
  min-height: 44px; min-width: 44px; padding: 8px 14px;
  background: var(--mustard); color: var(--ink); border: 3px solid var(--paper); border-radius: var(--radius);
  font: inherit; font-size: var(--fs-small); font-weight: 600; cursor: pointer;
}
.ticker__pause:focus-visible { outline-color: var(--paper); }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { width: auto; }
  .ticker__list { flex-wrap: wrap; justify-content: center; row-gap: 8px; padding-inline: var(--gutter); }
  .ticker__list[aria-hidden="true"], .ticker__pause { display: none; }
}

/* ============ Sections génériques ============ */
.section { padding-block: var(--s8); position: relative; }
.kicker {
  display: block; font-weight: 600; font-size: var(--fs-small); letter-spacing: .14em; text-transform: uppercase;
  color: var(--terra); margin-bottom: var(--s2);
}
.section h2 { font-size: var(--fs-h2); text-transform: uppercase; font-weight: 900; }
.prose { max-width: var(--measure); }
.prose p + p { margin-top: var(--s3); }

/* Séparateur de cailloux qui roulent au scroll */
.pebbles { display: flex; justify-content: center; gap: var(--s4); padding-block: var(--s2); }
.pebble { width: 34px; height: 30px; transform: rotate(calc(var(--sp, 0) * var(--spin, 2turn))); }
.pebble:nth-child(2) { --spin: -3turn; }
.pebble:nth-child(3) { --spin: 4turn; }

/* ============ Qui je suis ============ */
.about__grid { display: grid; gap: var(--s6); }
@media (min-width: 1024px) { .about__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.years {
  background: var(--mustard); color: var(--ink); border: var(--border); border-radius: var(--radius);
  padding: var(--s4) var(--s4) var(--s3); box-shadow: 10px 10px 0 var(--ink);
  --od-gap: 0; max-width: 460px;
}
.years__num {
  font-family: var(--font-display); font-weight: 900; font-size: var(--fs-giant); line-height: .8;
  letter-spacing: -.01em; white-space: nowrap;
}
.years__cap { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-h3); text-transform: uppercase; line-height: 1.05; }
.years__sub { margin-top: var(--s1); font-size: var(--fs-small); font-weight: 500; }

.about h2 { margin-bottom: var(--s4); }
.about__lead p { font-size: 1.1875rem; }
.eras { margin-top: var(--s5); }
.eras__label { font-weight: 600; font-size: var(--fs-small); color: var(--ink-soft); margin-bottom: var(--s2); }
.eras__list { list-style: none; margin: 0; padding: 0; --od-gap: 12px; }
.era {
  display: inline-block; padding: 8px 16px; border: 2px solid var(--ink); border-radius: 999px;
  font-weight: 600; font-size: var(--fs-small); background: var(--paper);
  transition: transform var(--t-fast) var(--ease-in);
}
.era s { text-decoration-thickness: 2px; text-decoration-color: var(--terra); }
.era--keep { background: var(--ink); color: var(--paper); }
@media (hover: hover) {
  .era:hover { transform: translateY(-6px) rotate(-3deg); transition: transform var(--t-mid) var(--ease-bounce); }
  .era:nth-child(even):hover { transform: translateY(-6px) rotate(3deg); }
}

/* ============ Services ============ */
.services { background: var(--mustard-soft); border-block: var(--border); }
.services .kicker { color: #AE421D; } /* terra assombri : 4,8:1 sur mustard-soft (--terra n'y fait que 4,39:1) */
.services__head { display: grid; gap: var(--s3); margin-bottom: var(--s6); }
@media (min-width: 1024px) { .services__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; } }
.services__intro { font-size: var(--fs-lead); line-height: 1.5; max-width: 40ch; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5) var(--s4); }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--ink); border-radius: var(--radius); height: 100%; }
.card__face {
  height: 100%; background: var(--paper); border: var(--border); border-radius: var(--radius);
  padding: var(--s4); --od-gap: var(--s2);
  transform: translate(-8px, -8px);
  transition: transform var(--t-fast) var(--ease-in);
}
.card:nth-child(2) .card__face { background: var(--white); }
.card__top { --od-gap: var(--s2); justify-content: space-between; }
.card__num { font-family: var(--font-display); font-weight: 900; font-size: 3rem; line-height: 1; color: var(--terra); }
.card__stone { width: 56px; height: 52px; flex: none; transform-box: fill-box; transition: transform var(--t-fast) var(--ease-in); }
.card h3 { font-size: var(--fs-h3); text-transform: uppercase; }
.card p { color: var(--ink-soft); }
@media (hover: hover) {
  .card:hover .card__face { transform: translate(-12px, -12px); transition: transform var(--t-mid) var(--ease-bounce); }
  .card:hover .card__stone { transform: rotate(-12deg) translateY(-4px); transition: transform var(--t-mid) var(--ease-bounce); }
}

/* ============ Méthode ============ */
.method__grid { display: grid; gap: var(--s5); }
@media (min-width: 1024px) { .method__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.method__pitch { font-size: var(--fs-lead); line-height: 1.5; margin-top: var(--s3); max-width: 32ch; }
.method__pitch strong { background: var(--mustard); padding-inline: 4px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 3px;
  background: repeating-linear-gradient(to bottom, var(--ink) 0 10px, transparent 10px 18px);
}
.step { --od-gap: var(--s3); position: relative; padding-bottom: var(--s4); }
.step:last-child { padding-bottom: 0; }
.step__dot {
  counter-increment: step; width: 56px; height: 56px; flex: none;
  display: grid; place-items: center; border: var(--border); border-radius: 50% 50% 40% 40%;
  background: var(--paper); font-family: var(--font-display); font-weight: 900; font-size: 1.75rem; position: relative; z-index: 1;
  transition: transform var(--t-fast) var(--ease-in);
}
.step__dot::before { content: counter(step); }
.step:nth-child(odd) .step__dot { background: var(--mustard); }
.step:last-child .step__dot { background: var(--terra); color: var(--white); }
.step__body { padding-top: 8px; --od-gap: 4px; }
.step h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.25rem; line-height: 1.3; }
.step p { color: var(--ink-soft); max-width: 56ch; }
@media (hover: hover) { .step:hover .step__dot { transform: scale(1.12) rotate(-8deg); transition: transform var(--t-mid) var(--ease-bounce); } }

/* ============ Plugin miracle ============ */
.myth { background: var(--terra); color: var(--white); border-block: var(--border); --focus: var(--paper); overflow: hidden; }
.myth .kicker { color: var(--white); }
.myth__grid { display: grid; gap: var(--s6); }
@media (min-width: 1024px) { .myth__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }
.myth__text p { font-size: 1.1875rem; max-width: 52ch; }
.myth__text h2 { margin-bottom: var(--s4); }

.badge-zone { display: grid; justify-items: center; gap: var(--s3); text-align: center; }
.badge-stage { position: relative; width: 300px; max-width: 100%; height: 300px; display: grid; place-items: center; }
.badge {
  width: 240px; height: 240px; border-radius: 50%; border: 4px solid var(--ink);
  background: var(--mustard); color: var(--ink); cursor: pointer; padding: 0; font: inherit;
  display: grid; place-items: center; position: relative;
  box-shadow: 8px 8px 0 var(--ink);
  transition: transform var(--t-fast) var(--ease-in);
}
.badge__in { display: block; }
.badge__big { display: block; font-family: var(--font-display); font-weight: 900; font-size: 4rem; line-height: .9; }
.badge__small { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; line-height: 1; }
.badge__price { display: block; margin-top: 8px; font-size: .9375rem; font-weight: 600; }
.badge::before {
  content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 2px dashed var(--ink);
}
.badge:focus-visible { outline: 4px solid var(--paper); outline-offset: 6px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .badge:hover { transform: rotate(-8deg) scale(1.04); transition: transform var(--t-mid) var(--ease-bounce); }
}
.badge-stage.is-broken .badge { visibility: hidden; }
.shards { position: absolute; inset: 0; pointer-events: none; }
.shard { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -120px 0 0 -120px; opacity: 0; }
.shard:nth-child(2) { margin: -120px 0 0 0; }
.shard:nth-child(3) { margin: 0 0 0 -120px; }
.shard:nth-child(4) { margin: 0; }
.badge-stage.is-broken .shard { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .badge-stage.is-broken .shard { animation: fall 900ms var(--ease-in) forwards; }
  .badge-stage.is-broken .shard:nth-child(1) { --dx: -60px; --rot: -40deg; }
  .badge-stage.is-broken .shard:nth-child(2) { --dx: 70px; --rot: 35deg; animation-delay: 60ms; }
  .badge-stage.is-broken .shard:nth-child(3) { --dx: -40px; --rot: -25deg; animation-delay: 120ms; }
  .badge-stage.is-broken .shard:nth-child(4) { --dx: 50px; --rot: 50deg; animation-delay: 30ms; }
}
@media (prefers-reduced-motion: reduce) { .badge-stage.is-broken .shard { opacity: 0; } }
.badge-msg {
  min-height: 3.2em; max-width: 34ch; font-weight: 600; font-size: 1.125rem;
}
.badge-reset {
  font: inherit; font-size: var(--fs-small); font-weight: 600; color: var(--white);
  background: none; border: 2px solid var(--white); border-radius: var(--radius); padding: 8px 16px; min-height: 44px; cursor: pointer;
}
.badge-reset[hidden] { display: none; }

.versus { margin-top: var(--s6); display: grid; gap: var(--s4); }
@media (min-width: 768px) { .versus { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.vs-col { border: 3px solid var(--ink); border-radius: var(--radius); padding: var(--s4); }
.vs-col--them { background: var(--terra-soft); color: var(--ink); }
.vs-col--me { background: var(--paper); color: var(--ink); box-shadow: 10px 10px 0 var(--ink); }
.vs-col h3 { font-size: var(--fs-h3); text-transform: uppercase; margin-bottom: var(--s3); }
.vs-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.vs-col li { --od-gap: 12px; }
.vs-mark { width: 24px; height: 24px; flex: none; margin-top: 3px; }

/* ============ IA ============ */
.ai { background: var(--ink); color: var(--paper); --focus: var(--mustard); }
.ai .kicker { color: var(--mustard); }
.ai__grid { display: grid; gap: var(--s6); }
@media (min-width: 1024px) { .ai__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; } }
.ai h2 { margin-bottom: var(--s4); }
.ai__quote { font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); line-height: 1.4; max-width: 34ch; font-weight: 500; }
.ai__quote em { font-style: normal; color: var(--mustard); }
.split { display: grid; gap: var(--s3); }
.split__item {
  border: 3px solid var(--paper); border-radius: var(--radius); padding: var(--s3) var(--s4); --od-gap: 6px;
}
.split__item--me { background: var(--mustard); color: var(--ink); border-color: var(--mustard); }
.split__label { font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; text-transform: uppercase; line-height: 1; }
.split__text { font-size: var(--fs-body); }
.stack-demo { --od-gap: 8px; margin-top: var(--s2); }
.stack-demo__chip {
  padding: 4px 12px; border: 2px dashed var(--paper); border-radius: 999px; font-size: var(--fs-small); font-weight: 500;
}
.stack-demo__chip s { text-decoration-color: var(--mustard); text-decoration-thickness: 2px; }

/* ============ Contact ============ */
.contact__grid { display: grid; gap: var(--s6); }
@media (min-width: 1024px) { .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.contact__lead { font-size: var(--fs-lead); line-height: 1.5; margin-top: var(--s3); max-width: 34ch; }
.contact__info { margin-top: var(--s5); --od-gap: var(--s2); }
.info-row { --od-gap: 2px; }
.info-row dt { font-size: var(--fs-small); font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .1em; }
.info-row dd { margin: 0; font-weight: 600; font-size: 1.25rem; }
.placeholder-tag {
  display: inline-block; margin-left: 8px; padding: 0 8px; border: 2px dashed var(--terra); border-radius: var(--radius);
  font-size: .875rem; font-weight: 600; color: var(--terra); vertical-align: middle;
}

.form-card { background: var(--ink); border-radius: var(--radius); }
.form-card__face {
  background: var(--white); border: var(--border); border-radius: var(--radius); padding: var(--s5) var(--s4);
  transform: translate(-10px, -10px);
}
@media (min-width: 768px) { .form-card__face { padding: var(--s5); } }
.form { display: grid; gap: var(--s4); }
.form__row { display: grid; gap: var(--s4); }
.form__row > .field { align-content: start; }
@media (min-width: 768px) { .form__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.field { --od-gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: var(--fs-body); }
.field__hint { font-size: var(--fs-small); color: var(--ink-soft); }
.input, .textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--radius); padding: 12px 14px; min-height: 52px;
  transition: box-shadow var(--t-fast) var(--ease-out);
}
.textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus { outline: 3px solid var(--terra); outline-offset: 2px; box-shadow: 4px 4px 0 var(--mustard); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--terra); border-width: 3px; background: #FFF6F2; }
.field__error { color: var(--terra); font-weight: 600; font-size: var(--fs-small); --od-gap: 8px; }
.field__error[hidden] { display: none; }
.err-mark { width: 20px; height: 20px; flex: none; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { --od-gap: 12px; margin-top: 4px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: block; padding: 10px 16px; min-height: 44px; border: 2px solid var(--ink); border-radius: 999px;
  font-weight: 500; font-size: var(--fs-small); cursor: pointer; background: var(--paper);
  transition: transform var(--t-fast) var(--ease-in);
}
.choice input:checked + label { background: var(--ink); color: var(--paper); }
.choice input:checked + label::before { content: "● "; color: var(--mustard); }
.choice input:focus-visible + label { outline: 3px solid var(--terra); outline-offset: 3px; }
@media (hover: hover) { .choice label:hover { transform: translateY(-3px); transition: transform var(--t-mid) var(--ease-bounce); } }

.err-summary {
  border: 3px solid var(--terra); border-radius: var(--radius); background: #FFF6F2; padding: var(--s3);
}
.err-summary[hidden] { display: none; }
.err-summary ul:empty { display: none; }
.err-summary h3 { font-family: var(--font-body); font-size: 1.125rem; font-weight: 700; line-height: 1.4; color: var(--terra); }
.err-summary ul { margin: var(--s1) 0 0; padding-left: 1.2em; }
.err-summary a { color: var(--ink); font-weight: 600; }
.form__foot { --od-gap: var(--s3); }
.form__legal { font-size: var(--fs-small); color: var(--ink-soft); }
.form__reserve { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.success { display: grid; gap: var(--s3); justify-items: start; }
.success__stone { width: 120px; height: 100px; }
.success h1 { font-size: var(--fs-h3); text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) {
  .success__stone { animation: pop 520ms var(--ease-bounce); }
}

.page h1 { font-size: var(--fs-h2); text-transform: uppercase; }
.page h2 { font-size: var(--fs-h3); text-transform: none; margin-top: var(--s4); }
.page p { max-width: 65ch; }

/* ============ Footer ============ */
.footer { background: var(--ink); color: var(--paper); padding-block: var(--s6) var(--s5); --focus: var(--mustard); border-top: var(--border); }
.footer__top { display: grid; gap: var(--s4); align-items: end; }
@media (min-width: 768px) { .footer__top { grid-template-columns: minmax(0, 1fr) auto; } }
.footer__name { font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 2rem + 5vw, 6.5rem); text-transform: uppercase; line-height: .9; }
.footer__name span { color: var(--mustard); }
.footer__bottom { margin-top: var(--s5); padding-top: var(--s3); border-top: 2px solid var(--ink-soft); --od-gap: var(--s3); justify-content: space-between; font-size: var(--fs-small); }
.footer__links { list-style: none; margin: 0; padding: 0; --od-gap: var(--s3); }
.footer .link { text-decoration-color: var(--mustard); }
.top-btn .btn__face { padding: 10px 18px; min-height: 44px; }
.footer .btn { background: var(--mustard); }
.footer .btn .btn__face { background: var(--paper); border-color: var(--paper); }

/* ============ Apparitions au scroll ============ */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px) rotate(var(--r, 0deg)); }
  .js .reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-bounce);
    transition-delay: calc(var(--i, 0) * var(--stagger));
  }
  .js .reveal--tilt { --r: -4deg; }
  .js .hl::before { transform: scaleX(0) skewX(-8deg); }
  .js .is-loaded .hl::before { transform: scaleX(1) skewX(-8deg); transition: transform 400ms var(--ease-out) 300ms; }
  .js .plug::after { transform: rotate(-4deg) scaleX(0); }
  .js .is-loaded .plug::after { transform: rotate(-4deg) scaleX(1); transition: transform 300ms var(--ease-out) 800ms; }
}

/* ============ Keyframes ============ */
@keyframes breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes twinkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .5; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
@keyframes boop { 0% { transform: translateY(0); } 35% { transform: translateY(-22px) rotate(-3deg); } 100% { transform: translateY(0); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 50% { transform: rotate(3deg); } 75% { transform: rotate(-2deg); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes fall { to { transform: translate(var(--dx), 260px) rotate(var(--rot)); opacity: 0; } }
@keyframes pop { 0% { transform: scale(.4) rotate(-12deg); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ============ Réduction des animations : tout s'arrête ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important; animation-iteration-count: 1 !important;
    transition-duration: 1ms !important; transition-delay: 0ms !important;
  }
  .pebble { transform: none; }
}
