/* ==========================================================================
   CuistoDev — « L'ardoise et le papier »
   Un magazine culinaire écrit à la craie : grands titres éditoriaux (Instrument Serif),
   notes du chef à la main (Caveat Brush), lecture en Figtree.
   Ardoise vert-noir, papier crème, craie jaune, bois pour l'ardoise des prix.
   ========================================================================== */

/* ---------- Polices (hébergées sur le site : RGPD) ---------- */
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
/* Secours calé sur Instrument Serif (assez étroite) : le titre saute moins quand la police arrive */
@font-face {
  font-family: "Instrument Serif secours";
  src: local("Times New Roman"), local("Times");
  size-adjust: 92%;
}
@font-face {
  font-family: "Caveat Brush";
  src: url("../fonts/caveat-brush.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Caveat Brush secours";
  src: local("Segoe Print");
  size-adjust: 69%;
}
@font-face {
  font-family: "Caveat Brush secours 2";
  src: local("Comic Sans MS"), local("ComicSansMS");
  size-adjust: 74.5%;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-var.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

/* ---------- Jetons ---------- */
:root {
  /* Ardoise */
  --nuit: #121a18;
  --nuit-2: #0d1312;
  --slate: #1d2926;
  --slate-lift: #26342f;
  /* Craies */
  --chalk: #f2f0e8;
  --chalk-soft: #c3cdc7;
  --chalk-line: rgba(242, 240, 232, 0.5);
  --chalk-faint: rgba(242, 240, 232, 0.28);
  --filet: rgba(242, 240, 232, 0.14);
  --yellow: #ecc864;
  --yellow-hover: #f6dc8c;
  --red: #f19484; /* erreurs */
  --wood: #b3824e;
  /* Papier */
  --papier: #f3ead8;
  --papier-2: #ebdfc6;
  --encre: #1d2926;
  --encre-douce: #4a5651;
  --brun: #7a4b12;
  --or-encre: #b8862b;
  --filet-encre: rgba(29, 41, 38, 0.18);

  --serif: "Instrument Serif", "Instrument Serif secours", Georgia, serif;
  --font-hand: "Caveat Brush", "Caveat Brush secours", "Caveat Brush secours 2", cursive;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.92rem, 0.88rem + 0.2vw, 1rem);
  --step-0: clamp(1.05rem, 1rem + 0.25vw, 1.18rem);
  --step-1: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
  --step-2: clamp(1.7rem, 1.4rem + 1.3vw, 2.4rem);
  --step-3: clamp(2.2rem, 1.5rem + 2.8vw, 4rem);
  --grand: clamp(2.5rem, 1.45rem + 4.3vw, 5.6rem);

  --gouttiere: clamp(1rem, 4vw, 3rem);
  --section: clamp(5rem, 3.5rem + 6vw, 10rem);
  --measure: 66ch;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --chalk-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
  --chalk-scumble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.06 1.5' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .11 0 0 0 0 .16 0 0 0 0 .15 0 0 0 -2.4 1.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  --wood-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .5' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .22 0 0 0 0 .12 0 0 0 0 .04 0 0 0 1.1 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E");
  --wood-figure: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='turbulence' baseFrequency='.003 .045' numOctaves='4' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .2 0 0 0 0 .07 0 0 0 .9 -.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --fleche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  scrollbar-color: var(--wood) var(--nuit-2);
}

body {
  margin: 0;
  background-color: var(--nuit);
  background-image: var(--chalk-grain);
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--yellow);
}
body.menu-ouvert { overflow: hidden; }
/* Le bandeau penché et la scène de l'accueil ne créent pas de défilement horizontal */
main { overflow-x: clip; }

::selection { background: var(--yellow); color: var(--nuit); }

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover { color: var(--yellow); }

:focus-visible {
  outline: 2px dashed var(--yellow);
  outline-offset: 4px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; max-width: var(--measure); }
em { font-style: italic; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 60;
  padding: 0.6rem 1rem;
  background: var(--yellow);
  color: var(--nuit);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }
.skip-link:hover { color: var(--nuit); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: min(100% - 2 * var(--gouttiere), 78rem);
  margin-inline: auto;
}

section[id], .ancre { scroll-margin-top: 4.5rem; }
.ancre { display: block; position: relative; top: -4.5rem; }

/* ---------- Petites pièces communes ---------- */

/* Surtitre en capitales espacées */
.surtitre, .index {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chalk-soft);
  margin: 0;
}

/* « 01 — Le studio » : le numéro de chapitre */
.index { display: flex; align-items: center; gap: 0.9rem; }
.index span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--yellow);
}
.index::after { content: ""; flex: 0 0 3.5rem; height: 1px; background: currentColor; opacity: 0.5; order: 0; }
.index span { order: -1; }

/* Notes du chef écrites à la craie dans les marges */
.annotation {
  font-family: var(--font-hand);
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem);
  line-height: 1.05;
  color: var(--yellow);
  margin: 0;
  max-width: none;
}
.annotation svg { width: 4.5rem; height: auto; }
.annotation-encre { color: var(--brun); }

.grand {
  font-size: var(--grand);
  line-height: 0.98;
  letter-spacing: -0.012em;
  max-width: 17ch;
}
.grand em { color: var(--yellow); }

.chapitre { display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.chapitre-intro { font-size: var(--step-1); line-height: 1.45; color: var(--chalk-soft); max-width: 42ch; margin: 0; }

/* Lien avec flèche et soulignement qui se trace */
.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 0.55rem) / 100% 1px;
  transition: background-size 0.6s var(--ease), color 0.3s;
}
.lien-fleche::after {
  content: "";
  width: 1.1em;
  height: 1.1em;
  background: currentColor;
  -webkit-mask: var(--fleche) center / contain no-repeat;
  mask: var(--fleche) center / contain no-repeat;
  transition: transform 0.5s var(--ease);
}
.lien-fleche:hover { background-size: 0 1px; background-position: 100% calc(100% - 0.55rem); color: var(--yellow); }
.lien-fleche:hover::after { transform: translateX(0.3rem); }

