/* =====================================================================
   LE BON ANGLE — Feuille de style unique
   ---------------------------------------------------------------------
   Mobile d'abord. Couleurs et typographie définies une seule fois
   ci-dessous (:root). Contrastes vérifiés WCAG AA :
   - --accent (#C76547) = 3,6:1 → décors et GRANDS textes uniquement
   - --accent-dark (#98452F) = 6,5:1 → boutons, liens, petits textes
   - --muted (#5E666E) = 5,3:1 → texte secondaire
   ===================================================================== */

/* ---------- Polices auto-hébergées (aucun appel à un service tiers) ---------- */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Palette Build RH (identique à l'ancien site) */
  --powder: #E7C2C0;        /* rose poudré : blocs, boutons (texte noir dessus) */
  --bg: #FFFFFF;            /* fond général */
  --surface: #FFFFFF;       /* cartes */
  --surface-2: #F8EFEE;     /* rose très clair : sections alternées */
  --ink: #171717;           /* noir */
  --muted: #5F5958;         /* texte secondaire (jamais sur le rose poudré) */
  --accent: #9B6B69;        /* rose foncé : décor et GRANDS textes uniquement (4,4:1) */
  --accent-dark: #7E5250;   /* rose foncé lisible : liens, petits textes (5,8:1) */
  --accent-darker: #171717;
  --accent-soft: #F8EFEE;
  --sage: #E7C2C0;
  --sage-light: #F8EFEE;
  --sage-dark: #7E5250;
  --border: #D8C8C6;        /* bordures */
  --field: #A8938F;         /* contour des champs (≥ 3:1) */
  --on-dark: #171717;
  --on-dark-muted: #171717;
  --accent-on-dark: #171717;

  /* Typographie */
  --font-title: "Poppins", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Rythme */
  --gutter: 1rem;
  --container: 1160px;
  --narrow: 760px;
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 8px;
  --radius-lg: 12px;
  --header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.8vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; }
a { color: var(--accent-dark); }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--powder); }

/* Un élément marqué « hidden » reste caché, quel que soit son style */
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; 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: 1rem; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 0.75rem 1rem; border-radius: var(--radius); font-weight: 700; }
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: var(--narrow); }
@media (min-width: 700px) { :root { --gutter: 2rem; } }

/* ---------- Textes utilitaires ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-title); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-dark); margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--powder); }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.55; color: var(--ink); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.text-link { color: var(--accent-dark); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.text-link:hover { color: var(--accent-darker); text-decoration-thickness: 2px; }
.arrow-link { font-weight: 700; color: var(--accent-dark); text-decoration: none; display: inline-flex; gap: 0.4rem; align-items: center; }
.arrow-link::after { content: "→"; transition: transform .2s ease; }
.arrow-link:hover { text-decoration: underline; text-underline-offset: 0.22em; }
.arrow-link:hover::after { transform: translateX(3px); }

/* ---------- Boutons (deux styles seulement) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.8rem 1.4rem;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center;
  border-radius: 999px; border: 2px solid var(--ink);
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--powder); color: var(--ink); }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn-row + .micro { margin-top: 1rem; }
.micro { font-size: 0.92rem; color: var(--muted); max-width: 34em; }

/* Sur fond sombre : mêmes styles, couleurs inversées */
.on-dark .btn-primary { background: #fff; color: var(--ink); }
.on-dark .btn-primary:hover { background: var(--ink); color: #fff; }

.on-dark .text-link, .on-dark .arrow-link { color: var(--on-dark); }
.on-dark :focus-visible { outline-color: var(--on-dark); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-family: var(--font-title); font-weight: 800; letter-spacing: 0.05em; font-size: 1rem; }
.logo-text { white-space: nowrap; }
.logo-mark { width: 18px; height: 18px; border-left: 4px solid var(--ink); border-bottom: 4px solid var(--ink); position: relative; flex-shrink: 0; }
.logo-mark::after { content: ""; position: absolute; width: 7px; height: 7px; right: -3px; top: -3px; background: var(--accent); border-radius: 50%; }
@media (forced-colors: active) { .logo-mark, .logo-mark::after { forced-color-adjust: none; } .btn, .card { border: 2px solid ButtonText; } }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(140%) blur(8px); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 0.75rem; min-height: var(--header-h); }
.header-inner .logo { margin-right: auto; }
.header-cta .long { display: none; }
@media (min-width: 420px) { .header-cta .long { display: inline; } .header-cta .short { display: none; } }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 40px; padding: 0.4rem 0.6rem;
  font: inherit; font-weight: 700; font-size: 0.92rem; color: var(--ink);
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -5px; }
.menu-toggle-bars::after { top: 5px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.98rem; }
.main-nav a:hover { color: var(--accent-dark); }
.main-nav a[aria-current="page"] { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1.5px; }

