/* ==========================================================
   Brian Hoareau : Design System V1 (Editorial Architecture)
   Source : brianhoareau_charte_graphique_v1_2026.pdf
   Toute couleur, police ou dimension passe par les variables ci-dessous.
   ========================================================== */

/* ── Polices (hebergees sur le site, licence OFL) ─────────── */
@font-face {
  font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/instrument-serif-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/instrument-serif-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/assets/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Variables (tokens) ───────────────────────────────────── */
:root {
  /* Couleurs (charte 02) */
  --color-bg: #F6F3ED;            /* ivoire, fond principal */
  --color-text: #292722;          /* charbon, titres, boutons */
  --color-surface: #FFFFFF;       /* cartes selectionnees */
  --color-text-2: #625B52;        /* texte secondaire */
  --color-accent: #80623E;        /* or profond : labels, liens */
  --color-accent-soft: #C3A777;   /* or doux : lignes decoratives uniquement */
  --color-border: #DDD5C9;
  --color-surface-alt: #EEE8DF;
  --color-surface-soft: #FBF9F5;  /* nuance legere pour alterner avec l'ivoire */
  --color-dark-hover: #403B35;
  --color-on-dark: #F6F3ED;
  --color-on-dark-2: #D4C9BC;

  /* Typographie (charte 03) */
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-h1: clamp(2.75rem, 1.9rem + 3.6vw, 5rem);       /* 44px -> 80px */
  --fs-h2: clamp(2.125rem, 1.75rem + 2.2vw, 3.5rem);   /* 34px -> 56px */
  --fs-h3: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);        /* 24px -> 32px */
  --fs-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);  /* 16px -> 18px */
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.55vw, 1.4375rem); /* 19px -> 23px */
  --fs-small: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem); /* 13px -> 14px */
  --fs-label: 0.875rem;                                /* 14px : labels de formulaire */
  --fs-nav: 0.9375rem;                                 /* 15px */
  --fs-button: 0.9375rem;                              /* 15px */
  --lh-body: 1.65;
  --tracking-body: -0.011em;   /* Manrope est large : leger resserrement optique */
  --word-spacing-body: -0.03em;
  --tracking-label: 0.1em;     /* surtitres en capitales */
  --lh-heading: 1.1;
  --measure: 65ch;

  /* Mise en page (charte 04) */
  --max-width: 1200px;
  --gutter: clamp(1.25rem, 0.5rem + 3.5vw, 4rem);      /* 20px -> 64px */
  --section-space: clamp(3.75rem, 2.6rem + 4.6vw, 6.75rem); /* 60px -> 108px (resserre, demande Brian) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;

  /* Composants (charte 05) */
  --radius: 6px;
  --button-height: 52px;
  --header-height: clamp(78px, 68px + 1.4vw, 96px);
  --transition: 200ms ease;
  --reveal-duration: 300ms;
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-height) + 1rem); }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--tracking-body);
  word-spacing: var(--word-spacing-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: var(--lh-heading); margin: 0 0 var(--space-3); letter-spacing: -0.01em; word-spacing: normal; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.05; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.18; }
h4 { font-family: var(--font-body); font-size: var(--fs-body); font-weight: 700; }
h1 em, h2 em, h3 em { font-style: italic; }
p { margin: 0 0 var(--space-2); text-wrap: pretty; }
ul, ol { margin: 0 0 var(--space-2); padding-left: 1.25em; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--space-5) 0; }

a { color: var(--color-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: color var(--transition); }
a:hover { color: var(--color-text); }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--color-accent-soft); color: var(--color-text); }

.skip-link { position: absolute; left: var(--space-2); top: -100px; z-index: 100; padding: var(--space-1) var(--space-2); background: var(--color-text); color: var(--color-on-dark); border-radius: var(--radius); }
.skip-link:focus { top: var(--space-2); }
.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; }

/* ── Mise en page ─────────────────────────────────────────── */
.container { width: 100%; max-width: calc(var(--max-width) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-space); }
.section--alt { background: var(--color-surface-alt); }
.section--soft { background: var(--color-surface-soft); border-top: 1px solid var(--color-border); }
.section--dark { background: var(--color-text); color: var(--color-on-dark); }
.section--dark p, .section--dark li { color: var(--color-on-dark-2); }
.section--dark a:not(.btn) { color: var(--color-accent-soft); }
.section--dark a:not(.btn):hover { color: var(--color-on-dark); }
.section--dark .eyebrow { color: var(--color-accent-soft); }
.prose { max-width: var(--measure); }
.lead { font-size: var(--fs-lead); color: var(--color-text-2); }
.section--dark .lead { color: var(--color-on-dark-2); }
.eyebrow { display: block; font-size: var(--fs-small); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--space-2); }
.rule { width: 48px; height: 1px; border: 0; background: var(--color-accent-soft); margin: var(--space-3) 0; }

/* Hero : marge haute plus courte que les autres sections, texte plus present */
.hero { padding-block: clamp(2rem, 1.25rem + 3.2vw, 4.75rem) var(--section-space); }
.hero .lead { color: var(--color-text); max-width: 34rem; margin-bottom: var(--space-4); }
.hero .portrait { max-width: 30rem; width: 100%; justify-self: end; }
@media (max-width: 899px) { .hero .portrait { max-width: 26rem; justify-self: start; } }

/* Deux colonnes : texte 55 % / visuel 45 % (hero), empilees sur mobile */
.split { display: grid; gap: var(--space-5); align-items: center; grid-template-columns: minmax(0, 1fr); }
.split > * { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: var(--space-6); }
}
.grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid > * { min-width: 0; }
.stack > * + * { margin-top: var(--space-3); }