/* ---------- Le bouton d'appel à l'action ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.55rem 0.55rem 1.5rem;
  min-height: 3.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step-0);
  line-height: 1.2;
  color: var(--nuit);
  background-color: var(--yellow);
  background-image: var(--chalk-scumble);
  background-size: 260px 120px;
  border: 0;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
/* Au survol, une craie plus claire monte depuis le bas */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--yellow-hover);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}
.cta:hover { color: var(--nuit); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(236, 200, 100, 0.55); }
.cta:hover::before { transform: none; }
.cta:active { transform: translateY(0); }
.cta-fleche {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 2px;
  background: var(--nuit);
  color: var(--yellow);
  overflow: hidden;
}
.cta-fleche svg { width: 1.25rem; height: 1.25rem; }
.cta:hover .cta-fleche svg { animation: fleche-passe 0.6s var(--ease); }
@keyframes fleche-passe {
  0% { transform: none; }
  45% { transform: translateX(160%); }
  46% { transform: translateX(-160%); }
  100% { transform: none; }
}
.cta[disabled] { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }

/* ==========================================================================
   En-tête
   ========================================================================== */
.entete {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: 1.1rem var(--gouttiere);
  color: var(--chalk);
  transition: transform 0.6s var(--ease), padding 0.4s var(--ease);
}
.entete::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(13, 19, 18, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--filet);
  opacity: 0;
  transition: opacity 0.4s;
}
.entete.est-defile { padding-block: 0.7rem; }
.entete.est-defile::before { opacity: 1; }
.entete.est-cache { transform: translateY(-105%); }
body.menu-ouvert .entete { transform: none; }
body.menu-ouvert .entete::before { opacity: 0; }

.marque {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 1.35rem + 0.6vw, 1.9rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--chalk);
  text-decoration: none;
  white-space: nowrap;
}
.marque em { color: var(--yellow); transition: letter-spacing 0.5s var(--ease); }
.marque:hover { color: var(--chalk); }
.marque:hover em { letter-spacing: 0.04em; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(1rem, 2.2vw, 2.1rem); list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative;
  display: inline-block;
  padding-block: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--chalk-soft);
  text-decoration: none;
  transition: color 0.3s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.35rem;
  height: 1px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav a:hover, .nav a.est-actif { color: var(--chalk); }
.nav a:hover::after, .nav a.est-actif::after { transform: scaleX(1); transform-origin: left; }

.entete-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--yellow);
  text-decoration: none;
  border: 1px solid rgba(236, 200, 100, 0.6);
  border-radius: 2px;
  white-space: nowrap;
  transition: color 0.4s var(--ease), border-color 0.4s;
}
.entete-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--yellow);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.entete-cta:hover { color: var(--nuit); border-color: var(--yellow); }
.entete-cta:hover::before { transform: none; }

.menu-bouton {
  display: none;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  padding: 0 0.25rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk);
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-bouton-traits { position: relative; width: 1.6rem; height: 0.7rem; }
.menu-bouton-traits i {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.menu-bouton-traits i:first-child { top: 0; }
.menu-bouton-traits i:last-child { top: calc(100% - 2px); }
.menu-bouton[aria-expanded="true"] .menu-bouton-traits i:first-child { top: calc(50% - 1px); transform: rotate(45deg); }
.menu-bouton[aria-expanded="true"] .menu-bouton-traits i:last-child { top: calc(50% - 1px); transform: rotate(-45deg); }

/* Le menu plein écran (téléphone et tablette) */
.menu-plein {
  position: fixed;
  z-index: 35;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6.5rem var(--gouttiere) calc(2rem + env(safe-area-inset-bottom));
  background-color: var(--nuit-2);
  background-image: var(--chalk-grain);
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-io);
}
.menu-plein.est-ouvert { clip-path: inset(0 0 0 0); }
.menu-plein ol { list-style: none; margin: 0; padding: 0; }
.menu-plein li { overflow: hidden; border-bottom: 1px solid var(--filet); }
.menu-plein a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 1.4rem + 4vw, 3.4rem);
  line-height: 1.05;
  color: var(--chalk);
  text-decoration: none;
  transform: translateY(105%);
  transition: transform 0.7s var(--ease), color 0.3s;
  transition-delay: calc(0.12s + var(--i, 0) * 0.05s);
}
.menu-plein a span { font-size: 0.9rem; font-family: var(--font-body); font-weight: 600; color: var(--yellow); min-width: 1.6rem; }
.menu-plein a:hover { color: var(--yellow); }
.menu-plein.est-ouvert a { transform: none; }
.menu-plein li:last-child a { color: var(--yellow); font-style: italic; }
.menu-plein-contact { margin: 2rem 0 0; color: var(--chalk-soft); font-size: var(--step--1); }
.menu-plein-contact a { color: var(--chalk); font-weight: 700; }

@media (max-width: 62rem) {
  .nav { display: none; }
  .entete-cta { margin-left: auto; }
  .js .menu-bouton { display: inline-flex; }
}
@media (max-width: 40rem) {
  /* Sur téléphone, la barre du bas porte déjà le bouton : l'en-tête garde le logo et le menu */
  .js .entete-cta { display: none; }
  .js .menu-bouton { margin-left: auto; }
}

/* ==========================================================================
   00 · Accueil
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: clamp(6.5rem, 12vh, 8.5rem);
  background-color: var(--nuit);
  background-image:
    radial-gradient(ellipse 45% 35% at 78% 40%, rgba(236, 200, 100, 0.07), transparent 70%),
    radial-gradient(ellipse 40% 30% at 12% 20%, rgba(242, 240, 232, 0.05), transparent 70%),
    var(--chalk-grain);
}
/* La grille de mise en page, en filigrane : douze colonnes à peine visibles */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(90deg, rgba(242, 240, 232, 0.045) 0 1px, transparent 1px calc(100% / 12));
  background-size: min(100% - 2 * var(--gouttiere), 78rem) 100%;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  pointer-events: none;
}