/* Mobile : panneau sous l'en-tête */
@media (max-width: 959px) {
  .js .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px -20px rgba(32, 38, 43, 0.35);
    display: none;
  }
  .js .main-nav.is-open { display: block; }
  .main-nav ul { padding: 0.5rem var(--gutter) 1rem; max-width: var(--container); margin-inline: auto; }
  .main-nav li + li { border-top: 1px solid var(--border); }
  .main-nav a { display: block; padding: 0.85rem 0; font-size: 1.05rem; }
  .no-js .main-nav { order: 10; width: 100%; }
  .no-js .menu-toggle { display: none; }
  .no-js .header-inner { flex-wrap: wrap; }
  .no-js .main-nav ul { display: flex; flex-wrap: wrap; gap: 0 1rem; padding: 0 0 0.75rem; }
  .no-js .main-nav li + li { border: 0; }
}
@media (min-width: 960px) {
  .menu-toggle { display: none; }
  .main-nav { order: 0; }
  .main-nav ul { display: flex; gap: 1.6rem; }
  .header-inner .logo { margin-right: 2rem; }
  .main-nav { margin-right: auto; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--surface-2); }
.section-sage { background: var(--sage-light); }
.section-border { border-top: 1px solid var(--border); }
.section-dark { background: var(--powder); color: var(--ink); }
.section-dark h2, .section-dark h3 { color: var(--on-dark); }
.section-dark h2 em { color: var(--accent-on-dark); }
.section-dark .eyebrow { color: var(--ink); }
.section-dark .muted, .section-dark .micro { color: var(--on-dark-muted); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p:last-child { margin-bottom: 0; }
.section-foot { margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.75rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5.5rem); }
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 { max-width: 19ch; hyphens: manual; }
.hero .lead { margin-bottom: 1.75rem; }
.hero-target { font-size: 0.95rem; color: var(--muted); border-left: 2px solid var(--sage); padding-left: 0.85rem; margin: 0 0 1.75rem; max-width: 36em; }

.hero-visual { margin: 0; }
.hero-visual svg { width: 100%; height: auto; }
.hero-visual figcaption { font-family: var(--font-title); font-weight: 600; font-size: 1.15rem; color: var(--muted); margin-top: 0.75rem; text-align: center; }
.hv-dot { fill: var(--powder); }
.hv-dot-on { fill: var(--accent); }
.hv-line { stroke: var(--ink); stroke-width: 1.5; fill: none; }
.hv-line-faint { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 6; fill: none; opacity: .7; }
.hv-arc { stroke: var(--accent); stroke-width: 1.5; fill: none; }
.hv-crop { stroke: var(--ink); stroke-width: 1.5; fill: none; }
.hv-label { font-family: var(--font-title); font-weight: 600; font-size: 15px; fill: var(--accent-dark); }
@media (prefers-reduced-motion: no-preference) {
  .js .hv-draw { stroke-dasharray: 520; stroke-dashoffset: 520; animation: hv-draw 1.6s .3s ease-out forwards; }
  .js .hv-arc { stroke-dasharray: 60; stroke-dashoffset: 60; animation: hv-draw 0.8s 1.5s ease-out forwards; }
  .js .hv-dot-on { opacity: 0; animation: hv-fade .5s ease-out forwards; }
  .js .hv-dot-on:nth-of-type(1) { animation-delay: .7s; }
  .js .hv-dot-on:nth-of-type(2) { animation-delay: .95s; }
  .js .hv-dot-on:nth-of-type(3) { animation-delay: 1.2s; }
  .js .hv-dot-on:nth-of-type(4) { animation-delay: 1.45s; }
  .js .hv-label { opacity: 0; animation: hv-fade .6s 2s ease-out forwards; }
}
@keyframes hv-draw { to { stroke-dashoffset: 0; } }
@keyframes hv-fade { to { opacity: 1; } }

