/* ==========================================================================
   OCTAVE [CONSEIL] — site vitrine
   Charte appliquée (réglage-typo-octave) :
   - Syne Bold (700) et Medium (500) uniquement
   - taille de typo = interlignage (line-height: 1)
   - échelle horizontale 90 % (.c90)
   - interlettrage -100 pour le Bold (-0.1em)
   - SERVICES en capitales et entre crochets, paragraphes centrés
   - 3 niveaux de typo maximum : --t1 / --t2 / --t3
   ========================================================================== */

:root {
  --ink: #1d1d1b;
  --paper: #efefec;
  --sheet: #f6f6f4;
  --line: rgba(29, 29, 27, 0.16);
  --lime: #e3fb40;
  --orange: #ff7f11;
  --rose: #f991cc;
  --bleu: #0086ff;

  --t1: clamp(2.5rem, 1.6rem + 3.9vw, 5.25rem);
  --t2: clamp(1.25rem, 1.05rem + 0.95vw, 1.875rem);
  --t3: 1rem;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.11 0 0 0 0 0.1 0 0 0 0.9 -0.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 500;
  font-size: var(--t3);
  line-height: 1.2;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Grain papier (comme les visuels imprimés) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background-image: var(--grain);
  opacity: 0.22;
  mix-blend-mode: multiply;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

::selection { background: var(--lime); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--bleu);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Niveaux typographiques ---------- */
.t1 {
  font-size: var(--t1);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.1em;
}
.t2 {
  font-size: var(--t2);
  font-weight: 500;
  line-height: 1;
}
/* Échelle horizontale 90 % : le bloc s'élargit de 11,1 % puis se compresse. */
.c90 {
  margin-inline: -5.5556%;
  transform: scaleX(0.9);
}
.label {
  font-size: var(--t3);
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
}

/* ---------- Surlignage (tracés officiels) ---------- */
.hl {
  background-image: var(--trait-1);
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.52em;
  padding-inline: 0.1em;
  margin-inline: -0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl.v2 { background-image: var(--trait-2); }
.hl.v3 { background-image: var(--trait-3); }
.js .hl { background-size: 0% 0.52em; transition: background-size 0.9s var(--ease); }
.js .hl.on { background-size: 100% 0.52em; }

/* ---------- Apparition au défilement ---------- */
.js .reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
}
.js .reveal.on { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hl { transition: none; background-size: 100% 0.52em; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.9em 1.35em;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 700;
  font-size: var(--t3);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, translate 0.2s var(--ease);
}
.btn--ghost { background: transparent; color: var(--ink); }
/* Effets de survol réservés aux souris : sur écran tactile, ils resteraient « collés » après le tap. */
@media (hover: hover) {
  .btn:hover { background: var(--accent, var(--lime)); color: var(--ink); translate: 0 -2px; }
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
/* Fond flouté porté par un pseudo-élément : posé sur l'en-tête lui-même, le
   backdrop-filter enfermerait le menu mobile (position: fixed) dans ses 72 px. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(239, 239, 236, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-header.scrolled { border-color: var(--line); }
.site-header .btn { white-space: nowrap; }
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { height: 22px; width: auto; }

.nav ul { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  padding: 6px 0;
  background-image: var(--trait-2);
  background-repeat: no-repeat;
  background-position: 0 80%;
  background-size: 0% 0.6em;
  transition: background-size 0.35s var(--ease);
}
.nav a:not(.btn):hover,
.nav a[aria-current="true"] { background-size: 100% 0.6em; }
.nav .btn { min-height: 42px; padding: 0.75em 1.1em; }
.nav .btn[aria-current="true"] { background: var(--lime); color: var(--ink); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { content: ""; position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(-7px) rotate(-90deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--paper);
    display: grid;
    place-items: center;
    padding: 24px var(--gutter) 48px;
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: clamp(14px, 3.6vh, 28px); text-align: center; }
  .nav a:not(.btn) {
    font-size: clamp(1.75rem, 8.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 1;
  }
  .nav .nav__cta { margin-top: 12px; }
  .nav .btn { min-height: 48px; padding: 0.9em 1.35em; }
  html.menu-ouvert { overflow: hidden; }
}
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .nav li { opacity: 0; translate: 0 14px; transition: opacity 0.3s var(--ease), translate 0.45s var(--ease); }
  .nav.open li { opacity: 1; translate: 0 0; }
  .nav.open li:nth-child(2) { transition-delay: 0.04s; }
  .nav.open li:nth-child(3) { transition-delay: 0.08s; }
  .nav.open li:nth-child(4) { transition-delay: 0.12s; }
  .nav.open li:nth-child(5) { transition-delay: 0.16s; }
}

/* ---------- Sections génériques ---------- */
section { position: relative; }
.section-head {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
  display: grid;
  gap: 28px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100svh - var(--header-h));
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(32px, 6vh, 72px) var(--gutter) clamp(72px, 10vh, 112px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(22px, 3.4vh, 36px);
}
.hero > .c90 { align-self: stretch; }
.hero__flag {
  position: relative;
  width: clamp(120px, 15vw, 200px);
  rotate: -4deg;
  animation: drapeau 1.1s var(--ease) both;
}
.hero__flag img { width: 100%; }
@keyframes drapeau {
  from { opacity: 0; transform: translateY(14px) rotate(-6deg); }
  to { opacity: 1; transform: none; }
}
.hero__lead { max-width: 30em; margin-inline: auto; }
.hero > .hero__lead { align-self: center; width: min(100%, 860px); margin-inline: 0; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero__scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  translate: -50% 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  text-decoration: none;
  font-weight: 700;
  animation: rebond 2.4s var(--ease) infinite;
}
@keyframes rebond { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  .hero__flag, .hero__scroll { animation: none; }
}
@media (max-height: 640px) { .hero__scroll { display: none; } }

/* ---------- Approche ---------- */
.approche {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  text-align: center;
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  border-top: 1.5px solid var(--ink);
}
.approche__manifeste { max-width: 1080px; justify-self: center; width: 100%; }
.approche__manifeste.c90 { width: auto; }
.piliers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(8px, 2vw, 24px);
  counter-reset: none;
}
.pilier {
  display: grid;
  gap: 16px;
  justify-items: center;
  align-content: start;
  padding: clamp(24px, 3vw, 36px) clamp(18px, 2.4vw, 28px);
  border-top: 1.5px solid var(--ink);
}
.pilier__num { color: var(--ink); opacity: 0.18; }
.pilier__titre { font-weight: 700; letter-spacing: -0.06em; }
.pilier p { max-width: 26em; }

/* ---------- Services ---------- */
.services {
  padding: clamp(72px, 10vw, 140px) 0 clamp(24px, 4vw, 48px);
  border-top: 1.5px solid var(--ink);
}
.services__index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.55em 0.9em;
  border: 1.5px solid var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s;
}
@media (hover: hover) {
  .chip:hover { background: var(--accent); }
}

.service {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 112px) var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  scroll-margin-top: calc(var(--header-h) - 32px);
}
.service__cover {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.service__cover img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 0 30px 50px -36px rgba(29, 29, 27, 0.55);
}
.service__sheets { display: grid; gap: clamp(18px, 2.2vw, 30px); }