.hero-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(1rem, 4vh, 3rem);
}

.pour-resto {
  margin: 0 0 1rem;
  font-family: var(--font-hand);
  font-size: var(--step-1);
  color: var(--chalk-soft);
}
.pour-resto strong { font-weight: 400; color: var(--yellow); }

.hero-surtitre { display: flex; align-items: center; gap: 0.75rem; }
.pastille {
  position: relative;
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--yellow);
}
.pastille::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--yellow);
  animation: pouls 2.4s var(--ease) infinite;
}
@keyframes pouls { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.hero-titre {
  font-size: min(clamp(3.3rem, 1.1rem + 6.6vw, 8.2rem), 11.5svh);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 1.4rem 0 1.6rem;
  max-width: none;
}
.hero-titre .ligne { display: block; overflow: hidden; padding: 0 0.12em 0.06em 0; margin-bottom: -0.06em; }
.hero-titre .ligne > span { display: inline-block; position: relative; animation: monte 1.1s var(--ease) both; }
.hero-titre .ligne:nth-child(1) > span { animation-delay: 0.1s; }
.hero-titre .ligne:nth-child(2) > span { animation-delay: 0.18s; }
.hero-titre .ligne:nth-child(3) > span { animation-delay: 0.32s; }
.hero-titre .ligne:nth-child(4) > span { animation-delay: 0.4s; }
.hero-titre em { color: var(--yellow); }
.hero-titre .ligne-accent { padding-bottom: 0.22em; margin-bottom: -0.16em; }
.flourish {
  position: absolute;
  left: 0;
  width: 96%;
  bottom: -0.16em;
  height: 0.16em;
  color: var(--yellow);
}
.flourish path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 1.1s 1.05s var(--ease-io) forwards; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes monte { from { transform: translateY(108%); } to { transform: none; } }
@keyframes apparait { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }

.hero-surtitre, .pour-resto { animation: apparait 0.9s var(--ease) both; }
.hero-lede { animation: apparait 1s 0.55s var(--ease) both; }
.hero-actions { animation: apparait 1s 0.68s var(--ease) both; }
.hero-note { animation: apparait 1s 0.8s var(--ease) both; }

.hero-lede {
  font-size: clamp(1.15rem, 1rem + 0.55vw, 1.42rem);
  line-height: 1.45;
  color: var(--chalk-soft);
  max-width: 34ch;
  margin: 0 0 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.hero-note { font-size: 0.9rem; color: var(--chalk-soft); max-width: 52ch; margin: 1.75rem 0 0; }
.launch { color: var(--yellow); font-weight: 700; }

/* La scène : un écran, un téléphone, et le bon de commande posé devant */
.hero-scene {
  position: relative;
  width: 100%;
  max-width: 40rem;
  aspect-ratio: 1 / 0.9;
  justify-self: end;
  perspective: 1600px;
}
.hero-scene > * { translate: calc(var(--px, 0) * 1px) calc(var(--py, 0) * 1px); transition: translate 0.9s var(--ease); }

.scene-ecran {
  position: absolute;
  top: 6%;
  right: 0;
  width: 90%;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #0b100f;
  box-shadow: 0 50px 90px -25px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(242, 240, 232, 0.1);
  transform: rotateY(-9deg) rotateX(4deg) rotate(-1deg);
  transform-origin: 60% 50%;
  animation: ecran-entre 1.4s 0.3s var(--ease) both;
}
@keyframes ecran-entre {
  from { opacity: 0; transform: rotateY(-22deg) rotateX(10deg) rotate(-1deg) translateY(3rem); }
  to { opacity: 1; transform: rotateY(-9deg) rotateX(4deg) rotate(-1deg); }
}
.navigateur-barre {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.8rem;
  background: #1c2624;
  border-bottom: 1px solid rgba(242, 240, 232, 0.06);
  font-size: 0.68rem;
  color: var(--chalk-soft);
  white-space: nowrap;
  overflow: hidden;
}
.navigateur-barre i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: rgba(242, 240, 232, 0.22); }
.navigateur-barre span { margin-left: 0.8rem; overflow: hidden; text-overflow: ellipsis; }
.scene-ecran img { width: 100%; height: auto; }

.scene-tel {
  position: absolute;
  right: -2%;
  bottom: 4%;
  width: 26%;
  margin: 0;
  transform: rotate(3deg);
  animation: tel-entre 1.3s 0.55s var(--ease) both;
}
@keyframes tel-entre { from { opacity: 0; transform: rotate(10deg) translateY(4rem); } to { opacity: 1; transform: rotate(3deg); } }

/* Écran de téléphone (accueil et réalisations) */
.scene-tel img, .projet-tel img {
  width: 100%;
  height: auto;
  aspect-ratio: 300 / 650;
  object-fit: cover;
  object-position: top;
  border: 6px solid #0b0b0b;
  border-radius: 22px;
  background: var(--slate-lift);
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(242, 240, 232, 0.12);
}

/* Le bon de commande : papier crème, bords dentelés, prix écrits à la main */
.ticket {
  position: absolute;
  left: 0;
  bottom: -3%;
  width: min(64%, 21.5rem);
  padding: 1.15rem 1.25rem 1.05rem;
  color: var(--encre);
  background-color: var(--papier);
  background-image: var(--paper-grain);
  font-size: 0.85rem;
  line-height: 1.35;
  box-shadow: 0 35px 55px -18px rgba(0, 0, 0, 0.7);
  transform: rotate(-4deg);
  animation: ticket-entre 1.2s 0.75s var(--ease) both;
}
@keyframes ticket-entre { from { opacity: 0; transform: rotate(-14deg) translate(-2rem, 3rem); } to { opacity: 1; transform: rotate(-4deg); } }
.ticket::before, .ticket::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background:
    linear-gradient(-45deg, var(--papier) 5.6px, transparent 0) 0 0 / 11px 8px repeat-x,
    linear-gradient(45deg, var(--papier) 5.6px, transparent 0) 0 0 / 11px 8px repeat-x;
}
.ticket::before { top: -8px; transform: rotate(180deg); }
.ticket::after { bottom: -8px; }
.ticket p { margin: 0; }
.ticket-tete {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed rgba(29, 41, 38, 0.4);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.ticket-pour { margin: 0.65rem 0 0.25rem !important; font-size: 0.78rem; color: var(--encre-douce); }
.ticket-pour [data-resto-ticket] { font-family: var(--font-hand); font-size: 1.3rem; color: var(--brun); margin-left: 0.15rem; }
.ticket-lignes { list-style: none; margin: 0; padding: 0; }
.ticket-lignes li { display: flex; align-items: baseline; gap: 0.4rem; padding-block: 0.28rem; }
.ticket-lignes .dish { font-weight: 600; font-size: 0.8rem; }
.ticket-lignes .leader { flex: 1; min-width: 0.8rem; border-bottom: 2px dotted rgba(29, 41, 38, 0.3); transform: translateY(-0.3em); }
.ticket-lignes .price { font-family: var(--font-hand); font-size: 1.45rem; line-height: 1; color: var(--brun); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.ticket-lignes .price.free { color: #a63c27; }
.ticket-lignes .from { font-size: 0.62em; color: var(--encre-douce); }
.ticket-pied { margin-top: 0.55rem !important; padding-top: 0.6rem; border-top: 1px dashed rgba(29, 41, 38, 0.4); font-family: var(--font-hand); font-size: 1.3rem; line-height: 1; text-align: center; }

.scene-note {
  position: absolute;
  top: -11%;
  left: 0;
  rotate: -5deg;
  animation: apparait 1s 1.4s var(--ease) both;
}
.scene-note svg { margin: 0.1rem 0 0 7rem; width: 3.6rem; }

.hero-pied {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  padding-block: 1.25rem 1.75rem;
  border-top: 1px solid var(--filet);
  animation: apparait 1s 1s var(--ease) both;
}
.signature { margin: 0; font-size: 0.9rem; color: var(--chalk-soft); max-width: none; }
.signature a { color: var(--chalk); font-weight: 700; white-space: nowrap; text-decoration: none; }
.signature a:hover { color: var(--yellow); }
.defiler {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 44px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--chalk-soft);
  text-decoration: none;
}
.defiler i { position: relative; width: 3.5rem; height: 1px; background: var(--filet); overflow: hidden; }
.defiler i::after { content: ""; position: absolute; inset: 0; background: var(--yellow); animation: glisse 2.2s var(--ease-io) infinite; }
@keyframes glisse { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

@media (max-width: 62rem) {
  .hero-grille { grid-template-columns: 1fr; }
  .hero-scene { justify-self: center; max-width: 34rem; margin-top: 2rem; }
}
@media (max-width: 40rem) {
  .hero { padding-top: 5.5rem; }
  .hero-titre { margin-top: 1rem; }
  .hero-surtitre { letter-spacing: 0.12em; font-size: 0.7rem; }
  .hero-actions .cta { width: 100%; justify-content: space-between; }
  .hero-scene { aspect-ratio: 1 / 1.02; margin-top: 2.5rem; }
  .scene-ecran { width: 94%; top: 9%; }
  .scene-tel { width: 30%; bottom: 14%; }
  .ticket { width: 78%; bottom: 0; }
  .scene-note { font-size: 1.1rem; top: -3%; }
  .scene-note svg { width: 3.2rem; margin-left: 5rem; }
}

/* ---------- Bandeau qui défile ---------- */
.defile {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-block: -1.6rem;
  padding-block: 0.95rem;
  color: var(--nuit);
  background-color: var(--yellow);
  background-image: var(--chalk-scumble);
  background-size: 260px 120px;
  transform: rotate(-1.6deg) scale(1.04);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.5);
}
.defile-piste { display: flex; width: max-content; animation: defile 48s linear infinite; }
.defile span {
  display: inline-flex;
  align-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem);
  line-height: 1;
  white-space: nowrap;
}
.defile span::after { content: "✳"; font-style: normal; font-size: 0.6em; margin-inline: 1.4rem; opacity: 0.7; }
.defile:hover .defile-piste { animation-play-state: paused; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections : ardoise (nuit) et papier
   ========================================================================== */
.section { padding-block: var(--section); position: relative; }
.nuit { background-color: var(--nuit); background-image: var(--chalk-grain); color: var(--chalk); }
.papier {
  --chalk-soft: var(--encre-douce);
  --filet: var(--filet-encre);
  color: var(--encre);
  background-color: var(--papier);
  background-image: var(--paper-grain);
  color-scheme: light;
}
.papier ::selection { background: var(--encre); color: var(--papier); }
.papier a { text-decoration-color: var(--or-encre); }
.papier a:hover { color: var(--brun); }
.papier :focus-visible { outline-color: var(--encre); }
.papier .index span, .papier .grand em { color: var(--brun); }

/* Découpe des titres en mots (posée par main.js) : chaque mot monte derrière un masque */
.mot { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.06em 0.1em 0; margin: 0 -0.06em -0.1em 0; }
.mot > span { display: inline-block; }
.js-anim [data-split] .mot > span { transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.js-anim [data-split].est-visible .mot > span { transform: none; }

/* Apparition au défilement (seulement si le JavaScript tourne : tout reste visible sans lui) */
.js-anim [data-reveal] { opacity: 0; transform: translateY(2.5rem); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--delay, 0ms); }
.js-anim [data-reveal].est-visible { opacity: 1; transform: none; }

/* ==========================================================================
   01 · Le studio
   ========================================================================== */
.studio-grille {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.studio-aside { position: sticky; top: 7rem; display: grid; gap: 2rem; }
.studio-lede { font-size: var(--step-1); line-height: 1.45; margin: 0; }
.studio-aside .annotation { transform: rotate(-3deg); transform-origin: left; }

.savoirs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--encre); }
.savoir {
  position: relative;
  display: grid;
  grid-template-columns: clamp(3rem, 6vw, 5.5rem) minmax(0, 1fr);
  gap: 1.25rem;
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--filet-encre);
}
.savoir::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * clamp(0.75rem, 2vw, 1.5rem));
  z-index: 0;
  background: var(--papier-2);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
}
.savoir > * { position: relative; }
.savoir-num { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.2; color: var(--brun); }
.savoir h3 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.8rem); line-height: 1; margin-bottom: 0.75rem; transition: transform 0.6s var(--ease); }
.savoir p { margin: 0; color: var(--encre-douce); max-width: 56ch; }
@media (hover: hover) {
  .savoir:hover::before { transform: scaleY(1); }
  .savoir:hover h3 { transform: translateX(0.6rem); }
}
@media (max-width: 52rem) {
  .studio-grille { grid-template-columns: 1fr; }
  .studio-aside { position: static; }
}