/* En-tête des pages intérieures */
.page-hero { padding-block: clamp(2.75rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--border); }
.page-hero h1 { max-width: 18ch; font-size: clamp(2.1rem, 5.4vw, 3.6rem); }
.page-hero .lead { margin-bottom: 0; }
.page-hero .lead + .hero-target { margin-top: 1.25rem; }
.page-hero .btn-row { margin-top: 1.75rem; }

/* ---------- Cadre (marques de recadrage aux coins) ---------- */
.frame { position: relative; }
.frame::before, .frame::after {
  content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none;
  border-color: var(--accent); border-style: solid;
}
.frame::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.frame::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* ---------- Cartes ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.card > :last-child { margin-bottom: 0; }
.grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-gap-lg { gap: clamp(1rem, 3vw, 1.5rem); }

/* Phrases de blocage */
.pains { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
@media (min-width: 700px) { .pains { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pains { grid-template-columns: repeat(3, 1fr); } }
.pains li {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 1.25rem 3rem; position: relative;
  font-family: var(--font-title); font-weight: 600; font-size: 1.05rem; line-height: 1.4;
}
.pains li::before { content: "«"; position: absolute; left: 1.1rem; top: 0.9rem; color: var(--accent); font-size: 1.6rem; line-height: 1; font-weight: 800; }
.pains-closing { margin-top: 2rem; font-size: 1.1rem; max-width: 44em; }
.pains-closing strong { color: var(--accent-dark); }

/* Liste numérotée de bénéfices */
.clarify { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: c; }
@media (min-width: 700px) { .clarify { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; } }
@media (min-width: 1000px) { .clarify { grid-template-columns: repeat(3, 1fr); } }
.clarify li { counter-increment: c; border-top: 1px solid var(--ink); padding: 1.1rem 0 1.75rem; }
.clarify li::before { content: counter(c, decimal-leading-zero); display: block; font-family: var(--font-title); font-weight: 800; color: var(--accent-dark); font-size: 0.95rem; margin-bottom: 0.35rem; }
.clarify h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.clarify p { margin: 0; color: var(--muted); }

/* Étapes de méthode */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; position: relative; }
.step-num { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; background: var(--powder); border-radius: 50%; font-family: var(--font-title); font-weight: 800; font-size: 0.95rem; color: var(--ink); margin-bottom: 1rem; }
.step h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.step p { margin: 0; color: var(--muted); }
.step-tag { display: inline-block; margin-top: 1rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 99px; }
.tag-ia { background: var(--sage-light); color: var(--sage-dark); }
.tag-human { background: var(--powder); color: var(--ink); }

/* ---------- Offres ---------- */
.tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 99px; margin-bottom: 1rem; }
.offer { display: flex; flex-direction: column; height: 100%; }
.offer > .tag, .next-steps .tag, .buy-card .tag { align-self: flex-start; }
.offer h3 { font-size: 1.55rem; margin-bottom: 0.5rem; }
.offer-promise { color: var(--muted); margin-bottom: 1.25rem; }
.offer-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.offer .btn { margin-top: auto; }
.offer-list { margin-bottom: 1.5rem; }

