/* Speak Chantier — site vitrine. Toutes les couleurs viennent de tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--slab); color: var(--graphite);
  font-family: var(--f-text); font-size: var(--t-md); line-height: var(--lh-text);
  font-feature-settings: "kern", "liga"; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--slab); }
img, video, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-ctl); }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
i[lang^="en"], .say { font-style: normal; color: var(--chalk); font-weight: 650; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--graphite); color: var(--slab); padding: 10px 14px; border-radius: var(--r-ctl); }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }
.selectable { user-select: all; font-weight: 650; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

/* ---------- Typo de section ---------- */
.section, .band { padding-block: var(--s-8); }
.section-tight { padding-top: var(--s-5); }
.band { background: var(--slab-2); }
.section h2, .band h2 { font-size: var(--t-3xl); line-height: 1.1; font-weight: 800; letter-spacing: -.012em; max-width: 22ch; }
.section-lede { margin-top: var(--s-4); max-width: var(--measure); color: var(--graphite-2); font-size: var(--t-lg); line-height: 1.5; }
.note { font-size: var(--t-sm); color: var(--graphite-2); margin-top: var(--s-4); max-width: var(--measure); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .72em 1.25em .62em; border-radius: var(--r-ctl);
  font: 750 var(--t-md)/1.1 var(--f-text); text-decoration: none; cursor: pointer;
  border: 2px solid var(--graphite); background: transparent; color: var(--graphite);
  transition: background-color .15s, color .15s, transform .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-paint { background: var(--paint); border-color: var(--paint); color: var(--on-paint); }
.btn-paint:hover { background: var(--graphite); border-color: var(--graphite); color: var(--slab); }
.btn-line:hover { background: var(--graphite); color: var(--slab); }
.btn-sm { min-height: var(--control); padding: .55em 1em .48em; font-size: var(--t-sm); }
.link-quiet { color: var(--graphite); font-weight: 650; font-size: var(--t-sm); text-decoration: none; min-height: var(--control); display: inline-flex; align-items: center; padding-inline: .5em; }
.link-quiet:hover { text-decoration: underline; }

/* Écouter (prononciation) */
.listen {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em; vertical-align: middle;
  min-width: var(--control); min-height: var(--control); padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--chalk); cursor: pointer;
}
.listen svg { width: 22px; height: 22px; }
.listen:hover { background: color-mix(in srgb, var(--chalk) 12%, transparent); }
.listen.is-playing svg { animation: pulse 0.9s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- Barre du haut ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--slab) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.topbar-in { display: flex; align-items: center; gap: var(--s-5); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--graphite); text-decoration: none; min-height: var(--control); }
.brand-mark { width: 30px; height: 30px; color: var(--graphite); flex: none; }
.brand-word { display: inline-flex; align-items: baseline; gap: .28rem; line-height: 1; }
.brand-en { font: 900 1.55rem/1 var(--f-voice); letter-spacing: .01em; }
.brand-fr { font: 800 1.12rem/1 var(--f-text); letter-spacing: -.01em; }
.nav { display: flex; gap: var(--s-1); margin-left: auto; }
.nav a { color: var(--graphite); text-decoration: none; font-weight: 600; font-size: var(--t-sm); padding: .6em .7em; border-radius: var(--r-ctl); min-height: var(--control); display: inline-flex; align-items: center; }
.nav a:hover { background: var(--slab-2); }
.topbar-actions { display: flex; align-items: center; gap: var(--s-2); }
@media (max-width: 1020px) { .nav { display: none; } .topbar-actions { margin-left: auto; } }
@media (max-width: 520px) { .topbar-actions .link-quiet { display: none; } .brand-fr { font-size: 1rem; } .brand-en { font-size: 1.4rem; } }

