/* ==========================================================================
   École de danse Pirouette : feuille de styles V11 (studio)
   Sommaire : 1. Jetons  2. Base  3. Typographie  4. Utilitaires
   5. En-tête et menu  6. Boutons et liens  7. Sections  8. Motif « S »
   9. Accueil  10. En-têtes de page  11. Cours  12. Horaires et tarifs
   13. Contact  14. Pages de texte  15. Pied de page
   16. Accès rapides mobiles et WhatsApp  17. Mouvement
   ========================================================================== */

/* 1. Jetons --------------------------------------------------------------- */
:root {
  /* Palette officielle de la charte */
  --terracotta: #AC594E;
  --sage: #9FA98C;
  --olive: #879078;
  --beige: #D2BA9A;
  --cream: #F4EDDE;

  /* Dérivés utilisés pour garder des contrastes suffisants (WCAG AA) */
  --terracotta-deep: #88443C;   /* petits textes terracotta sur fond clair */
  --olive-deep: #596351;
  --ivory: #FFFDF8;
  --ink: #292824;
  --muted: #68665F;             /* texte secondaire sur crème et ivoire */
  --muted-on-beige: #4A4843;    /* texte secondaire sur beige */
  --line: rgba(41, 40, 36, .14);
  --field-border: #8C877B;
  --footer: #23241F;
  --whatsapp: #25D366;

  /* Typographies : Ginger (titres) et Avenir (texte) dans la charte.
     En attendant une licence web pour Ginger, piles de polices système.
     Pour passer à une police web : ajouter les @font-face puis modifier ces deux lignes. */
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-text: Avenir, "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;

  /* Motif « S » extrait du monogramme officiel (fichier source : assets/swoosh.svg) */
  --swoosh: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201000%201294'%3E%3Cpath%20d='M%20971.0%203.6%20C%20971.2%203.3%20971.3%202.9%20971.2%202.6%20C%20971.0%200.1%20961.1%200.0%20949.7%201.4%20C%20945.5%201.8%20941.1%202.4%20936.7%203.0%20C%20804.9%2024.3%20675.6%2065.7%20548.6%20103.1%20C%20423.9%20141.1%20268.4%20213.7%20208.9%20248.5%20C%20123.6%20298.4%2037.2%20369.8%2014.7%20470.9%20C%200.0%20530.3%209.7%20594.1%2048.8%20641.8%20C%20184.1%20819.6%20431.5%20820.5%20625.8%20886.3%20C%20718.4%20916.4%20907.4%201006.0%20837.9%201128.9%20C%20800.4%201197.6%20737.1%201242.8%20668.5%201278.6%20C%20661.1%201282.7%20643.5%201294.3%20662.8%201292.4%20C%20744.8%201284.1%20825.2%201248.4%20889.8%201195.4%20C%20961.1%201138.4%201000.0%201064.3%20933.1%20987.7%20C%20841.3%20900.0%20664.5%20854.8%20532.6%20816.8%20C%20474.7%20801.6%20415.9%20784.3%20360.3%20762.6%20C%20296.0%20737.4%20289.5%20732.0%20257.1%20710.8%20C%20167.5%20652.2%20107.2%20549.7%20152.8%20449.8%20C%20195.6%20360.3%20283.5%20292.3%20364.4%20239.2%20C%20464.9%20173.1%20731.3%2082.9%20920.0%2024.0%20C%20935.4%2018.4%20960.0%2013.9%20970.9%203.8Z%20M%20971.0%203.6'/%3E%3C/svg%3E");

  --container: 1240px;
  --header-h: 78px;
  --pill: 999px;
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

/* Aucune zone de la page ne peut être tirée sur le côté (iPhone compris) */
html, body { overflow-x: clip; }
html { overscroll-behavior-x: none; }

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
::selection { background: var(--terracotta); color: #fff; }

/* Focus visible sur tous les fonds : anneau crème collé à l'élément, anneau encre autour */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--cream);
}

/* 3. Typographie ---------------------------------------------------------- */
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
}

h1 { font-size: clamp(2.8rem, 7.4vw, 5.6rem); line-height: .96; letter-spacing: -.04em; }
h2 { font-size: clamp(2.2rem, 5.4vw, 4.6rem); line-height: 1; letter-spacing: -.035em; }
h3 { font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.12; letter-spacing: -.01em; }

p { margin: 0 0 1em; }

h1, h2, h3, .big-quote, .cta-visual p { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--terracotta-deep);
  font-family: var(--font-text);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  flex: 0 0 34px;
  height: 1px;
  background: currentColor;
}