/* ==========================================================================
   02 · Réalisations
   ========================================================================== */
.chapitre-large .grand { max-width: 14ch; }
.projets { display: grid; gap: clamp(5rem, 10vw, 9rem); }
.projet {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.projet-inverse .projet-visuel { order: 2; }

.projet-visuel {
  position: relative;
  display: block;
  padding: 0 9% 9% 0;
  color: inherit;
  text-decoration: none;
}
.projet-ecran {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #0b100f;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(242, 240, 232, 0.08);
}
.projet-ecran img { width: 100%; height: auto; transition: transform 1.4s var(--ease), filter 0.6s; }
.projet-tel { position: absolute; right: 0; bottom: 0; width: 24%; }
.projet-visuel:hover .projet-ecran img { transform: scale(1.035); }

/* Pastille « Voir l'exemple » qui suit la souris (centrée si pas de souris) */
.curseur {
  position: absolute;
  z-index: 3;
  left: var(--cx, 45%);
  top: var(--cy, 45%);
  display: grid;
  place-items: center;
  width: 7.5rem;
  height: 7.5rem;
  padding: 1rem;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--nuit);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s var(--ease);
}
.projet-visuel:hover .curseur, .projet-visuel:focus-visible .curseur { transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .curseur { display: none; } }

.projet-num { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--yellow); margin: 0 0 0.5rem; }
.projet-infos h3 { font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.8rem); line-height: 0.95; margin-bottom: 0.9rem; }
.projet-type { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--chalk-soft); margin-bottom: 1.25rem; }
.projet-idee { font-size: 1.05rem; line-height: 1.55; margin-bottom: 1.5rem; }
.fiche { margin: 0 0 1.25rem; border-top: 1px solid var(--filet); }
.fiche div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding-block: 0.75rem; border-bottom: 1px solid var(--filet); font-size: 0.92rem; line-height: 1.5; }
.fiche dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--chalk-soft); padding-top: 0.2em; }
.fiche dd { margin: 0; }

