/* Hexis Consulting — feuille de style unique (la CSP interdit les styles en ligne). */

/* ---------- Polices auto-hébergées (OFL) ---------- */
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
/* Grec polytonique (ἕξις) : Noto Sans, chargé seulement si ces caractères sont affichés. */
@font-face { font-family: "Hexis Grec"; src: url("/fonts/noto-sans-greek-ext-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+1F00-1FFF; }
@font-face { font-family: "Hexis Grec"; src: url("/fonts/noto-sans-greek-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0370-03FF; }

/* ---------- Charte (relevée dans le deck) ---------- */
:root {
  --navy: #1F2A5C;          /* titres, couverture */
  --violet: #7A4FD6;        /* accent */
  --violet-light: #B8A2F2;  /* accent sur fond bleu nuit (deck, couverture) */
  --violet-ink: #6F45CC;    /* texte violet sur lavande (contraste AA) */
  --lavender: #ECE7F9;      /* fonds d’étiquettes */
  --text: #333B52;          /* texte courant */
  --text-2: #5C6479;        /* texte secondaire, libellés */
  --note: #666D82;          /* notes et sources (#8A91A5 du deck, foncé pour le contraste AA) */
  --bg: #F4F5F8;            /* fond de page */
  --card: #FFFFFF;          /* cartes */
  --shadow: #D3DAE0;        /* ombre des cartes */
  --rule: #E3E6EE;          /* filets et séparateurs */
  --on-navy: #C9D0E3;       /* texte clair sur bleu nuit (deck) */
  --on-navy-rule: #3A4775;  /* filet sur bleu nuit (deck) */
  --chevron: #C9CEDB;

  --sans: "Montserrat", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --radius: 6px;
  --card-shadow: 0 1px 6px var(--shadow);
  --maxw: 1160px;
  --gutter: clamp(1rem, 5vw, 2.5rem);
  --gap: clamp(1rem, 2.5vw, 1.5rem);
  --header-h: 4rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; color: var(--navy); line-height: 1.25; margin: 0; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1.0625rem; }
p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 700; }
a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 2px; }
.band-navy :focus-visible, .site-header :focus-visible, .hero :focus-visible { outline-color: var(--violet-light); }
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--card); color: var(--navy); font-family: var(--sans); font-weight: 700;
  padding: 0.75rem 1rem; border-radius: var(--radius); box-shadow: var(--card-shadow);
}
.skip-link:focus { top: 0.75rem; }

.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Composants ---------- */
.eyebrow {
  font-family: var(--sans); font-weight: 700; font-size: 0.8125rem; line-height: 1.4;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet); margin: 0 0 0.75rem;
}
.section-title { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); line-height: 1.2; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); max-width: 38ch; text-wrap: balance; }
.row-label {
  font-family: var(--sans); font-weight: 700; font-size: 0.75rem; line-height: 1.4;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); text-align: left;
}
.row-label-accent { color: var(--violet); }

/* Carte : un seul style pour tout le site. */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--card-shadow); border: 0; padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.card > * + * { margin-top: 0.6rem; }
.card h3 + p, .card h4 + p { margin-top: 0.5rem; }

/* Phrase d’accroche */
.accroche {
  font-style: italic; color: var(--navy); font-size: clamp(1.1875rem, 1rem + 0.8vw, 1.5rem); line-height: 1.5;
  max-width: 46em; margin-top: clamp(2rem, 4vw, 3rem); padding: 0.15rem 0 0.15rem clamp(1rem, 2.5vw, 1.75rem);
  border-left: 3px solid var(--violet);
}
.accroche strong { color: var(--violet); font-weight: 700; }

/* Étiquette */
.tag {
  display: inline-block; background: var(--lavender); color: var(--violet-ink); border-radius: var(--radius);
  font-family: var(--sans); font-weight: 700; font-size: 0.8125rem; line-height: 1.3; padding: 0.3rem 0.65rem; white-space: nowrap;
}

/* Boutons */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; padding: 0.9rem 1.4rem; border-radius: var(--radius);
  background: var(--violet); color: #FFFFFF; transition: background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--navy); color: #FFFFFF; }