.lead {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.small { font-size: .9rem; }

/* 4. Utilitaires ---------------------------------------------------------- */
.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

/* 5. En-tête et menu ------------------------------------------------------ */
.announce { background: var(--terracotta-deep); color: #fff; font-size: .9rem; line-height: 1.4; }

.announce-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 44px;
  text-align: center;
}

.announce p { margin: 0; }

@media (max-width: 519px) {
  .announce { font-size: .84rem; }
  .announce-inner { padding: 8px 36px 8px 4px; text-align: left; justify-content: flex-start; }
}
.announce a { padding: 14px 6px; color: #fff; font-weight: 700; }

.announce-close {
  position: absolute;
  top: 50%;
  right: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid rgba(41, 40, 36, .08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand { display: block; text-decoration: none; }
.brand img { width: 146px; }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s ease, background-color .25s ease;
}

.nav-toggle-bars { position: relative; }

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.menu-open .nav-toggle-bars { background: transparent; }
.menu-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.menu-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.site-nav {
  position: fixed;
  inset: var(--nav-top, var(--header-h)) 0 0 0;
  z-index: 110;
  overflow-y: auto;
  padding: 24px 24px 40px;
  background: var(--cream);
  border-top: 1px solid rgba(41, 40, 36, .08);
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: opacity .22s ease, clip-path .3s ease, visibility 0s linear .3s;
}

/* À l'ouverture, le menu devient visible tout de suite (le focus peut y entrer) */
.menu-open .site-nav { opacity: 1; clip-path: inset(0); visibility: visible; transition: opacity .22s ease, clip-path .3s ease, visibility 0s; }

.site-nav ul { margin: 0; padding: 0; list-style: none; }
.site-nav li { border-bottom: 1px solid var(--line); }
.site-nav li:last-child { border-bottom: 0; }

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 12px 4px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 7vw, 2.2rem);
  line-height: 1.1;
  text-decoration: none;
}

.site-nav a[aria-current="page"] { color: var(--terracotta-deep); }

.site-nav .nav-cta {
  justify-content: center;
  min-height: 56px;
  margin-top: 24px;
  border-radius: var(--pill);
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 700;
}

.site-nav .nav-cta[aria-current="page"] { color: #fff; }

@media (min-width: 980px) {
  .site-header {
    background: rgba(244, 237, 222, .94);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .brand img { width: 170px; }
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
    opacity: 1;
    clip-path: none;
    visibility: visible;
    transition: none;
  }

  .site-nav ul { display: flex; align-items: center; gap: 26px; }
  .site-nav li { border: 0; }

  .site-nav a {
    min-height: 0;
    padding: 8px 0;
    font-family: var(--font-text);
    font-size: .95rem;
    font-weight: 600;
  }

  .site-nav a[aria-current="page"]:not(.nav-cta) { box-shadow: inset 0 -2px 0 currentColor; }

  .site-nav .nav-cta {
    min-height: 44px;
    margin: 0;
    padding: 0 20px;
    font-size: .92rem;
  }
}

/* 6. Boutons et liens ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-terra { background: var(--terracotta); color: #fff; }
.btn-terra:hover { background: var(--terracotta-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: var(--cream); color: var(--terracotta-deep); }
.btn-outline { background: transparent; border-color: currentColor; }
.btn-whatsapp { background: var(--whatsapp); color: var(--ink); }
.btn svg { width: 20px; height: 20px; flex: 0 0 20px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 519px) {
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
}

.btn-small { min-height: 44px; padding: 0 20px; font-size: .92rem; }

/* Zone à toucher élargie (44 px) : l'apparence des liens ne change pas */
.text-link, .discipline-link, .slot-try { position: relative; }
.text-link::after, .discipline-link::after, .slot-try::after { content: ""; position: absolute; inset: -13px -8px; }

.text-link {
  display: inline-block;
  margin-top: 16px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  color: var(--terracotta-deep);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover { color: var(--ink); }
.section-beige .text-link, .cta-copy .text-link { color: var(--ink); }

/* 7. Sections ------------------------------------------------------------- */
.section { padding: 82px 0; }
.section-cream { background: var(--cream); }
.section-ivory { background: var(--ivory); }
.section-beige { background: var(--beige); }
.section-olive { background: var(--olive-deep); color: var(--cream); }

.section-beige .kicker { color: var(--ink); }
.section-beige .lead { color: var(--muted-on-beige); }
.section-olive .kicker { color: var(--cream); }
.section-olive .lead { color: var(--cream); }

.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: 40px;
}

.section-head h2 { max-width: 56rem; }
.section-head .kicker,
.section-head .lead,
.section-head p { margin: 0; }

.note { color: var(--muted); font-size: .92rem; }

@media (min-width: 720px) {
  .container { width: min(100% - 52px, var(--container)); }
  .section { padding: 100px 0; }
}

/* 8. Motif « S » ---------------------------------------------------------- */
.hero-copy::before,
.page-hero::after,
.cta-visual::before,
.course-media::before,
.map-facade::before {
  content: "";
  position: absolute;
  aspect-ratio: 1000 / 1294;
  background: currentColor;
  -webkit-mask: var(--swoosh) center / contain no-repeat;
  mask: var(--swoosh) center / contain no-repeat;
  pointer-events: none;
}

/* 9. Accueil -------------------------------------------------------------- */
.hero { overflow: hidden; background: var(--cream); }

.hero-grid { display: grid; }

.hero-copy {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 16px 44px;
}

.hero-copy::before {
  display: none;
  left: -30%;
  bottom: -34%;
  z-index: -1;
  width: min(64vw, 430px);
  background: var(--sage);
  opacity: .18;
  transform: rotate(-8deg);
}

.hero-title { margin: 0 0 26px; }
.hero-title .kicker { color: var(--olive-deep); }

.hero-title .display {
  display: block;
  font-size: clamp(3.45rem, 10.4vw, 8.9rem);
  line-height: .88;
  letter-spacing: -.055em;
}

.hero-title .line { display: block; }
.hero-title .accent { color: var(--terracotta); font-style: italic; }
.hero-copy .lead { max-width: 38rem; }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--olive-deep);
  font-size: .9rem;
  font-weight: 600;
}

.hero-proof li { display: inline-flex; align-items: center; gap: 9px; }

.hero-proof li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

.hero-visual {
  position: relative;
  min-height: 380px;
}