/* Les trois modèles simples, en colonnes décalées */
.projets-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.projet-petit { grid-template-columns: 1fr; align-items: start; gap: 1.5rem; }
.projet-petit .projet-visuel { padding: 0; }
.projets-trio .projet-petit:nth-child(2) { margin-top: clamp(0rem, 6vw, 5rem); }
.projets-trio .projet-petit:nth-child(3) { margin-top: clamp(0rem, 3vw, 2.5rem); }
.projet-petit h3 { font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.5rem); }
.projet-petit .curseur { width: 6rem; height: 6rem; font-size: .7rem; }

.projets-commun {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 3rem;
  align-items: baseline;
  margin-top: clamp(5rem, 9vw, 8rem);
  padding-block: 1.75rem;
  border-block: 1px solid var(--filet);
}
.projets-commun ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem 2.5rem; font-size: 0.95rem; color: var(--chalk-soft); }
.projets-commun li { position: relative; padding-left: 1.4rem; }
.projets-commun li::before { content: "✳"; position: absolute; left: 0; color: var(--yellow); }

.sur-mesure { margin: 3rem 0 0; font-size: var(--step-1); line-height: 1.45; color: var(--chalk-soft); max-width: 46ch; }
.sur-mesure strong { font-family: var(--font-hand); font-weight: 400; font-size: 1.35em; color: var(--yellow); margin-right: 0.3rem; }
.mention-exemples { margin: 1.5rem 0 0; font-size: 0.82rem; color: var(--chalk-soft); opacity: 0.85; }

@media (max-width: 56rem) {
  .projet { grid-template-columns: 1fr; }
  .projet-inverse .projet-visuel { order: 0; }
  .projets-trio { grid-template-columns: 1fr; gap: 4rem; }
  .projets-trio .projet-petit:nth-child(n) { margin-top: 0; }
  .projets-commun { grid-template-columns: 1fr; }
}