/* ---------- Hero : film sous-titré ---------- */
.film { position: relative; background: var(--night); color: var(--on-night); overflow: hidden; height: clamp(460px, 64vh, 700px); isolation: isolate; }
.film-video, .film-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.film-poster { z-index: 0; }
.film-video { z-index: 1; }
.film::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(8,11,10,0) 38%, rgba(8,11,10,.55) 72%, rgba(8,11,10,.86) 100%); pointer-events: none; }
.subtitle {
  position: absolute; z-index: 3; left: 50%; bottom: clamp(20px, 5vh, 44px); transform: translateX(-50%);
  width: min(920px, calc(100% - 32px)); text-align: center; display: grid; justify-items: center; gap: .45rem;
}
.subtitle-who { font-size: var(--t-sm); font-weight: 600; color: color-mix(in srgb, var(--on-night) 78%, transparent); }
.subtitle-en { font: 800 clamp(2rem, 1rem + 4.2vw, 4.1rem)/1.02 var(--f-voice); letter-spacing: .005em; text-wrap: balance; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.subtitle-en .w { display: inline-block; transition: color .2s; }
.subtitle-en.is-reading .w { color: color-mix(in srgb, var(--on-night) 48%, transparent); }
.subtitle-en.is-reading .w.is-said { color: var(--on-night); }
.subtitle-fr { font-style: italic; font-size: var(--t-lg); color: color-mix(in srgb, var(--on-night) 82%, transparent); }
.listen-hero {
  margin-top: .5rem; border-radius: 999px; padding: 0 1.1rem 0 .85rem; min-height: 48px;
  background: rgba(238,241,236,.12); color: var(--on-night); border: 1.5px solid rgba(238,241,236,.5);
  font: 700 var(--t-sm)/1 var(--f-text); backdrop-filter: blur(6px);
}
.listen-hero:hover { background: var(--paint); border-color: var(--paint); color: var(--on-paint); }
.listen-hero svg { width: 20px; height: 20px; }

/* Apparition unique des sous-titres au chargement */
@media (prefers-reduced-motion: no-preference) {
  .subtitle-en.is-typing .w { opacity: 0; animation: word-in .34s ease-out forwards; animation-delay: calc(var(--i) * 95ms + 450ms); }
  .subtitle-fr.is-typing { opacity: 0; animation: word-in .5s ease-out forwards; animation-delay: 1.5s; }
  @keyframes word-in { from { opacity: 0; transform: translateY(.18em); } to { opacity: 1; transform: none; } }
}

.hero-body { display: grid; gap: var(--s-6); padding-block: var(--s-7) var(--s-8); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .hero-body { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--s-8); align-items: end; } }
.hero-copy h1 { font-size: var(--t-4xl); line-height: 1.02; font-weight: 850; letter-spacing: -.025em; max-width: 17ch; }
.lede { margin-top: var(--s-5); font-size: var(--t-lg); line-height: 1.5; color: var(--graphite-2); max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* Fiche technique : paires libellé / valeur */
.spec { margin: 0; border-top: 2px solid var(--graphite); }
.spec > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--s-4); padding-block: .8rem; border-bottom: 1px solid var(--rule); }
.spec dt { font-weight: 750; font-size: var(--t-sm); }
.spec dd { margin: 0; font-size: var(--t-sm); color: var(--graphite-2); line-height: 1.45; }

