/* ==========================================================================
   Delphine Rigaux — Sage-femme
   Univers : doux, organique, cocon. Palette tirée du logo.
   ========================================================================== */

:root {
  --cream: #f6f2ee;
  --ink: #4a2e2b;
  --ink-soft: #7d625c;
  --burgundy: #8a3b3b;
  --burgundy-deep: #6f2d2e;
  --peach: #edc5b2;
  --terracotta: #e3a080;
  --line: rgba(138, 59, 59, 0.18);
  --ring: rgba(138, 59, 59, 0.42);
  --glass: rgba(255, 251, 248, 0.82); /* verre dépoli sans flou en temps réel */
  --glass-border: rgba(255, 255, 255, 0.7);
  --sheet: #fcf8f5;
  --hdr: 246, 242, 238;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Allura", "Snell Roundhand", cursive;

  --gutter: clamp(22px, 8vw, 150px);
  --ease: cubic-bezier(0.22, 0.7, 0.18, 1);
  --soft: cubic-bezier(0.45, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.8 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; }
img, svg, canvas { display: block; }
::selection { background: rgba(227, 160, 128, 0.35); }

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

.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 60;
  padding: 10px 18px; border-radius: 999px;
  background: var(--burgundy); color: var(--cream); text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 4px; border-radius: 999px; }

/* --------------------------------------------------------------------------
   Scène (fleur + cocon) et grain de papier
   -------------------------------------------------------------------------- */

#scene {
  position: fixed; left: 0; top: 0;
  width: 100%; height: 100vh; height: 100lvh;
  z-index: 0; pointer-events: none;
}

.grain {
  position: fixed; inset: 0;
  z-index: 1; pointer-events: none;
  opacity: 0.55;
  background-image: 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='.78' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .28 0 0 0 0 .24 0 0 0 .6 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main { position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: calc(22px + env(safe-area-inset-top, 0px)) var(--gutter) 22px;
  transition: padding 0.8s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(var(--hdr), 0.94);
  border-radius: 0 0 36px 36px;
  box-shadow: 0 18px 40px -34px rgba(138, 59, 59, 0.35);
  opacity: 0; transition: opacity 0.8s var(--soft);
}
.site-header.is-scrolled { padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-bottom: 12px; }
.site-header.is-scrolled::before { opacity: 1; }

.brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 52px; height: 52px; object-fit: contain; transition: transform 1.6s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-24deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-name { font-family: var(--script); font-size: 1.95rem; color: var(--ink); padding-top: 4px; }
.brand-sub { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase; margin-top: 2px; }

.main-nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); font-size: 0.93rem; font-weight: 600; }
.main-nav a:not(.btn) { position: relative; text-decoration: none; padding: 6px 2px; }
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 50%; bottom: -2px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--terracotta);
  transform: translateX(-50%) scale(0); transition: transform 0.6s var(--ease);
}
.main-nav a:not(.btn):hover::after,
.main-nav a[aria-current="true"]::after { transform: translateX(-50%) scale(1); }