.price { margin: 0 0 1.25rem; padding: 1rem 0; border-block: 1px solid var(--border); }
.price-main { font-family: var(--font-title); font-weight: 800; font-size: 2.3rem; line-height: 1; letter-spacing: -0.02em; }
.price-main small { font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; letter-spacing: 0; color: var(--muted); margin-left: 0.25rem; }
.price-note { display: block; font-size: 0.9rem; color: var(--muted); margin-top: 0.4rem; }
.price-note strong { color: var(--accent-dark); }

.checklist, .minuslist { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 0.5rem; }
.checklist li, .minuslist li { position: relative; padding-left: 1.6rem; }
.checklist li::before { content: ""; position: absolute; left: 0.1rem; top: 0.45em; width: 0.8rem; height: 0.45rem; border-left: 2px solid var(--sage-dark); border-bottom: 2px solid var(--sage-dark); transform: rotate(-45deg); }
.minuslist li { color: var(--muted); }
.minuslist li::before { content: ""; position: absolute; left: 0.1rem; top: 0.75em; width: 0.75rem; height: 2px; background: var(--muted); }
.checklist.cols-2 { gap: 0.5rem 2rem; }
@media (min-width: 700px) { .checklist.cols-2 { grid-template-columns: 1fr 1fr; } }
.list-title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.75rem; font-family: var(--font-body); }

/* Bloc analyse (accueil + page analyse) */
.analysis-block { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (min-width: 960px) { .analysis-block { grid-template-columns: 1.4fr 1fr; } }
.buy-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2rem); }
.buy-card .price { border-top: 0; padding-top: 0; }
.buy-card .btn { width: 100%; }
.buy-card .note-box { margin-bottom: 1.25rem; }
.buy-card .secondary-link { display: block; text-align: center; margin-top: 1rem; }
.facts { display: grid; gap: 0.6rem; margin: 0 0 1.5rem; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.95rem; border-bottom: 1px dashed var(--border); padding-bottom: 0.6rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }

