/* ═══════════════════════════════════════════════════════════
   TC-SITE — template one-page hyper léger
   Personnalisation : tout passe par les variables ci-dessous.
   ═══════════════════════════════════════════════════════════ */

/* ── Polices auto-hébergées (latin, variables) + fallback métrique anti-CLS ── */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
}
@font-face {
  font-family: "MuseoModerno";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../fonts/museomoderno-latin.woff2") format("woff2");
}
/* Arial recalibré aux métriques de chaque police : le texte s'affiche
   immédiatement à la bonne taille, le swap se fait sans décalage */
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial");
  ascent-override: 103.31%;
  descent-override: 29.07%;
  line-gap-override: 0%;
  size-adjust: 103.19%;
}
@font-face {
  font-family: "MuseoModerno Fallback";
  src: local("Arial");
  ascent-override: 104.60%;
  descent-override: 40.65%;
  line-gap-override: 0%;
  size-adjust: 109.47%;
}

:root {
  /* Palette chaleureuse — corail / crème / brun */
  --accent:       #0f9d6b;
  --accent-dark:  #0b7d54;
  --accent-soft:  #0f9d6b1f;
  --cream:        #d7ece0;
  --cream-soft:   #eef7f2;
  --bg:           #ffffff;
  --surface:      #ffffff;
  --ink:          #0b1f2a;
  --ink-soft:     #23404c;
  --muted:        #63796f;
  --line:         #dfeae4;
  --line-cool:    #e5e7eb;
  --sand:         #9fd3bb;
  --ink-lift:     #163241;

  /* Typographie */
  --font-body:    "Manrope", "Manrope Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "MuseoModerno", "MuseoModerno Fallback", var(--font-body);

  /* Rythme */
  --radius:       10px;
  --radius-sm:    8px;
  --shadow:       none;
  --shadow-lift:  0 6px 18px rgba(0, 0, 35, .07);
  --ease-smooth:  cubic-bezier(.4, 0, .2, 1);
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  interpolate-size: allow-keywords; /* accordéons FAQ fluides (navigateurs récents) */
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
  border-radius: 4px;
}

/* ── Système d'icônes (sprite <symbol>/<use>) ─────────────── */
.icon {
  --ic2: var(--accent); /* couleur du détail bichrome */
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-sm { width: 15px; height: 15px; stroke-width: 2.5; --ic2: currentColor; }

.container { width: min(920px, 100% - 3rem); margin-inline: auto; }
.container-wide { width: min(1180px, 100% - 3rem); }
.container-narrow { max-width: 720px; }

/* ── Titres ───────────────────────────────────────────────── */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 3.75rem); font-weight: 700; line-height: 1.25; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.25rem); line-height: 1.15; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; font-weight: 500; line-height: 1.35; color: var(--ink); margin-bottom: .5rem; }

.accent { color: var(--accent); }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}

.lead {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 36em;
  margin-top: 1.3rem;
}

/* ── Boutons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  font: 600 .8125rem/1.3 var(--font-body);
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .2s var(--ease-smooth), box-shadow .2s var(--ease-smooth), background-color .2s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-cool);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); transform: translateY(-2px); }
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: var(--ink-lift); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: .75rem; }
.btn-block { width: 100%; justify-content: center; }

.btn .arrow { transition: transform .25s var(--ease-smooth); }
.btn:hover .arrow { transform: translateX(5px); }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 10px;
  background: var(--accent);
  position: relative;
}
/* croix d'officine, en mask pour rester nette a toute taille */
.brand-mark::after {
  content: ""; position: absolute; inset: 6px;
  background: var(--cream-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h6v7h7v6h-7v7H9v-7H2V9h7z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h6v7h7v6h-7v7H9v-7H2V9h7z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  white-space: nowrap;
  color: var(--ink);
}
.brand-name em { font-style: normal; color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  font-weight: 500;
  font-size: .95rem;
}
.nav-links a:not(.btn) { position: relative; padding-block: .3em; }
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s var(--ease-smooth);
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 3rem;
  padding-top: 9.5rem;
  padding-bottom: 3rem;
  min-height: 92vh;
}