.menu-toggle {
  display: none; position: relative; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.45);
  align-items: center; justify-content: center; flex-direction: column; gap: 6px;
  cursor: pointer; color: var(--ink);
}
.menu-toggle i { display: block; width: 18px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform 0.6s var(--ease); }
.menu-open .menu-toggle i:first-of-type { transform: translateY(3.75px) rotate(45deg); }
.menu-open .menu-toggle i:last-of-type { transform: translateY(-3.75px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px;
  background: var(--burgundy); color: var(--cream);
  border: 1px solid transparent;
  font: 700 0.95rem/1 var(--sans); letter-spacing: 0.01em; text-decoration: none;
  cursor: pointer;
  box-shadow: 0 16px 34px -18px rgba(111, 45, 46, 0.65);
  transition: transform 0.7s var(--ease), background 0.5s var(--soft), box-shadow 0.7s var(--ease);
}
.btn--ghost { background: rgba(255, 255, 255, 0.4); color: var(--ink); border-color: var(--line); box-shadow: none; }
@media (hover: hover) {
  .btn:hover { background: var(--burgundy-deep); transform: translateY(-2px); box-shadow: 0 22px 40px -20px rgba(111, 45, 46, 0.7); }
  .btn--ghost:hover { background: rgba(255, 255, 255, 0.75); box-shadow: none; }
}
.btn--small { padding: 12px 22px; font-size: 0.86rem; }

/* --------------------------------------------------------------------------
   Pagination (points)
   -------------------------------------------------------------------------- */

.pager {
  position: fixed; left: clamp(20px, 2.4vw, 40px); top: 50%; z-index: 20;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 4px;
}
.pager a { position: relative; display: flex; align-items: center; gap: 12px; padding: 7px; text-decoration: none; }
.pager i {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid var(--ring);
  transition: transform 0.8s var(--ease), background 0.6s var(--soft), border-color 0.6s;
}
.pager a[aria-current="true"] i { background: var(--burgundy); border-color: var(--burgundy); transform: scale(1.35); }
.pager span {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
  white-space: nowrap; opacity: 0; transform: translateX(-6px);
  transition: opacity 0.5s var(--soft), transform 0.6s var(--ease);
  pointer-events: none;
}
.pager a:hover span, .pager a:focus-visible span { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Pages
   -------------------------------------------------------------------------- */

.page {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: clamp(140px, 21vh, 230px) var(--gutter) clamp(120px, 17vh, 190px);
}
.page-inner { position: relative; width: 100%; max-width: 540px; transform-origin: 0 50%; }
.page--hero .page-inner { max-width: 620px; }
.page--wide .page-inner { max-width: min(720px, 50vw); }

/* Forme organique douce derrière le titre d’accueil */
.blob {
  position: absolute; z-index: -1; pointer-events: none;
  border-radius: 50%;
  animation: breathe 18s var(--soft) infinite alternate;
}
.blob--hero {
  width: min(70vw, 760px); aspect-ratio: 1;
  left: calc(var(--gutter) * -0.9); top: 50%;
  translate: 0 -54%;
  background: radial-gradient(closest-side, rgba(237, 197, 178, 0.5), rgba(237, 197, 178, 0.18) 60%, rgba(237, 197, 178, 0) 100%);
}
@keyframes breathe {
  from { transform: scale(0.94, 1); }
  to   { transform: scale(1.04, 0.95); }
}

/* --------------------------------------------------------------------------
   Typographie
   -------------------------------------------------------------------------- */

.signature { margin: 0 0 4px; font-family: var(--script); font-size: clamp(2.4rem, 3.4vw, 3.2rem); line-height: 1.1; color: var(--burgundy); }
.signature--small { font-size: 2.6rem; margin: 6px 0 0; }

.eyebrow {
  margin: 0 0 34px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-soft);
}

.section-label {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0 0 30px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-soft);
}
.section-label::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  background: var(--peach);
  box-shadow: 3px -2px 0 -1px transparent, 0 0 0 1px var(--ring);
}

.display,
.title {
  margin: 0 0 36px;
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100;
  font-weight: 330;
  color: var(--ink);
  text-wrap: balance;
}
.display { font-size: clamp(2.9rem, 5.6vw, 5.6rem); line-height: 1.04; letter-spacing: -0.022em; }
.title { font-size: clamp(2.2rem, 3.7vw, 3.6rem); line-height: 1.08; letter-spacing: -0.018em; }
.display em,
.title em { font-style: italic; font-weight: 300; color: var(--burgundy); }

.lead { margin: 0 0 46px; max-width: 32em; font-size: clamp(1.06rem, 1.3vw, 1.2rem); color: var(--ink-soft); }

.prose p { margin: 0 0 1.2em; color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 700; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Mots qui apparaissent en fondu (flouté sur grand écran) */
.js .split .w {
  display: inline-block;
  opacity: 0; transform: translateY(0.3em);
  transition: opacity 1.6s var(--soft), transform 1.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 75ms + 120ms);
}
.js .split.is-visible .w { opacity: 1; transform: none; }
@media (min-width: 1200px) and (hover: hover) {
  .js .split .w { filter: blur(10px); transition-property: opacity, filter, transform; }
  .js .split.is-visible .w { filter: none; }
}

.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1.4s var(--soft), transform 1.6s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Badge circulaire « faites défiler »
   -------------------------------------------------------------------------- */

.scroll-badge {
  position: absolute; left: var(--gutter); bottom: 6vh;
  width: 116px; height: 116px; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none;
}
.scroll-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 32s linear infinite; }
.scroll-badge text { font: 700 8.6px var(--sans); letter-spacing: 2.6px; text-transform: uppercase; fill: var(--burgundy); }
.scroll-badge-dot {
  width: 14px; height: 14px; border-radius: 50%; background: var(--terracotta);
  box-shadow: 0 0 0 7px rgba(237, 197, 178, 0.55);
  animation: float 3.2s var(--soft) infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(8px); } }