/* ==========================================================================
   03 · Qui suis-je
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: end;
}
.nom-geant {
  font-family: var(--serif);
  font-size: clamp(3.8rem, 1.4rem + 8.6vw, 10.5rem);
  line-height: 0.84;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: none;
}
.nom-geant em { color: var(--brun); }
.about-nom .annotation { display: flex; align-items: flex-start; gap: 0.25rem; margin-top: 1.25rem; transform: rotate(-3deg); transform-origin: left; }
.about-nom .annotation svg { width: 3.8rem; order: -1; margin-top: -1.6rem; transform: scaleX(-1); }
.about-lede { font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.2rem); line-height: 1.15; margin-bottom: 1.5rem; max-width: 26ch; }
.about-texte p:not(.about-lede) { color: var(--encre-douce); }
.about-texte p:last-child { margin-bottom: 0; }

.engagements { margin-top: clamp(4.5rem, 9vw, 8rem); }
.engagements-titre { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--encre-douce); margin-bottom: 1.5rem; }
.engagements ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 2rem clamp(1.25rem, 2.5vw, 2.25rem); }
.engagements li { padding-top: 1.1rem; border-top: 2px solid var(--encre); font-size: 0.95rem; line-height: 1.5; color: var(--encre-douce); }
.engagements li span { display: block; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--brun); margin-bottom: 0.4rem; }
.engagements li strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.55rem; line-height: 1.08; color: var(--encre); margin-bottom: 0.35rem; }

@media (max-width: 52rem) {
  .about { grid-template-columns: 1fr; align-items: start; }
}

/* ==========================================================================
   04 · Méthode : trois services, reliés par un trait qui avance au défilement
   ========================================================================== */
.courses {
  --progres: 1;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
}
.courses::before, .courses::after {
  content: "";
  position: absolute;
  top: 1.3rem;
  left: 1.3rem;
  right: 0;
  height: 1px;
  background: var(--filet);
}
.courses::after { background: var(--yellow); transform: scaleX(var(--progres)); transform-origin: left; }
.courses li { position: relative; padding-top: 4.25rem; }
.course-num {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--yellow);
  background: var(--nuit);
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--yellow);
}
.course-name { font-family: var(--font-hand); font-size: var(--step-1); line-height: 1; color: var(--yellow); margin: 0 0 0.4rem; }
.courses h3 { font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); line-height: 1; margin-bottom: 1rem; }
.courses p:not(.course-name) { color: var(--chalk-soft); margin: 0; }
.vous-moi {
  margin: clamp(3.5rem, 7vw, 6rem) 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--filet);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 1.3rem + 2vw, 3.2rem);
  line-height: 1.1;
  max-width: none;
}
.vous-moi strong { font-weight: 400; font-style: italic; color: var(--yellow); }

@media (max-width: 48rem) {
  .courses { grid-template-columns: 1fr; gap: 3rem; }
  .courses::before, .courses::after { top: 1.3rem; bottom: 0; left: 1.3rem; right: auto; width: 1px; height: auto; }
  .courses::after { transform: scaleY(var(--progres)); transform-origin: top; }
  .courses li { padding: 0 0 0 4rem; }
}

/* ==========================================================================
   05 · Les prix : la seule ardoise encadrée de bois
   ========================================================================== */
.carte-section { padding-top: 0; }
.board {
  --frame: clamp(12px, 1.8vw, 22px);
  border: var(--frame) solid;
  border-color: rgba(255, 230, 195, 0.07) rgba(60, 35, 12, 0.08) rgba(50, 28, 10, 0.16) rgba(255, 230, 195, 0.03);
  background-color: var(--wood);
  background-image: var(--wood-grain), var(--wood-figure);
  background-size: 360px 90px, 640px 640px;
  background-origin: border-box;
  border-radius: 3px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.slate {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3.75rem);
  background-color: var(--slate);
  background-image:
    radial-gradient(ellipse 40% 30% at 18% 22%, rgba(242, 240, 232, 0.07), transparent 70%),
    radial-gradient(ellipse 35% 25% at 82% 70%, rgba(242, 240, 232, 0.05), transparent 70%),
    var(--chalk-grain);
  border-radius: 2px;
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.55);
}

.carte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: var(--section) clamp(2rem, 5vw, 5rem);
  row-gap: 3rem;
}
.carte h3 { font-family: var(--font-hand); font-size: var(--step-2); line-height: 1.05; margin-bottom: 0.3rem; }
.carte .course-note { color: var(--chalk-soft); font-size: var(--step--1); margin-bottom: 1rem; }

.menu-lines { list-style: none; margin: 0; padding: 0; }
.menu-line {
  display: grid;
  grid-template-columns: auto minmax(1.5rem, 1fr) auto;
  column-gap: 0.6rem;
  row-gap: 0.3rem;
  align-items: baseline;
  padding-block: 0.95rem;
  border-bottom: 1px solid rgba(242, 240, 232, 0.1);
}
.menu-line:last-child { border-bottom: 0; }
.menu-line .dish { font-family: var(--font-hand); font-size: clamp(1.45rem, 1.2rem + 1vw, 2.1rem); line-height: 1.1; }
.menu-line .desc { grid-column: 1 / -1; grid-row: 2; font-size: var(--step--1); color: var(--chalk-soft); line-height: 1.5; max-width: 50ch; }
.leader { border-bottom: 3px dotted var(--chalk-faint); transform: translateY(-0.35em); }
.price {
  font-family: var(--font-hand);
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.8rem);
  line-height: 1;
  color: var(--yellow);
  white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
}
.price .per { font-size: 0.55em; color: var(--chalk-soft); }

/* Écriture à la craie : toujours visible, l'animation se joue une fois */
.chalk-in.is-written { animation: chalk-write 0.9s var(--ease) both; animation-delay: var(--delay, 0ms); }
@keyframes chalk-write { from { clip-path: inset(-10% 100% -10% 0); } to { clip-path: inset(-10% 0 -10% 0); } }

.included {
  margin-top: 2.25rem;
  display: grid;
  gap: 0.6rem;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--yellow);
}
.included ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.6rem; color: var(--chalk-soft); max-width: var(--measure); font-size: var(--step--1); }
.included b { color: var(--chalk); }
.included strong { font-family: var(--font-hand); font-weight: 400; font-size: var(--step-1); color: var(--yellow); }
.legal-price { color: var(--chalk-soft); font-size: var(--step--1); margin: 1.25rem 0 0; }

/* ==========================================================================
   06 · Questions
   ========================================================================== */