.hero-stage {
  position: absolute;
  inset: 0;
  color: var(--terracotta);
}

/* Motif statique si la 3D n'est pas disponible */
.hero-stage::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  height: 84%;
  aspect-ratio: 1000 / 1294;
  background: currentColor;
  opacity: .5;
  -webkit-mask: var(--swoosh) center / contain no-repeat;
  mask: var(--swoosh) center / contain no-repeat;
  transform: translateX(-50%) rotate(-6deg);
}

.has-webgl::before { display: none; }

.stage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.stage-canvas.is-ready { opacity: 1; }

/* Lumière au sol sous les pointes de la danseuse */
.hero-stage.has-webgl::after {
  content: "";
  position: absolute;
  bottom: 4%;
  left: 50%;
  width: 46%;
  height: 7%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(172, 89, 78, .2), rgba(172, 89, 78, 0));
  transform: translateX(-50%);
}


.year-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 132px;
  height: 132px;
}

.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; }

.badge-ring text {
  fill: var(--terracotta-deep);
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-core {
  position: absolute;
  inset: 21%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  text-align: center;
}

.badge-core strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.badge-core span { margin-top: 3px; font-size: .56rem; letter-spacing: .06em; }

.motion .badge-ring { animation: spin 32s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 720px) and (max-width: 979.98px) {
  .hero-copy { padding: 72px 26px 40px; }
  .hero-visual { min-height: 460px; }
}

@media (min-width: 980px) {
  /* Colonnes extérieures = marges du conteneur : le texte s'aligne sur le logo, l'image va jusqu'au bord */
  .hero-grid {
    grid-template-columns:
      [full-start] minmax(26px, 1fr)
      [content-start] minmax(0, calc(var(--container) / 2))
      [half] minmax(0, calc(var(--container) / 2))
      [content-end] minmax(26px, 1fr) [full-end];
    min-height: clamp(600px, calc(100svh - var(--header-h)), 880px);
  }

  .hero-copy { grid-column: content-start / half; padding: 64px 56px 64px 0; }
  .hero-visual { grid-column: half / full-end; min-height: 0; }
  .hero-stage { inset: 2% 0 2% -8%; }
  .hero-title .display { font-size: clamp(4.6rem, 7.6vw, 8.6rem); }
  .year-badge { right: auto; bottom: 7%; left: 2%; width: 176px; height: 176px; }
  .badge-core strong { font-size: 2.1rem; }
  .badge-core span { font-size: .66rem; }
}

/* Bande panoramique : la photo s'élargit jusqu'aux bords au défilement */
.band { overflow: hidden; background: var(--cream); }

.band-frame {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: var(--band-radius, 0);
  transform: scale(var(--band-scale, 1));
  transform-origin: 50% 0;
}

.band-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  transform: scale(var(--img-scale, 1));
  filter: saturate(.85);
}

@media (min-width: 720px) { .band-frame { aspect-ratio: 2.36 / 1; } }

.band-caption {
  position: absolute;
  bottom: 16px;
  left: 20px;
  z-index: 1;
  margin: 0;
  padding: 6px 12px;
  border-radius: var(--pill);
  background: rgba(41, 40, 36, .6);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
}

/* Bandeau défilant des disciplines (décoratif) */
.marquee { overflow: hidden; background: var(--terracotta); color: #fff; }

.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 15px 0;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  animation: marquee 32s linear infinite;
}

.marquee-track span::after {
  content: "✦";
  margin-left: 28px;
  color: var(--beige);
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee--big {
  padding: clamp(18px, 3vw, 34px) 0;
  background: var(--cream);
  border-block: 1px solid var(--line);
  color: var(--terracotta);
}

.marquee--big .marquee-track {
  gap: clamp(28px, 4vw, 64px);
  padding: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 6.2rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.05;
  text-transform: none;
  animation-duration: 18s;
  will-change: transform;
}

.marquee--big .marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.2px var(--terracotta-deep); }

.marquee--big .marquee-track span::after {
  margin-left: clamp(28px, 4vw, 64px);
  color: var(--sage);
  font-size: .38em;
  font-style: normal;
  vertical-align: middle;
  -webkit-text-stroke: 0;
}

.motion .marquee--big .marquee-track { animation: none; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* L'esprit Pirouette */
.story-grid { display: grid; gap: 40px; align-items: center; }

.story-media {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: 140px 140px 18px 18px;
  background: var(--sage);
}

.story-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  filter: saturate(.78);
}

.story-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(159, 169, 140, 0), rgba(41, 40, 36, .22));
}

.story-stamp {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  margin: 0;
  padding: 12px 15px;
  background: var(--cream);
  color: var(--terracotta-deep);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.story-copy h2 { max-width: 44rem; margin-bottom: 22px; }
.story-copy > p:not(.kicker):not(.lead):not(.big-quote) { color: var(--muted); }
.section-olive .story-copy > p:not(.kicker):not(.lead) { color: var(--cream); }
.section-olive .teacher-card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); }
.section-olive .teacher-card h3 { color: #fff; }
.section-olive .teacher-card p { color: var(--cream); }

.big-quote {
  margin: 28px 0 0;
  padding-left: 22px;
  border-left: 2px solid var(--terracotta);
  color: var(--terracotta-deep);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.25;
}

.teacher-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 32px;
  padding: 24px;
  background: var(--cream);
  border: 1px solid var(--line);
}