/* ── Boutons et liens (charte 05) ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; max-width: 100%;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--color-text); border-radius: var(--radius);
  background: var(--color-text); color: var(--color-on-dark);
  font-family: var(--font-body); font-size: var(--fs-button); font-weight: 600; line-height: 1.3; letter-spacing: 0.01em;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform 120ms ease;
}
.btn:hover, .btn.is-hover { background: var(--color-dark-hover); border-color: var(--color-dark-hover); color: var(--color-on-dark); }
.btn:active, .btn.is-active { transform: translateY(1px); background: #1C1A17; border-color: #1C1A17; }
.btn:focus-visible, .btn.is-focus { outline: 2px solid var(--color-accent); outline-offset: 3px; }
/* CTA principal (Diagnostic) : plus grand, il domine la page */
.btn--lg { min-height: 56px; padding: 1rem 2rem; font-size: 1rem; }
.btn--secondary { background: transparent; color: var(--color-text); border-color: color-mix(in srgb, var(--color-text) 45%, transparent); font-weight: 500; }
.btn--secondary:hover, .btn--secondary.is-hover { background: transparent; color: var(--color-text); border-color: var(--color-text); }
.btn--secondary:active, .btn--secondary.is-active { background: var(--color-surface-alt); border-color: var(--color-text); color: var(--color-text); }
.section--dark .btn { background: var(--color-on-dark); border-color: var(--color-on-dark); color: var(--color-text); }
.section--dark .btn:hover { background: var(--color-on-dark-2); border-color: var(--color-on-dark-2); }
.section--dark .btn--secondary { background: transparent; color: var(--color-on-dark); }
.section--dark .btn--secondary:hover { background: var(--color-on-dark); color: var(--color-text); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn:disabled:hover { background: var(--color-text); border-color: var(--color-text); }
.btn[aria-busy="true"] { cursor: progress; opacity: 0.8; }
.btn[aria-busy="true"]::after { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 768px) { .btn { min-height: var(--button-height); } .btn--lg { min-height: 58px; } }
@media (max-width: 479px) { .btn-row .btn { width: 100%; } .btn--lg { padding-inline: 1.125rem; } }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }

.text-link { font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em; }

/* ── Cartes, citations ────────────────────────────────────── */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: var(--space-4); }
.card--plain { background: transparent; }
.card > :last-child { margin-bottom: 0; }

.quote { margin: 0; padding-left: var(--space-3); border-left: 1px solid var(--color-accent-soft); }
.quote p { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.3; color: var(--color-text); }
.quote footer { font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-2); }

/* ── Images ───────────────────────────────────────────────── */
.portrait { margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: var(--radius); }

/* Schema Reality Architecture : image d'origine intacte, ouvrable en grand */
.diagram { margin: 0; }
.diagram a { display: block; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; background: var(--color-surface); }
.diagram img { width: 100%; }
.diagram figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-2); font-size: var(--fs-small); color: var(--color-text-2); }
.diagram figcaption .btn { min-height: 44px; padding: 0.5rem 1.125rem; }

.zoom-viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--color-bg); color: var(--color-text); }
.zoom-viewer::backdrop { background: rgb(41 39 34 / 0.6); }
.zoom-viewer__bar { display: flex; gap: var(--space-1); align-items: center; justify-content: space-between; min-height: 61px; padding: var(--space-1) var(--gutter); background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.zoom-viewer__bar p { margin: 0; font-size: var(--fs-small); color: var(--color-text-2); }
.zoom-viewer__bar .btn-row { flex-wrap: nowrap; gap: var(--space-1); }
.zoom-viewer__bar .btn { width: auto; min-height: 44px; padding: 0.5rem 1rem; }
.zoom-viewer__stage { height: calc(100dvh - 61px); overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; }
.zoom-viewer__stage img { width: auto; max-width: 100%; max-height: calc(100dvh - 61px); margin-inline: auto; } /* ajuste a l'ecran */
.zoom-viewer.is-actual .zoom-viewer__stage img { max-width: none; max-height: none; }          /* taille reelle */
.zoom-viewer__stage svg { display: block; width: 100%; height: calc(100dvh - 61px); margin-inline: auto; background: var(--color-surface); }
.zoom-viewer.is-actual .zoom-viewer__stage svg { width: 1600px; max-width: none; height: auto; }

/* ── En-tete ──────────────────────────────────────────────── */
/* Fond plein, sans backdrop-filter : un filtre ici enfermerait le menu mobile (position: fixed) dans l'en-tete */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-bg); border-bottom: 1px solid transparent; transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease; }
.site-header .brand, .site-header .nav-toggle { transition: color 300ms ease; }

/* En-tete inverse (charbon) des que le visiteur a quitte la premiere section */
.site-header.is-inverted { background: var(--color-text); border-bottom-color: rgb(246 243 237 / 0.08); }
.site-header.is-inverted .brand, .site-header.is-inverted .brand:hover, .site-header.is-inverted .nav-toggle { color: var(--color-on-dark); }
.site-header.is-inverted .brand__logo .logo-lens { fill: rgb(195 167 119 / 0.22); }
.site-header.is-inverted .brand__logo .logo-lines { stroke: var(--color-accent-soft); }
.site-header.is-inverted .brand__logo .logo-core { fill: var(--color-on-dark); }
.site-header.is-inverted .brand__logo .logo-nodes circle { fill: var(--color-text); stroke: var(--color-accent-soft); }
.site-header.is-inverted .site-nav.is-open { background: var(--color-text); }
.site-header.is-inverted .site-nav a:not(.btn) { color: var(--color-on-dark); }
.site-header.is-inverted .site-nav a:not(.btn):hover, .site-header.is-inverted .site-nav a:not(.btn)[aria-current="page"] { color: var(--color-accent-soft); }
.site-header.is-inverted .site-nav .btn { background: var(--color-on-dark); border-color: var(--color-on-dark); color: var(--color-text); }
.site-header.is-inverted .site-nav .btn:hover { background: var(--color-on-dark-2); border-color: var(--color-on-dark-2); }
.site-header.is-scrolled { border-bottom-color: var(--color-border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--header-height); }
.brand { font-family: var(--font-display); font-size: clamp(1.875rem, 1.5rem + 1.1vw, 2.625rem); line-height: 1; letter-spacing: -0.01em; color: var(--color-text); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--color-text); }
/* Nom + logo coeur a droite, aligne sur la ligne du texte */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__logo { width: auto; height: clamp(40px, 33px + 1vw, 54px); aspect-ratio: 316 / 277; flex: none; overflow: visible; }
.brand__logo .logo-lens { fill: rgb(195 167 119 / 0.32); transition: fill 300ms ease; }
.brand__logo .logo-lines { fill: none; stroke: var(--color-accent); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; transition: stroke 300ms ease; }
.brand__logo .logo-core { fill: var(--color-text); transition: fill 300ms ease; }
.brand__logo .logo-nodes circle { fill: var(--color-bg); stroke: var(--color-accent); stroke-width: 3.5; transition: fill 300ms ease, stroke 300ms ease; }
.site-footer .brand { display: inline-block; }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -12px; padding: 0; border: 0; background: none; color: var(--color-text); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.is-open {
  display: flex; flex-direction: column; gap: var(--space-1);
  position: fixed; inset: var(--header-height) 0 0 0; z-index: 49;
  padding: var(--space-4) var(--gutter); background: var(--color-bg); overflow-y: auto;
}
.site-nav a:not(.btn) { display: flex; align-items: center; min-height: 48px; font-size: 1.25rem; font-family: var(--font-display); color: var(--color-text); text-decoration: none; }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--color-accent); }
.site-nav .btn { margin-top: var(--space-3); }
body.nav-open { overflow: hidden; }

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open { display: flex; flex-direction: row; align-items: center; gap: var(--space-4); position: static; padding: 0; background: none; overflow: visible; }
  .site-nav a:not(.btn) { min-height: 44px; font-family: var(--font-body); font-size: 1.0625rem; font-weight: 500; letter-spacing: 0; color: var(--color-text); transition: color 300ms ease; }
  .site-nav a:not(.btn):hover { color: var(--color-accent); }
  .site-nav a:not(.btn)[aria-current="page"] { color: var(--color-text); text-decoration: underline; text-decoration-color: var(--color-accent-soft); text-underline-offset: 0.5em; }
  .site-nav .btn { margin-top: 0; min-height: 50px; padding: 0.625rem 1.5rem; font-size: 1rem; transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease; }
}