/* --------------------------------------------------------------------------
   Cadres circulaires
   -------------------------------------------------------------------------- */

.portrait { position: relative; isolation: isolate; width: 156px; max-width: 100%; aspect-ratio: 3 / 4; margin: 0 0 44px; } /* ovale vertical, en forme de cocon */
.portrait::before { /* tache d’aquarelle décalée */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%;
  background: var(--peach); opacity: 0.6; transform: translate(-14px, 12px);
}
.portrait::after { /* trait décalé, comme sur le logo */
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 1.2px solid var(--ring); transform: translate(8px, -6px);
  pointer-events: none;
}
.portrait canvas,
.portrait img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover;
}
.portrait canvas { background: radial-gradient(circle at 45% 40%, #fbf6f2, #f3e2d8); }

.ring-icon,
.step-num {
  position: relative; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(237, 197, 178, 0.6);
  color: var(--burgundy);
}
.ring-icon::after,
.step-num::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid var(--ring); transform: translate(4px, -3px);
}
.ring-icon { width: 58px; height: 58px; margin-bottom: 26px; }
.ring-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------------------------
   Valeurs
   -------------------------------------------------------------------------- */

.values { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.values li { position: relative; padding-top: 30px; }
.values li::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--peach);
  box-shadow: 4px -3px 0 -2px rgba(255, 255, 255, 0), 0 0 0 1px var(--ring);
}
.values h3 { margin: 0 0 6px; font-family: var(--serif); font-variation-settings: "SOFT" 100; font-style: italic; font-weight: 400; font-size: 1.4rem; color: var(--burgundy); }
.values p { margin: 0; font-size: 0.93rem; line-height: 1.65; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Cartes d’accompagnement
   -------------------------------------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cards .card:last-child:nth-child(odd) { grid-column: 1 / -1; } /* nombre impair : la dernière carte prend toute la largeur */
.card {
  padding: 34px 30px 30px;
  border-radius: 40px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: 0 34px 60px -46px rgba(138, 59, 59, 0.4);
  transition: transform 0.9s var(--ease), box-shadow 0.9s var(--ease), background 0.6s var(--soft);
}
@media (hover: hover) {
  .card:hover { transform: translateY(-5px); background: rgba(255, 251, 248, 0.94); box-shadow: 0 40px 70px -44px rgba(138, 59, 59, 0.5); }
}
.card h3 { margin: 0 0 10px; font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 420; font-size: 1.32rem; line-height: 1.25; }
.card p { margin: 0; font-size: 0.94rem; line-height: 1.7; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Étapes & infos
   -------------------------------------------------------------------------- */

.steps { list-style: none; margin: 0 0 60px; padding: 0; display: grid; gap: 34px; max-width: 560px; }
.steps li { display: flex; gap: 22px; align-items: flex-start; }
.step-num { width: 52px; height: 52px; font-family: var(--serif); font-variation-settings: "SOFT" 100; font-style: italic; font-size: 1.4rem; }
.steps h3 { margin: 4px 0 6px; font-size: 1.04rem; font-weight: 700; }
.steps p { margin: 0; font-size: 0.94rem; line-height: 1.7; color: var(--ink-soft); }

.infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.info {
  padding: 26px 26px 24px; border-radius: 34px;
  background: var(--glass); border: 1px solid var(--glass-border);
}
.k { display: block; margin-bottom: 8px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--burgundy); }
.info p { margin: 0; font-size: 0.92rem; line-height: 1.65; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.page--contact { flex-direction: column; align-items: stretch; padding-bottom: 40px; }
.page--contact .page-inner { margin: auto 0; max-width: 540px; }

.contact-list { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; }
.contact-list a,
.contact-list li > span:last-child { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 1.18rem; text-decoration: none; }
.contact-list a:hover { color: var(--burgundy); }

.contact-form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px;
  padding: 36px 32px 30px; border-radius: 44px;
  background: var(--glass); border: 1px solid var(--glass-border);
  box-shadow: 0 40px 80px -56px rgba(138, 59, 59, 0.45);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { padding-left: 18px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); }
.field input,
.field textarea {
  width: 100%;
  font: inherit; font-size: 0.98rem; color: var(--ink);
  padding: 14px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.62); border: 1px solid var(--line);
  transition: border-color 0.5s var(--soft), box-shadow 0.6s var(--ease), background 0.5s;
}
.field textarea { border-radius: 28px; resize: vertical; min-height: 130px; }
.field input::placeholder { color: rgba(125, 98, 92, 0.6); }
.field input:focus,
.field textarea:focus { outline: none; background: #fff; border-color: var(--terracotta); box-shadow: 0 0 0 5px rgba(237, 197, 178, 0.55); }
.contact-form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 6px; }
.form-note { grid-column: 1 / -1; margin: 0; min-height: 1.2em; font-size: 0.88rem; color: var(--burgundy); }
.field-hint { margin: 2px 0 0; padding-left: 18px; font-size: 0.8rem; line-height: 1.5; color: var(--ink-soft); }