.teacher-card img { width: 52px; }
.teacher-card:has(.portrait) { grid-template-columns: 88px 1fr; align-items: center; }
.teacher-card .portrait { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: var(--focus, 50% 30%); }
.teacher-card h3 { margin-bottom: 8px; font-size: 1.5rem; }
.teacher-card p { margin: 0; color: var(--muted); }

@media (max-width: 719.98px) {
  .story-media { aspect-ratio: 1 / 1; border-radius: 90px 90px 14px 14px; }
}

@media (min-width: 720px) {
  .story-grid { grid-template-columns: .82fr 1.18fr; gap: 72px; }
}

/* Disciplines */
.discipline-grid { display: grid; gap: 14px; }

.discipline {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.discipline-media { aspect-ratio: 3 / 2; background: var(--cream); }
.discipline-media img { width: 100%; height: 100%; object-fit: cover; }
.discipline-body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 24px; }
.discipline-body > p:not(.discipline-public) { margin-bottom: 18px; }
.discipline-body .discipline-link { align-self: flex-start; margin-top: auto; }

.discipline:nth-child(1) { background: var(--terracotta); color: #fff; }
.discipline:nth-child(2) { background: var(--sage); color: var(--ink); }
.discipline:nth-child(3) { background: var(--beige); color: var(--ink); }
.discipline:nth-child(4) { background: var(--olive-deep); color: var(--cream); }
.discipline:nth-child(5) { background: var(--ivory); color: var(--ink); border: 1px solid var(--line); }
.discipline:nth-child(6) { background: var(--terracotta-deep); color: var(--cream); }

.discipline-public { margin: 0 0 14px; font-size: .86rem; font-weight: 700; }

.discipline-public::before {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  margin-bottom: 12px;
  background: currentColor;
  opacity: .6;
}

.discipline h3 { margin-bottom: 10px; }
.discipline p { max-width: 24rem; margin: 0; }

.discipline-link {
  display: inline-block;
  margin-top: 20px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}

.passerelle-band {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 24px 26px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-left: 4px solid var(--terracotta);
}

.passerelle-band h3 { margin-bottom: 8px; color: var(--terracotta-deep); font-size: 1.45rem; }
.passerelle-band p { margin: 0; color: var(--muted); }
.passerelle-band .text-link { justify-self: start; margin-top: 0; }

@media (min-width: 720px) {
  .discipline-grid { grid-template-columns: repeat(2, 1fr); }
  .passerelle-band { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 40px; }
}

@media (min-width: 980px) {
  .discipline-grid { grid-template-columns: repeat(3, 1fr); }
}

.swipe-hint { display: none; }

@media (max-width: 719.98px) {
  .discipline-grid {
    grid-auto-columns: 82%;
    grid-auto-flow: column;
    margin-inline: -16px;
    padding: 0 16px 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    contain: paint;
    scroll-padding-inline: 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .discipline-grid::-webkit-scrollbar { display: none; }
  .discipline { scroll-snap-align: start; }
  .swipe-hint { display: block; color: var(--muted); font-size: .86rem; font-weight: 600; }
}

/* Danser près de chez vous (chiffres repris dans « L'esprit Pirouette ») */



/* Frise de dates (« L'esprit Pirouette ») */
.timeline {
  position: relative;
  display: grid;
  gap: 26px;
  margin: 34px 0 0;
  padding: 0 0 0 30px;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 5px;
  width: 1px;
  background: rgba(244, 237, 222, .4);
}

.timeline li { position: relative; }

.timeline li::before {
  content: "";
  position: absolute;
  top: .55em;
  left: -30px;
  width: 11px;
  height: 11px;
  border: 1px solid var(--cream);
  border-radius: 50%;
  background: var(--olive-deep);
}

.timeline li:last-child::before { border-color: var(--beige); background: var(--beige); }

.timeline time {
  display: block;
  color: var(--beige);
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
}

.timeline p { max-width: 24rem; margin: 8px 0 0; color: var(--cream); font-size: .95rem; line-height: 1.5; }

@media (min-width: 720px) {
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 30px 0 0; }
  .timeline::before { top: 5px; right: 0; bottom: auto; left: 0; width: auto; height: 1px; }
  .timeline li::before { top: -30px; left: 0; }
}

/* La vie de l'école */
.life-grid { display: grid; gap: 34px; }
.life-cards { display: grid; gap: 12px; }

.life-cards article {
  padding: 24px;
  background: rgba(244, 237, 222, .5);
  border: 1px solid rgba(41, 40, 36, .08);
}

.life-cards h3 { margin-bottom: 8px; color: var(--terracotta-deep); font-size: 1.45rem; }
.life-cards p { margin: 0; color: var(--muted-on-beige); }
.life-cards p + p { margin-top: 10px; }
.life-cards time { font-weight: 700; color: var(--ink); }

.agenda-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.chip-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--terracotta-deep);
  border-radius: var(--pill);
  color: var(--terracotta-deep);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}