/* ── Pied de page ─────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--color-border); padding-block: var(--space-6) var(--space-4); font-size: var(--fs-small); color: var(--color-text-2); }
.site-footer__grid { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); } }
.site-footer .brand { font-size: 1.875rem; display: inline-block; margin-bottom: var(--space-2); }
.site-footer h2 { font-family: var(--font-body); font-size: var(--fs-small); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text); margin-bottom: var(--space-2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 40px; font-size: var(--fs-body); color: var(--color-text-2); text-decoration: none; }
.site-footer li a:hover { color: var(--color-accent); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ── Formulaires ──────────────────────────────────────────── */
.form-card { max-width: 34rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); }
.form { display: grid; gap: 1.25rem; max-width: 34rem; }
.form-card .form { max-width: none; }
.field label { display: grid; gap: 0.5rem; font-size: var(--fs-label); font-weight: 600; color: var(--color-text); letter-spacing: 0; }
.field .optional { font-weight: 400; color: var(--color-text-2); }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 52px; margin: 0; padding: 0.875rem 1rem;
  border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg);
  color: var(--color-text); font: inherit; font-size: 1rem; /* 16px : evite le zoom automatique sur iPhone */
  letter-spacing: var(--tracking-body);
  transition: border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}
.field input:hover, .field textarea:hover { border-color: #B9AE9F; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-accent); background: var(--color-surface); box-shadow: 0 0 0 3px rgb(128 98 62 / 0.18); }
.field input:user-invalid { border-color: #9B2C2C; }
.consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 0.75rem; align-items: start; font-size: var(--fs-small); color: var(--color-text-2); line-height: 1.55; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0.15rem 0 0; accent-color: var(--color-text); cursor: pointer; }
.form .btn { justify-self: start; }
@media (max-width: 479px) { .form .btn { justify-self: stretch; width: 100%; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: var(--fs-small); font-weight: 600; }
.form-status:empty { display: none; }
.form-status[data-state="ok"] { color: var(--color-text); }
.form-status[data-state="error"] { color: #9B2C2C; }
.section--dark .form-status[data-state="error"] { color: #F2B8B5; }

/* ── Pages legales et articles ────────────────────────────── */
.legal, .article { max-width: var(--measure); margin-inline: auto; padding: var(--space-6) var(--gutter) var(--section-space); }
.legal h1 { font-size: var(--fs-h2); }
.legal h2 { font-size: var(--fs-h3); margin-top: var(--space-5); }
.legal-updated, .article-meta { font-size: var(--fs-small); color: var(--color-text-2); }
.article-lead { font-size: var(--fs-lead); color: var(--color-text-2); }
.article-body h2 { font-size: var(--fs-h3); margin-top: var(--space-5); }
.article-body h3 { font-size: 1.375rem; margin-top: var(--space-4); }
.article-body img { border-radius: var(--radius); margin-block: var(--space-4); }
.article-body blockquote { margin: var(--space-4) 0; padding-left: var(--space-3); border-left: 1px solid var(--color-accent-soft); font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.3; }
.article-body code { font-size: 0.9em; background: var(--color-surface-alt); padding: 0.1em 0.35em; border-radius: 3px; }
.article-footer { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--color-border); }


/* ── Page d'accueil ───────────────────────────────────────── */
.section--white { background: var(--color-surface); }
.section-head { margin-bottom: clamp(2rem, 1.25rem + 2.5vw, 3.25rem); }
.section-head > :last-child { margin-bottom: 0; }
.display { font-size: clamp(2.5rem, 1.6rem + 3.8vw, 4.75rem); line-height: 1.05; }
.split--even { align-items: center; }
@media (min-width: 900px) {
  .split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--media-first { grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); }
}

/* 01 Hero */
.home-hero h1 { font-size: clamp(2.75rem, 1.8rem + 4vw, 5rem); }
.home-hero .lead p { margin-bottom: 0.75rem; }
.home-hero .lead p:last-child { margin-bottom: 0; }
.home-hero .btn-row { gap: var(--space-2) var(--space-4); }
.scroll-link { display: inline-flex; align-items: center; gap: 0.4em; min-height: 48px; color: var(--color-text); }
.scroll-link:hover { color: var(--color-accent); }

/* 02 Probleme : titre a gauche, exemples a droite */
.problem-grid { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .problem-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-6); align-items: start; }
  .problem-intro { position: sticky; top: calc(var(--header-height) + var(--space-4)); }
}
.problem-intro h2 { margin-bottom: 0; }
.problem-list { list-style: none; padding: 0; margin: 0 0 var(--space-5); border-top: 1px solid var(--color-border); }
.problem-list li { padding-block: var(--space-4); border-bottom: 1px solid var(--color-border); }
.problem-list p { margin: 0; font-size: var(--fs-lead); line-height: 1.5; }
.problem-conclusion p:first-child { font-size: var(--fs-lead); line-height: 1.5; }
.problem-conclusion p:last-child { margin-bottom: 0; color: var(--color-text-2); }

/* 03 Vue d'ensemble : mots du texte relies par des lignes fines */
.connect-figure { max-width: 30rem; width: 100%; margin-inline: auto; }
.connect-figure svg { width: 100%; height: auto; overflow: visible; }
.connect-lines line, .connect-lines polygon { fill: none; stroke: var(--color-accent-soft); stroke-width: 1; }
.connect-lines polygon { stroke-dasharray: 3 5; }
.connect-core { fill: var(--color-text); }
.connect-nodes circle { fill: var(--color-surface-alt); stroke: var(--color-accent); stroke-width: 1.5; }
.connect-labels text { font-family: var(--font-display); font-size: 21px; fill: var(--color-text); }
@media (max-width: 899px) { .connect-figure { max-width: 26rem; } .connect-labels text { font-size: 25px; } }