/* Consentement (RGPD) : case ronde aux couleurs du site */
.field--check { flex-direction: row; align-items: flex-start; gap: 12px; padding: 2px 4px 0; }
.field--check input {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 22px; height: 22px; min-width: 22px; padding: 0; margin: 2px 0 0; border-radius: 50%;
  border: 1.5px solid var(--ring); background: rgba(255, 255, 255, 0.7);
  display: grid; place-items: center; cursor: pointer;
  transition: background 0.4s var(--soft), border-color 0.4s var(--soft);
}
.field--check input::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cream); transform: scale(0); transition: transform 0.5s var(--ease);
}
.field--check input:checked { background: var(--burgundy); border-color: var(--burgundy); }
.field--check input:checked::before { transform: scale(1); }
.field--check input:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.field--check label {
  padding: 0; font-size: 0.88rem; font-weight: 400; letter-spacing: 0; text-transform: none;
  line-height: 1.55; color: var(--ink-soft); cursor: pointer;
}
.field--check label a { color: var(--burgundy); }

.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px;
  margin-top: 90px; padding: 26px 30px; border-radius: 999px;
  background: rgba(255, 251, 248, 0.45);
  font-size: 0.82rem; color: var(--ink-soft);
}
.site-footer p { margin: 0; }

/* --------------------------------------------------------------------------
   Barre de contact rapide (mobile uniquement)
   -------------------------------------------------------------------------- */

.quick-contact { display: none; }