.chip-link:hover { background: var(--terracotta-deep); color: #fff; }

@media (min-width: 720px) {
  .life-grid { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
}

/* Votre avis compte */
.reviews-band {
  padding: 56px 0;
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.reviews-inner { display: grid; gap: 20px; align-items: center; }
.reviews-mark { width: 56px; }
.reviews-inner h2 { margin-bottom: 8px; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.reviews-inner p { max-width: 40rem; margin: 0; color: var(--muted); }

@media (min-width: 720px) {
  .reviews-inner { grid-template-columns: auto 1fr auto; gap: 32px; }
}

.review-quotes { display: grid; gap: 12px; margin: 32px 0 0; padding: 0; list-style: none; }
.review-quotes blockquote { height: 100%; margin: 0; padding: 22px; background: var(--ivory); border: 1px solid var(--line); }
.review-quotes p { margin: 0 0 12px; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.4; }
.review-quotes cite { color: var(--muted); font-size: .88rem; font-style: normal; }

@media (min-width: 720px) { .review-quotes { grid-template-columns: repeat(3, 1fr); } }

/* Cours d'essai */
.cta-stage { display: grid; overflow: hidden; }
.cta-copy { padding: 44px 26px; background: var(--beige); }
.cta-copy h2 { max-width: 40rem; }
.cta-copy .reassure { margin: 18px 0 0; font-weight: 600; }

.cta-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 340px;
  overflow: hidden;
  padding: 40px;
  background: var(--terracotta);
  color: var(--cream);
}

.cta-visual::before {
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 250px;
  opacity: .38;
  transform: translate(-50%, -50%) rotate(12deg);
}

.cta-visual p {
  max-width: 12ch;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  text-align: center;
}

@media (max-width: 719.98px) {
  .cta-visual { display: none; }
}

@media (min-width: 720px) {
  .cta-stage { grid-template-columns: 1.15fr .85fr; }
  .cta-copy { padding: 70px; }
}

/* 10. En-têtes de page ---------------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 72px 0 60px;
}

.page-hero h1 { max-width: 18ch; margin-bottom: 24px; }
.page-hero p { max-width: 46rem; font-size: 1.12rem; }

.page-hero::after {
  top: -70px;
  right: -80px;
  z-index: -1;
  width: min(46vw, 330px);
  opacity: .16;
  transform: rotate(18deg);
}

.page-hero-stage {
  position: absolute;
  top: 0;
  right: -22vw;
  bottom: 0;
  z-index: -1;
  width: 72vw;
  opacity: .5;
  pointer-events: none;
}

.page-hero:has(.has-webgl)::after { display: none; }

@media (min-width: 720px) {
  .page-hero-stage { right: 2%; width: min(40vw, 520px); opacity: 1; }
}

.page-hero--terra { background: var(--terracotta); color: #fff; }
.page-hero--terra .kicker { color: #fff; }
.page-hero--olive { background: var(--olive-deep); color: var(--cream); }
.page-hero--olive .kicker { color: var(--cream); }
.page-hero--beige { background: var(--beige); color: var(--ink); }
.page-hero--beige .kicker { color: var(--ink); }
.page-hero--beige p { color: var(--muted-on-beige); }
.page-hero--cream { background: var(--cream); color: var(--ink); }

.page-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.page-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid currentColor;
  border-radius: var(--pill);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
}

.page-toc a:hover { background: rgba(255, 255, 255, .16); }

@media (min-width: 720px) {
  .page-hero { padding: 110px 0 90px; }
  .page-hero::after { width: 380px; right: 4%; top: -40px; }
}

/* 11. Cours --------------------------------------------------------------- */
.course-list { display: grid; gap: 18px; }

.course {
  display: grid;
  overflow: hidden;
  background: var(--ivory);
  border: 1px solid rgba(41, 40, 36, .09);
}

.course-media {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
}

.course:nth-child(4n + 1) .course-media { background: var(--beige); color: var(--ink); }
.course:nth-child(4n + 2) .course-media { background: var(--sage); color: var(--ink); }
.course:nth-child(4n + 3) .course-media { background: var(--terracotta); color: #fff; }
.course:nth-child(4n + 4) .course-media { background: var(--olive-deep); color: var(--cream); }

.course-media span {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-style: italic;
}

.course-media img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.course:nth-child(n) .course-media:has(img) { background: var(--cream); }

.course-media:has(img) span { display: none; }

.course-media::before {
  z-index: -1;
  width: 150px;
  opacity: .22;
  transform: rotate(-14deg);
}

.course-body { padding: 30px; }
.course-body h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }

.course-tagline {
  margin: 10px 0 18px;
  color: var(--terracotta-deep);
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.course-body > p:not(.course-tagline) { color: var(--muted); }

.course-facts {
  display: grid;
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
}

.course-facts div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.course-facts dt { color: var(--olive-deep); font-size: .84rem; font-weight: 700; }
.course-facts dd { margin: 0; }

.course-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 24px;
}

.course-actions .text-link { margin-top: 0; }

@media (min-width: 720px) {
  .course { grid-template-columns: .85fr 1.15fr; }
  .course:nth-child(even) .course-media { order: 2; }
  .course-body { padding: 48px; }
}

.feature-split { display: grid; gap: 28px; align-items: center; }
.feature-split h2 { max-width: 34rem; }

@media (min-width: 720px) {
  .feature-split { grid-template-columns: 1fr 1fr; gap: 72px; }
}

.attire-grid { display: grid; gap: 12px; }

.attire-card {
  padding: 24px;
  background: var(--cream);
  border: 1px solid rgba(41, 40, 36, .08);
}

.attire-card h3 { margin-bottom: 8px; font-size: 1.45rem; }
.attire-card p { margin: 0; color: var(--muted); }

.attire-note {
  margin: 18px 0 0;
  padding: 18px 20px;
  background: rgba(159, 169, 140, .16);
  border-left: 3px solid var(--sage);
  color: var(--muted);
}

@media (min-width: 720px) { .attire-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .attire-grid { grid-template-columns: repeat(4, 1fr); } }

/* 12. Horaires et tarifs -------------------------------------------------- */
.schedule { display: grid; gap: 16px; }

.day {
  padding: 24px;
  background: var(--ivory);
  border-top: 5px solid var(--terracotta);
}

.day:nth-child(2) { border-top-color: var(--sage); }
.day:nth-child(3) { border-top-color: var(--beige); }
.day:nth-child(4) { border-top-color: var(--olive); }
.day h3 { margin-bottom: 12px; }

.slots { margin: 0; padding: 0; list-style: none; }
.slot { padding: 14px 0; border-top: 1px solid var(--line); }
.slot:first-child { padding-top: 4px; border-top: 0; }

.slot-time {
  margin: 0 0 2px;
  color: var(--terracotta-deep);
  font-size: .9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.slot-name { margin: 0; font-weight: 700; }
.slot-name a { text-decoration-color: rgba(41, 40, 36, .3); }
.slot-name a:hover { text-decoration-color: currentColor; }
.slot-detail { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }

.slot-try {
  display: inline-block;
  margin-top: 6px;
  color: var(--terracotta-deep);
  font-size: .84rem;
  font-weight: 700;
  text-decoration-color: rgba(136, 68, 60, .35);
}

.slot-try:hover { text-decoration-color: currentColor; }

@media (min-width: 720px) { .schedule { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .schedule { grid-template-columns: repeat(4, 1fr); } }

.info-band { display: grid; gap: 12px; }

.info-box {
  padding: 26px;
  background: var(--ivory);
  border: 1px solid rgba(41, 40, 36, .08);
}

.info-box h3 { margin-bottom: 8px; color: var(--terracotta-deep); font-size: 1.55rem; }
.info-box p { margin: 0; color: var(--muted); }
.info-box .price { margin-bottom: 8px; color: var(--ink); font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; }

@media (min-width: 720px) { .info-band { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .info-band { grid-template-columns: repeat(4, 1fr); } }

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 26px 24px 24px;
  background: var(--cream);
  border: 1px solid rgba(41, 40, 36, .08);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 10px;
  color: var(--terracotta);
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
}

.steps h3 { margin-bottom: 8px; font-size: 1.4rem; }
.steps p { margin: 0; color: var(--muted); }

@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.compact-grid { display: grid; gap: 32px; }

@media (min-width: 720px) {
  .compact-grid { grid-template-columns: .8fr 1.2fr; align-items: start; gap: 60px; }
}

.accordion { display: grid; gap: 10px; }

.accordion details {
  background: var(--cream);
  border: 1px solid rgba(41, 40, 36, .09);
}

.section-cream .accordion details { background: var(--ivory); }

.accordion summary {
  position: relative;
  padding: 20px 56px 20px 20px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  color: var(--terracotta-deep);
  font-family: var(--font-text);
  font-size: 1.4rem;
  transform: translateY(-50%);
}

.accordion details[open] summary::after { content: "–"; }
.accordion .answer { padding: 0 20px 20px; color: var(--muted); }
.accordion .answer p:last-child { margin-bottom: 0; }

/* Trouver mon cours ------------------------------------------------------- */
.finder { display: grid; gap: 16px; }

.finder-form,
.finder-results {
  padding: 26px;
  background: var(--ivory);
  border: 1px solid rgba(41, 40, 36, .09);
}

.section-ivory .finder-form,
.section-ivory .finder-results { background: var(--cream); }

.finder-form { display: grid; gap: 24px; }
.finder-q { margin: 0; padding: 0; border: 0; }

.finder-q legend {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
}

.finder-num {
  display: inline-grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font-text);
  font-size: .9rem;
  font-weight: 700;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--field-border);
  border-radius: var(--pill);
  background: var(--ivory);
  color: var(--ink);
  font-size: .95rem;
  font-weight: 600;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.chip:hover span { border-color: var(--terracotta-deep); }
.chip input:checked + span { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 3px var(--cream); }

.finder-results { min-height: 180px; color: var(--ink); }
.finder-hint { margin: 0; color: var(--muted); }

.finder-count {
  margin: 0 0 16px;
  color: var(--terracotta-deep);
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.2;
}

.finder-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }

.finder-result {
  padding: 18px 20px;
  background: var(--cream);
  border-left: 4px solid var(--terracotta);
}

.section-ivory .finder-result { background: var(--ivory); }
.finder-result[data-style="jazz"] { border-left-color: var(--sage); }
.finder-result[data-style="eveil"] { border-left-color: var(--beige); }
.finder-result[data-style="sol"] { border-left-color: var(--olive); }
.finder-result[data-style="atelier"], .finder-result[data-style="passerelle"] { border-left-color: var(--terracotta-deep); }

.finder-when { margin: 0 0 4px; color: var(--terracotta-deep); font-size: .88rem; font-weight: 700; }
.finder-result h3 { margin: 0 0 4px; font-size: 1.35rem; }
.finder-detail { margin: 0; color: var(--muted); font-size: .92rem; }

.finder-tag {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: var(--pill);
  background: var(--sage);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: middle;
}

.finder-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 12px; }
.finder-actions .text-link { margin-top: 0; }
.finder-note { margin: 14px 0 12px; color: var(--muted); font-size: .92rem; }
.finder-more { margin: 18px 0 0; }
.finder-subtitle { margin: 22px 0 4px; color: var(--terracotta-deep); font-family: var(--font-display); font-size: 1.3rem; line-height: 1.2; }
.finder-result.is-partial { border-left-style: dashed; }
.section-olive .finder-more a { color: var(--cream); font-weight: 700; }

@media (min-width: 980px) {
  .finder { grid-template-columns: 1.05fr .95fr; align-items: start; gap: 20px; }
  .finder-results { position: sticky; top: calc(var(--header-h) + 20px); }
}

@media (prefers-reduced-motion: no-preference) {
  .finder-result { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
}

/* 13. Contact ------------------------------------------------------------- */
.contact-layout { display: grid; gap: 22px; }

.contact-card {
  padding: 30px;
  background: var(--olive-deep);
  color: var(--cream);
}

.contact-card .kicker { color: var(--cream); }
.contact-card h2 { margin-bottom: 20px; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.contact-card address p { margin: 0 0 14px; }
.contact-card a:not(.btn) { color: #fff; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.contact-block {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.contact-block-title {
  margin: 0 0 12px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-block p { margin: 0 0 12px; }

.social-pills { display: flex; flex-wrap: wrap; gap: 10px; }

.contact-card .social-pills a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: var(--pill);
  text-decoration: none;
}

.contact-card .social-pills a:hover { background: var(--cream); color: var(--terracotta-deep); }

.form-card {
  padding: 28px;
  background: var(--ivory);
  border: 1px solid rgba(41, 40, 36, .09);
}

.form-card h2 { margin-bottom: 12px; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.form-intro { color: var(--muted); font-size: .95rem; }

.form-grid { display: grid; gap: 18px; margin-top: 22px; }
.field { display: grid; gap: 7px; }
.field label, .field legend { font-size: .86rem; font-weight: 700; }
fieldset.field { margin: 0; padding: 0; border: 0; }
.field legend { margin-bottom: 7px; padding: 0; }
.req { color: var(--terracotta-deep); }

.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }

.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--field-border);
  border-radius: var(--pill);
  background: var(--cream);
  font-size: .95rem;
  font-weight: 400 !important;
  cursor: pointer;
}

.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--terracotta); }