.faq-grille {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.faq-tete { position: sticky; top: 7rem; margin-bottom: 0; }
.faq-tete .grand { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.8rem); }
.faq-appel { margin: 0; color: var(--encre-douce); }
.faq-appel a { font-weight: 700; color: var(--encre); white-space: nowrap; }

.faq { border-top: 1px solid var(--encre); }
.faq details { border-bottom: 1px solid var(--filet-encre); overflow: hidden; }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.95rem);
  line-height: 1.15;
  transition: color 0.3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 1px solid var(--filet-encre);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' fill='none' stroke='%237a4b12' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 1rem;
  transition: transform 0.5s var(--ease), background-color 0.3s, border-color 0.3s;
}
.faq summary:hover { color: var(--brun); }
.faq summary:hover::after { border-color: var(--brun); }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--papier-2); }
.faq-reponse p { margin: 0; padding: 0 3.5rem 1.75rem 0; color: var(--encre-douce); max-width: 62ch; }

@media (max-width: 52rem) {
  .faq-grille { grid-template-columns: 1fr; }
  .faq-tete { position: static; }
  .faq-reponse p { padding-right: 0; }
}

/* ==========================================================================
   07 · Ma maquette gratuite (formulaire)
   ========================================================================== */
.order-grille {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.order-tete { position: sticky; top: 7rem; display: grid; gap: 1.5rem; }
.order-tete .grand { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.8rem); }
.call { margin: 0; color: var(--chalk-soft); }
.call a { color: var(--chalk); font-weight: 700; white-space: nowrap; }
.ensuite { list-style: none; counter-reset: ensuite; margin: 0.5rem 0 0; padding: 0; border-top: 1px solid var(--filet); }
.ensuite li { counter-increment: ensuite; display: flex; gap: 1rem; padding-block: 0.85rem; border-bottom: 1px solid var(--filet); font-size: 0.95rem; color: var(--chalk-soft); }
.ensuite li::before { content: counter(ensuite); font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.3; color: var(--yellow); min-width: 1rem; }

.order-carte {
  padding: clamp(1.5rem, 4vw, 3.25rem);
  background-color: var(--slate);
  background-image: var(--chalk-grain);
  border: 1px solid var(--filet);
  border-radius: 4px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 40rem) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk-soft);
  transition: color 0.3s;
}
.field:focus-within > label { color: var(--yellow); }
.field .opt { font-weight: 400; letter-spacing: 0.02em; text-transform: none; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0;
  font: inherit;
  font-size: 1.1rem;
  color: var(--chalk);
  background-color: transparent;
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  border: 0;
  border-bottom: 1px solid rgba(242, 240, 232, 0.35);
  border-radius: 0;
  transition: background-size 0.6s var(--ease), border-color 0.3s;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-size: 100% 2px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.field select {
  appearance: none;
  cursor: pointer;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M2 2l8 8 8-8' fill='none' stroke='%23ecc864' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"), linear-gradient(var(--yellow), var(--yellow));
  background-position: right 0.2rem center, 0 100%;
  background-size: 0.9rem, 0 2px;
}
.field select:focus { background-size: 0.9rem, 100% 2px; }
.field select option { background: var(--slate); color: var(--chalk); }
.field input::placeholder, .field textarea::placeholder { color: #9fb0a8; }
.field.is-valid input, .field.is-valid select, .field.is-valid textarea { border-bottom-color: var(--yellow); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-bottom-color: var(--red); background-image: linear-gradient(var(--red), var(--red)); background-size: 100% 2px; }
.field .hint { font-size: 0.85rem; color: var(--chalk-soft); margin: 0.4rem 0 0; }
.field .error { font-size: 0.88rem; color: var(--red); font-weight: 600; margin: 0.4rem 0 0; }
.field .error:empty { display: none; }

.consent { display: flex; gap: 0.85rem; align-items: flex-start; }
.consent input {
  appearance: none;
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  min-height: 0;
  margin: 0.15rem 0 0;
  padding: 0;
  border: 1px solid var(--chalk-line);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}
.consent input:checked { border-color: var(--yellow); background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 20'%3E%3Cpath d='M4 10.5l6 6L22 4' fill='none' stroke='%23121a18' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 70%; }
.consent input:focus-visible { outline: 2px dashed var(--yellow); outline-offset: 3px; }
.consent label { font-size: 0.9rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--chalk-soft); margin: 0; }
.field.is-invalid .consent input { border-color: var(--red); }

/* Champ piège : hors écran, jamais display:none (certains robots ignorent les champs cachés) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2.25rem; }
.form-status { margin: 0; font-weight: 600; }
.form-status.is-error { color: var(--red); }

.sent { display: grid; gap: 0.75rem; }
.sent h3 { font-size: var(--step-3); color: var(--yellow); }
.sent p { color: var(--chalk-soft); font-size: var(--step-1); line-height: 1.45; margin: 0; }

@media (max-width: 52rem) {
  .order-grille { grid-template-columns: 1fr; }
  .order-tete { position: static; }
}
@media (max-width: 40rem) {
  .order-carte { margin-inline: calc(-1 * var(--gouttiere)); border-radius: 0; border-inline: 0; }
  .form-actions .cta { width: 100%; justify-content: space-between; }
}

/* ==========================================================================
   Pied de page
   ========================================================================== */
.pied {
  position: relative;
  overflow: hidden;
  padding-top: clamp(4rem, 9vw, 8rem);
  background-color: var(--nuit-2);
  background-image: var(--chalk-grain);
  color: var(--chalk-soft);
  font-size: 0.95rem;
  border-top: 1px solid var(--filet);
}
.pied a { color: var(--chalk-soft); text-decoration: none; transition: color 0.3s; }
.pied a:hover { color: var(--yellow); }
.pied-appel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem 3rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--filet);
}
.pied-phrase { font-family: var(--serif); font-size: clamp(2.4rem, 1.4rem + 4vw, 5rem); line-height: 0.95; color: var(--chalk); margin: 0; }
.pied-phrase em { color: var(--yellow); }
.pied .lien-fleche { color: var(--chalk); }
.pied .lien-fleche:hover { color: var(--yellow); }
.pied-colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 2rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
.pied-colonnes p, .pied-colonnes ul { margin: 0; }
.pied-colonnes ul { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
.pied-colonnes a { display: inline-block; padding-block: 0.15rem; }
.pied-titre { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--chalk) !important; margin-bottom: 1rem !important; }
.pied-marque {
  margin: 0.5rem 0 0;
  font-family: var(--serif);
  font-size: min(25.5vw, 25rem);
  line-height: 0.85;
  letter-spacing: -0.035em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 240, 232, 0.2);
  max-width: none;
  user-select: none;
}
.pied-marque em { -webkit-text-stroke-color: rgba(236, 200, 100, 0.45); }
.pied-bas {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 2rem;
  padding-block: 1.25rem 1.75rem;
  border-top: 1px solid var(--filet);
  font-size: 0.85rem;
}
.pied-bas p { margin: 0; }
.haut { display: inline-flex; align-items: center; min-height: 44px; }