/* 04 Understand, See, Create : colonnes editoriales, pas de cartes */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); counter-reset: none; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); } }
.step { padding-top: var(--space-3); border-top: 1px solid var(--color-text); }
.step__num { display: block; font-family: var(--font-display); font-size: clamp(3rem, 2.4rem + 2.4vw, 4.5rem); line-height: 1; color: var(--color-accent); margin-bottom: var(--space-2); }
.step__title { font-family: var(--font-body); font-size: var(--fs-small); font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; margin-bottom: var(--space-2); }
.step__lead { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.2; color: var(--color-text); }
.step p:not(.step__lead) { color: var(--color-text-2); }
.step > :last-child { margin-bottom: 0; }

/* 05 Methode */
.method-diagram-title { font-family: var(--font-body); font-size: var(--fs-small); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--space-2); }
.method-grid { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); align-items: start; }
.method-grid > * { min-width: 0; }
@media (min-width: 1024px) { .method-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: var(--space-6); } }
.home-method .diagram figcaption { justify-content: space-between; }

/* Schema RA en version design du site (TEST) */
.diagram--svg .diagram__frame { border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); padding: clamp(0.5rem, 0.2rem + 1vw, 1rem); }
.ra-svg { display: block; width: 100%; height: auto; }
.ra-frame { fill: var(--color-surface); stroke: var(--color-border); stroke-width: 1.5; }
.ra-tag { fill: var(--color-bg); stroke: var(--color-accent); stroke-width: 1.5; }
.ra-l5 { fill: var(--color-surface-soft); stroke: var(--color-accent-soft); stroke-width: 1.5; }
.ra-l4 { fill: var(--color-bg); stroke: var(--color-accent-soft); stroke-width: 1.5; }
.ra-l3 { fill: var(--color-surface-alt); stroke: var(--color-accent-soft); stroke-width: 1.5; }
.ra-l2 { fill: #E4D9C8; stroke: var(--color-accent); stroke-width: 1; }
.ra-l1 { fill: var(--color-text); stroke: var(--color-accent-soft); stroke-width: 1.5; }
.ra-arrow { fill: none; stroke: var(--color-text-2); stroke-width: 1.4; }
.ra-arrowhead { fill: var(--color-text-2); }
.ra-underline { stroke: var(--color-accent-soft); stroke-width: 2; }
.ra-num { fill: var(--color-surface); stroke: var(--color-accent); stroke-width: 1.5; }
.ra-num--dark { fill: var(--color-text); stroke: var(--color-accent-soft); }
.ra-num-t { font-family: var(--font-display); font-size: 24px; fill: var(--color-accent); }
.ra-num-t--sm { font-size: 20px; }
.ra-num-t--dark { fill: var(--color-on-dark); font-size: 20px; }
.ra-pill { fill: var(--color-bg); stroke: var(--color-accent-soft); stroke-width: 1.2; }
.ra-notebox { fill: var(--color-bg); stroke: var(--color-border); stroke-width: 1.5; }
.ra-t { font-family: var(--font-display); fill: var(--color-text); }
.ra-t--tag { font-size: 30px; }
.ra-t--layer { font-size: 34px; }
.ra-t--layer2 { font-size: 31px; }
.ra-t--layer5 { font-size: 27px; }
.ra-t--sub { font-size: 21px; fill: var(--color-text-2); }
.ra-t--accent { font-size: 22px; font-style: italic; fill: var(--color-accent); }
.ra-t--core { font-size: 24px; fill: var(--color-on-dark); }
.ra-t--core-sub { font-size: 20px; font-style: italic; fill: var(--color-on-dark-2); }
.ra-t--pill { font-size: 22px; }
.ra-t--note { font-size: 20px; font-style: italic; fill: var(--color-text-2); }
.ra-t--list { font-size: 22px; fill: var(--color-accent); }
.ra-t--legend { font-size: 20px; }

/* 03 : tableau de mots en desordre et observateur sceptique */
.board-svg { display: block; width: 100%; height: auto; overflow: visible; }
.board { fill: var(--color-surface); stroke: var(--color-text-2); stroke-width: 1.5; }
.board-inner { fill: none; stroke: var(--color-border); stroke-width: 1; }
.board-leg { stroke: var(--color-text-2); stroke-width: 1.5; }
.board-tray { stroke: var(--color-text-2); stroke-width: 3; stroke-linecap: round; }
.board-links path { fill: none; stroke: var(--color-accent-soft); stroke-width: 1.2; stroke-dasharray: 4 5; }
.board-words text { font-family: var(--font-display); fill: var(--color-text); }
.board-words .w-lg { font-size: 36px; }
.board-words .w-md { font-size: 25px; }
.board-words .w-sm { font-size: 21px; }
.board-words .w-xs { font-size: 17px; }
.board-words .w-q { font-size: 26px; font-style: italic; fill: var(--color-accent); }
.skeptic circle, .skeptic path { fill: var(--color-bg); stroke: var(--color-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.skeptic .skeptic-arm { fill: none; }
.skeptic-q { font-family: var(--font-display); font-size: 46px; font-style: italic; fill: var(--color-accent); }

/* 03 : illustration "Why am I stuck?" (fond transparent, se fond dans la section) */
.stuck-figure { margin: 0; max-width: 36rem; width: 100%; margin-inline: auto; }
.stuck-figure img { width: 100%; height: auto; }

/* 05 : schema interactif, un niveau cliquable a la fois */
.ra-t--layer4 { font-size: 30px; }
.ra-t--layer-sm { font-size: 26px; }
.ra-t--dream { font-size: 25px; }
.ra-t--group { font-size: 17px; font-style: italic; fill: var(--color-accent); }
.ra-t--item { font-size: 19px; fill: var(--color-text); }
.ra-rule { stroke: var(--color-accent-soft); stroke-width: 1.2; }
.ra-t--legend-sub { font-size: 18px; fill: var(--color-text-2); }
.ra-interactive .ra-layer { cursor: pointer; outline: none; }
.ra-interactive .ra-shape { transition: stroke var(--transition), stroke-width var(--transition); }
.ra-interactive .ra-layer:hover > .ra-shape,
.ra-interactive .ra-layer:focus-visible > .ra-shape { stroke: var(--color-accent); stroke-width: 2.5; }
.ra-interactive .ra-layer.is-active > .ra-shape { stroke: var(--color-accent); stroke-width: 3.5; }
.ra-interactive .ra-layer.is-active > .ra-num { fill: var(--color-accent); }
.ra-interactive .ra-layer.is-active > .ra-num-t { fill: var(--color-surface); }
.ra-interactive .ra-layer.is-active > .ra-num--dark + .ra-num-t--dark { fill: var(--color-surface); }
.ra-interactive .ra-legend.is-active .ra-t { fill: var(--color-accent); }
.ra-hint { font-size: var(--fs-small); color: var(--color-text-2); }

.ra-panel { margin-top: var(--space-3); }
.ra-levels { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.ra-level { padding: var(--space-3); background: var(--color-surface); border: 1px solid var(--color-border); border-left: 2px solid var(--color-accent); border-radius: var(--radius); }
.ra-level > :last-child { margin-bottom: 0; }
.ra-level__meta { font-size: var(--fs-small); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-accent); margin-bottom: 0.25rem; }
.ra-level__title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 400; margin-bottom: 0.25rem; }
.ra-level__title span { font-style: italic; color: var(--color-text-2); font-size: 0.75em; }
.ra-level__step { font-weight: 600; margin-bottom: 0.5rem; }
/* Avec JavaScript : seul le niveau choisi s'affiche (sans JS : la liste complete) */
.js .ra-level { display: none; }
.js .ra-level.is-active { display: block; animation: ra-in 250ms ease-out; }
@keyframes ra-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ra-hint { display: none; }
.js .ra-hint { display: inline; }

/* 06 Identite : moment immersif */
.identity-inner { max-width: 48rem; text-align: center; }
.identity-inner .display { color: var(--color-on-dark); margin-bottom: var(--space-4); }
.identity-inner p { font-size: var(--fs-lead); line-height: 1.55; }
.identity-close { margin-top: var(--space-4); }
.identity-close strong { color: var(--color-on-dark); font-weight: 600; }

/* 07 Meet Brian */
.portrait--square img { aspect-ratio: 1 / 1; object-position: 50% 12%; }
.portrait--landscape img { aspect-ratio: 4 / 3; object-position: 50% 50%; }
.home-brian .portrait--landscape { max-width: 36rem; }
.home-brian .portrait { max-width: 30rem; }
.home-brian .btn { margin-top: var(--space-2); }

/* 08 Temoignages */
.testimonials { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .testimonials { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); } }
.testimonial { margin: 0; padding-top: var(--space-4); border-top: 1px solid var(--color-accent-soft); display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-4); }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.3; color: var(--color-text); margin: 0; }
.testimonial figcaption { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-small); color: var(--color-text-2); line-height: 1.4; }
.testimonial figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; flex: none; }
.testimonial figcaption strong { color: var(--color-text); font-size: var(--fs-body); }