/* Visuel hero : image HD découpée dans une forme de marque (masque SVG) */
.hero-visual {
  position: relative;
  min-height: 440px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-photo {
  width: min(100%, 440px);
  height: auto;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 458 555'%3E%3Crect x='0' y='110' width='300' height='445' rx='150' fill='%23fff'/%3E%3Crect x='322' y='0' width='136' height='330' rx='68' fill='%23fff'/%3E%3Ccircle cx='390' cy='470' r='68' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 458 555'%3E%3Crect x='0' y='110' width='300' height='445' rx='150' fill='%23fff'/%3E%3Crect x='322' y='0' width='136' height='330' rx='68' fill='%23fff'/%3E%3Ccircle cx='390' cy='470' r='68' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: floatY 9s ease-in-out infinite;
}
.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(0, 0, 35, .06);
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.hero-card .dot {
  position: relative;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.hero-card .dot::after {
  /* halo pulsant en transform/opacity uniquement (compositeur GPU) */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ringPulse 2.4s ease-out infinite;
}
.hero-card .dot-cream { background: var(--sand); }
@keyframes ringPulse {
  0%        { transform: scale(1); opacity: .4; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}

.float-1 { top: 2%; left: -4%;  animation: floatY 6s   ease-in-out infinite; z-index: 2; }
.float-2 { bottom: -3%; right: -5%; animation: floatY 7.5s ease-in-out infinite reverse; z-index: 2; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 700px;
  margin-top: .5rem;
}
.hero-stats li {
  background: var(--surface);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
}
.hero-stats strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .2rem;
}
.hero-stats strong::after { content: "+"; color: var(--accent); }
.hero-stats li:last-child strong::after { content: ""; }
.hero-stats span { font-size: .82rem; line-height: 1.4; display: block; color: var(--ink-soft); }

/* Flèche de scroll rebondissante (bas du hero) */
.scroll-down {
  grid-column: 1 / -1;
  justify-self: end;
  margin-top: 1.5rem;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  color: var(--accent);
  animation: bounceDown 1.6s infinite;
}
.scroll-down .icon { rotate: 90deg; width: 22px; height: 22px; --ic2: currentColor; }
@keyframes bounceDown {
  0%, 100% { transform: translateY(-22%); animation-timing-function: cubic-bezier(.8, 0, 1, 1); }
  50%      { transform: none; animation-timing-function: cubic-bezier(0, 0, .2, 1); }
}

/* ── Sections ─────────────────────────────────────────────── */
.section { padding-block: clamp(5rem, 11vw, 9.5rem); }
.section-band.section { padding-block: 6rem 4.5rem; }
#contact.section { padding-block: clamp(4rem, 7vw, 6rem) clamp(5rem, 9vw, 8rem); }
/* Fonds de section : images dithérées dont le fondu au blanc est intégré
   aux bords — la section fond dans la page sans couture ni bande CSS */
.section-cream {
  background: var(--bg) url("../images/bg-wash.webp") center / 100% 100% no-repeat;
}
.section-band {
  position: relative;
  background: var(--bg) url("../images/bg-band.webp") center / 100% 100% no-repeat;
}

.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Cartes : filet fin, petit rayon, pas d'ombre au repos ── */
.card {
  background: var(--surface);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform .25s var(--ease-smooth), box-shadow .25s var(--ease-smooth), border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #d9dbe0; }

/* ── Atouts : blocs nus centrés, sans carte ───────────────── */
.atout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: .75rem;
}
.atout .card-icon { margin-inline: auto; }
.atout h3 { font-size: 1.05rem; font-weight: 700; }
.atout p { font-size: .875rem; font-weight: 500; line-height: 1.55; color: var(--ink-soft); margin-top: .35rem; }

/* Icône nue, sans pastille : posée directement sur la carte */
.card-icon {
  display: block;
  margin-bottom: 1rem;
  color: var(--ink);
}
.card-icon .icon {
  width: 40px;
  height: 40px;
  stroke-width: 1.7;
}
.card p { font-size: .9rem; line-height: 1.55; }
.card h3 { font-size: 1.05rem; font-weight: 600; }

/* ── Situations ───────────────────────────────────────────── */
.situation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  font-size: .875rem;
  transition: transform .25s var(--ease-smooth), box-shadow .25s var(--ease-smooth), border-color .2s;
}
.situation:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #d9dbe0; }
.situation .card-icon { margin-bottom: .9rem; }
.situation h3 { font-size: 1.05rem; font-weight: 600; }

/* ── Illustrations : tracés qui se dessinent au scroll ────── */
.draw-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .9s ease-out .35s;
}
.draw-slow { transition-duration: 1.5s; transition-timing-function: ease-in-out; }
.reveal.visible .draw-path,
.visible .draw-path { stroke-dashoffset: 0; }

