/* Markatik — design "cabinet" : fond chaud, accent terracotta (volontairement hors palette indigo/violet "IA générique"), hiérarchie avant effet */
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-variable.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --accent: #b1502e;
  --accent-dark: #8f3d21;
  --accent-soft: #fbeae1;
  --ink: #201a17;
  --muted: #5c534d;
  --faint: #8a8078;
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-alt: #f4f3ef;
  --border: #e7e0d7;
  --ok: #147a5a;
  --danger: #b3261e;
  --danger-soft: #fbe9e7;
  --radius: 12px;
  --font-display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-card: 0 1px 2px rgba(32, 26, 23, 0.04), 0 3px 10px rgba(32, 26, 23, 0.05);
  --shadow-lift: 0 8px 24px rgba(32, 26, 23, 0.09), 0 2px 6px rgba(32, 26, 23, 0.06);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Transition "volet" entre les pages (API View Transitions, navigation classique
   multi-pages) : la page suivante glisse par-dessus l'ancienne au lieu d'un
   changement instantané. Dégradation naturelle et invisible (navigation normale,
   sans aucun script) sur les navigateurs qui ne supportent pas encore les view
   transitions cross-document. */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: volet-sortie 0.5s var(--ease-in-out) both;
}
::view-transition-new(root) {
  animation: volet-entree 0.5s var(--ease-out) both;
}
@keyframes volet-sortie {
  to { opacity: 0.55; transform: scale(0.97) translateX(-3%); }
}
@keyframes volet-entree {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.65; font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* Accessibilité : lien d'évitement + anneau de focus visible partout */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; transition: top 0.18s var(--ease-out);
}
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, .opt:focus-visible, summary:focus-visible {
  outline: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); border-radius: 6px;
}

h1, h2, h3, .logo, .kicker, .price, .result-hero .big, .result-grid .cell .n { font-family: var(--font-display); }
h1, h2, h3 { text-wrap: balance; }
.lead, article.post p { text-wrap: pretty; }

/* Header */
.header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-in { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.4px; color: var(--ink); text-decoration: none; }
.logo b { color: var(--accent); }
.nav { display: flex; gap: 16px; align-items: center; }
.nav a:not(.btn) {
  color: var(--muted); font-size: 0.92rem; font-weight: 500;
  padding: 6px 10px; margin: -6px -10px; border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav a.active:not(.btn) { color: var(--accent); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .nav a:not(.btn):hover { color: var(--ink); background: var(--accent-soft); text-decoration: none; }
}
.btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 600; font-size: 0.95rem;
  padding: 11px 22px; border-radius: 8px; border: none; cursor: pointer; text-decoration: none;
  transition: background-color 0.18s ease, transform 0.12s var(--ease-out), box-shadow 0.18s ease; }
.btn:hover { background: var(--accent-dark); text-decoration: none; box-shadow: 0 4px 14px rgba(177, 80, 46, 0.28); }
.btn:active { transform: scale(0.97); box-shadow: none; transition-duration: 0.08s; }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); box-shadow: none; }
.btn.big { padding: 14px 28px; font-size: 1.02rem; }