.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--field-border);
  border-radius: 0;
  background: var(--cream);
  color: var(--ink);
}

.field textarea { min-height: 140px; resize: vertical; }

.field .consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.45;
  cursor: pointer;
}

.consent input { flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--terracotta); }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-legal { margin: 0 0 16px; color: var(--muted); font-size: .86rem; }
.form-status { min-height: 1.6em; margin: 14px 0 0; font-weight: 600; }
.form-status.is-error { color: var(--terracotta-deep); }
.form-status.is-success { color: var(--olive-deep); }

.form-privacy {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--cream);
  border-left: 3px solid var(--sage);
}

.form-privacy h3 { margin-bottom: 6px; color: var(--olive-deep); font-size: 1.2rem; }
.form-privacy p { margin: 0; color: var(--muted); font-size: .9rem; }

@media (min-width: 720px) {
  .contact-layout { grid-template-columns: .78fr 1.22fr; align-items: start; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .field.full { grid-column: 1 / -1; }
  .contact-card, .form-card { padding: 40px; }
}

.map-wrap {
  overflow: hidden;
  background: var(--beige);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(41, 40, 36, .1);
}

.map-facade {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 40px 26px;
}

.map-facade::before {
  top: -40px;
  right: -50px;
  z-index: -1;
  width: 300px;
  background: var(--sage);
  opacity: .45;
  transform: rotate(-10deg);
}

.map-facade .kicker { color: var(--ink); }
.map-facade h2 { max-width: 22ch; margin-bottom: 14px; font-size: clamp(2rem, 4.4vw, 3.2rem); }

.practical-list {
  display: grid;
  gap: 8px;
  max-width: 44rem;
  margin: 18px 0 0;
}

.practical-list div { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; }
.practical-list dt { font-weight: 700; }
.practical-list dd { margin: 0; color: var(--muted-on-beige); }

.map-note { margin: 16px 0 0; color: var(--muted-on-beige); font-size: .86rem; }
.map-frame { display: block; width: 100%; height: 420px; border: 0; }

@media (max-width: 519px) {
  .practical-list div { grid-template-columns: 1fr; gap: 0; }
}

@media (min-width: 760px) {
  .map-facade { padding: 56px; }
  .map-frame { height: 460px; }
}

/* 14. Pages de texte ------------------------------------------------------ */
.prose { max-width: 46rem; }
.prose h2 { margin: 2em 0 .5em; font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2em; }
.prose strong { color: var(--ink); }

.todo {
  padding: 0 .3em;
  border-radius: 3px;
  background: #FBE3B0;
  color: var(--ink);
}

/* 15. Pied de page -------------------------------------------------------- */
.site-footer {
  padding: 56px 0 26px;
  background: var(--footer);
  color: rgba(255, 255, 255, .8);
}

.footer-grid { display: grid; gap: 32px; }
.footer-brand img { width: 220px; }
.footer-brand p { max-width: 22rem; margin: 16px 0 0; font-size: .92rem; }

.footer-title {
  margin: 0 0 12px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.footer-col ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-col address { margin-bottom: 12px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--beige); text-decoration: underline; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .62);
  font-size: .86rem;
}