/* Tableau comparatif */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 0.95rem; }
.compare th, .compare td { padding: 0.85rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.compare thead th { font-family: var(--font-title); font-weight: 800; font-size: 1.1rem; background: var(--surface-2); }
.compare thead th small { display: block; font-family: var(--font-body); font-size: 0.82rem; color: var(--muted); font-weight: 700; }
.compare tbody th { font-weight: 700; width: 20%; }
.compare tr:last-child > * { border-bottom: 0; }
.compare .no { color: var(--muted); }
.table-hint { font-size: 0.88rem; color: var(--muted); margin-top: 0.6rem; }
@media (min-width: 820px) { .table-hint { display: none; } }

/* Guide de choix */
.chooser { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.chooser li { display: grid; gap: 0.35rem 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border); align-items: center; }
@media (min-width: 760px) { .chooser li { grid-template-columns: 1.4fr 1fr; } }
.chooser q { font-family: var(--font-title); font-weight: 600; font-size: 1.1rem; quotes: "« " " »"; }
.chooser a { justify-self: start; }
.chooser .arrow-link { display: inline; }
.chooser .arrow-link::after { display: inline-block; margin-left: 0.4rem; }

/* Détail d'un accompagnement */
.format { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (min-width: 960px) { .format { grid-template-columns: 1.35fr 1fr; } .format-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.format + .format { margin-top: var(--section-y); padding-top: var(--section-y); border-top: 1px solid var(--border); }
.format-for { background: var(--sage-light); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.format-for strong { color: var(--accent-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 1.75rem 0 0; }
.chips a { display: inline-block; padding: 0.45rem 0.9rem; border: 1px solid var(--ink); border-radius: 99px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.92rem; }
.chips a:hover { background: var(--ink); color: #fff; }

.note-box { border-left: 4px solid var(--powder); background: var(--accent-soft); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; }
.note-box > :last-child { margin-bottom: 0; }
.note-box.sage { border-left-color: var(--powder); background: var(--surface-2); }

/* ---------- Méthode : IA / humain ---------- */
.split { display: grid; gap: 1rem; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }
.timeline { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.timeline li { counter-increment: t; display: grid; grid-template-columns: 3rem 1fr; gap: 0 1rem; padding-bottom: 1.75rem; position: relative; }
.timeline li::before { content: counter(t); grid-row: span 3; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent-dark); display: grid; place-items: center; font-family: var(--font-title); font-weight: 800; font-size: 1rem; background: var(--powder); border-color: var(--powder); color: var(--ink); position: relative; z-index: 1; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 1.3rem; top: 2.6rem; bottom: 0; width: 1px; background: var(--border); }
.timeline h3 { margin: 0.35rem 0 0.35rem; font-size: 1.3rem; }
.timeline p { margin: 0 0 0.35rem; color: var(--muted); }
.timeline .where { font-size: 0.9rem; font-weight: 700; color: var(--ink); }

.prose { max-width: 42rem; }
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); }
.pull { font-family: var(--font-title); font-weight: 600; font-size: clamp(1.2rem, 2.6vw, 1.5rem); line-height: 1.3; border-left: 2px solid var(--accent); padding-left: 1.25rem; margin: 2rem 0; }

/* ---------- Illustration avant / après ---------- */
.example { display: grid; gap: 1rem; }
@media (min-width: 800px) { .example { grid-template-columns: 1fr 1fr; } }
.example-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.example-before { color: var(--muted); }
.example-text { font-family: var(--font-title); font-weight: 600; font-size: 1.1rem; line-height: 1.4; margin: 0; }
.example-after .example-label { color: var(--accent-dark); }
.disclaimer { font-size: 0.88rem; color: var(--muted); font-style: italic; }

/* Emplacements à compléter (masquables dans config.js) */
.placeholder {
  border: 1.5px dashed var(--field); border-radius: var(--radius-lg);
  padding: 1.5rem; text-align: center; color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; letter-spacing: 0.02em;
  background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(166, 181, 163, 0.12) 10px 20px);
  display: grid; place-items: center; min-height: 7rem;
}
.hide-placeholders .placeholder { display: none; }

/* ---------- Neuroatypisme ---------- */
.neuro-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .neuro-grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; align-items: start; } .neuro-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.neuro-sub { font-size: 1.35rem; margin-top: 2rem; }
.neuro-aside .pull { margin-top: 0; }
.neuro-aside .btn { margin-bottom: 1.5rem; }
.neuro-editorial h3 { font-size: 1.15rem; }
.neuro-editorial p { font-size: 0.95rem; color: var(--muted); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; align-content: start; }
.tags li { padding: 0.55rem 1.1rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; font-weight: 700; }

/* ---------- À propos ---------- */
.about-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 0.8fr 1.2fr; } }
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: auto; border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; }
.about-photo .placeholder { aspect-ratio: 4 / 5; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; position: relative;
  font-weight: 700; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-family: var(--font-title); font-weight: 800; font-size: 1.5rem; color: var(--accent-dark); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--accent-dark); }
.faq-answer { padding: 0 0 1.25rem; max-width: 44em; }
.faq-answer > :last-child { margin-bottom: 0; }

/* ---------- Bandeau final ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { max-width: 36em; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.75rem; }
.cta-band .micro { margin: 1rem auto 0; }
.analysis-block .note-box { margin-top: 1rem; }
.offer .small.muted { margin-bottom: 1rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: #fff; color: var(--ink); padding-block: 3rem 1.5rem; font-size: 0.95rem; border-top: 1px solid var(--border); }
.site-footer a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }
.site-footer a:hover { color: var(--accent-dark); }
.site-footer .logo { text-decoration: none; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.footer-tagline { color: var(--muted); margin-top: 0.75rem; max-width: 22em; }
.footer-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.75rem; font-family: var(--font-title); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.88rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.footer-bottom p { margin: 0; }

/* ---------- Pages légales ---------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4rem) var(--section-y); }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2.25rem; }
.legal dl { display: grid; gap: 0.4rem 1.5rem; margin: 0 0 1rem; }
@media (min-width: 640px) { .legal dl { grid-template-columns: max-content 1fr; } .legal dl > div { display: contents; } }
.legal dt { font-weight: 700; }
.legal dd { margin: 0 0 0.5rem; }
.back-link { display: inline-block; margin-bottom: 1.5rem; }

/* =====================================================================
   ANALYSE LE BON ANGLE : formulaire, progression, résultat
   ===================================================================== */