.underline-marker { position: relative; display: inline-block; }
.underline-marker svg {
  position: absolute;
  left: 0; bottom: -.08em;
  width: 100%; height: .16em;
  overflow: visible;
}

/* Circuit mobile : tracé à angles arrondis + nœuds + point de données (affiché < 960px) */
.pipe-mobile { display: none; }
.pipe-mobile .trace {
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linecap: round;
}
.pipe-mobile .pipe-guide {
  stroke: var(--line);
  stroke-width: 2;
  stroke-dasharray: 4 6;
  stroke-linecap: round;
}
.pipe-mobile .pipe-stub path {
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
}
.pipe-mobile .pipe-stub circle { fill: var(--accent); }
.pipe-mobile .pipe-stub,
.pipe-mobile .pipe-end {
  opacity: 0;
  transition: opacity .5s ease-out 1.4s;
}
.pipe-mobile .pipe-end {
  stroke: var(--accent);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pipe-mobile .pipe-node { opacity: 0; transition: opacity .45s ease-out; }
.pipe-mobile .pipe-node .halo { fill: var(--accent-soft); }
.pipe-mobile .pipe-node .in { fill: var(--accent); }
.pipe-mobile .pipe-node text {
  fill: #fff;
  font: 700 14px var(--font-body);
  text-anchor: middle;
  dominant-baseline: central;
}
.pipe-mobile .data-dot {
  fill: var(--accent);
  stroke: #fff;
  stroke-width: 2;
  opacity: 0;
  transition: opacity .4s ease-out 2s;
}
.pipe-mobile .pipe-node:nth-of-type(1) { transition-delay: .25s; }
.pipe-mobile .pipe-node:nth-of-type(2) { transition-delay: .65s; }
.pipe-mobile .pipe-node:nth-of-type(3) { transition-delay: 1.05s; }
.pipe-mobile .pipe-node:nth-of-type(4) { transition-delay: 1.45s; }
.pipe-mobile.visible .pipe-node,
.pipe-mobile.visible .pipe-stub,
.pipe-mobile.visible .pipe-end,
.pipe-mobile.visible .data-dot { opacity: 1; }

.steps-wrap { position: relative; }
.steps-line {
  position: absolute;
  top: -3.4rem; left: 0;
  width: 100%; height: 86px;
  z-index: 0;
  pointer-events: none;
}
/* couleurs pilotées ici (le CSS prime sur les attributs SVG) :
   la ligne suit la palette :root lors d'une duplication */
.steps-line path { stroke: var(--line-cool); }
.steps-line .draw-path { stroke: var(--accent); }

/* ── Processus ────────────────────────────────────────────── */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  margin-top: 4.2rem;
}
.step {
  position: relative;
  z-index: 1;
  padding: 2.2rem 1.25rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  transition: transform .25s var(--ease-smooth), box-shadow .25s var(--ease-smooth);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.step-num {
  position: absolute;
  top: -1rem; left: 50%;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  scale: 0;
  transition: scale .45s cubic-bezier(.34, 1.56, .64, 1);
}
.step.visible .step-num { scale: 1; }

/* Chorégraphie : chaque étape s'active quand le trait l'atteint
   (tracé 1.5s ease-in-out → passages à ~0.35 / 0.7 / 1.05 / 1.4 s) */
.steps .step:nth-child(1) { transition-delay: .35s; }
.steps .step:nth-child(2) { transition-delay: .7s; }
.steps .step:nth-child(3) { transition-delay: 1.05s; }
.steps .step:nth-child(4) { transition-delay: 1.4s; }
.steps .step:nth-child(1) .step-num { transition-delay: .5s; }
.steps .step:nth-child(2) .step-num { transition-delay: .85s; }
.steps .step:nth-child(3) .step-num { transition-delay: 1.2s; }
.steps .step:nth-child(4) .step-num { transition-delay: 1.55s; }
.step { text-align: center; }
.step h3 { font-size: 1.05rem; font-weight: 600; }
.step p { font-size: .875rem; line-height: 1.55; }

/* ── Offres ───────────────────────────────────────────────── */
.pricing-grid { align-items: stretch; }
.pricing { display: flex; flex-direction: column; position: relative; }
.pricing-featured { border-color: var(--accent); }
.pricing-featured:hover { border-color: var(--accent); }
.badge {
  position: absolute;
  top: -0.85rem; left: 50%;
  translate: -50% 0;
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .05em;
  padding: .35em 1em;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing h3 { font-size: 1.05rem; font-weight: 600; }
.price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: .5rem;
}
.price-note { font-size: .8rem; color: var(--muted); margin-bottom: 1.3rem; }
.features { flex: 1; margin-bottom: 1.6rem; display: grid; gap: .6rem; }
.features li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .875rem;
}
.features li::before {
  content: "";
  position: absolute;
  left: 0; top: .2em;
  width: 14px; height: 14px;
  background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── Témoignages ──────────────────────────────────────────── */
.quote {
  background: var(--surface);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: transform .25s var(--ease-smooth), box-shadow .25s var(--ease-smooth);
}
.quote:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.quote blockquote { font-size: .9rem; line-height: 1.6; color: var(--ink-soft); }
.quote figcaption strong { display: block; font-size: .9rem; color: var(--ink); }
.quote figcaption span { font-size: .8rem; color: var(--muted); }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list { display: grid; gap: .9rem; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .25s;
}
.faq-list details:hover { border-color: #d9dbe0; }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 3rem 1.1rem 1.4rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  transition: color .25s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 1.4rem; top: 50%;
  translate: 0 -50%;
  width: 16px; height: 16px;
  background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: rotate .35s var(--ease-smooth);
}
.faq-list details[open] summary::after { rotate: 45deg; }
.faq-list details p { padding: 0 1.4rem 1.3rem; font-size: .9rem; color: var(--muted); }
.faq-list details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .4s var(--ease-smooth), content-visibility .4s allow-discrete;
}
.faq-list details[open]::details-content { block-size: auto; }