.footer-bottom p { margin: 0; }

@media (max-width: 979.98px) {
  .footer-col ul { gap: 0; }
  .footer-col li a,
  .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.3fr .8fr 1fr .8fr; }
}

/* 16. Accès rapides mobiles et WhatsApp ------------------------------------ */
.mobile-actions {
  position: fixed;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  left: 10px;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(41, 40, 36, .12);
  border-radius: var(--pill);
  background: rgba(244, 237, 222, .97);
  box-shadow: 0 14px 40px rgba(41, 40, 36, .2);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.mobile-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 0 8px;
  border-radius: var(--pill);
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}

.mobile-actions svg { width: 19px; height: 19px; flex: 0 0 19px; }
.mobile-actions .is-whatsapp { background: var(--whatsapp); color: var(--ink); }
.mobile-actions .is-primary { background: var(--terracotta); color: #fff; }

.whatsapp-float { display: none; }

@media (max-width: 979.98px) {
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 370px) {
  .mobile-actions svg { display: none; }
  .mobile-actions a { font-size: .8rem; }
}

@media (min-width: 980px) {
  .mobile-actions { display: none; }

  .whatsapp-float {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 20px;
    border-radius: var(--pill);
    background: var(--whatsapp);
    color: var(--ink);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(24, 98, 52, .28);
    transition: transform .2s ease;
  }

  .whatsapp-float:hover { transform: translateY(-3px); }
  .whatsapp-float svg { width: 24px; height: 24px; }
}

/* 17. Mouvement --------------------------------------------------------------- */
.motion [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.motion [data-reveal].is-in { opacity: 1; transform: none; }

.motion h2[data-reveal] {
  opacity: 1;
  clip-path: inset(0 0 100% 0);
  transform: translateY(.4em);
  transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1), transform 1.1s cubic-bezier(.2, .7, .2, 1);
}

.motion h2[data-reveal].is-in { clip-path: inset(-.3em -.2em -.35em -.2em); transform: none; }

.motion [data-reveal="image"] {
  opacity: 1;
  clip-path: inset(0 0 100% 0);
  transform: none;
  transition: clip-path 1.3s cubic-bezier(.7, 0, .2, 1);
}

.motion [data-reveal="image"].is-in { clip-path: inset(0); }

.curtain {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: var(--terracotta);
  transform: translateY(101%);
  visibility: hidden;
  pointer-events: none;
  will-change: transform;
}

.curtain::after {
  content: "";
  width: 84px;
  aspect-ratio: 1000 / 1294;
  background: var(--cream);
  -webkit-mask: var(--swoosh) center / contain no-repeat;
  mask: var(--swoosh) center / contain no-repeat;
}

/* Départ : le rideau monte et couvre la page (0,34 s) avant l'ouverture de la page suivante */
.curtain.is-covering { visibility: visible; transform: translateY(0); transition: transform .34s cubic-bezier(.65, 0, .35, 1); }

/* Arrivée : la page s'ouvre déjà couverte (classe posée par arrive.js avant le premier affichage),
   puis le rideau se lève tout seul, sans dépendre du JavaScript */
html.is-arriving .curtain {
  visibility: visible;
  transform: translateY(0);
  animation: curtain-lift .55s cubic-bezier(.65, 0, .35, 1) .08s both;
}

@keyframes curtain-lift { to { transform: translateY(-101%); } }

/* Séquence d'ouverture de l'accueil et des en-têtes de page */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .kicker,
  .hero-title .line,
  .hero-copy .lead,
  .hero-copy .actions,
  .hero-proof,
  .page-hero .container > * {
    animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
  }

  .page-hero .container > :nth-child(2) { animation-delay: .12s; }
  .page-hero .container > :nth-child(3) { animation-delay: .24s; }

  .hero-title .line:nth-child(1) { animation-delay: .1s; }
  .hero-title .line:nth-child(2) { animation-delay: .2s; }
  .hero-title .line:nth-child(3) { animation-delay: .3s; }
  .hero-copy .lead { animation-delay: .42s; }
  .hero-copy .actions { animation-delay: .52s; }
  .hero-proof { animation-delay: .6s; }
  .year-badge { animation: badge 1s .5s cubic-bezier(.2, .7, .2, 1) both; }
  .btn { transition: transform .35s cubic-bezier(.2, .7, .2, 1), background-color .2s ease, color .2s ease; }
}

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes badge { from { opacity: 0; transform: scale(.85); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }

  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}


/* Réseaux sociaux : logos ronds ------------------------------------------- */
.social-icons { display: flex; gap: 12px; }

.social-icons a {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(244, 237, 222, .5);
  border-radius: 50%;
  color: var(--cream);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .35s cubic-bezier(.2, .7, .2, 1);
}

.social-icons svg { width: 21px; height: 21px; }
.social-icons a:hover { background: var(--cream); border-color: var(--cream); color: var(--terracotta-deep); transform: translateY(-3px); }
.social-icons a:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }

.site-footer .social-icons { margin-bottom: 14px; }

.social-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.social-row p { margin: 0; color: var(--cream); font-size: .92rem; font-weight: 600; }

/* Logos dans le menu mobile (masqués sur ordinateur, où ils sont dans le pied de page) */
.nav-social { margin-top: 28px; }
/* Les règles des liens du menu (hauteur 64 px, marges) s'appliquaient aussi aux logos et les étiraient en ovale */
.nav-social .social-icons a { min-height: 46px; padding: 0; border-color: rgba(41, 40, 36, .35); color: var(--ink); }
.nav-social .social-icons a:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); color: #fff; }
.nav-social .social-icons a:focus-visible { outline-color: var(--ink); }

@media (min-width: 980px) { .nav-social { display: none; } }