.sheet {
  --pad-x: clamp(18px, 3vw, 44px);
  --r: -0.35deg;
  position: relative;
  min-height: clamp(340px, 36vw, 500px);
  padding: clamp(18px, 2.6vw, 34px) var(--pad-x);
  background: var(--sheet);
  box-shadow: 0 1px 0 rgba(29, 29, 27, 0.05), 0 22px 40px -32px rgba(29, 29, 27, 0.5);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  text-align: center;
  rotate: var(--r);
}
.sheet:nth-child(even) { --r: 0.4deg; }
.sheet__label {
  font-size: var(--t3);
  font-weight: 500;
  text-transform: uppercase;
}
.sheet__body { align-self: center; }
.sheet__foot {
  border-top: 1.5px solid var(--ink);
  padding-top: 16px;
  font-size: var(--t3);
}
.sheet--mission { grid-template-rows: auto 1fr auto auto; }
.sheet--mission .sheet__body { display: grid; gap: 28px; }
.mission__titre {
  font-weight: 700;
  letter-spacing: -0.1em;
  text-transform: uppercase;
}
/* Tampon dans le flux (entre le texte et le folio) : il ne peut plus recouvrir le texte,
   et déborde toujours du bord droit de la feuille en chevauchant le filet du bas. */
.sheet__stamp {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: clamp(96px, 11vw, 150px);
  margin: -12px calc(-1 * var(--pad-x) - clamp(8px, 2vw, 28px)) -40px 0;
  rotate: 7deg;
  mix-blend-mode: multiply;
  opacity: 0.92;
  pointer-events: none;
}