/* 08 Diaporama de temoignages */
.section-head--center { text-align: center; max-width: 42rem; margin-inline: auto; }
.carousel { max-width: 48rem; margin-inline: auto; text-align: center; }
.carousel__slides { display: grid; }
.slide { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.slide blockquote { margin: 0; }
.slide__quote { font-family: var(--font-display); font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem); line-height: 1.25; color: var(--color-text); margin: 0 0 var(--space-3); text-wrap: balance; }
.slide__full { font-size: var(--fs-small); color: var(--color-text-2); }
.slide__full summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--color-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em; list-style: none; }
.slide__full summary::-webkit-details-marker { display: none; }
.slide__full summary:hover { color: var(--color-text); }
.slide__full[open] summary { display: none; }
.slide__full p { max-width: 38rem; margin: var(--space-1) auto 0; font-size: var(--fs-body); line-height: 1.65; text-align: left; }
.slide figcaption { display: flex; align-items: center; gap: var(--space-2); text-align: left; font-size: var(--fs-small); color: var(--color-text-2); line-height: 1.4; }
.slide figcaption img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.slide figcaption strong { color: var(--color-text); font-size: var(--fs-body); }
.carousel__controls, .carousel__dots { display: none; }

/* Avec JavaScript : diapositives superposees, une seule visible */
.carousel.is-enhanced .slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 450ms ease, visibility 0s linear 450ms; }
.carousel.is-enhanced .slide.is-active { opacity: 1; visibility: visible; transition: opacity 450ms ease; }
.carousel.is-enhanced .carousel__controls { display: flex; justify-content: center; gap: var(--space-1); margin-top: var(--space-4); }
.carousel.is-enhanced .carousel__dots { display: flex; justify-content: center; gap: 0.25rem; margin-top: var(--space-2); }
/* Sans JavaScript : les temoignages s'affichent les uns sous les autres */
.carousel:not(.is-enhanced) .carousel__slides { gap: var(--space-5); }

.carousel__btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--color-border); border-radius: 50%; background: var(--color-surface); color: var(--color-text); font: inherit; font-size: 1.125rem; cursor: pointer; transition: border-color var(--transition), background-color var(--transition); }
.carousel__btn:hover { border-color: var(--color-text); }
.carousel__btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
/* Icone pause (deux barres) ou lecture (triangle) */
.carousel__icon { position: relative; width: 12px; height: 14px; }
.carousel__icon::before, .carousel__icon::after { content: ""; position: absolute; top: 0; width: 4px; height: 14px; background: currentColor; border-radius: 1px; }
.carousel__icon::before { left: 0; }
.carousel__icon::after { right: 0; }
.carousel__btn--pause.is-paused .carousel__icon::before { left: 2px; width: 0; height: 0; background: none; border-radius: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; }
.carousel__btn--pause.is-paused .carousel__icon::after { display: none; }
.carousel__dot { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.carousel__dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-border); transition: background-color var(--transition), transform var(--transition); }
.carousel__dot[aria-current="true"]::before { background: var(--color-accent); transform: scale(1.25); }
.carousel__dot:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 0; border-radius: 50%; }

/* 09 Appel final */
.final-inner { max-width: calc(680px + 2 * var(--gutter)); text-align: center; }
.final-inner .display { color: var(--color-on-dark); }
.final-inner .btn { margin-top: var(--space-3); }
.final-note { margin-top: var(--space-2); font-size: var(--fs-small); }
@media (max-width: 479px) { .final-inner .btn { width: 100%; } }

/* Diagnostic : liste d'attente */
.waitlist { padding-top: clamp(3rem, 2rem + 4vw, 6rem); }
.waitlist-inner { max-width: calc(46rem + 2 * var(--gutter)); }
.waitlist h1 { font-size: var(--fs-h2); }
.waitlist .lead { margin-bottom: var(--space-4); }
.waitlist .lead p:last-child { margin-bottom: 0; }

.site-footer__tagline { margin: 0; max-width: 22rem; }