/* Icône du menu mobile : 3 lignes qui se transforment en croix, plus vivant qu'un glyphe "☰" statique */
.burger {
  display: none; background: none; border: none; cursor: pointer; color: var(--ink);
  padding: 9px; margin: -9px; border-radius: 8px;
}
@media (hover: hover) and (pointer: fine) {
  .burger:hover { background: var(--accent-soft); }
}
.burger-box { display: block; width: 20px; height: 14px; position: relative; }
.burger-line {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.28s var(--ease-out), opacity 0.2s ease, top 0.2s var(--ease-out);
}
.burger-line:nth-child(1) { top: 0; }
.burger-line:nth-child(2) { top: 6px; }
.burger-line:nth-child(3) { top: 12px; }
.burger[aria-expanded="true"] .burger-line:nth-child(1) { top: 6px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-line:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger-line:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Fond assombri derrière le menu mobile ouvert, injecté par site.js */
.nav-backdrop {
  position: fixed; inset: 64px 0 0 0; background: rgba(32, 26, 23, 0.32);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 90;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .nav-backdrop { transition: none; } }

/* Actions flottantes mobile — CTA brief toujours accessible + retour en haut,
   injectées par site.js. Cachées par défaut (sinon visibles en bas de page sur
   desktop, hors media query) ; n'apparaissent qu'après le hero sur mobile. */
.sticky-cta-bar, .back-to-top { display: none; }
@media (max-width: 900px) {
  .sticky-cta-bar {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 105;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(250, 247, 242, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border); box-shadow: 0 -6px 18px rgba(32, 26, 23, 0.1);
    transform: translateY(110%); transition: transform 0.25s var(--ease-out);
  }
  .sticky-cta-bar.show { transform: none; }
  .sticky-cta-bar .btn { display: block; width: 100%; text-align: center; }

  .back-to-top {
    position: fixed; right: 16px; z-index: 104;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    width: 42px; height: 42px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(177, 80, 46, 0.2); box-shadow: 0 4px 16px rgba(32, 26, 23, 0.16);
    color: var(--accent-dark); cursor: pointer; padding: 0;
    opacity: 0; transform: translateY(10px) scale(0.9); pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s var(--ease-out), background-color 0.15s ease;
  }
  .back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
  .back-to-top:active { transform: scale(0.9); }
  /* Sans barre CTA (page contact.html), le bouton retour-en-haut redescend près du bord */
  body:not(:has(.sticky-cta-bar)) .back-to-top { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .sticky-cta-bar, .back-to-top { transition: none; }
}

/* Layout */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; margin: 0 auto; }
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
.center { text-align: center; }
.kicker { display: inline-block; color: var(--accent); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 10px; }
h1 { font-size: clamp(1.9rem, 6.2vw, 4.6rem); line-height: 1.08; letter-spacing: -1px; font-weight: 800; }
.hero h1 { font-size: clamp(2.1rem, 7vw, 5.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; letter-spacing: -0.6px; font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
p.muted, .muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 0.9rem; }

/* Hero — dégradé terracotta animé + formes floues lumineuses (repris du wireframe
   claude.ai/design validé par Gregory), une seule famille de teinte (jamais de
   dégradé multicolore façon "SaaS IA générique") ; texte blanc sur fond coloré. */
.hero {
  position: relative; overflow: hidden; padding: 88px 0 76px; color: #fff;
  background: linear-gradient(150deg, #c96a3f, var(--accent) 45%, var(--accent-dark));
  background-size: 220% 220%; animation: heroGrad 9s ease infinite;
}
.hero::after {
  content: ""; position: absolute; inset: -20%; pointer-events: none; mix-blend-mode: overlay;
  background: conic-gradient(from 0deg, rgba(255,255,255,.16), transparent 25%, transparent 50%, rgba(255,255,255,.14) 65%, transparent 85%);
  animation: heroSpin 22s linear infinite;
}
@keyframes heroGrad { 0%, 100% { background-position: 0% 30%; } 50% { background-position: 100% 70%; } }
@keyframes heroSpin { to { transform: rotate(360deg); } }
.hero .wrap { position: relative; z-index: 1; }
.hero .kicker { color: #ffe4d3; }
.hero .lead { margin: 20px 0 30px; color: rgba(255, 255, 255, 0.86); }

/* Formes floues lumineuses — même famille terracotta que le reste du site, juste
   traitées en flou/glow plutôt qu'en contours fins (accord explicite de Gregory
   pour ce hero, malgré le risque de ressembler à un pattern SaaS générique). */
.hero-blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(46px); animation: blobFloat 10s ease-in-out infinite; }
.blob-1 { width: 320px; height: 320px; top: -110px; right: -90px; opacity: 0.65; background: radial-gradient(circle, rgba(255,255,255,.6) 0%, transparent 70%); }
.blob-2 { width: 260px; height: 260px; bottom: -110px; left: -80px; opacity: 0.7; animation-delay: -4s; background: radial-gradient(circle, var(--accent-dark) 0%, transparent 70%); }
.blob-3 { width: 180px; height: 180px; top: 30%; left: -40px; opacity: 0.55; animation-delay: -2s; background: radial-gradient(circle, #ffd9b8 0%, transparent 70%); }
@keyframes blobFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-18px, 22px) scale(1.12); } }
.hero-mark { position: absolute; right: -40px; bottom: -40px; width: 220px; height: 220px; opacity: 0.14; transform: rotate(8deg); pointer-events: none; }
.scroll-cue { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); color: rgba(255,255,255,.75); animation: scrollBob 1.8s ease-in-out infinite; }
@keyframes scrollBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@media (max-width: 720px) { .blob-2, .blob-3 { display: none; } }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 16px; font-size: 0.88rem; color: var(--faint); }
.hero .btn { background: #fff; color: var(--accent-dark); }
.hero .btn:hover { background: #fff; box-shadow: 0 12px 30px rgba(20, 8, 4, 0.3); }
.hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
@media (hover: hover) and (pointer: fine) {
  .hero .btn.ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.12); box-shadow: none; }
}