/* ---------- Faux amis ---------- */
.split { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-8); } }
.split-lead { display: grid; gap: var(--s-4); align-content: start; }
.split-lead > p { color: var(--graphite-2); max-width: 46ch; }
.split-lead .btn { justify-self: start; margin-top: var(--s-2); }
.ledger-wrap { overflow-x: auto; min-width: 0; }
.ledger { width: 100%; border-collapse: collapse; background: var(--sheet); box-shadow: var(--shadow-sheet); font-size: var(--t-sm); }
.ledger th { text-align: left; font-weight: 750; font-size: var(--t-xs); color: var(--graphite-2); padding: .9rem 1rem .6rem; border-bottom: 2px solid var(--graphite); }
.ledger td { padding: .55rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: middle; line-height: 1.45; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger td:first-child { font-weight: 650; width: 22%; }
.ledger td:nth-child(2) { width: 36%; }
.ledger td:nth-child(3) { color: var(--graphite-2); }
.ledger .listen { margin-left: .15rem; }
.split-stack { grid-template-columns: minmax(0, 1fr) !important; gap: var(--s-6); }
.split-stack .split-lead { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .split-stack .split-lead { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--s-8); align-items: end; } .split-stack .split-lead h2 { grid-row: span 2; } }
.ledger .say { font: 800 1.35rem/1 var(--f-voice); letter-spacing: .01em; }
@media (max-width: 720px) {
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; width: 100%; }
  .ledger thead { display: none; }
  .ledger tr { padding: .9rem 1rem; border-bottom: 1px solid var(--rule); display: grid; gap: .15rem; }
  .ledger td { padding: 0; border: 0; white-space: normal !important; min-width: 0 !important; width: auto !important; }
  .ledger td:first-child { font-size: var(--t-xs); color: var(--graphite-2); font-weight: 600; }
}

/* ---------- Méthode (vraie séquence) ---------- */
.steps { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: grid; gap: var(--s-6); counter-reset: step; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); } }
.steps li { counter-increment: step; position: relative; padding-top: 4.4rem; border-top: 2px solid var(--graphite); }
.steps li::before { content: counter(step); position: absolute; top: .9rem; left: 0; font: 900 2.6rem/1 var(--f-voice); color: var(--paint-ink); }
.steps h3 { font-size: var(--t-xl); font-weight: 780; line-height: 1.2; }
.steps p { margin-top: var(--s-3); color: var(--graphite-2); max-width: 40ch; }