/* ── Page About ───────────────────────────────────────────── */
/* Defilement doux vers les ancres, sauf mouvement reduit */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* 01 Hero : signature 56 % / portrait 44 % */
@media (min-width: 900px) { .about-hero__grid { grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); } }
.about-signature { position: relative; padding-top: var(--space-4); }
.about-signature__mark { position: absolute; top: -0.35em; left: -0.05em; font-family: var(--font-display); font-size: clamp(5rem, 3.5rem + 6vw, 9rem); line-height: 1; color: var(--color-accent-soft); pointer-events: none; }
.about-signature h1 { position: relative; margin: 0; font-size: clamp(2.5rem, 1.7rem + 3.4vw, 4.5rem); line-height: 1.08; }
.about-signature__line { display: block; }
.about-signature__line + .about-signature__line { margin-top: 0.2em; }
.about-signature__line:nth-child(3) { color: var(--color-text-2); }
.about-signature__line:nth-child(4) { font-style: italic; color: var(--color-accent); }
.about-hero__portrait { max-width: 30rem; width: 100%; justify-self: end; }
.about-hero__portrait img { aspect-ratio: 626 / 805; object-position: 50% 20%; }
@media (max-width: 899px) { .about-hero__portrait { max-width: 26rem; justify-self: start; } }

/* 02 Ancres */
.about-anchors { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); background: var(--color-surface-soft); padding-block: var(--space-3); }
.about-anchors__row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.about-anchors .btn { min-height: 48px; }
@media (max-width: 479px) { .about-anchors .btn { flex: 1 1 100%; } }

/* 03 My Story : colonne de lecture */
.about-story__body { max-width: 42rem; margin-inline: auto; }
.about-story__body p { font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem); line-height: 1.75; }
.about-story__opening { font-family: var(--font-display); font-size: var(--fs-h3) !important; line-height: 1.25 !important; color: var(--color-text); }
.about-story__turn { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--color-border); }
.about-pullquote { margin: var(--space-5) 0; padding: var(--space-3) 0 var(--space-3) var(--space-4); border-left: 2px solid var(--color-accent); }
.about-pullquote p { margin: 0; font-family: var(--font-display); font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem) !important; line-height: 1.2 !important; color: var(--color-text); }

/* 04 My Mission : charbon, texte a gauche, photo a droite */
@media (min-width: 900px) { .about-mission__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }
.about-mission__text { max-width: 38rem; }
.about-mission h2 { color: var(--color-on-dark); }
.about-mission .lead { color: var(--color-on-dark); }
.about-mission__photo { margin: 0; }
.about-mission__photo img { border-radius: var(--radius); }

/* 05 Valeurs en quinconce */
.about-values__title { text-align: center; margin-bottom: clamp(2rem, 1.25rem + 2.5vw, 3.5rem); }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2rem, 1.25rem + 2.5vw, 3.5rem); }
.value { max-width: 34rem; padding-top: var(--space-3); border-top: 1px solid var(--color-accent-soft); }
.value > :last-child { margin-bottom: 0; }
.value__num { display: block; font-family: var(--font-display); font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem); line-height: 1; color: var(--color-accent); margin-bottom: var(--space-1); }
.value__name { font-family: var(--font-body); font-size: var(--fs-small); font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; margin-bottom: var(--space-2); }
.value p { color: var(--color-text-2); }
@media (min-width: 768px) {
  .value:nth-child(odd) { justify-self: start; }
  .value:nth-child(even) { justify-self: end; }
  .value:nth-child(3) { justify-self: center; }
}

/* 06 Appel final */
.about-cta__inner { max-width: calc(680px + 2 * var(--gutter)); text-align: center; }
.about-cta__inner .btn { margin-top: var(--space-2); }
@media (max-width: 479px) { .about-cta__inner .btn { width: 100%; } }

/* ── Page Testimonials ──────────────────────────────────────── */
.btn--gold { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-dark); }
.btn--gold:hover, .section--dark .btn--gold:hover { background: #6B5133; border-color: #6B5133; color: var(--color-on-dark); }
.section--dark .btn--gold { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-dark); }

.testi-hero__inner { max-width: calc(46rem + 2 * var(--gutter)); text-align: center; }
.testi-hero h1 { color: var(--color-on-dark); font-size: clamp(3rem, 2rem + 4.2vw, 5.5rem); }
.testi-hero .lead { margin-bottom: var(--space-4); }

.stories { padding-block: var(--section-space); display: grid; gap: clamp(3.5rem, 2.5rem + 3.5vw, 6rem); }
.story { scroll-margin-top: calc(var(--header-height) + 1rem); }
.story__banner { margin: 0 auto var(--space-5); max-width: calc(var(--max-width) + 2 * var(--gutter)); padding-inline: var(--gutter); }
.story__banner p { margin: 0; padding: clamp(1.25rem, 1rem + 1vw, 2rem) clamp(1.25rem, 0.75rem + 2vw, 2.5rem); background: var(--color-surface-alt); border-left: 2px solid var(--color-accent); border-radius: var(--radius); font-family: var(--font-display); font-style: italic; font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem); line-height: 1.3; color: var(--color-text); text-align: center; text-wrap: balance; }

/* Mobile : nom et fonction, photo, puis texte complet */
.story__grid { display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "photo" "body"; }
.story__grid > * { min-width: 0; }
.story__head { grid-area: head; }
.story__photo { grid-area: photo; margin: 0; max-width: 26rem; }
.story__body { grid-area: body; position: relative; }
/* Ordinateur : alternance texte/photo, nom attache a la colonne texte */
@media (min-width: 900px) {
  .story__grid { column-gap: var(--space-6); row-gap: var(--space-3); align-items: start; }
  .story--text-left .story__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "head photo" "body photo"; }
  .story--text-right .story__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "photo head" "photo body"; }
  .story__photo { max-width: none; }
  .story--text-left .story__head { text-align: right; }
}
.story__name { margin: 0; font-size: var(--fs-h2); }
.story__role { margin: 0.25rem 0 0; font-size: var(--fs-small); font-style: italic; color: var(--color-text-2); }
.story__photo img { width: 100%; height: auto; border-radius: var(--radius); }
.story__mark { display: block; height: 0.5em; font-family: var(--font-display); font-size: 4.5rem; line-height: 1; color: var(--color-accent-soft); }
.story__body blockquote { margin: 0; }
.story__body p { font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem); line-height: 1.75; color: var(--color-text); }
.story__body p:last-child { margin-bottom: 0; }