/* Étiquette d'annonce en haut du hero — verre translucide adapté au fond coloré */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.16); border-left: 3px solid #fff; border-radius: 0 8px 8px 0;
  padding: 9px 18px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.4px;
  text-transform: uppercase; color: #fff;
  transition: background-color 0.15s ease, padding-left 0.15s ease;
}
.hero-badge-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  .hero-badge:hover { background: rgba(255, 255, 255, 0.26); padding-left: 22px; text-decoration: none; }
}

/* Bandeau de repères de confiance — tuiles en verre, chiffres comptés au chargement (site.js) */
.hero-trust { display: flex; align-items: center; gap: 10px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust > div {
  display: flex; flex-direction: column; flex: 1; min-width: 92px; text-align: left;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 14px;
  padding: 12px 14px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-trust strong { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -0.5px; line-height: 1.15; color: #fff; font-variant-numeric: tabular-nums; }
.hero-trust span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.78); font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; margin-top: 2px; }
.hero-trust-sep { display: none; }

/* Entrée animée du hero au chargement de page */
@keyframes heroUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-badge, .hero .kicker, .hero .lead, .hero-cta, .hero-note, .hero-trust {
  animation: heroUp 0.6s var(--ease-out) both;
}
.hero-badge { animation-delay: 0ms; }
.hero .kicker { animation-delay: 40ms; }
.hero .lead { animation-delay: 160ms; }
.hero-cta { animation-delay: 220ms; }
.hero-note { animation-delay: 280ms; }
.hero-trust { animation-delay: 280ms; }

/* Titre du hero révélé mot par mot (le texte réel reste dans le HTML — site.js ne
   fait qu'enrober chaque mot d'un span, jamais de réécriture destructive : sans JS
   ou avec prefers-reduced-motion, le titre s'affiche normalement, entier). */
.hero h1 .word { display: inline-block; opacity: 0; transform: translateY(0.4em); animation: wordIn 0.7s var(--ease-out) forwards; }
@keyframes wordIn { to { opacity: 1; transform: none; } }

/* Cards & grids */
.grid { display: grid; gap: 20px; margin-top: 36px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out), border-color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); border-color: var(--accent-soft); }
}
.card h3 { margin-top: 4px; }
.card ul { padding: 0; margin-top: 10px; list-style: none; }
.card ul li { padding: 4px 0 4px 24px; position: relative; font-size: 0.94rem; color: var(--muted); }
.card ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.card > p:last-child { margin-top: auto; padding-top: 16px; }
.card.accent { border-top: 3px solid var(--accent); }
.card.featured {
  border-color: var(--accent); box-shadow: var(--shadow-lift); transform: translateY(-6px);
}
.card.featured:hover { transform: translateY(-9px); }
@media (max-width: 900px) { .card.featured { transform: none; } .card.featured:hover { transform: translateY(-2px); } }
.icon {
  width: 50px; height: 50px; border-radius: 14px;
  background: linear-gradient(115deg, var(--accent-soft), #fff, var(--accent-soft));
  background-size: 220% 220%; animation: iconShimmer 5s ease-in-out infinite;
  color: var(--accent-dark); border: 1px solid var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  margin-bottom: 14px; box-shadow: 0 3px 10px rgba(177, 80, 46, 0.1);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
@keyframes iconShimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (hover: hover) and (pointer: fine) {
  .card:hover .icon { transform: scale(1.08) rotate(-4deg); box-shadow: 0 6px 18px rgba(177, 80, 46, 0.18); }
}

/* Cartes "offres" en fond plein terracotta — contraste fort face aux cartes
   blanches du reste du site (contraste texte blanc vérifié ≈ 5.2:1, conforme WCAG AA) */
.card.solid {
  background: linear-gradient(150deg, var(--accent), var(--accent-dark));
  border: none; color: #fff;
}
.card.solid h3 { color: #fff; }
.card.solid p.muted { color: rgba(255, 255, 255, 0.94); }
.card.solid ul li { color: rgba(255, 255, 255, 0.94); }
.card.solid ul li::before { color: #fff; }
.card.solid .icon {
  background: #fff; color: var(--accent-dark); border: none; animation: none;
  box-shadow: 0 4px 14px rgba(20, 8, 4, 0.2);
}
.card.solid > p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.card.solid > p a:hover { opacity: 0.85; }
@media (hover: hover) and (pointer: fine) {
  .card.solid:hover { box-shadow: 0 16px 36px rgba(40, 16, 8, 0.3); }
  .card.solid:hover .icon { transform: scale(1.08) rotate(-4deg); box-shadow: 0 6px 18px rgba(20, 8, 4, 0.28); }
}

/* Pain list */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.pain { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; font-size: 0.95rem; color: var(--ink); box-shadow: var(--shadow-card); }
.pain b { color: var(--accent); }

/* Lignes avant/après (repris du wireframe) : le geste manuel barré → ce qui le remplace */
.pain-list { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; }
.pain-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px;
  font-size: 0.94rem; transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .pain-row:hover { transform: translateX(4px); box-shadow: var(--shadow-lift); }
}
.pain-row .x { color: var(--faint); text-decoration: line-through; white-space: nowrap; }
.pain-row .arrow { color: var(--accent); font-weight: 700; }
.pain-row b { color: var(--ink); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 18px; margin-top: 32px; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px 22px 74px;
  position: relative; box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--accent-soft); }
  /* .step.reveal.in (0-3-0) écraserait sinon la translation du survol (0-2-0) une fois révélé */
  .step.reveal.in:hover { transform: translateY(-4px); }
}
.step::before { counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 20px; width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(115deg, var(--accent-dark), var(--accent) 40%, #d97b52 50%, var(--accent) 60%, var(--accent-dark));
  background-size: 250% 250%; animation: stepShimmer 6s ease-in-out infinite;
  color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(177, 80, 46, 0.25);
  transition: transform 0.25s var(--ease-out); }
@keyframes stepShimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (hover: hover) and (pointer: fine) {
  .step:hover::before { transform: scale(1.1); }
}
.step { padding-left: 78px; }
.step h3 { margin-bottom: 4px; }
/* Entrée en glissement latéral (plutôt que le fondu générique) pour que la liste
   de méthode se lise comme une séquence qui se construit, pas une simple apparition */
.step.reveal { transform: translateX(-24px); }
.step.reveal.in { transform: none; }
.step .livrable { display: inline-block; margin-top: 10px; background: var(--accent-soft); color: var(--accent-dark);
  font-size: 0.82rem; font-weight: 600; padding: 4px 12px; border-radius: 99px; }

/* Pricing */
.price { font-size: 2.1rem; font-weight: 800; letter-spacing: -1px; margin: 8px 0 2px; }
.price small { font-size: 0.95rem; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.tag { display: inline-block; align-self: flex-start; background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 4px 12px; border-radius: 99px; margin-bottom: 10px; }

/* FAQ */
.faq { margin-top: 28px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 20px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; color: var(--accent); font-weight: 700; font-size: 1.2rem;
  transition: transform 0.2s var(--ease-out); transform-origin: center;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 16px; color: var(--muted); font-size: 0.96rem; }
@supports (transition-behavior: allow-discrete) {
  .faq details[open] p { opacity: 1; transition: opacity 0.2s var(--ease-out); }
  .faq details[open] p { @starting-style { opacity: 0; } }
}

/* CTA band — dégradé terracotta animé (même famille de teinte que le hero et le
   scintillement déjà utilisé sur les badges/icônes, pas une nouveauté de palette) */
.cta-band {
  background: linear-gradient(120deg, var(--accent), var(--accent-dark), var(--accent));
  background-size: 220% 220%; animation: ctaGradient 8s ease infinite;
  color: #fff; border-radius: 16px; padding: 48px 40px; text-align: center;
}
@keyframes ctaGradient { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 26px; }
.cta-band .btn { background: #fff; color: var(--accent-dark); }
@media (hover: hover) and (pointer: fine) {
  .cta-band .btn:hover { background: #fff; box-shadow: 0 10px 28px rgba(0,0,0,.25); }
}

/* Carte GEO sombre + liste animée (repris du wireframe) */
.geo-card {
  background: var(--ink); color: #fff; border-radius: 20px; padding: 26px 22px;
  position: relative; overflow: hidden;
}
.geo-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 20% 0%, rgba(177, 80, 46, 0.35), transparent 60%);
  animation: geoPulse 6s ease-in-out infinite;
}
@keyframes geoPulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
.geo-card .kicker { color: #e8a37f; position: relative; }
.geo-card p { position: relative; font-size: 1rem; line-height: 1.5; color: rgba(255,255,255,0.88); }
.geo-list { margin-top: 18px; display: flex; flex-direction: column; list-style: none; }
.geo-list li {
  font-size: 0.92rem; color: var(--muted); padding: 13px 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 10px; align-items: baseline;
}
.geo-list li b { color: var(--accent); font-family: var(--font-display); }

/* Stat "reçu de caisse" pour le teaser calculateur (repris du wireframe) */
.receipt {
  border: 1px solid var(--border); border-radius: 20px; padding: 30px 26px; text-align: center;
  background: linear-gradient(160deg, var(--accent-soft), #fff);
}
.receipt .n {
  font-family: var(--font-display); font-size: clamp(2rem, 6vw, 2.6rem); font-weight: 800;
  color: var(--accent-dark); font-variant-numeric: tabular-nums; letter-spacing: -0.5px;
}
.receipt p { color: var(--muted); font-size: 0.92rem; margin: 10px auto 20px; max-width: 46ch; }

/* Table */
table.compare { width: 100%; border-collapse: collapse; margin-top: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table.compare th { background: #f4f3ef; text-align: left; padding: 12px 16px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
table.compare td { padding: 12px 16px; border-top: 1px solid var(--border); font-size: 0.95rem; }

/* Forms */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-weight: 600; font-size: 0.88rem; margin: 14px 0 5px; }
/* font-size: 16px fixe (pas rem) — sous ce seuil, Safari iOS zoome automatiquement
   sur le champ au focus, ce qui casse l'expérience mobile */
input, select, textarea { width: 100%; padding: 11px 13px; border: 1px solid #cbd2dc; border-radius: 8px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
textarea { min-height: 90px; resize: vertical; }
.choices { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.choices label { font-weight: 400; display: flex; gap: 7px; align-items: center; margin: 4px 0; font-size: 0.94rem; }
.choices input { width: auto; }
.form-ok { display: none; text-align: center; padding: 30px 10px; }
.form-ok h3 { color: var(--ok); }

/* Blog */
.post-meta { color: var(--faint); font-size: 0.88rem; margin-bottom: 24px; }
article.post h2 { margin-top: 40px; }
article.post h3 { margin-top: 26px; }
article.post p { margin: 14px 0; }
article.post ul, article.post ol { margin: 14px 0 14px 24px; }
article.post li { margin: 6px 0; }
.answer-block { background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 20px 0; font-size: 1.02rem; }
@keyframes answerGlow {
  0% { box-shadow: 0 0 0 0 rgba(177, 80, 46, 0.22); }
  100% { box-shadow: 0 0 0 14px rgba(177, 80, 46, 0); }
}
.reveal.in .answer-block { animation: answerGlow 1s ease-out 0.2s; }

/* Breadcrumb */
.crumbs { font-size: 0.85rem; color: var(--faint); padding: 18px 0 0; }
.crumbs a { color: var(--faint); }

/* Calculateur */
.calc-grid { display: grid; gap: 14px; margin-top: 24px; }
.calc-row { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px;
  display: grid; grid-template-columns: 1fr 84px; column-gap: 18px; align-items: center; }
.calc-row label { margin: 0; font-weight: 600; font-size: 0.98rem; color: var(--ink); }
.calc-row .hint { grid-column: 1 / 2; font-size: 0.82rem; color: var(--faint); font-weight: 400; margin-top: 2px; }
.calc-row input[type="range"] { grid-column: 1 / 2; width: 100%; margin-top: 10px; accent-color: var(--accent); height: 4px; }
.calc-row .val { grid-row: 1 / 4; grid-column: 2; align-self: center; font-weight: 800; font-size: 1.15rem;
  text-align: right; color: var(--accent-dark); font-variant-numeric: tabular-nums; }
.result-hero { background: var(--ink); color: #fff; border-radius: 16px; padding: 34px 30px; margin-top: 30px; text-align: center; }
.result-hero .label-top { color: rgba(255,255,255,0.7); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.result-hero .big { font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 800; letter-spacing: -1.5px; margin: 6px 0; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.result-grid .cell { background: rgba(255,255,255,0.08); border-radius: 10px; padding: 18px 14px; }
.result-grid .cell .n { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
.result-grid .cell .l { font-size: 0.82rem; color: rgba(255,255,255,0.72); margin-top: 4px; line-height: 1.4; }
@media (max-width: 640px) { .result-grid { grid-template-columns: 1fr; } }

/* Assistant multi-étapes (brief) */
.wizard { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 34px; box-shadow: var(--shadow-lift); }
.wiz-progress { display: flex; gap: 8px; margin-bottom: 10px; }
.wiz-progress .seg { height: 6px; flex: 1; background: var(--border); border-radius: 99px; transition: background-color 0.2s var(--ease-out); }
.wiz-progress .seg.done { background: var(--accent); }
.wiz-count { font-size: 0.85rem; color: var(--faint); margin-bottom: 22px; }
.wiz-step { display: none; }
.wiz-step.active { display: block; animation: wizFade 0.22s var(--ease-out); }
@keyframes wizFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wiz-step h2 { font-size: 1.45rem; margin-bottom: 6px; }
.wiz-step .step-sub { color: var(--muted); font-size: 0.98rem; margin-bottom: 8px; }
.opt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.opt-cards.one-col { grid-template-columns: 1fr; }
.opt { border: 1.5px solid var(--border); border-radius: 10px; padding: 14px 16px; cursor: pointer; font-weight: 500;
  font-size: 0.96rem; transition: border-color 0.15s, background 0.15s, transform 0.1s ease; display: flex; gap: 12px; align-items: center; }
@media (hover: hover) and (pointer: fine) {
  .opt:hover { border-color: var(--accent); }
}
.opt:active { transform: scale(0.97); transition-duration: 0.08s; }
.opt.sel { border-color: var(--accent); background: var(--accent-soft); }
.opt .tick { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: transparent; }
.opt-cards[data-single="true"] .tick { border-radius: 50%; }
.opt.sel .tick { background: var(--accent); border-color: var(--accent); color: #fff; }
.wiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 12px; }
.wiz-err { color: var(--danger); font-size: 0.9rem; margin-top: 14px; min-height: 1.2em; }
.btn.plain { background: transparent; color: var(--muted); border: none; padding: 11px 8px; }
.btn.plain:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 640px) {
  .opt-cards { grid-template-columns: 1fr; } .wizard { padding: 22px; }
  /* Boutons du wizard empilés et pleine largeur sur mobile — plus faciles à
     atteindre au pouce que deux petits boutons côte à côte */
  .wiz-nav { flex-direction: column-reverse; align-items: stretch; gap: 12px; }
  .wiz-nav .btn { width: 100%; text-align: center; }
  .wiz-nav > span:empty { display: none; }
}

/* Footer */
.footer { background: #14161f; color: #a8adbb; margin-top: 40px; padding: 48px 0 30px; font-size: 0.9rem; }
.footer a { color: #cdd2de; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 10px; }
.footer ul { list-style: none; }
.footer li { margin: 6px 0; }
.footer .legal { border-top: 1px solid #2a2d3a; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .g3, .g4, .pains { grid-template-columns: repeat(2, 1fr); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
/* Le menu bascule en hamburger dès 900px : 7 liens + bouton débordaient du header
   entre 640px et 900px (bug confirmé : header-in scrollWidth > clientWidth). */
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface);
    flex-direction: column; align-items: stretch; padding: 10px 20px 22px; gap: 2px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lift); }
  .nav.open { display: flex; }
  @supports (transition-behavior: allow-discrete) {
    .nav {
      opacity: 0; transform: translateY(-6px);
      transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out), display 0.18s allow-discrete;
    }
    .nav.open { opacity: 1; transform: none; }
    .nav.open { @starting-style { opacity: 0; transform: translateY(-6px); } }
  }
  /* Liens plus grands, police du site, chacun sur sa propre ligne avec séparateur —
     un vrai menu qu'on lit, pas une liste compressée */
  .nav a:not(.btn) {
    font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink);
    padding: 15px 6px; margin: 0; border-radius: 0; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
  }
  .nav a:not(.btn)::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
    opacity: 0; transform: scale(0.4); transition: opacity 0.15s ease, transform 0.15s var(--ease-out);
  }
  .nav a.active:not(.btn)::before { opacity: 1; transform: none; }
  @media (hover: hover) and (pointer: fine) {
    .nav a:not(.btn):hover { background: var(--accent-soft); padding-left: 14px; }
  }
  .nav .btn { margin-top: 14px; text-align: center; }
  /* Entrée en cascade des liens à l'ouverture, un par un plutôt que le panneau qui apparaît d'un bloc */
  .nav a, .nav .btn { opacity: 0; transform: translateX(-10px); transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out); }
  .nav.open a, .nav.open .btn { opacity: 1; transform: none; }
  .nav.open a:nth-child(1) { transition-delay: 40ms; }
  .nav.open a:nth-child(2) { transition-delay: 75ms; }
  .nav.open a:nth-child(3) { transition-delay: 110ms; }
  .nav.open a:nth-child(4) { transition-delay: 145ms; }
  .nav.open a:nth-child(5) { transition-delay: 180ms; }
  .nav.open a:nth-child(6) { transition-delay: 215ms; }
  .nav.open .btn { transition-delay: 250ms; }
  /* Bouton menu en pilule flottante détachée du bord (inspiré d'un nav flottant vu par
     Gregory), adapté à nos couleurs (verre translucide crème/terracotta, pas de thème
     sombre) et à l'échelle mobile : juste le bouton, le logo reste dans le bandeau normal. */
  .burger {
    display: flex; align-items: center; justify-content: center;
    position: fixed; top: 14px; right: 16px; z-index: 110;
    width: 46px; height: 46px; padding: 0; margin: 0; border-radius: 999px;
    background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(177, 80, 46, 0.22);
    box-shadow: 0 4px 20px rgba(32, 26, 23, 0.16);
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s var(--ease-out);
  }
  .burger:active { transform: scale(0.94); }
  .burger[aria-expanded="true"] { background: rgba(255, 255, 255, 0.95); }
}
@media (max-width: 640px) {
  .g2, .g3, .g4, .pains, form .row { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .hero { padding: 60px 0 52px; }
  .footer .cols { grid-template-columns: 1fr; }
}

/* Animations d'apparition au défilement (injectées par site.js, dégradation propre si JS/prefers-reduced-motion) */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
/* Préserve le survol des cartes même une fois révélées (la spécificité l'emporte sur .reveal.in) */
@media (hover: hover) and (pointer: fine) {
  .card.reveal.in:hover { transform: translateY(-4px); }
}

/* Galerie en défilement horizontal (inspirée du carousel de témoignages dhero.studio,
   appliquée à nos vrais cas d'usage — pas de faux contenu). */
.scroll-gallery {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 4px 22px; margin: 30px -4px 0; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--accent-soft) transparent;
}
.scroll-gallery::-webkit-scrollbar { height: 6px; }
.scroll-gallery::-webkit-scrollbar-thumb { background: var(--accent-soft); border-radius: 99px; }
.scroll-gallery::-webkit-scrollbar-track { background: transparent; }
.scroll-gallery .card { flex: 0 0 280px; scroll-snap-align: start; }
.scroll-gallery-hint { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.85rem; color: var(--faint); }
.scroll-gallery-hint svg { width: 16px; height: 16px; animation: hintSlide 1.6s ease-in-out infinite; }
@keyframes hintSlide { 0%, 100% { transform: translateX(0); opacity: 0.5; } 50% { transform: translateX(6px); opacity: 1; } }
@media (min-width: 860px) {
  .scroll-gallery { overflow: visible; flex-wrap: wrap; }
  .scroll-gallery .card { flex: 1 1 calc(33.333% - 12px); }
  .scroll-gallery-hint { display: none; }
}