/* ---------- Bandeau « au quotidien » ---------- */
.ticker {
  margin-top: clamp(72px, 10vw, 140px);
  background: var(--ink);
  color: var(--paper);
  padding: 28px 0 32px;
  display: grid;
  gap: 18px;
  overflow: hidden;
}
.ticker__label { opacity: 0.7; }
.ticker__viewport { overflow: hidden; }
.ticker__track {
  display: flex;
  width: max-content;
  animation: defile 38s linear infinite;
}
@media (hover: hover) {
  .ticker:hover .ticker__track { animation-play-state: paused; }
}
.ticker__list { display: flex; flex-shrink: 0; }
.ticker__list li {
  display: inline-flex;
  align-items: center;
  font-size: var(--t2);
  font-weight: 700;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}
.ticker__list li::after {
  content: "";
  width: 1.5em;
  height: 0.95em;
  margin-inline: 0.75em;
  background: url("assets/logo/drapeau-oc-clair.svg") center / contain no-repeat;
}
@keyframes defile { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); }
  .ticker__list[aria-hidden="true"] { display: none; }
  .ticker__list { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
}

/* ---------- Pour qui ---------- */
.pour-qui {
  padding: clamp(72px, 10vw, 140px) 0;
}
.pour-qui__grid {
  max-width: var(--maxw);
  margin: clamp(36px, 5vw, 64px) auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}
.carte {
  background: var(--sheet);
  padding: clamp(28px, 4vw, 56px) clamp(22px, 4vw, 56px);
  text-align: center;
  display: grid;
  gap: 24px;
  align-content: center;
  min-height: clamp(260px, 26vw, 360px);
  box-shadow: 0 22px 40px -32px rgba(29, 29, 27, 0.5);
}
.carte__titre {
  font-weight: 700;
  letter-spacing: -0.1em;
  text-transform: uppercase;
}