.app-steps { display: grid; gap: 1.25rem; }
.a-step { margin: 0; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: clamp(1.25rem, 3vw, 2rem); }
.a-step legend {
  float: left; width: 100%; padding: 0; margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  font-family: var(--font-title); font-weight: 800; font-size: 1.25rem;
}
.a-step legend + * { clear: both; }
.a-step legend .n { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--powder); color: var(--ink); font-size: 0.9rem; align-self: center; }
.optional { font-family: var(--font-body); font-size: 0.88rem; color: var(--muted); }
.a-intro { color: var(--muted); margin-top: -0.5rem; }

.field { margin-top: 1.1rem; }
.field:first-child { margin-top: 0; }
.field-label, .field legend { display: block; font-weight: 700; margin-bottom: 0.35rem; font-family: var(--font-body); font-size: 1rem; }
.hint { display: block; font-weight: 400; font-size: 0.9rem; color: var(--muted); margin-top: 0.15rem; }
.field input[type="text"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--field); border-radius: var(--radius);
  padding: 0.75rem 0.9rem; min-height: 48px;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field-row { display: grid; gap: 0 1.25rem; margin-top: 1.1rem; }
.field-row:first-child { margin-top: 0; }
.field-row > .field { margin-top: 0; }
.field-row > .field + .field { margin-top: 1.1rem; }
@media (min-width: 700px) {
  .field-row { grid-template-columns: 1fr 1fr; align-items: end; }
  .field-row > .field + .field { margin-top: 0; }
}
/* Liste déroulante : même hauteur et même style que les champs texte */
.field select {
  -webkit-appearance: none; appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23171717' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 1rem center;
  padding-right: 2.75rem; cursor: pointer;
}
fieldset.field { border: 0; padding: 0; margin-inline: 0; min-width: 0; }

.dropzone { position: relative; border: 2px dashed var(--accent); border-radius: var(--radius-lg); background: var(--accent-soft); text-align: center; transition: background-color .2s ease; }
.dropzone.is-over { background: var(--powder); }
.dropzone-label { display: grid; gap: 0.35rem; padding: 2rem 1rem; cursor: pointer; }
.dropzone-label strong { text-decoration: underline; text-underline-offset: 0.22em; }
.dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.file-status { margin: 0.5rem 0 0; font-weight: 700; min-height: 1.2em; }

.checks { display: grid; gap: 0.35rem 1.5rem; }
@media (min-width: 700px) { .checks.cols-2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 0.7rem; align-items: flex-start; cursor: pointer; padding: 0.35rem 0; }
.check input { width: 1.2rem; height: 1.2rem; margin: 0.2rem 0 0; accent-color: var(--ink); flex-shrink: 0; }
.check-consent { font-weight: 700; margin-top: 1rem; }
.choice-cards { display: grid; gap: 0.6rem; }
@media (min-width: 700px) { .choice-cards { grid-template-columns: repeat(3, 1fr); } }
.choice-cards .check { border: 1px solid var(--field); border-radius: var(--radius); padding: 0.85rem 1rem; background: #fff; }
.choice-cards .check:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; background: var(--surface-2); }