/* ── Contact ──────────────────────────────────────────────── */
.contact-form { margin-top: 2.4rem; display: grid; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.contact-form label {
  display: grid;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: .95rem;
  font-weight: 400;
  color: var(--ink);
  padding: .8em 1em;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color .25s, box-shadow .25s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form .btn { justify-self: start; }
.form-status { font-weight: 700; color: var(--accent); min-height: 1.5em; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: .9rem;
  color: var(--muted);
}
.footer-inner nav { display: flex; gap: 1.5rem; font-weight: 600; }
.footer-inner nav a:hover { color: var(--accent); }

/* ── Révélations au scroll ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease-out, transform .8s ease-out;
}
.reveal.visible { opacity: 1; transform: none; }
/* décalages en cascade */
.d-1 { transition-delay: .08s; }
.d-2 { transition-delay: .16s; }
.d-3 { transition-delay: .24s; }
.d-4 { transition-delay: .32s; }

/* ── Accessibilité : mouvement réduit ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .step-num { scale: 1; }
  .draw-path { stroke-dashoffset: 0; }
  .pipe-mobile .data-dot { display: none; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .steps-line { display: none; }
  .pipe-mobile {
    display: block;
    width: min(310px, 82%);
    margin: 2.2rem auto .8rem;
  }
  .steps .step,
  .steps .step .step-num { transition-delay: 0s; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .step::before { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 7.5rem; }
  .hero-visual { min-height: 300px; }
}

@media (max-width: 640px) {
  .grid-2, .grid-4, .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: .8rem; }

  /* calibration typo mobile */
  h1 { font-size: 2.25rem; line-height: 1.15; }
  h2 { font-size: 1.5rem; }
  .lead { font-size: .95rem; }

  /* hero mobile : vignette masquée compacte au-dessus du titre */
  .hero-visual {
    order: -1;
    min-height: auto;
    margin-bottom: .5rem;
  }
  .hero-photo { width: 180px; animation: none; }
  .hero-card { display: none; }

  /* menu mobile */
  .site-header .brand { position: relative; z-index: 60; }
  .nav-toggle {
    display: grid;
    gap: 6px;
    background: none;
    border: 0;
    padding: .5rem;
    cursor: pointer;
    position: relative;
    z-index: 60;
  }
  .nav-toggle span {
    width: 26px; height: 3px;
    border-radius: 3px;
    background: var(--ink);
    transition: transform .35s var(--ease-smooth), opacity .25s;
  }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-4.5px) rotate(-45deg); }

  /* Menu mobile : feuille déroulante depuis le haut, fondu 300ms */
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4.2rem 0 0;
    font-size: .95rem;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(0, 0, 35, .10);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease-smooth);
    z-index: 55;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a:not(.btn) {
    display: block;
    padding: .8rem 1.5rem;
    font-weight: 700;
    color: var(--ink);
  }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn {
    display: flex;
    width: 100%;
    margin-top: .6rem;
    border-radius: 0;
    justify-content: flex-start;
    padding: 1rem 1.5rem;
    font-size: .875rem;
  }
}