/* --------------------------------------------------------------------------
   Tablette & mobile : la fleur s’épanouit dans un espace libre en haut de
   l’écran, le contenu glisse par-dessus sur des feuilles de papier.
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
  .pager { display: none; }
  /* Hauteur de la scène de la fleur : encoche + en-tête + fleur (main.js s’y aligne) */
  :root { --stage: calc(env(safe-area-inset-top, 0px) + 80px + clamp(220px, 40svh, 440px)); }

  .page,
  .page--contact {
    display: block; min-height: 0;
    padding: var(--stage) 14px 14px;
  }
  .page-inner,
  .page--hero .page-inner,
  .page--wide .page-inner,
  .page--contact .page-inner {
    max-width: 680px; margin: 0 auto;
    padding: 46px 36px 42px; border-radius: 46px;
    background: var(--sheet);
    box-shadow: 0 30px 70px -48px rgba(138, 59, 59, 0.45);
    transform-origin: 50% 0;
  }
  .card,
  .info,
  .contact-form { background: rgba(246, 234, 226, 0.5); border-color: rgba(255, 255, 255, 0.6); box-shadow: none; }
  .blob--hero,
  .scroll-badge { display: none; }
  .display { font-size: clamp(2.5rem, 7vw, 3.6rem); }
  .site-footer { max-width: 680px; margin: 14px auto 0; background: var(--sheet); }
}

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
    padding: 0 var(--gutter);
    background: radial-gradient(circle at 80% 30%, #f3dfd3, var(--cream) 65%);
    opacity: 0; visibility: hidden;
    transition: opacity 0.8s var(--soft), visibility 0.8s;
  }
  .main-nav a:not(.btn) { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: clamp(1.6rem, 8.5vw, 2.2rem); font-weight: 330; }
  .menu-open .main-nav { opacity: 1; visibility: visible; }

  .quick-contact {
    position: fixed; z-index: 25;
    left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: flex; gap: 6px; max-width: 520px; margin: 0 auto;
    padding: 6px; border-radius: 999px;
    background: var(--sheet);
    box-shadow: 0 22px 44px -22px rgba(111, 45, 46, 0.55), 0 0 0 1px rgba(138, 59, 59, 0.08);
    transform: translateY(calc(100% + 30px + env(safe-area-inset-bottom, 0px)));
    transition: transform 0.8s var(--ease);
  }
  .quick-contact.is-shown { transform: none; }
  .quick-contact .btn { flex: 1 1 0; padding: 15px 14px; font-size: 0.9rem; box-shadow: none; white-space: nowrap; }
  .quick-contact .btn--ghost { background: transparent; border-color: transparent; }
  .quick-contact svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .page,
  .page--contact { padding-left: 10px; padding-right: 10px; }
  .page-inner,
  .page--hero .page-inner,
  .page--wide .page-inner,
  .page--contact .page-inner { padding: 36px 22px 32px; border-radius: 36px; }

  .signature { font-size: 2.3rem; }
  .eyebrow { margin-bottom: 22px; letter-spacing: 0.24em; }
  .display { font-size: 2.45rem; margin-bottom: 24px; }
  .title { font-size: 2.05rem; margin-bottom: 26px; }
  .section-label { margin-bottom: 20px; }
  .lead { margin-bottom: 30px; }
  .actions .btn { flex: 1 1 auto; }

  .values,
  .steps,
  .infos,
  .contact-list,
  .contact-form { grid-template-columns: 1fr; }
  .values { gap: 20px; margin-top: 34px; }
  .values li { padding: 0 0 0 30px; }
  .values li::before { top: 9px; }

  /* Accompagnements : liste compacte, picto à gauche */
  .cards { grid-template-columns: 1fr; gap: 0; }
  .card {
    display: grid; grid-template-columns: 50px minmax(0, 1fr); column-gap: 18px;
    padding: 22px 0; border-radius: 0;
    background: none; border: 0; border-top: 1px solid var(--line);
  }
  .card:first-child { border-top: 0; padding-top: 4px; }
  .card .ring-icon { grid-row: span 2; align-self: start; width: 50px; height: 50px; margin: 2px 0 0; }
  .card h3 { font-size: 1.2rem; margin-bottom: 6px; }

  .steps { gap: 26px; margin-bottom: 44px; }
  .steps li { gap: 18px; }
  .step-num { width: 44px; height: 44px; font-size: 1.2rem; }
  .info { padding: 22px 22px 20px; border-radius: 28px; }

  .contact-list { gap: 18px; margin-bottom: 30px; }
  .contact-list a { overflow-wrap: anywhere; }
  .contact-form { padding: 24px 16px 20px; border-radius: 30px; }
  .field input,
  .field textarea { font-size: 16px; } /* évite le zoom automatique d’iOS */
  .contact-form .btn { justify-self: stretch; }
  .site-footer { flex-direction: column; align-items: center; text-align: center; border-radius: 28px; padding: 22px 20px; }

  .portrait { width: 126px; margin-bottom: 34px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-name { font-size: 1.7rem; }
}

@media (max-height: 760px) and (min-width: 1200px) {
  .scroll-badge { display: none; }
}

/* --------------------------------------------------------------------------
   Mouvement réduit
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal,
  .js .split .w { opacity: 1; filter: none; transform: none; transition: none; }
  .quick-contact { transition: none; }
  .blob,
  .scroll-badge svg,
  .scroll-badge-dot { animation: none; }
}

/* --------------------------------------------------------------------------
   Page « Mentions légales & vie privée »
   -------------------------------------------------------------------------- */

.legal-page { min-height: 100vh; min-height: 100svh; }
.legal-header {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: calc(22px + env(safe-area-inset-top, 0px)) var(--gutter) 22px;
}
.legal {
  position: relative; z-index: 2;
  max-width: 680px; margin: 0 auto;
  padding: clamp(24px, 6vh, 60px) clamp(16px, 5vw, 40px) 40px;
}
.legal .title { margin-bottom: 18px; }
.legal-updated { margin: 0 0 40px; font-size: 0.85rem; color: var(--ink-soft); }
.legal section { padding: 30px 0 8px; border-top: 1px solid var(--line); }
.legal h2 {
  margin: 0 0 14px;
  font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 400;
  font-size: 1.45rem; line-height: 1.25; color: var(--burgundy);
}
.legal h3 { margin: 22px 0 6px; font-size: 1rem; font-weight: 700; }
.legal p,
.legal li { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.75; overflow-wrap: anywhere; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 1.2em; }
.legal a { color: var(--burgundy); }
.legal strong { color: var(--ink); }
.legal .todo { padding: 1px 8px; border-radius: 999px; background: rgba(227, 160, 128, 0.28); color: var(--burgundy); font-weight: 700; }
.legal-footer { max-width: 760px; margin: 30px auto calc(30px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 640px) {
  .legal-footer { margin-left: 16px; margin-right: 16px; flex-direction: column; align-items: center; text-align: center; border-radius: 28px; }
}