.testi-community { background: linear-gradient(160deg, #3A352F 0%, var(--color-text) 60%); }
.testi-community__inner { max-width: calc(44rem + 2 * var(--gutter)); text-align: center; }
.testi-community h2 { color: var(--color-on-dark); font-size: var(--fs-h1); }
.testi-community .btn { margin-top: var(--space-3); }
.testi-social__inner { text-align: center; }
.social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
@media (max-width: 479px) { .testi-hero .btn, .testi-community .btn { width: 100%; } }

/* Accueil : lien vers la page temoignages */
.proof-more { text-align: center; margin-top: var(--space-4); }

/* ── Page Articles ──────────────────────────────────────────── */
/* Icone en oeuf : les 5 couches du schema, le niveau en or */
.egg { width: 30px; height: 24px; flex: none; overflow: visible; }
.egg__ring { fill: none; stroke: var(--color-border); stroke-width: 1.2; }
.egg__ring.is-on { stroke: var(--color-accent); stroke-width: 2; fill: rgb(195 167 119 / 0.18); }
.egg__core.is-on { fill: var(--color-text); }

.level-chip { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 var(--space-2); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.02em; color: var(--color-accent); }
.level-chip a { display: inline-flex; align-items: center; gap: 0.5rem; color: inherit; text-decoration: none; }
.level-chip a:hover span { text-decoration: underline; text-underline-offset: 0.2em; }

.articles-hero__inner { max-width: calc(46rem + 2 * var(--gutter)); text-align: center; }
.articles-hero h1 { color: var(--color-on-dark); font-size: clamp(2.75rem, 1.8rem + 4vw, 5rem); }
.articles-hero h1 em { color: var(--color-accent-soft); }
.articles-hero .lead { margin-bottom: 0; }

/* Filtres : affiches seulement si JavaScript est actif */
.articles-filters { display: none; }
.js .articles-filters { display: block; position: sticky; top: var(--header-height); z-index: 40; background: var(--color-surface-soft); border-bottom: 1px solid var(--color-border); }
.articles-filters__row { display: flex; gap: var(--space-1); padding-block: var(--space-2); overflow-x: auto; scrollbar-width: thin; }
.filter { display: inline-flex; align-items: center; gap: 0.6rem; flex: none; min-height: 48px; padding: 0.4rem 1rem 0.4rem 0.6rem; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); color: var(--color-text); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--transition), background-color var(--transition); }
.filter:hover { border-color: var(--color-text-2); }
.filter:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.filter[aria-pressed="true"] { background: var(--color-text); border-color: var(--color-text); color: var(--color-on-dark); }
.filter[aria-pressed="true"] .egg__ring { stroke: rgb(246 243 237 / 0.35); }
.filter[aria-pressed="true"] .egg__ring.is-on { stroke: var(--color-accent-soft); fill: rgb(195 167 119 / 0.25); }
.filter[aria-pressed="true"] .egg__core.is-on { fill: var(--color-on-dark); }
.filter__text { display: grid; line-height: 1.2; }
.filter__level { font-size: 0.75rem; font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-accent); }
.filter[aria-pressed="true"] .filter__level { color: var(--color-accent-soft); }
.filter__label { font-size: 0.9375rem; font-weight: 600; }
@media (min-width: 768px) { .articles-filters__row { flex-wrap: wrap; justify-content: center; overflow: visible; } }

/* Article a la une */
.articles-featured { margin-bottom: var(--space-4); }
.articles-featured:empty { display: none; }
.article-feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); }
@media (min-width: 768px) { .article-feature { grid-template-columns: auto minmax(0, 1fr); gap: var(--space-5); } }
.article-feature__num { font-family: var(--font-display); font-size: clamp(3.5rem, 2.5rem + 3vw, 5.5rem); line-height: 0.9; color: var(--color-accent-soft); }
.article-feature__title { font-size: var(--fs-h2); margin-bottom: var(--space-2); }
.article-feature__title a, .article-card__title a { color: var(--color-text); text-decoration: none; }
/* Toute la carte est cliquable, le lien reste le titre (accessible) */
.article-feature, .article-card { position: relative; transition: border-color var(--transition), transform var(--transition); }
.article-feature__title a::after, .article-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.article-feature:hover, .article-card:hover { border-color: var(--color-accent-soft); }
.article-feature:hover .article-card__read, .article-card:hover .article-card__read { transform: translateX(3px); }
.article-feature__title a:focus-visible::after, .article-card__title a:focus-visible::after { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.article-feature__excerpt { font-size: var(--fs-lead); color: var(--color-text-2); }

/* Grille */
.articles-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.article-card { display: flex; flex-direction: column; padding: var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); }
.article-card.is-featured { display: none; }
.articles-list.is-filtered .article-card.is-featured { display: flex; }
.articles-list.is-filtered .articles-featured { display: none; }
.article-card[hidden] { display: none !important; }
.article-card__title { font-size: var(--fs-h3); margin-bottom: var(--space-2); }
.article-card__excerpt { color: var(--color-text-2); flex: 1; }
.article-card__meta { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); margin: var(--space-2) 0 0; padding-top: var(--space-2); border-top: 1px solid var(--color-border); font-size: var(--fs-small); color: var(--color-text-2); }
.article-card__read { color: var(--color-accent); font-weight: 600; transition: transform var(--transition); }
.articles-empty { text-align: center; color: var(--color-text-2); padding-block: var(--space-5); margin: 0; }

/* Article : retour et pied */

/* ── Gabarit article ───────────────────────────────────────── */
.reading-progress { position: sticky; top: var(--header-height); z-index: 45; height: 3px; background: var(--color-border); }
.reading-progress__bar { display: block; height: 100%; width: 0; background: var(--color-accent); transition: width 80ms linear; }

.article-head { grid-area: head; }
.article-toc { grid-area: toc; }
.article-layout .article-body { grid-area: body; }
.article-aside { grid-area: aside; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 var(--space-4); padding: 0; font-size: var(--fs-small); color: var(--color-text-2); }
.breadcrumb li { display: flex; gap: 0.4rem; min-width: 0; }
.breadcrumb li:not(:last-child)::after { content: "/"; opacity: 0.5; }
.breadcrumb a { color: var(--color-text-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb [aria-current="page"] { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 42ch; color: var(--color-text); }
.article-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); margin: 0 0 var(--space-3); font-size: var(--fs-small); color: var(--color-text-2); }
.article-head__meta .level-chip { margin: 0; text-decoration: none; }
.article-head__meta .level-chip:hover span { text-decoration: underline; text-underline-offset: 0.2em; }
.article-head__title { font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem); line-height: 1.08; margin-bottom: var(--space-3); }
.article-head__title em { color: var(--color-accent); }
.article-head__lead { font-size: var(--fs-lead); font-style: italic; line-height: 1.6; color: var(--color-text-2); padding-left: var(--space-3); border-left: 2px solid var(--color-accent); margin-bottom: var(--space-4); }
.article-author { display: flex; align-items: center; gap: var(--space-2); padding-block: var(--space-2); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.article-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 1px solid var(--color-accent-soft); flex: none; }
.article-author__name { margin: 0; font-weight: 700; line-height: 1.3; }
.article-author__role { margin: 0; font-size: var(--fs-small); color: var(--color-accent); }
.article-author__right { margin: 0 0 0 auto; text-align: right; font-size: var(--fs-small); color: var(--color-text-2); line-height: 1.5; }