.btn-on-dark { background: var(--violet-light); color: var(--navy); }
.btn-on-dark:hover { background: #FFFFFF; color: var(--navy); }
.btn-small { font-size: 0.875rem; padding: 0.6rem 1rem; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Grilles de cartes */
.grid { display: grid; gap: var(--gap); list-style: none; grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.ticks { list-style: none; }
.ticks li { position: relative; padding-left: 1.1rem; }
.ticks li + li { margin-top: 0.35rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--violet); }

/* Notes et sources : petites, grises, jamais en couleur vive. */
.notes { margin-top: 2rem; padding-left: 1.25rem; font-size: 0.875rem; line-height: 1.5; color: var(--note); }
.notes li + li { margin-top: 0.25rem; }
.notes a { color: var(--note); text-decoration-color: var(--note); }
.notes a:hover { color: var(--text); }
.notes .fn-back { text-decoration: none; margin-left: 0.25rem; font-family: var(--sans); }
sup.fn { font-size: 0.7em; line-height: 0; vertical-align: super; }
sup.fn a { color: var(--note); text-decoration: none; font-family: var(--sans); font-weight: 700; padding: 0 0.15em 0 0.05em; }
sup.fn a:hover { color: var(--violet); }
.small-note { font-size: 0.875rem; color: var(--note); margin-top: 1rem; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 1px solid var(--on-navy-rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand img { width: 9.5rem; height: auto; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 0.25rem 1.75rem; }
.site-nav a:not(.btn) { font-family: var(--sans); font-weight: 700; font-size: 0.9375rem; color: #FFFFFF; text-decoration: none; padding: 0.5rem 0; }
.site-nav a:not(.btn):hover { color: var(--violet-light); }
.nav-toggle {
  display: none; align-items: center; gap: 0.6rem; background: transparent; color: #FFFFFF; cursor: pointer;
  border: 1px solid var(--on-navy-rule); border-radius: var(--radius); padding: 0.55rem 0.8rem;
  font-family: var(--sans); font-weight: 700; font-size: 0.9375rem;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 1.1rem; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
@media (max-width: 879px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-bottom: 1px solid var(--on-navy-rule); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1.25rem; }
  .site-nav li a:not(.btn) { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--on-navy-rule); }
  .site-nav .nav-cta { margin-top: 1rem; }
  .site-nav .nav-cta .btn { display: block; text-align: center; }
}

/* ---------- Couverture ---------- */
.hero { background: var(--navy); color: #FFFFFF; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 6vw, 4.5rem); }
.hero-rule { display: block; width: 4rem; height: 4px; border-radius: 2px; background: var(--violet-light); margin-bottom: 1.75rem; }
.hero h1 { color: #FFFFFF; font-size: clamp(2rem, 1.1rem + 3.6vw, 3.5rem); line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
.hero h1 .hl { color: var(--violet-light); display: block; }
.hero-sub { font-style: italic; color: var(--on-navy); font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem); margin-top: 1.25rem; }
.hero-actions { margin-top: 2.25rem; }
.hero-partners {
  list-style: none; display: grid; gap: 1.25rem; margin-top: clamp(3rem, 7vw, 5rem); padding-top: 1.75rem;
  border-top: 1px solid var(--on-navy-rule); grid-template-columns: 1fr;
}
@media (min-width: 680px) { .hero-partners { grid-template-columns: repeat(3, 1fr); } }
.hero-partners strong { display: block; font-family: var(--sans); font-weight: 700; font-size: 1rem; color: #FFFFFF; }
.hero-partners span { display: block; color: var(--on-navy); font-size: 1rem; margin-top: 0.2rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section.chapter-start { padding-top: clamp(4rem, 9vw, 7.5rem); }
.band-white { background: #FFFFFF; }
.band-gris { background: var(--bg); }
.band-white + .band-white, .band-gris + .band-gris { padding-top: 0; }
.section-intro { max-width: 62ch; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.band-navy { background: var(--navy); color: #FFFFFF; }
.band-navy .eyebrow { color: var(--violet-light); }
.band-navy .section-title { color: #FFFFFF; }
.band-navy .card { color: var(--text); }
.band-navy .accroche { color: #FFFFFF; border-left-color: var(--violet-light); }
.band-navy .accroche strong { color: var(--violet-light); }

/* Repère de chapitre en tête de chaque chapitre */
.chapter-mark {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  font-family: var(--sans); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.04em; color: var(--text-2);
}
.chapter-mark::after { content: ""; flex: 0 0 3rem; height: 1px; background: currentColor; opacity: 0.5; }
.chapter-num {
  display: inline-grid; place-items: center; min-width: 2.25rem; height: 2.25rem; padding: 0 0.4rem; border-radius: var(--radius);
  background: var(--navy); color: #FFFFFF; font-size: 0.875rem; letter-spacing: 0.02em;
}
.band-navy .chapter-mark { color: var(--on-navy); }
.band-navy .chapter-num { background: var(--violet-light); color: var(--navy); }

/* Genèse */
.genesis { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 880px) { .genesis { grid-template-columns: 1fr 2fr; gap: 3rem; } }
.genesis-word { text-align: center; }
.greek { font-family: "Hexis Grec", "Noto Sans", Arial, sans-serif; color: var(--violet); font-size: clamp(4.5rem, 3rem + 6vw, 7rem); line-height: 1; }
.genesis-word .row-label { text-align: center; color: var(--navy); letter-spacing: 0.14em; margin-top: 1rem; }
.lead-strong { font-family: var(--sans); font-weight: 700; color: var(--navy); font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); line-height: 1.4; }
.genesis-text > * + * { margin-top: 1rem; }
.genesis-story { padding-top: 1rem; border-top: 1px solid var(--rule); }

/* Associés */
.partner-head { display: flex; align-items: center; gap: 1rem; }
.portrait { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; flex: none; background: var(--rule); }
.partner h3 { font-family: var(--serif); font-size: 1.1875rem; }
.partner-role { color: var(--text-2); font-size: 0.9375rem; line-height: 1.4; margin-top: 0.15rem; }
.partner .partner-head + p { margin-top: 1.1rem; }

/* Conviction */
.conviction-intro { font-style: italic; color: var(--text); font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); }
.band-navy .conviction-intro { color: var(--on-navy); }
.statement { font-family: var(--sans); font-weight: 700; color: var(--navy); font-size: clamp(1.75rem, 1rem + 3.2vw, 3rem); line-height: 1.18; max-width: 26ch; text-wrap: balance; margin-top: 1.25rem; letter-spacing: -0.01em; }
.statement strong { color: var(--violet); }
.band-navy .statement { color: #FFFFFF; }
.band-navy .statement strong { color: var(--violet-light); }

/* Thèse */
.thesis { display: grid; gap: 2.5rem; }
@media (min-width: 880px) {
  .thesis { grid-template-columns: 1fr 2fr; gap: 0; }
  .thesis-col:first-child { padding-right: clamp(2rem, 4vw, 3.5rem); }
  .thesis-col-human { padding-left: clamp(2rem, 4vw, 3.5rem); border-left: 1px solid var(--rule); }
}
@media (max-width: 879px) { .thesis-col-human { padding-top: 2.5rem; border-top: 1px solid var(--rule); } }
.thesis-col > * + * { margin-top: 0.6rem; }
.thesis-col h3 { font-size: 1.375rem; }
.thesis-col strong { color: var(--navy); }
.spiral { list-style: none; display: grid; gap: 1.6rem; margin-top: 1.5rem !important; }
@media (min-width: 640px) { .spiral { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }
.spiral-step { position: relative; border-radius: var(--radius); padding: 0.9rem 1rem 1rem; }
.spiral-step strong { display: block; font-family: var(--sans); font-size: 0.9375rem; line-height: 1.3; }
.spiral-step span { display: block; font-size: 0.9375rem; line-height: 1.45; margin-top: 0.35rem; }
.tone-lavender { background: var(--lavender); color: var(--navy); }
.tone-violet { background: var(--violet); color: #FFFFFF; }
.tone-navy { background: var(--navy); color: #FFFFFF; }
.thesis-col .tone-violet strong, .thesis-col .tone-navy strong { color: #FFFFFF; }
.spiral-step:not(:last-child)::after {
  content: ""; position: absolute; width: 0.55rem; height: 0.55rem; border: solid var(--chevron); border-width: 0 3px 3px 0;
  left: 50%; bottom: -1.15rem; transform: translateX(-50%) rotate(45deg);
}
@media (min-width: 640px) {
  .spiral-step:not(:last-child)::after { left: auto; bottom: auto; right: -1.2rem; top: 50%; transform: translateY(-50%) rotate(-45deg); }
}
.spiral-note { font-style: italic; color: var(--note); font-size: 0.9375rem; margin-top: 1rem !important; }
.thesis-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.link-download { font-family: var(--sans); font-weight: 700; font-size: 0.9375rem; }
.link-download .meta { font-weight: 400; color: var(--text-2); }

/* Étapes de l’IA : rangées alignées d’une colonne à l’autre (subgrid). */
.stages-list { list-style: none; }
.stages-label { display: none; }
.stage + .stage { margin-top: 2rem; }
.stage-what { position: relative; }

.stage-what p { margin-top: 0.5rem; }
.stage-risk { margin-top: 1rem; }
.stage-risk h4 { color: var(--violet); }
@media (min-width: 960px) {
  .stages { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--gap); grid-template-rows: auto auto auto auto; }
  .stages-label { display: block; grid-column: 1 / -1; }
  .stages-label-1 { grid-row: 1; margin-bottom: 1rem; }
  .stages-label-2 { grid-row: 3; margin: 2rem 0 1rem; }
  .stages-list { grid-column: 1 / -1; grid-row: 2 / span 3; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; }
  .stage { grid-row: span 3; display: grid; grid-template-rows: subgrid; }
  .stage + .stage { margin-top: 0; }
  .stage-what { grid-row: 1; }
  .stage-risk { grid-row: 3; margin-top: 0; }

}

/* Chiffres */
.stats { list-style: none; display: grid; gap: 2rem; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); gap: var(--gap); } }
.stat { border-top: 2px solid var(--navy); padding-top: 1rem; }
.stat-value { font-family: var(--sans); font-weight: 700; color: var(--violet); font-size: clamp(2.75rem, 1.8rem + 3.5vw, 4rem); line-height: 1.05; margin-bottom: 0.5rem; white-space: nowrap; }

/* Dépendance */
.precedents-title { margin: clamp(2.5rem, 5vw, 3.5rem) 0 1rem; }
.precedents > div { display: grid; gap: 0.25rem 2rem; padding-block: 1rem; border-top: 1px solid var(--rule); }
.precedents > div:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 680px) { .precedents > div { grid-template-columns: 9rem 1fr; } }
.precedents dt { font-family: var(--sans); font-weight: 700; color: var(--navy); }
.precedents dd { margin: 0; }

/* Offres */

.offer-title { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem); margin-bottom: 1rem; }
.offer-intro { max-width: 62ch; margin-bottom: 1.75rem; }

.formulas { display: grid; gap: var(--gap); }
@media (min-width: 760px) {
  .formulas { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto auto auto; }
  .formula { grid-row: span 3; display: grid; grid-template-rows: subgrid; row-gap: 1.25rem; }
  .formula > * + * { margin-top: 0; }
}
.formula > * + * { margin-top: 1.25rem; }
.formula-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.formula-head h4 { font-size: 1.1875rem; }
.formula .row-label { margin-bottom: 0.5rem; }
.audit-steps h4 { font-size: 1.1875rem; }
.audit-steps .card > .row-label + h4 { margin-top: 0.35rem; }
.requirements { display: grid; gap: 1.75rem; margin-top: 2rem; }
@media (min-width: 760px) { .requirements { grid-template-columns: 1fr 1fr; gap: var(--gap); } }
.requirements .row-label, .format .row-label { margin-bottom: 0.6rem; }
.format { margin-top: 2rem; }

/* Carte de maîtrise (exemple de livrable, en HTML et CSS) */
.deliverable { margin-top: clamp(3rem, 6vw, 4rem); }
.deliverable-title { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem); }
.deliverable-context { color: var(--text-2); margin: 0.75rem 0 1.5rem; max-width: 70ch; }
.mastery-label { display: none; }
.mastery-scale-ends { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--sans); font-weight: 700; font-size: 0.8125rem; color: var(--navy); }
.mastery-bar { display: block; height: 6px; border-radius: 3px; margin-top: 0.5rem; background: linear-gradient(90deg, var(--navy) 0%, var(--violet) 45%, var(--lavender) 78%, var(--bg) 100%); }
.mastery-steps { list-style: none; }
.step-box { border-radius: var(--radius); padding: 0.75rem 0.85rem; }
.step-box strong { display: block; font-family: var(--sans); font-size: 0.9375rem; line-height: 1.3; }
.step-role { display: block; font-style: italic; font-size: 0.875rem; margin-top: 0.4rem; }
.tone-outline { background: var(--card); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.step-control, .step-risk { font-size: 0.9375rem; line-height: 1.45; }
.step-risk { color: var(--violet); font-style: italic; font-weight: 700; }
.m-label { display: block; font-family: var(--sans); font-style: normal; font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 0.25rem; }

@media (max-width: 999px) {
  /* Mobile et tablette : chaque étape devient une carte empilée. */
  .mastery.card { background: transparent; box-shadow: none; padding: 0; }
  .mastery-scale { margin-bottom: 1.5rem; }
  .mastery-step { background: var(--card); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 1.25rem; }
  .mastery-step + .mastery-step { margin-top: var(--gap); }
  .mastery-step > * + * { margin-top: 0.9rem; }
}
@media (min-width: 1000px) {
  .mastery { display: grid; grid-template-columns: 8.5rem repeat(5, 1fr); column-gap: 1.6rem; grid-template-rows: auto auto auto auto; }
  .mastery.card > * + * { margin-top: 0; }
  .mastery-label { display: block; grid-column: 1; align-self: start; }
  .mastery-label-1 { grid-row: 1; padding-top: 0.1rem; }
  .mastery-label-2 { grid-row: 2; padding-top: 2.35rem; }
  .mastery-label-3 { grid-row: 3; padding-top: 2.1rem; }
  .mastery-label-4 { grid-row: 4; padding-top: 2.1rem; }
  .mastery-scale { grid-column: 2 / -1; grid-row: 1; }
  .mastery-steps { grid-column: 2 / -1; grid-row: 2 / span 3; display: grid; grid-template-columns: subgrid; grid-template-rows: subgrid; }
  .mastery-step { grid-row: span 3; display: grid; grid-template-rows: subgrid; position: relative; }
  .step-box { margin-top: 1.5rem; position: relative; }
  .step-control, .step-risk { border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 1rem; }
  .m-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mastery-step:not(:last-child) .step-box::after {
    content: ""; position: absolute; top: 50%; right: -1.05rem; width: 0.45rem; height: 0.45rem;
    border: solid var(--chevron); border-width: 0 3px 3px 0; transform: translateY(-50%) rotate(-45deg);
  }
}

/* Contact */
.contact-action { margin-top: clamp(2rem, 4vw, 2.75rem); }
.contact-partners { list-style: none; display: grid; gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.75rem; border-top: 1px solid var(--on-navy-rule); }
@media (min-width: 760px) { .contact-partners { grid-template-columns: repeat(3, 1fr); } }
.contact-partners strong { display: block; font-family: var(--sans); color: #FFFFFF; font-size: 1rem; }
.contact-partners a { color: var(--on-navy); overflow-wrap: anywhere; }
.contact-partners a:hover { color: #FFFFFF; }

/* ---------- Pied de page ---------- */
.site-footer { background: #FFFFFF; border-top: 1px solid var(--rule); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; gap: 2rem 3rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr; } }
.footer-brand img { width: 9rem; }
.footer-tagline { font-style: italic; color: var(--text-2); margin-top: 1rem; max-width: 24ch; }
.footer-title { font-family: var(--sans); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.55rem; }
.footer-col a { font-family: var(--sans); font-size: 0.9375rem; color: var(--text-2); text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--violet); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 0.875rem; color: var(--text-2); }
.footer-bottom a { color: var(--text-2); }

/* ---------- Pages de texte (thèse, mentions légales, 404) ---------- */
.page-head { padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.25rem); line-height: 1.15; max-width: 22ch; text-wrap: balance; }
.page-head .lede { font-style: italic; color: var(--text-2); font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); margin-top: 1rem; max-width: 50ch; }
.byline { font-family: var(--sans); font-weight: 700; color: var(--navy); margin-top: 1.5rem; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }
.prose { max-width: 68ch; padding-bottom: clamp(4rem, 9vw, 7rem); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.375rem, 1.15rem + 1vw, 1.75rem); margin-top: 2.5em; scroll-margin-top: calc(var(--header-h) + 1rem); }
.prose h2 + * { margin-top: 0.9em; }
.prose p { hyphens: auto; -webkit-hyphens: auto; }
.prose ul { padding-left: 1.25rem; }
.prose address { font-style: normal; }
.toc { background: var(--card); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 1.25rem 1.5rem; max-width: 68ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.toc ol { list-style: none; margin-top: 0.6rem; }
.toc li + li { margin-top: 0.35rem; }
.toc a { font-family: var(--sans); font-weight: 700; font-size: 0.9375rem; color: var(--navy); text-decoration: none; }
.toc a:hover { color: var(--violet); text-decoration: underline; }
.print-only { display: none; }
.marker { background: var(--lavender); color: var(--violet-ink); border-radius: 3px; padding: 0 0.25em; font-family: var(--sans); font-size: 0.9em; }

/* ---------- Impression et PDF de la thèse ---------- */
@page { size: A4; margin: 24mm 22mm 24mm; @bottom-center { content: counter(page); font-family: "Montserrat", Arial, sans-serif; font-size: 8.5pt; color: #5C6479; } }
@page :first { @bottom-center { content: none; } }
@media print {
  html { scroll-behavior: auto; }
  body { background: #FFFFFF; font-size: 11pt; line-height: 1.55; }
  .site-header, .site-footer, .skip-link, .page-actions, .toc { display: none !important; }
  .print-only { display: block; }
  .container { max-width: none; padding: 0; }
  .page-head { padding: 0; break-after: page; }
  .cover { height: 245mm; display: flex; flex-direction: column; justify-content: space-between; }
  .cover-logo { width: 50mm; }
  .cover h1 { font-size: 30pt; max-width: 15ch; }
  .cover .lede { font-size: 14pt; }
  .cover .byline { font-size: 12pt; margin-top: 10mm; }
  .print-foot { font-family: var(--sans); font-size: 9pt; color: var(--text-2); border-top: 1px solid var(--rule); padding-top: 4mm; }
  .prose { max-width: none; padding: 0; }
  .prose h2 { font-size: 14pt; break-after: avoid; margin-top: 1.8em; }
  .prose p { orphans: 3; widows: 3; }
  a { color: inherit; text-decoration: none; }
}

.btn .btn-meta { font-weight: 400; }
.page-404 .page-head { padding-bottom: clamp(5rem, 12vw, 9rem); }

/* Liens qui s’ouvrent dans un nouvel onglet : petite flèche discrète. */
a[target="_blank"]::after {
  content: ""; display: inline-block; width: 0.62em; height: 0.62em; margin-left: 0.22em; vertical-align: 0.05em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 1h7v7M11 1 1 11' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 1h7v7M11 1 1 11' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
@media print { a[target="_blank"]::after { display: none; } }

/* ---------- Refonte : colonnes, bandeau des offres, spirale, repères de lecture ---------- */

/* Colonnes sans carte (dépendance, réponse) */
.columns { list-style: none; display: grid; gap: 2.25rem; }
@media (min-width: 760px) { .columns { grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem); } }
.columns li > * + * { margin-top: 0.5rem; }
.columns h3 { font-size: 1.1875rem; }
.columns-ruled li { border-top: 2px solid var(--navy); padding-top: 1.1rem; }
.col-num { display: block; font-family: var(--sans); font-weight: 700; font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); line-height: 1; color: var(--violet); margin-bottom: 0.9rem; }

/* Bandeau « Nos offres » sous la couverture */

.brief-for { display: block; font-family: var(--sans); font-weight: 700; font-size: 0.75rem; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }

/* Spirale de la couverture (décorative) */
.hero { position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; }
.hero-spiral { position: absolute; z-index: 0; pointer-events: none; width: min(44rem, 62vw); right: -9rem; top: 50%; transform: translateY(-50%); opacity: 0.5; }
@media (max-width: 759px) { .hero-spiral { width: 24rem; right: -10rem; top: 0.5rem; transform: none; opacity: 0.22; } }

/* Barre latérale des chapitres (grands écrans) */
.rail { display: none; }
@media (min-width: 1280px) {
  .with-rail { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); }
  .rail { display: block; background: #FFFFFF; border-right: 1px solid var(--rule); }
  .rail-inner { position: sticky; top: var(--header-h); display: flex; gap: 1.1rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 2.75rem 1.25rem 2.5rem 1.75rem; }
}
.rail-progress { position: relative; flex: none; width: 2px; border-radius: 1px; background: var(--rule); }
.rail-progress-bar { position: absolute; inset: 0; border-radius: 1px; background: var(--violet); transform-origin: top; transform: scaleY(0); }
.rail-chapters { list-style: none; display: grid; gap: 1.15rem; align-content: start; }
.rail-chapter-link { display: flex; align-items: center; gap: 0.6rem; font-family: var(--sans); font-weight: 700; font-size: 0.9375rem; line-height: 1.3; color: var(--text-2); text-decoration: none; }
.rail-num { display: inline-grid; place-items: center; flex: none; min-width: 2rem; height: 1.5rem; border-radius: 4px; background: var(--bg); color: var(--text-2); font-size: 0.75rem; }
.rail-num:empty { background: transparent; }
.rail-num:empty::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: currentColor; }
.rail-chapter.is-active .rail-chapter-link { color: var(--navy); }
.rail-chapter.is-active .rail-num { background: var(--navy); color: #FFFFFF; }
.rail-sub { list-style: none; display: grid; gap: 0.3rem; margin: 0.55rem 0 0 2.6rem; }
.rail-sub a { display: block; padding: 0.1rem 0; font-family: var(--sans); font-size: 0.8125rem; line-height: 1.35; color: var(--text-2); text-decoration: none; }
.rail-sub a[aria-current] { color: var(--violet-ink); font-weight: 700; }
.rail-chapter-link:hover, .rail-sub a:hover { color: var(--violet); }
.js .rail-chapter:not(.is-active) .rail-sub { display: none; }

/* Repères dans l’en-tête (tablette et mobile) : chapitre en cours et barre de progression */
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; }
.read-progress-bar { display: block; height: 100%; background: var(--violet-light); transform-origin: left; transform: scaleX(0); }
@media (min-width: 1280px) { .read-progress { display: none; } }
.header-chapter { display: none; margin: 0 auto 0 1.25rem; padding-left: 1.25rem; border-left: 1px solid var(--on-navy-rule); font-family: var(--sans); font-weight: 700; font-size: 0.875rem; color: var(--on-navy); white-space: nowrap; }
@media (min-width: 560px) and (max-width: 879px) { .header-chapter:not(:empty) { display: block; } }

/* ---------- Site en plusieurs pages ---------- */

/* Fonds bleu nuit animés d’un léger halo violet (le bleu nuit reste dominant). */
.band-glow {
  background:
    radial-gradient(110% 85% at 88% 8%, rgba(122, 79, 214, 0.32) 0%, rgba(122, 79, 214, 0) 58%),
    radial-gradient(80% 70% at 0% 100%, rgba(58, 71, 117, 0.55) 0%, rgba(58, 71, 117, 0) 62%),
    var(--navy);
}
.site-nav a[aria-current="page"]:not(.btn) { color: var(--violet-light); box-shadow: inset 0 -2px 0 var(--violet-light); }
.section-cta { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }

/* En-tête des pages intérieures */

/* Cartes illustrées cliquables (offres, perspectives) */
.offer-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.offer-card:hover { box-shadow: 0 6px 18px var(--shadow); transform: translateY(-2px); }
.offer-card > * + * { margin-top: 0.4rem; }
.offer-card-title { display: block; font-family: var(--sans); font-weight: 700; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); line-height: 1.3; color: var(--navy); }
.offer-card-more { margin-top: auto !important; padding-top: 1rem; font-family: var(--sans); font-weight: 700; font-size: 0.9375rem; color: var(--violet); }

.offer-card:hover .offer-card-title { color: var(--violet); }
@media (prefers-reduced-motion: reduce) { .offer-card { transition: none; } .offer-card:hover { transform: none; } }

/* Rangées alternées (page Offres) et mises en avant (Perspectives) */

/* Autres offres (bas des pages d’offre) */

/* Personnes (accueil) */

/* Cabinet */

/* Étapes de l’IA : escalier de l’autonomie */
.stage-level { display: flex; align-items: flex-end; height: 6.5rem; margin-bottom: 1.1rem; }
.stage-bar { position: relative; display: block; width: 3.25rem; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(180deg, var(--violet) 0%, var(--navy) 100%); }
.level-1 .stage-bar { height: 25%; background: var(--navy); }
.level-2 .stage-bar { height: 50%; background: linear-gradient(180deg, #4A3C9A 0%, var(--navy) 100%); }
.level-3 .stage-bar { height: 75%; }
.level-4 .stage-bar { height: 100%; background: linear-gradient(180deg, #B8A2F2 0%, var(--violet) 35%, var(--navy) 100%); }
.stage-bar-num { position: absolute; top: 0.35rem; left: 0; right: 0; text-align: center; font-family: var(--sans); font-weight: 700; font-size: 0.875rem; color: #FFFFFF; }
@media (min-width: 960px) { .stage-level { border-bottom: 2px solid var(--rule); margin-right: calc(-1 * var(--gap)); } }

/* Pictogrammes des chiffres et icônes */

/* Pages d’offre et contact */
.deliverable-page { margin-top: 0; }
.deliverable-page .deliverable-title { margin-bottom: 0; }

/* Pas de flèche « nouvel onglet » sur les images et cartes cliquables (la mention reste pour les lecteurs d’écran). */
.offer-card[target="_blank"]::after { content: none; }

/* ---------- Page unique, version structurée ---------- */
h5 { font-family: var(--sans); font-weight: 700; color: var(--navy); line-height: 1.25; margin: 0; font-size: 1.0625rem; }
.offers-band { padding-block: clamp(3rem, 6vw, 4.5rem); }
.offers-band .eyebrow { margin-bottom: 1.5rem; }

/* Conviction : énoncé et spirale */

/* Offres en onglets */
.offer-tablist { display: none; }
.offer-tabs.is-enhanced .offer-tablist { display: grid; gap: var(--gap); margin-bottom: clamp(2rem, 4vw, 3rem); }
@media (min-width: 760px) { .offer-tabs.is-enhanced .offer-tablist { grid-template-columns: repeat(3, 1fr); } }
.offer-tab {
  display: grid; grid-template-columns: 2.75rem 1fr; grid-template-rows: auto auto; column-gap: 1rem; row-gap: 0.25rem; align-items: center;
  width: 100%; margin: 0; padding: 1rem 1.25rem; border: 0; border-radius: var(--radius); background: var(--card); box-shadow: var(--card-shadow);
  font: inherit; color: inherit; text-align: left; cursor: pointer; transition: box-shadow 0.2s ease;
}
.offer-tab-num { grid-row: span 2; font-family: var(--sans); font-weight: 700; font-size: 2.5rem; line-height: 1; color: var(--violet); text-align: center; }
.offer-tab .brief-for { align-self: end; }
.offer-tab-title { align-self: start; font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--navy); }
.offer-tab:hover .offer-tab-title { color: var(--violet); }
.offer-tab[aria-selected="true"] { box-shadow: var(--card-shadow), inset 0 -3px 0 var(--violet); }
.offer-tab[aria-selected="true"] .offer-tab-title { color: var(--violet-ink); }
@media (prefers-reduced-motion: reduce) { .offer-tab { transition: none; } }
.offer-panel + .offer-panel { margin-top: clamp(3.5rem, 7vw, 5rem); padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--rule); }
.offer-tabs.is-enhanced .offer-panel + .offer-panel { margin-top: 0; padding-top: 0; border-top: 0; }
.offer-panel:focus-visible { outline-offset: 8px; }
.offer-panel-head { display: grid; gap: 1.5rem; align-items: center; margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); }
@media (min-width: 760px) { .offer-panel-head { grid-template-columns: minmax(0, 1fr) 14rem; gap: 3rem; } }
.offer-panel-head .eyebrow { margin-bottom: 0.5rem; }
.offer-panel-head .offer-title { margin-bottom: 0; }
.offer-panel-head .offer-intro { margin: 1rem 0 0; }

.offer-panel .audit-steps h5 { font-size: 1.1875rem; }
.offer-panel .audit-steps .card > .row-label + h5 { margin-top: 0.35rem; }
.offer-panel .deliverable { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.offer-panel .deliverable-title { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.625rem); margin-bottom: 0; }
.offer-panel .formula-head h4 { font-size: 1.1875rem; }
.offer-panel .grid { margin-top: 0; }
.offer-panel h4.eyebrow { margin-bottom: 1rem; }
@media (min-width: 760px) { .offer-tabs.is-enhanced .offer-tablist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.offer-tab > * { min-width: 0; overflow-wrap: break-word; }
@media (min-width: 760px) and (max-width: 1099px) {
  .offer-tab { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 0.4rem; }
  .offer-tab-num { grid-row: auto; text-align: left; font-size: 2rem; }
}

/* Offres : grand numéro (remplace les illustrations, jugées peu lisibles) */
.offer-card-num { display: block; font-family: var(--sans); font-weight: 700; font-size: clamp(2.75rem, 2.2rem + 2vw, 3.5rem); line-height: 1; color: var(--violet); margin-bottom: 1rem; }
.offer-tab[aria-selected="true"] .offer-tab-num { color: var(--navy); }

/* Associés : phrase d’accroche et photo de conférence, côte à côte */
.associes-outro { display: grid; gap: 2rem; align-items: center; margin-top: clamp(2rem, 4vw, 3rem); }
.associes-outro .accroche { margin-top: 0; }
@media (min-width: 1000px) { .associes-outro { grid-template-columns: minmax(0, 1fr) 26rem; gap: 3rem; } }
.talk-photo { margin: 0; max-width: 32rem; }
.talk-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 15%; border-radius: var(--radius); box-shadow: var(--card-shadow); }
.talk-photo figcaption { margin-top: 0.6rem; font-family: var(--sans); font-size: 0.8125rem; color: var(--text-2); }

/* Contact : deux colonnes sur bleu nuit, sans encadrés blancs */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 4rem; align-items: start; } }
.contact-intro .section-title { margin-bottom: 0; }
.contact-intro .contact-action { margin-top: 2rem; }
.contact-options { list-style: none; display: grid; gap: 2rem; }
.contact-options li { padding-top: 1.25rem; border-top: 1px solid rgba(184, 162, 242, 0.45); }
.contact-options h3 { color: #FFFFFF; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); }
.contact-options p { color: var(--on-navy); margin-top: 0.5rem; max-width: 52ch; }

/* Cartes d’offres : on voit qu’elles se cliquent */
.offer-card { position: relative; border-top: 3px solid transparent; }
.offer-card:hover, .offer-card:focus-visible { border-top-color: var(--violet); }
.offer-card-more {
  display: inline-flex; align-items: center; gap: 0.4rem; align-self: flex-start;
  margin-top: auto !important; padding: 0.6rem 1rem !important; border-radius: var(--radius);
  background: var(--lavender); color: var(--violet-ink); font-family: var(--sans); font-weight: 700; font-size: 0.9375rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.offer-card-more::after { content: "→"; content: "→" / ""; }
.offer-card:hover .offer-card-more, .offer-card:focus-visible .offer-card-more { background: var(--violet); color: #FFFFFF; }
.offer-card-title { margin-bottom: 1.25rem; }
@media (prefers-reduced-motion: reduce) { .offer-card-more { transition: none; } }