.link-button {
  font: inherit;
  color: var(--chalk-soft);
  background: none;
  border: 0;
  padding: 0.15rem 0;
  cursor: pointer;
  transition: color 0.3s;
}
.link-button:hover { color: var(--yellow); }

/* ---------- Bandeau de consentement ---------- */
.cookie-note {
  position: fixed;
  z-index: 45;
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  width: min(100% - 1.5rem, 25rem);
  padding: 1.35rem 1.4rem 1.25rem;
  background-color: var(--slate-lift);
  background-image: var(--chalk-grain);
  border: 1px solid var(--filet);
  border-top: 3px solid var(--yellow);
  border-radius: 3px;
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.6);
  animation: apparait 0.8s 1.2s var(--ease) both;
}
.cookie-note h2 { font-family: var(--serif); font-size: 1.6rem; margin: 0 0 0.4rem; }
.cookie-note p { font-size: 0.9rem; color: var(--chalk-soft); margin: 0 0 1rem; }
.cookie-note a { color: var(--chalk); }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.cookie-actions button {
  min-height: 44px;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--chalk);
  background: transparent;
  border: 1px solid var(--chalk-line);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.cookie-actions button:hover { background: var(--chalk); color: var(--nuit); border-color: var(--chalk); }

/* ---------- Barre d'appel fixée en bas, sur téléphone ---------- */
.barre-mobile { display: none; }
@media (max-width: 40rem) {
  .barre-mobile {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    position: fixed;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: 0;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
    background: rgba(13, 19, 18, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--filet);
  }
  .barre-mobile a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    font-weight: 700;
    text-decoration: none;
    color: var(--chalk);
    border: 1px solid var(--chalk-line);
    border-radius: 2px;
  }
  .barre-mobile .barre-cta { color: var(--nuit); background: var(--yellow); border-color: var(--yellow); }
  body { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  .cookie-note { bottom: calc(5rem + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   Pages de texte (légal), 404, merci
   ========================================================================== */
.page-tete {
  padding: clamp(8rem, 16vh, 11rem) 0 clamp(3rem, 6vw, 5rem);
  background-color: var(--nuit);
  background-image: radial-gradient(ellipse 45% 60% at 85% 30%, rgba(236, 200, 100, 0.06), transparent 70%), var(--chalk-grain);
}
.page-tete .index { margin-bottom: 1.5rem; }
.page-tete h1 { font-size: var(--grand); line-height: 0.98; max-width: 16ch; animation: apparait 1s 0.1s var(--ease) both; }
.page-tete .updated { margin: 1.5rem 0 0; color: var(--chalk-soft); font-size: 0.9rem; }
.page-corps { padding-block: clamp(3rem, 7vw, 6rem); }
.texte-legal > * { max-width: 46rem; }
.texte-legal h2 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.3rem); margin: 3rem 0 0.9rem; padding-top: 1.5rem; border-top: 1px solid var(--filet-encre); }
.texte-legal h2:first-child { margin-top: 0; }
.texte-legal p, .texte-legal li { color: var(--encre-douce); }
.texte-legal ul { padding-left: 1.2rem; max-width: var(--measure); }
.texte-legal li { margin-bottom: 0.45rem; }
.texte-legal strong, .texte-legal b { color: var(--encre); }
.todo {
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--nuit);
  background: var(--red);
  padding: 0 0.3em;
  border-radius: 2px;
}

.perdu {
  display: grid;
  align-content: center;
  gap: 1.5rem;
  padding-block: 2rem 5rem;
}
.perdu .big {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(6rem, 3rem + 14vw, 15rem);
  line-height: 0.8;
  color: var(--yellow);
  margin: 0;
  animation: apparait 1s var(--ease) both;
}
.perdu h1 { font-size: var(--grand); line-height: 0.98; max-width: 14ch; animation: apparait 1s 0.1s var(--ease) both; }
.perdu p { color: var(--chalk-soft); font-size: var(--step-1); line-height: 1.45; margin: 0; }
.perdu .cta { justify-self: start; margin-top: 0.5rem; }

/* ---------- Transitions entre les pages (navigateurs récents) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.35s var(--ease-io) both page-sort; }
::view-transition-new(root) { animation: 0.6s 0.1s var(--ease) both page-entre; }
@keyframes page-sort { to { opacity: 0; transform: translateY(-1.5rem); } }
@keyframes page-entre { from { opacity: 0; transform: translateY(2rem); } }

/* ---------- Moins d'animations ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .chalk-in.is-written { animation: none; }
  .flourish path { animation: none; stroke-dashoffset: 0; }
  .defile-piste { animation: none; }
  .pastille::after, .defiler i::after { display: none; }
  .hero-scene > * { translate: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