/* ---------- Méthode ---------- */
.methode {
  padding: clamp(72px, 10vw, 140px) 0;
  border-top: 1.5px solid var(--ink);
}
.etapes {
  max-width: var(--maxw);
  margin: clamp(36px, 5vw, 64px) auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.etape {
  display: grid;
  gap: 16px;
  justify-items: center;
  align-content: start;
  text-align: center;
  padding-top: 24px;
  border-top: 1.5px solid var(--ink);
}
.etape__num {
  background-image: var(--trait-1);
  background-repeat: no-repeat;
  background-position: 50% 92%;
  background-size: 100% 0.4em;
  padding-inline: 0.12em;
}
.etape:nth-child(2) .etape__num { background-image: var(--trait-2); }
.etape:nth-child(3) .etape__num { background-image: var(--trait-3); }
.etape__titre { font-weight: 700; letter-spacing: -0.06em; }
.etape p { max-width: 22em; }

/* ---------- Contact ---------- */
.contact {
  padding: clamp(72px, 10vw, 140px) 0;
  border-top: 1.5px solid var(--ink);
}
.contact .section-head .t2 { max-width: 36em; justify-self: center; }
.contact .section-head .t2.c90 { width: auto; }
.contact__infos {
  max-width: 1080px;
  margin: clamp(36px, 5vw, 56px) auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  text-align: center;
}
.contact__infos li {
  display: grid;
  gap: 8px;
  padding: 18px 12px;
  border-top: 1.5px solid var(--ink);
}
.contact__k { text-transform: uppercase; opacity: 0.6; }
.contact__v { font-weight: 700; letter-spacing: -0.03em; overflow-wrap: anywhere; }
a.contact__v { text-decoration: none; }
a.contact__v:hover { text-decoration: underline; text-underline-offset: 4px; }

.form {
  max-width: 880px;
  margin: clamp(28px, 4vw, 48px) auto 0;
  padding: clamp(22px, 4vw, 48px);
  background: var(--sheet);
  box-shadow: 0 22px 40px -32px rgba(29, 29, 27, 0.5);
  display: grid;
  gap: 22px;
}
@media (min-width: 920px) { .form { margin-inline: auto; } }
.contact .form { width: calc(100% - 2 * var(--gutter)); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 700; letter-spacing: -0.03em; padding: 0; }
.opt { font-weight: 500; opacity: 0.6; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: var(--t3);
  line-height: 1.2;
}
.field textarea { resize: vertical; min-height: 150px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field [aria-invalid="true"] { border-color: #c4122f; box-shadow: 0 0 0 2px rgba(196, 18, 47, 0.18); }
.field--choix legend { margin-bottom: 10px; }
.choix { display: flex; flex-wrap: wrap; gap: 10px; }
.choix__item { position: relative; cursor: pointer; }
.choix__item input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choix__item span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.55em 0.9em;
  border: 1.5px solid var(--ink);
  background: #fff;
  transition: background-color 0.2s;
}
.choix__item input:checked + span { background: var(--accent); font-weight: 700; }
.choix__item input:focus-visible + span { outline: 3px solid var(--bleu); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--ink); }
.consent[data-invalid="true"] span { color: #c4122f; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__note { opacity: 0.65; max-width: 34em; }
.form__status:empty { display: none; }
.form__status { font-weight: 700; padding: 14px 16px; background: var(--lime); }
.form__status.erreur { background: var(--rose); }

/* ---------- Pied de page ---------- */
.site-footer {
  border-top: 1.5px solid var(--ink);
  padding: clamp(56px, 8vw, 96px) var(--gutter) 40px;
  display: grid;
  justify-items: center;
  gap: 28px;
  text-align: center;
}
.site-footer__stamp { width: clamp(130px, 14vw, 180px); rotate: -3deg; mix-blend-mode: multiply; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__copy { opacity: 0.6; }

/* ---------- Formes du fond et drapeaux qui ondulent (canvas ajoutés par main.js) ---------- */
.fond-formes {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  pointer-events: none;
}
.ondulation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* Marge en haut et en bas : le bout du drapeau monte et descend au-delà de l'image. */
.hero__flag .ondulation { top: -10%; height: 120%; }
.hero__flag.ondule img { opacity: 0; }

/* ---------- Feuilles posées, crochets et coups de tampon ---------- */
.crochet { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  .js .sheet.reveal { transition: opacity 0.7s var(--ease), translate 0.8s var(--ease), rotate 0.9s var(--ease); }
  .js .sheet.reveal:not(.on) { translate: 0 44px; rotate: calc(var(--r) * 7); }

  .js .crochet { transition: translate 0.8s var(--ease) 0.2s, opacity 0.5s var(--ease) 0.2s; }
  .js .sheet:not(.on) .crochet:first-child { translate: -1.1em 0; opacity: 0; }
  .js .sheet:not(.on) .crochet:last-child { translate: 1.1em 0; opacity: 0; }

  .js .sheet:not(.on) .sheet__stamp,
  .js .site-footer__stamp:not(.on) { opacity: 0; }
  .js .sheet.on .sheet__stamp,
  .js .site-footer__stamp.on { animation: coup-de-tampon 0.6s cubic-bezier(0.3, 0, 0.2, 1) 0.45s both; }
  .js .sheet--mission.on { animation: impact 0.4s ease-out 0.78s; }
}
@keyframes coup-de-tampon {
  0% { opacity: 0; transform: scale(1.9) rotate(-14deg); }
  55% { opacity: 1; transform: scale(0.94) rotate(2deg); }
  78% { transform: scale(1.02) rotate(-0.6deg); }
  100% { transform: none; }
}
@keyframes impact {
  30% { transform: translateY(3px) scale(0.996); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .contact__infos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; }
  .service__cover { position: relative; top: 0; max-width: 420px; justify-self: center; width: 100%; }
  .service__cover img { aspect-ratio: 4 / 3; }
  .piliers { grid-template-columns: 1fr; }
  .pour-qui__grid { grid-template-columns: 1fr; }
  .sheet { min-height: 300px; }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .brand img { height: 18px; }
  .form__row { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: 1fr; }
  .contact__infos { grid-template-columns: 1fr; }
  .sheet__stamp { width: 84px; margin-right: calc(-1 * var(--pad-x) - 6px); }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; }
  .choix__item, .choix__item span { width: 100%; }
}

@media (max-width: 400px) {
  .btn__suite { display: none; }
}

/* Petits téléphones (320–374 px) : le grand titre rétrécit pour que « complémentaires. » tienne sur la ligne. */
@media (max-width: 374px) {
  :root { --t1: clamp(2rem, 10.4vw, 2.5rem); }
}