/* ---------- Scènes ---------- */
.scene-feature { margin-top: var(--s-7); display: grid; grid-template-columns: minmax(0, 1fr); background: var(--sheet); box-shadow: var(--shadow-sheet); }
@media (min-width: 960px) { .scene-feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.scene-photo { margin: 0; min-height: 280px; }
.scene-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
@media (min-width: 960px) { .scene-photo img { aspect-ratio: auto; } }
.scene-body { padding: var(--s-6); display: grid; gap: var(--s-4); align-content: start; }
.scene-num { font-size: var(--t-sm); font-weight: 700; color: var(--paint-ink); }
.scene-body h3, .scene h3 { font-size: var(--t-2xl); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.scene-body > p:not(.scene-num), .scene > p:not(.scene-num) { color: var(--graphite-2); }
.scene-body .btn { justify-self: start; margin-top: var(--s-2); }
.who { display: flex; align-items: center; gap: var(--s-3); }
.who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--sheet), 0 0 0 3.5px var(--rule); }
.who p { font-size: var(--t-sm); line-height: 1.4; }
.who span { color: var(--graphite-2); }
.objectives { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: var(--t-sm); }
.objectives li { position: relative; padding-left: 1.6rem; }
.objectives li::before { content: ""; position: absolute; left: 0; top: .28em; width: .95rem; height: .95rem; border: 2px solid var(--graphite); border-radius: 2px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { font: 700 1rem/1 var(--f-voice); letter-spacing: .02em; color: var(--chalk); border: 1.5px solid color-mix(in srgb, var(--chalk) 55%, transparent); padding: .4rem .6rem .34rem; border-radius: 999px; }
.scene-pair { margin-top: var(--s-6); display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .scene-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.scene { display: grid; gap: var(--s-3); align-content: start; }
.scene-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-bottom: var(--s-2); }
.scene h3 { font-size: var(--t-xl); }

/* ---------- Débrief ---------- */
.band-plan { position: relative; overflow: hidden; }
.debrief-grid { display: grid; gap: var(--s-7); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .debrief-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.debrief-copy { display: grid; gap: var(--s-4); }
.debrief-copy > p { color: var(--graphite-2); max-width: 50ch; }
.criteria { margin: var(--s-2) 0 0; display: grid; }
.criteria > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: var(--s-4); padding-block: .65rem; border-top: 1px solid var(--rule); font-size: var(--t-sm); }
.criteria dt { font-weight: 750; }
.criteria dd { margin: 0; color: var(--graphite-2); }
@media (max-width: 520px) { .criteria > div { grid-template-columns: minmax(0, 1fr); gap: .1rem; } }

.sheet { background: var(--sheet); box-shadow: var(--shadow-sheet); border: 1px solid var(--rule); border-radius: var(--r-sheet); padding: var(--s-6) var(--s-6) 0; display: grid; gap: var(--s-4); min-width: 0; }
.sheet-head { display: flex; gap: var(--s-5); align-items: center; padding-bottom: var(--s-4); border-bottom: 2px solid var(--graphite); }
.score { display: flex; align-items: baseline; font-family: var(--f-voice); line-height: .9; }
.score-n { font-size: 5rem; font-weight: 900; }
.score-d { font-size: 2rem; font-weight: 700; color: var(--graphite-2); }
.sheet-level { font: 800 var(--t-2xl)/1 var(--f-voice); color: var(--paint-ink); }
.sheet-sub { margin-top: .4rem; color: var(--graphite-2); font-size: var(--t-sm); }
.meters { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.meters li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 2.6rem; align-items: center; gap: var(--s-3); font-size: var(--t-sm); }
.meters b { font: 800 1.1rem/1 var(--f-voice); text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 12px; background: linear-gradient(90deg, var(--graphite) calc(var(--v) * 25%), var(--slab-2) 0); -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(25% - 3px), transparent 0 25%); mask: repeating-linear-gradient(90deg, #000 0 calc(25% - 3px), transparent 0 25%); }
.sheet-h { font-size: var(--t-sm); font-weight: 780; margin-top: var(--s-2); }
.redlines { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-4); }
.redlines li { display: grid; gap: .2rem; padding-left: var(--s-4); border-left: 3px solid var(--redline); }
.said { color: var(--redline); font-size: var(--t-sm); }
.said s { text-decoration-thickness: 1.5px; }
.better { font: 700 1.4rem/1.15 var(--f-voice); letter-spacing: .01em; color: var(--chalk); }
.why { font-size: var(--t-sm); color: var(--graphite-2); }
.phrases { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.phrases li { display: grid; gap: .05rem; }
.phrases li span:first-child { font: 700 1.25rem/1.15 var(--f-voice); color: var(--chalk); letter-spacing: .01em; }
.phrases li span:last-child { font-size: var(--t-sm); color: var(--graphite-2); }
.titleblock { margin: var(--s-3) calc(var(--s-6) * -1) 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr .6fr; border-top: 2px solid var(--graphite); }
.titleblock > div { padding: .55rem .8rem; border-right: 1px solid var(--rule); display: grid; gap: .1rem; min-width: 0; }
.titleblock > div:last-child { border-right: 0; }
.titleblock span { font-size: .6875rem; color: var(--graphite-2); }
.titleblock b { font-size: var(--t-xs); font-weight: 750; overflow-wrap: anywhere; }
@media (max-width: 520px) { .sheet { padding: var(--s-5) var(--s-4) 0; } .titleblock { margin-inline: calc(var(--s-4) * -1); grid-template-columns: 1fr 1fr; } .titleblock > div:nth-child(2) { border-right: 0; } .titleblock > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); } .meters li { grid-template-columns: 7.4rem minmax(0, 1fr) 2.4rem; } .score-n { font-size: 4rem; } }