/* 3 colonnes : sommaire / texte / encart */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "body" "aside"; gap: var(--space-5); max-width: calc(var(--max-width) + 2 * var(--gutter)); margin-inline: auto; padding: var(--space-4) var(--gutter) var(--section-space); align-items: start; }
.article-layout > * { min-width: 0; }
.article-toc { display: none; }
@media (min-width: 900px) { .article-layout { grid-template-columns: minmax(0, 680px) 260px; grid-template-areas: "head ." "body aside"; justify-content: center; column-gap: var(--space-5); } }
@media (min-width: 1200px) {
  .article-layout { grid-template-columns: 200px minmax(0, 680px) 250px; grid-template-areas: ". head ." "toc body aside"; column-gap: 2.5rem; }
  .article-toc { display: block; position: sticky; top: calc(var(--header-height) + 2rem); }
}
.article-toc__label { font-size: 0.75rem; font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text-2); margin-bottom: var(--space-2); }
.article-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--color-border); }
.article-toc a { position: relative; display: block; padding: 0.4rem 0 0.4rem 1.6rem; margin-left: -1px; border-left: 2px solid transparent; font-size: 0.875rem; line-height: 1.4; color: var(--color-text-2); text-decoration: none; transition: color var(--transition), border-color var(--transition); }
.article-toc a::before { content: ""; position: absolute; left: 0.55rem; top: 0.95rem; width: 0.45rem; height: 1px; background: currentColor; opacity: 0.6; }
.article-toc a:hover { color: var(--color-text); }
.article-toc a.is-active { color: var(--color-accent); border-left-color: var(--color-accent); font-weight: 600; }
.article-toc a.is-done { color: var(--color-text); }
.article-toc a.is-done::before { content: "✓"; width: auto; height: auto; top: 0.4rem; left: 0.45rem; background: none; opacity: 1; font-size: 0.75rem; color: var(--color-accent); }

/* Texte */
.article-layout .article-body { font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem); line-height: 1.8; }
.article-layout .article-body > p:first-of-type { font-size: var(--fs-lead); line-height: 1.6; }
.article-layout .article-body h2 { font-size: clamp(1.625rem, 1.35rem + 1vw, 2.125rem); margin: var(--space-5) 0 var(--space-2); scroll-margin-top: calc(var(--header-height) + 1.5rem); }
.article-layout .article-body ol, .article-layout .article-body ul:not(.article-tags) { margin-bottom: var(--space-3); }
.article-layout .article-body li { margin-bottom: var(--space-1); }
.article-layout .article-body blockquote { margin: var(--space-5) 0; padding: var(--space-3) var(--space-4); background: rgb(195 167 119 / 0.08); border-left: 2px solid var(--color-accent); border-radius: 0 var(--radius) var(--radius) 0; }
.article-layout .article-body blockquote p { margin: 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem); line-height: 1.35; color: var(--color-text); }
.insight-box { margin: var(--space-5) 0; padding: var(--space-4); background: var(--color-surface); border: 1px solid var(--color-accent-soft); border-radius: var(--radius); }
.insight-box p { font-size: 1rem; margin-bottom: var(--space-1); }
.insight-box p:last-child { margin-bottom: 0; }
.insight-box__label { font-size: var(--fs-small) !important; font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--space-2) !important; }
.pattern-grid { display: grid; gap: var(--space-2); grid-template-columns: minmax(0, 1fr); margin: var(--space-5) 0; }
@media (min-width: 640px) { .pattern-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pattern-card { padding: var(--space-3); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); transition: border-color var(--transition); }
.pattern-card:hover { border-color: var(--color-accent-soft); }
.pattern-card p { margin: 0; }
.pattern-card__num { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; color: var(--color-accent-soft); margin-bottom: var(--space-1) !important; }
.pattern-card__title { font-weight: 700; font-size: 1rem; line-height: 1.3; margin-bottom: 0.4rem !important; }
.pattern-card__desc { font-size: 0.9375rem; line-height: 1.6; color: var(--color-text-2); }
.article-figure { margin: var(--space-5) 0; padding: var(--space-2); background: var(--color-surface-alt); border-radius: var(--radius); }
.article-figure img { width: 100%; height: auto; border-radius: calc(var(--radius) - 2px); margin: 0; }
.article-figure figcaption { padding: var(--space-2) var(--space-1) var(--space-1); font-family: var(--font-display); font-style: italic; font-size: 1.125rem; color: var(--color-text-2); text-align: center; }
.article-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: var(--space-5) 0 0; padding: var(--space-4) 0 0; border-top: 1px solid var(--color-border); }
.article-tags:empty { display: none; }
.article-tags li { margin: 0; padding: 0.3rem 0.85rem; border: 1px solid var(--color-border); border-radius: 999px; font-size: var(--fs-small); color: var(--color-text-2); }
.article-subscribe { margin-top: var(--space-5); padding: var(--space-4); background: var(--color-surface-alt); border-radius: var(--radius); }
.article-subscribe__title { font-size: var(--fs-h3) !important; margin: 0 0 var(--space-3) !important; }

/* Encart diagnostic */
.article-aside { position: static; }
@media (min-width: 900px) { .article-aside { position: sticky; top: calc(var(--header-height) + 2rem); } }
.aside-cta { padding: var(--space-4) var(--space-3); background: var(--color-surface); border: 1px solid var(--color-accent-soft); border-radius: var(--radius); text-align: center; }
.aside-cta__label { font-size: 0.75rem; font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--space-2); }
.aside-cta__title { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.2; color: var(--color-text); margin-bottom: var(--space-2); }
.aside-cta__text { font-size: 0.9375rem; color: var(--color-text-2); margin-bottom: var(--space-3); }
.aside-cta .btn { width: 100%; }

/* Articles lies */
.related { padding-block: var(--section-space); border-top: 1px solid var(--color-border); background: var(--color-surface-soft); }
.related h2 { margin-bottom: var(--space-4); }

/* ── Apparition au defilement (charte 06) ─────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity var(--reveal-duration) ease-out, transform var(--reveal-duration) ease-out; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