.buy-box { display: grid; gap: 0.75rem; justify-items: start; padding: 1.25rem; border-radius: var(--radius); background: var(--powder); margin-bottom: 1.25rem; }
.buy-box p { margin: 0; }
.buy-box .text-link { color: var(--ink); }
.buy-box .btn-primary { background: #fff; }
.buy-box .btn-primary:hover { background: var(--ink); }
.privacy-box { background: var(--surface-2); border-left: 4px solid var(--powder); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; font-size: 0.95rem; margin-top: 1.25rem; }
.privacy-box > :last-child { margin-bottom: 0; }
.form-error { margin: 1rem 0 0; padding: 0.85rem 1rem; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; font-weight: 700; color: var(--ink); }
.form-error:empty, .form-error[hidden] { display: none; }
#submit-btn { margin-top: 1.25rem; }
.remaining { font-weight: 700; padding: 0.75rem 1rem; background: var(--surface-2); border-radius: var(--radius); }

.progress { text-align: center; display: grid; justify-items: center; gap: 0.5rem; padding-block: 3rem; }
.progress p { margin: 0; font-weight: 700; }
.progress .hint { font-weight: 400; }
.spinner { width: 44px; height: 44px; border: 4px solid var(--powder); border-top-color: var(--ink); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 0.75rem; }
@keyframes spin { to { transform: rotate(360deg); } }

#result:focus { outline: none; }
.result-head { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.result-summary { display: grid; gap: 1rem; }
@media (min-width: 800px) { .result-summary { grid-template-columns: 1fr 1fr; } }
.result-summary dl { margin: 0; display: grid; gap: 0.5rem; }
.result-summary dt { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.result-summary dd { margin: 0 0 0.4rem; }
.toc { margin: 0; padding-left: 1.2rem; }
.toc li { margin-bottom: 0.3rem; }
.result-body { display: grid; gap: 1rem; margin-block: 1.5rem; overflow-wrap: anywhere; }
.result-part { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); scroll-margin-top: calc(var(--header-h) + 1rem); }
.result-part > :first-child { margin-top: 0; }
.result-part > :last-child { margin-bottom: 0; }
.result-part h1, .result-part h2 { font-size: 1.5rem; }
.result-part h3 { font-size: 1.2rem; margin-top: 1.5rem; }
.result-part h4 { font-size: 1.05rem; margin-top: 1.25rem; font-family: var(--font-body); font-weight: 700; }
.result-part ul, .result-part ol { padding-left: 1.25rem; }
.result-part li { margin-bottom: 0.35rem; }
.result-part blockquote { margin: 1rem 0; padding: 0.75rem 1rem; border-left: 4px solid var(--powder); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.result-part blockquote > :last-child { margin-bottom: 0; }
.result-part pre, .result-part code { font-size: 0.9rem; white-space: pre-wrap; }
.result-part table { border-collapse: collapse; width: 100%; margin-bottom: 1rem; display: block; overflow-x: auto; }
.result-part th, .result-part td { border: 1px solid var(--border); padding: 0.5rem; text-align: left; }
.next-steps { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 800px) { .next-steps { grid-template-columns: 1fr 1fr; } }
.next-steps .card { display: flex; flex-direction: column; }
.next-steps .card .btn { margin-top: auto; align-self: flex-start; }
.next-steps h3 { font-size: 1.35rem; }
.recontact { margin-top: 1.5rem; }
.recontact .btn { margin-top: 0.25rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .spinner { animation-duration: 3s; }
}


/* ---------- Accueil (version « trajectoire ») ---------- */
.clarify-4 { counter-reset: c; }
@media (min-width: 1000px) { .clarify.clarify-4 { grid-template-columns: repeat(2, 1fr); column-gap: 4rem; } }
.steps-3 { counter-reset: none; }
@media (min-width: 1000px) { .steps.steps-3 { grid-template-columns: repeat(3, 1fr); } }
.h3-like { font-size: 1.4rem; }
.format-title { font-size: clamp(1.5rem, 3vw, 2rem); }
#accompagnements .format:first-of-type { margin-top: 0; }
.contact-list { display: inline-block; text-align: left; margin: 0 auto 1rem; padding-left: 1.2rem; }
.contact-list li { margin-bottom: 0.3rem; }
.pains-closing p { margin-bottom: 0.5rem; }

/* ---------- PDF de l'analyse (impression / « Enregistrer au format PDF ») ---------- */
.print-only { display: none; }

@media print {
  @page {
    size: A4;
    margin: 16mm 16mm 18mm;
    @bottom-left { content: "Le Bon Angle · une offre de BUILD RH"; font: 8pt "Atkinson Hyperlegible", Arial, sans-serif; color: #5F5958; }
    @bottom-right { content: "Page " counter(page) " / " counter(pages); font: 8pt "Atkinson Hyperlegible", Arial, sans-serif; color: #5F5958; }
  }
  html, body { background: #fff !important; }
  body { font-size: 10.5pt; line-height: 1.5; color: #171717; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: none !important; }

  /* On n'imprime que le résultat */
  .site-header, .site-footer, .skip-link, main > section:not(#result),
  .result-head, .remaining, .next-steps, .recontact, .privacy-box, #restart-btn, #toc-wrap { display: none !important; }
  #result { padding: 0 !important; display: block !important; }
  .container, .container-narrow { max-width: none; padding: 0; }
  .print-only { display: block; }

  /* En-tête */
  .print-header { border-bottom: 3px solid var(--powder); padding-bottom: 7mm; margin-bottom: 7mm; }
  .print-brands { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9mm; }
  .print-brands .logo { font-size: 11pt; }
  .print-buildrh { height: 12mm; width: auto; }
  .print-kicker { font-family: var(--font-title); font-weight: 600; font-size: 8.5pt; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-dark); margin: 0 0 1.5mm; }
  .print-title { font-family: var(--font-title); font-weight: 800; font-size: 22pt; line-height: 1.15; margin: 0 0 2mm; }
  .print-date { color: var(--muted); font-size: 9.5pt; margin: 0; }

  /* Rappel de la demande */
  .result-summary { display: block; background: var(--surface-2); border: 0; border-radius: 3mm; padding: 4mm 5mm; margin-bottom: 6mm; break-inside: avoid; }
  .result-summary .list-title { margin-bottom: 2mm; }
  .result-summary dl { display: grid; grid-template-columns: max-content 1fr; gap: 1mm 5mm; }
  .result-summary dt { font-size: 8pt; align-self: baseline; }
  .result-summary dd { margin: 0; }

  /* Contenu de l'analyse */
  .result-body { display: block; margin: 0; }
  .result-part { border: 0; border-radius: 0; padding: 0; margin: 0 0 6mm; background: none; break-inside: auto; }
  .result-part h1, .result-part h2 { font-size: 14pt; margin: 0 0 3mm; padding-bottom: 1.5mm; border-bottom: 1.5px solid var(--powder); color: var(--ink); }
  .result-part h3 { font-size: 11.5pt; margin: 4mm 0 2mm; color: var(--accent-dark); }
  .result-part h4 { font-size: 10.5pt; margin: 3mm 0 1.5mm; }
  .result-part h1, .result-part h2, .result-part h3, .result-part h4 { break-after: avoid; page-break-after: avoid; }
  .result-part p, .result-part li { orphans: 3; widows: 3; }
  .result-part li { margin-bottom: 1mm; }
  .result-part blockquote { background: var(--surface-2); border-left: 3px solid var(--powder); padding: 2.5mm 4mm; break-inside: avoid; }
  .result-part table { display: table; font-size: 9pt; break-inside: avoid; }
  .result-part a { color: var(--ink); text-decoration: none; }

  /* Fin du document */
  .print-next { border: 1.5px solid var(--powder); border-radius: 3mm; padding: 5mm 6mm; margin-top: 8mm; break-inside: avoid; }
  .print-next p { margin: 0 0 2.5mm; font-size: 9.5pt; }
  .print-next-title { font-family: var(--font-title); font-weight: 800; font-size: 11.5pt !important; margin-bottom: 3mm !important; }
  .print-url { color: var(--accent-dark); font-weight: 700; margin: 0 !important; }
  .print-disclaimer { font-size: 8pt; color: var(--muted); margin-top: 5mm; }
}

/* Retours utilisateurs */
.testimonial { margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.testimonial blockquote { margin: 0; padding-left: 1rem; border-left: 4px solid var(--powder); }
.testimonial blockquote p:last-child { margin-bottom: 0; }
.testimonial figcaption { margin-top: auto; font-weight: 700; font-size: 0.95rem; }
.testimonial figcaption::before { content: "— "; }