/* ---------- Règle des niveaux (ruban de mesure) ---------- */
.ruler { margin: var(--s-7) 0 0; }
.ruler-svg { width: 100%; height: 56px; display: block; overflow: visible; }
.ruler-svg .band-a { fill: color-mix(in srgb, var(--graphite) 7%, var(--sheet)); }
.ruler-svg .band-b { fill: color-mix(in srgb, var(--graphite) 14%, var(--sheet)); }
.ruler-svg .band-c { fill: color-mix(in srgb, var(--paint) 30%, var(--sheet)); }
.ruler-svg .band-d { fill: var(--paint); }
.ruler-svg .tick { stroke: var(--graphite); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ruler-scale { position: relative; }
.ruler-nums { position: relative; height: 1.6rem; margin-top: .35rem; }
.ruler-nums span { position: absolute; top: 0; transform: translateX(-50%); font: 800 1rem/1 var(--f-voice); font-variant-numeric: tabular-nums; }
.ruler-nums span:first-child { transform: none; }
.ruler-nums span:last-child { transform: translateX(-100%); }
.ruler-legend { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .ruler-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .ruler-legend { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ruler-legend li { display: grid; grid-template-columns: auto 1fr; column-gap: var(--s-3); row-gap: .3rem; align-items: baseline; border-top: 2px solid var(--graphite); padding-top: var(--s-3); }
.ruler-legend b { font: 800 var(--t-xl)/1 var(--f-voice); }
.ruler-legend span { font: 700 var(--t-sm)/1 var(--f-voice); color: var(--graphite-2); justify-self: end; font-variant-numeric: tabular-nums; }
.ruler-legend p { grid-column: 1 / -1; font-size: var(--t-sm); color: var(--graphite-2); }
.ruler-legend li:nth-child(3) { border-top-color: color-mix(in srgb, var(--paint) 60%, var(--graphite)); }
.ruler-legend li:nth-child(4) { border-top-color: var(--paint); }

/* ---------- Glossaire (aperçu) ---------- */
.search { display: flex; align-items: center; gap: .6rem; background: var(--sheet); border: 2px solid var(--graphite); border-radius: var(--r-ctl); padding: 0 .9rem; min-height: 56px; }
.search svg { width: 22px; height: 22px; color: var(--graphite-2); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 1.0625rem var(--f-text); color: var(--graphite); padding: .8rem 0; outline: none; }
.search input::placeholder { color: var(--graphite-2); opacity: .8; }
.search:focus-within { box-shadow: var(--focus); }
.gloss-teaser { min-width: 0; display: grid; gap: var(--s-4); align-content: start; }
.gloss-list { list-style: none; margin: 0; padding: 0; background: var(--sheet); box-shadow: var(--shadow-sheet); }
.gloss-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem var(--s-3); padding: .8rem 1rem; border-bottom: 1px solid var(--rule); }
.gloss-list li:last-child { border-bottom: 0; }
.gl-en { font: 800 1.45rem/1.1 var(--f-voice); color: var(--chalk); letter-spacing: .01em; }
.gl-fr { grid-column: 1; font-weight: 650; font-size: var(--t-sm); }
.gl-note { grid-column: 1; font-size: var(--t-sm); color: var(--graphite-2); }
.gloss-list .listen { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.gl-empty { color: var(--graphite-2); font-size: var(--t-sm); }

/* ---------- Pour qui ---------- */
.profiles { margin-top: var(--s-7); display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .profiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.profiles > div { border-top: 2px solid var(--graphite); padding-top: var(--s-4); display: grid; gap: var(--s-2); align-content: start; }
.profiles h3 { font-size: var(--t-lg); font-weight: 780; line-height: 1.25; }
.profiles p { color: var(--graphite-2); font-size: var(--t-sm); }

/* ---------- Tarifs ---------- */
.plans { margin-top: var(--s-7); display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-sheet); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); }
.plan > p:not(.price):not(.plan-tag) { color: var(--graphite-2); font-size: var(--t-sm); flex: 1; }
.plan h3 { font-size: var(--t-xl); font-weight: 780; }
.plan .btn { align-self: stretch; }
.plan-main { border: 2px solid var(--graphite); box-shadow: var(--shadow-sheet); position: relative; }
.plan-tag { align-self: flex-start; font-size: var(--t-xs); font-weight: 750; background: var(--paint); color: var(--on-paint); padding: .3rem .6rem .22rem; border-radius: var(--r-ctl); }
.price { display: flex; align-items: baseline; gap: .5rem; }
.price-n { font: 900 3.4rem/1 var(--f-voice); font-variant-numeric: tabular-nums; }
.price-u { color: var(--graphite-2); font-size: var(--t-sm); }

/* ---------- Fondateur ---------- */
.founder { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .founder { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: var(--s-8); } .founder .signature { grid-column: 2; } }
.founder blockquote { margin: 0; display: grid; gap: var(--s-4); font-size: var(--t-lg); line-height: 1.55; max-width: 60ch; }
.signature { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-sm); color: var(--graphite-2); }
.signature b { color: var(--graphite); }
.initial { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--graphite); color: var(--slab); font: 900 1.5rem/1 var(--f-voice); flex: none; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .faq { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: var(--s-8); } }
.faq-list { border-top: 2px solid var(--graphite); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; padding: 1rem 0; min-height: 56px; font-weight: 720; font-size: var(--t-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid var(--graphite); border-bottom: 2px solid var(--graphite); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 0 1.1rem; color: var(--graphite-2); max-width: 64ch; }

/* ---------- Appel final ---------- */
.closing { background: var(--night); color: var(--on-night); padding-block: var(--s-8); }
.closing-in { display: grid; gap: var(--s-4); justify-items: start; }
.closing-en { font: 800 clamp(2rem, 1rem + 4vw, 3.8rem)/1 var(--f-voice); color: color-mix(in srgb, var(--on-night) 55%, transparent); }
.closing h2 { font-size: var(--t-3xl); font-weight: 850; letter-spacing: -.015em; }
.closing .btn { margin-top: var(--s-3); }
.closing .btn-paint:hover { background: var(--on-night); border-color: var(--on-night); color: var(--night); }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--rule); padding-block: var(--s-7) calc(var(--s-7) + env(safe-area-inset-bottom, 0px)); }
.footer-in { display: grid; gap: var(--s-4); }
@media (min-width: 860px) { .footer-in { grid-template-columns: auto 1fr; align-items: center; } .footer-nav { justify-self: end; } }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 var(--s-2); }
.footer-nav a { color: var(--graphite); font-size: var(--t-sm); font-weight: 600; text-decoration: none; min-height: var(--control); display: inline-flex; align-items: center; padding-inline: .4rem; }
.footer-nav a:hover { text-decoration: underline; }
.footer-contact, .footer-legal { font-size: var(--t-sm); color: var(--graphite-2); }
@media (min-width: 860px) { .footer-legal { justify-self: end; } }

/* Logo v2 (guide-design §A.1-A.2) : SVG figés, 200 px en-tête, 160 px minimum sur mobile, zone de protection incluse dans le viewBox */
.brand { min-height: var(--control); }
.brand-logo, .brand-logo img { display: block; width: 200px; height: auto; }
.footer .brand-logo, .footer .brand-logo img { width: 160px; }
@media (max-width: 520px) { .brand-logo, .brand-logo img { width: 160px; } }
:root[data-theme="dark"] .brand-logo img { content: url("../img/logo/speakchantier-logo-horizontal-sombre-transparent.svg"); }
/* Tableaux des pages légales : pas de débordement à 390 px avec Barlow 18 px */
.legal table { width: 100%; table-layout: fixed; }
.legal th, .legal td { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 520px) { .legal table { font-size: var(--t-sm); } }

/* Champs : jamais sous 16 px (zoom automatique d'iOS Safari). */
.search input { font-size: max(16px, 1em); }

/* Connecté : prénom ou email à la place de « Se connecter » (tronqué, visible aussi sur mobile). */
.link-quiet.is-connecte { display: inline-block; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 44px; }
@media (max-width: 520px) { .topbar-actions .link-quiet.is-connecte { display: inline-block; max-width: 7ch; padding-inline: .25em; } }
