/* Transition(s) Partner — feuille de style unique, sans dépendance externe.
   Organisation : jetons, base, puis un bloc par composant avec ses media queries.
   Points de rupture : 1600 (hero large) · 1050 (desktop compact) · 900 (menu mobile)
                       · 740 (passage en colonne) · 639 / 1023 (gouttières). */

/* ── Jetons ──────────────────────────────────────────────────────────────── */
:root {
  --paper: #f6f4ef;
  --sand: #e9e4d9;
  --ink: #172d3c;
  --muted: #59666b;
  --accent: #b63750;
  --accent-soft: #e89c99;
  --accent-pale: #e8c3bb;
  --line: #ced0ca;
  --night: #152835;
  --night-muted: #b8c4c9;
  --night-line: #42515a;
  --gutter: 32px;
  --content: 1088px;
  --header-h: 101px;
}
@media (min-width: 640px) and (max-width: 1023px) { :root { --gutter: 24px; } }
@media (max-width: 639px) { :root { --gutter: 16px; } }

/* ── Base ────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Work Sans', Arial, sans-serif; font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { background: #edc4bc; color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 7px; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
h1, h2 { letter-spacing: -.058em; line-height: 1.05; }
h2 { font-size: clamp(35px, 3.75vw, 52px); }
h3 { font-size: clamp(21px, 2vw, 27px); line-height: 1.25; letter-spacing: -.035em; }
strong { font-weight: 500; }
.container { width: min(var(--content), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.label { font-size: 12px; line-height: 1.5; font-weight: 500; letter-spacing: .095em; text-transform: uppercase; }
.fine-print { font-size: 14px; line-height: 1.6; color: var(--muted); }
.skip { position: fixed; z-index: 30; left: 16px; top: -90px; background: white; padding: 14px 20px; }
.skip:focus { top: 16px; }
.location-lines > span { display: block; }
.location-lines > span:first-child { color: var(--ink); font-weight: 500; }
.location-lines > span + span { margin-top: 3px; }
.hero-location.location-lines { text-align: right; }
@media (max-width: 740px) { .hero-location { display: none; } }

@media (max-width: 740px) { h2 { font-size: clamp(35px, 7.5vw, 46px); } }

/* ── En-tête : la marque reste petite, la hiérarchie appartient au contenu ── */
.header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 38px; min-height: 100px; }
.brand { flex-shrink: 0; }
.brand img { width: 178px; height: auto; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 30px; font-size: 14px; }
.desktop-nav a { padding-block: 8px; text-decoration: none; white-space: nowrap; }
.desktop-nav a:hover { text-decoration: underline; }
.desktop-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.header-contact { flex-shrink: 0; display: flex; align-items: center; gap: 26px; margin-left: 12px; padding-block: 7px; border-bottom: 1px solid var(--ink); font-size: 14px; text-decoration: none; }
.header-contact span { font-size: 21px; line-height: 1; }
.header-contact:hover { color: var(--accent); border-color: var(--accent); }

/* Menu mobile : un <details> natif, accessible au clavier sans JavaScript. */
.menu { display: none; margin-left: auto; }
.menu > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-right: 2px; font-size: 14px; cursor: pointer; list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::marker { content: ''; }
.menu-bars { position: relative; display: block; width: 18px; height: 11px; }
.menu-bars::before, .menu-bars::after { content: ''; position: absolute; left: 0; width: 18px; height: 1px; background: currentColor; transition: transform 160ms ease, box-shadow 160ms ease; }
.menu-bars::before { top: 0; box-shadow: 0 5px 0 currentColor; }
.menu-bars::after { bottom: 0; }
.menu[open] .menu-bars::before { top: 5px; box-shadow: none; transform: rotate(45deg); }
.menu[open] .menu-bars::after { bottom: 5px; transform: rotate(-45deg); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 28px -24px rgba(21, 40, 53, .45); padding-bottom: 10px; }
.menu-panel a { display: block; padding: 15px var(--gutter); border-top: 1px solid var(--line); font-size: 17px; text-decoration: none; }
.menu-panel a:first-child { border-top: 0; }
.menu-panel a[aria-current="page"] { color: var(--accent); }

@media (max-width: 1050px) {
  .header-inner { min-height: 87px; gap: 24px; }
  .desktop-nav { gap: 18px; }
  .header-contact { margin-left: 0; gap: 15px; }
  .brand img { width: 150px; }
  :root { --header-h: 88px; }
}
@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 740px) {
  .header-inner { min-height: 72px; gap: 16px; }
  .brand img { width: 147px; }
  .header-contact { min-height: 44px; gap: 12px; }
  :root { --header-h: 73px; }
}
/* Les trois repères du header doivent tenir sur une ligne jusqu’à 320 px. */
@media (max-width: 430px) {
  .header-inner { gap: 12px; }
  .brand img { width: 132px; }
}
@media (max-width: 370px) {
  .brand img { width: 124px; }
  .menu > summary { gap: 0; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ── Ouverture : typographie à gauche, la personne qui porte l’offre à droite ─ */
.hero { padding-top: 29px; }
.hero-topline { display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.hero-topline .label::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--accent); margin: 0 11px 1px 0; }
.hero-location { font-size: 14px; color: var(--muted); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: center; margin-top: 65px; }
.hero h1 { font-size: clamp(58px, 6.8vw, 94px); line-height: .99; letter-spacing: -.064em; }
.hero h1 span { color: var(--accent); }
.hero-intro { margin-top: 32px; max-width: 430px; }
.hero-intro > p:first-child { font-size: 18px; line-height: 1.65; max-width: 390px; }
.hero-intro .fine-print { margin-top: 12px; }
.hero-cutout { width: 100%; max-width: 375px; justify-self: end; margin: 0; }
.hero-cutout picture { display: block; }
.hero-cutout img { width: 100%; height: auto; }
.hero-cutout figcaption { border-top: 1px solid var(--line); margin-top: 17px; padding-top: 12px; display: flex; flex-direction: column; gap: 3px; }
.hero-cutout figcaption span:first-child { font-size: 14px; font-weight: 500; }
.hero-cutout figcaption span + span { color: var(--muted); font-size: 14px; }

.primary-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 54px; margin-top: 27px; padding: 13px 19px; border-radius: 6px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; text-decoration: none; transition: background 150ms ease; }
.primary-link span { font-size: 22px; font-weight: 400; line-height: 1; }
.primary-link:hover { background: var(--accent); }


/* Filet pleine largeur entre le hero et la suite, comme sous l’en-tête. */
.section-divider { border-top: 1px solid var(--line); margin-top: 60px; }
@media (min-width: 1601px) {
  .hero-layout { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 7%; margin-top: 56px; }
  .section-divider { margin-top: 70px; }
}
@media (max-width: 1050px) {
  .hero h1 { font-size: clamp(58px, 7.2vw, 75px); }
  .hero-intro { margin-top: 27px; }
  .hero-intro > p:first-child { font-size: 16px; }
  .hero-cutout { max-width: 330px; }
  .section-divider { margin-top: 43px; }
}
@media (max-width: 900px) {
}
@media (max-width: 740px) {
  .hero { padding-top: 25px; }
  .hero-layout { display: flex; flex-direction: column; align-items: stretch; gap: 27px; margin-top: 34px; }
  .hero h1 { font-size: clamp(43px, 13.2vw, 77px); line-height: 1.02; }
  .hero-intro > p:first-child { font-size: 17px; }
  .hero-cutout { width: 78%; max-width: 310px; align-self: center; margin-top: 9px; }
  .hero-cutout figcaption { margin-top: 13px; }
  .section-divider { margin-top: 35px; }
  .hero-intro .fine-print { font-size: 14px; }
}
@media (max-width: 360px) {
  .primary-link { gap: 18px; padding-inline: 15px; }
}

/* ── Rythme commun des sections ──────────────────────────────────────────── */
.section { padding-block: 104px; }
.section-rail { display: flex; gap: 28px; align-items: center; margin-bottom: 43px; }
.section-rail .label { white-space: nowrap; }
.rail-mark { width: 34px; height: 1px; background: var(--accent); }
.section-intro > p { max-width: 325px; color: var(--muted); margin-top: 25px; font-size: 16px; }
.section-intro > p + p { margin-top: 16px; }
@media (max-width: 1050px) { .section { padding-block: 82px; } }
@media (max-width: 740px) {
  .section { padding-block: 64px; }
  .section-rail { margin-bottom: 30px; }
  .section-intro > p { max-width: 430px; font-size: 15px; margin-top: 21px; }
  .section-intro > p + p { margin-top: 12px; }
}

/* ── Vos enjeux ──────────────────────────────────────────────────────────── */
.challenges-layout { display: grid; grid-template-columns: 1fr 1.45fr; gap: 12%; }
.challenge { border-top: 1px solid var(--line); }
.challenge:last-child { border-bottom: 1px solid var(--line); }
.challenge summary { display: grid; grid-template-columns: 26px minmax(0, 1fr) 16px; gap: 18px; align-items: start; padding-block: 25px; cursor: pointer; list-style: none; }
.challenge summary::-webkit-details-marker { display: none; }
.challenge summary::marker { content: ''; }
.challenge-index { font-size: 14px; line-height: 2.6; color: var(--muted); font-variant-numeric: tabular-nums; }
.challenge h3 { font-size: clamp(20px, 1.8vw, 24px); }
.toggle { position: relative; display: block; width: 14px; height: 14px; margin-top: 7px; }
.toggle::before, .toggle::after { content: ''; position: absolute; background: var(--ink); }
.toggle::before { height: 1px; width: 14px; top: 6px; left: 0; }
.toggle::after { width: 1px; height: 14px; left: 6px; top: 0; }
.challenge[open] .toggle::after { display: none; }
.challenge[open] h3, .challenge summary:hover h3 { color: var(--accent); }
.challenge-body { padding: 0 33px 27px 44px; font-size: 15px; color: var(--muted); }
.challenge-action { color: var(--ink); margin-top: 18px; }
.challenge-action a { display: inline-block; padding-block: 4px; }
@media (max-width: 1050px) { .challenges-layout { gap: 8%; } }
@media (max-width: 740px) {
  .challenges-layout { grid-template-columns: 1fr; gap: 34px; }
  .challenge summary { gap: 12px; grid-template-columns: 22px minmax(0, 1fr) 14px; padding-block: 23px; }
  .challenge h3 { font-size: 21px; }
  .challenge-body { padding-left: 34px; padding-right: 10px; font-size: 14px; }
}
@media (max-width: 360px) { .challenge h3 { font-size: 20px; } }

/* ── L’expérience : un seul aplat sombre, pour changer de rythme ─────────── */
.experience { background: var(--night); color: var(--paper); }
.experience .section-rail { margin-bottom: 42px; }
.experience .rail-mark { background: var(--accent-soft); }
.experience-heading { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12%; align-items: end; margin-bottom: 28px; }
.experience-heading > p { font-size: 15px; color: var(--night-muted); max-width: 370px; }
.project-list { list-style: none; margin: 0; padding: 0; }
.project { border-top: 1px solid var(--night-line); }
.project-detail summary { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 18px; align-items: center; gap: 36px; padding-block: 26px; cursor: pointer; list-style: none; }
.project-detail summary::-webkit-details-marker { display: none; }
.project-detail summary::marker { content: ''; }
.project-detail summary:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 5px; }
.project h3 { font-size: 23px; line-height: 1.3; max-width: 440px; }
.project-teaser { font-size: 15px; line-height: 1.6; color: var(--night-muted); }
.project-toggle { position: relative; width: 16px; height: 16px; }
.project-toggle::before, .project-toggle::after { content: ''; position: absolute; background: var(--accent-soft); }
.project-toggle::before { width: 16px; height: 1px; left: 0; top: 7px; }
.project-toggle::after { height: 16px; width: 1px; left: 7px; top: 0; }
.project-detail[open] .project-toggle::after { display: none; }
.project-detail[open] h3, .project-detail summary:hover h3 { color: var(--accent-pale); }
.project-body { padding: 0 54px 28px 0; max-width: 760px; }
.project-body p { font-size: 17px; line-height: 1.75; color: var(--night-muted); }
@media (max-width: 1050px) { .experience-heading { gap: 7%; } }
@media (max-width: 900px) {
  .project-detail summary { gap: 24px; }
  .project h3 { font-size: 22px; }
}
@media (max-width: 740px) {
  .experience-heading { grid-template-columns: 1fr; gap: 22px; }
  .experience-heading > p { max-width: 430px; font-size: 14px; }
  .project-detail summary { grid-template-columns: minmax(0, 1fr) 18px; gap: 10px 20px; padding-block: 23px; }
  .project h3 { grid-column: 1; }
  .project-teaser { grid-column: 1; grid-row: 2; }
  .project-toggle { grid-column: 2; grid-row: 1 / 3; }
  .project-body { padding: 0 0 25px; }
  .project-body p { font-size: 16px; }
}

/* ── L’accompagnement ────────────────────────────────────────────────────── */
.approach-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 13%; }
.approach-intro h2 { font-size: clamp(34px, 3.3vw, 46px); }
.approach-intro > p { color: var(--muted); max-width: 390px; font-size: 16px; margin-top: 27px; }
.approach-intro > .approach-signature { color: var(--accent); font-size: 16px; font-weight: 500; margin-top: 33px; }
.method-list { list-style: none; margin: 0; padding: 0; }
.method-list li { border-top: 1px solid var(--line); padding-block: 25px; }
.method-list li:first-child { padding-top: 0; border-top: 0; }
.method-list li:last-child { padding-bottom: 0; }
.method-list h3 { font-size: 23px; }
.method-list p { font-size: 15px; color: var(--muted); margin-top: 12px; }
.method-list li > span { display: block; margin-top: 11px; color: var(--ink); font-size: 15px; font-weight: 500; }

.mission-frame { margin-top: 56px; padding: 36px 38px 40px; background: var(--sand); }
.mission-frame > .label { color: var(--muted); margin-bottom: 17px; }
.mission-frame > h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.18; letter-spacing: -.04em; }
.mission-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 30px; }
.mission-principles > div { border-top: 1px solid #b8bab3; padding-top: 18px; }
.mission-principles h4 { font-size: 19px; font-weight: 500; line-height: 1.35; margin: 0 0 11px; letter-spacing: -.02em; }
.mission-principles p { font-size: 16px; line-height: 1.65; color: var(--muted); }
@media (max-width: 1050px) { .approach-layout { gap: 9%; } }
@media (max-width: 900px) { .mission-frame { padding-inline: 28px; } .mission-principles { gap: 23px; } }
@media (max-width: 740px) {
  .approach-layout { grid-template-columns: 1fr; gap: 35px; }
  .approach-intro h2 { font-size: clamp(33px, 7vw, 45px); }
  .approach-intro > p { max-width: 430px; font-size: 15px; margin-top: 23px; }
  .approach-intro > .approach-signature { margin-top: 22px; font-size: 15px; }
  .method-list li:first-child { border-top: 1px solid var(--line); padding-top: 23px; }
  .method-list p { font-size: 14px; }
  .mission-frame { margin-top: 36px; padding: 27px 22px 30px; }
  .mission-frame > h3 { font-size: 29px; }
  .mission-principles { grid-template-columns: 1fr; gap: 23px; margin-top: 25px; }
}

/* ── La biographie se lit comme une courte note personnelle ──────────────── */
.personal { display: grid; grid-template-columns: 1fr 2.7fr; gap: 7%; padding-block: 55px 100px; border-top: 1px solid var(--line); }
.personal-margin > p:nth-child(2) { margin-top: 17px; font-size: 14px; color: var(--muted); }
.inline-link { display: inline-block; margin-top: 27px; padding-block: 5px; font-size: 14px; }
.personal-main h2 { font-size: clamp(31px, 3.3vw, 45px); line-height: 1.2; }
.personal-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; margin-top: 30px; font-size: 15px; color: var(--muted); }
.personal-columns .education { font-size: 14px; color: var(--ink); border-top: 1px solid var(--line); padding-top: 15px; margin-top: 23px; }
@media (max-width: 1050px) {
  .personal { gap: 6%; padding-block: 45px 82px; }
  .personal-columns { gap: 25px; font-size: 14px; }
}
@media (max-width: 740px) {
  .personal { grid-template-columns: 1fr; gap: 29px; padding-block: 35px 60px; }
  .personal-margin { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
  .personal-margin > p:nth-child(2) { margin-top: 0; grid-column: 1; }
  .personal-margin .inline-link { grid-column: 2; grid-row: 1 / 3; align-self: center; justify-self: end; max-width: 150px; margin: 0; }
  .personal-main h2 { font-size: clamp(29px, 6.9vw, 40px); }
  .personal-columns { grid-template-columns: 1fr; gap: 16px; margin-top: 22px; }
  .personal-columns .education { margin-top: 22px; line-height: 1.8; }
}

/* ── Questions fréquentes ────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq-layout { display: grid; grid-template-columns: 1fr 1.45fr; gap: 8%; }
.faq-intro h2 { font-size: clamp(32px, 3.3vw, 44px); line-height: 1.12; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { display: grid; grid-template-columns: minmax(0, 1fr) 16px; gap: 22px; align-items: start; padding-block: 23px; cursor: pointer; list-style: none; font-size: 20px; line-height: 1.4; letter-spacing: -.02em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ''; }
.faq-item[open] .toggle::after { display: none; }
.faq-item[open] summary, .faq-item summary:hover { color: var(--accent); }
.faq-answer { padding: 0 38px 25px 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
@media (max-width: 740px) {
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-intro h2 { max-width: 440px; }
  .faq-item summary { font-size: 19px; padding-block: 21px; gap: 16px; }
  .faq-answer { padding-right: 0; font-size: 16px; }
}

/* ── Le contact reste une invitation personnelle, directement utilisable ──── */
.contact { background: var(--sand); }
.contact-inner { padding-block: 40px 35px; }
.contact-top { display: flex; justify-content: space-between; gap: 25px; border-bottom: 1px solid #c6c5ba; padding-bottom: 20px; }
.contact-top > p:last-child { color: var(--muted); font-size: 14px; }
.contact-main { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12%; align-items: center; padding-block: 52px 48px; }
.contact h2 { font-size: clamp(52px, 6.5vw, 88px); line-height: 1; }
.contact-copy > p:first-child { font-size: 16px; max-width: 330px; }
.contact-button { min-width: 205px; margin-top: 23px; }
.contact-copy > .fine-print { margin-top: 11px; }
.contact-copy .fine-print a { display: inline-block; padding-block: 5px; }
.contact-bottom { border-top: 1px solid #c6c5ba; padding-top: 26px; }
.contact-direct { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.contact-direct a { padding-block: 5px; font-size: 16px; text-decoration: none; overflow-wrap: anywhere; }
.contact-direct a:first-child { font-size: 22px; letter-spacing: -.025em; }
.contact-direct a:hover { text-decoration: underline; }
@media (max-width: 1050px) { .contact-main { gap: 8%; } }
@media (max-width: 740px) {
  .contact-inner { padding-block: 30px; }
  .contact-top { gap: 20px; align-items: baseline; }
  .contact-top > p:last-child { max-width: 150px; text-align: right; }
  .contact-main { grid-template-columns: 1fr; padding-block: 32px; gap: 28px; }
  .contact h2 { font-size: clamp(52px, 11.7vw, 75px); }
  .contact-copy > p:first-child { max-width: 400px; font-size: 15px; }
}

/* ── Un pied de page encre, partagé par les quatre pages ─────────────────── */
.footer { background: var(--night); color: var(--paper); padding-top: 39px; padding-bottom: 23px; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 30px; }
.footer-main .brand img { width: 153px; }
.footer-main > p { font-size: 14px; color: var(--night-muted); }
.footer .location-lines > span:first-child { color: var(--paper); }
.back-top { display: inline-block; padding-block: 6px; font-size: 14px; text-decoration: none; }
.back-top span { margin-left: 15px; }
.footer-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 22px; border-top: 1px solid var(--night-line); padding-top: 14px; color: var(--night-muted); font-size: 13px; }
.footer-meta nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-meta nav a { display: inline-block; padding-block: 7px; text-decoration: none; }
.footer-meta nav a:hover { text-decoration: underline; }
.footer a:hover { color: var(--accent-pale); }
.footer a:focus-visible { outline-color: var(--accent-pale); }
@media (max-width: 740px) {
  .footer { padding-top: 29px; }
  .footer-main { flex-wrap: wrap; gap: 20px; padding-bottom: 25px; }
  .footer-main .brand img { width: 143px; }
  .footer-main > p { display: none; }
  .footer-meta > p:last-child { flex-basis: 100%; }
}

/* ── Documents légaux : une colonne de lecture et un sommaire ────────────── */
.legal-page { padding-block: 65px 90px; }
.legal-heading { border-bottom: 1px solid var(--line); padding-bottom: 38px; margin-bottom: 40px; }
.legal-heading h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.08; max-width: 880px; margin-top: 20px; overflow-wrap: anywhere; }
.legal-intro { color: var(--muted); font-size: 17px; max-width: 760px; margin-top: 23px; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 60px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 27px); display: flex; flex-direction: column; gap: 4px; }
.legal-toc .label { margin-bottom: 9px; color: var(--muted); }
.legal-toc a { display: block; padding-block: 6px; font-size: 14px; line-height: 1.5; text-decoration: none; }
.legal-toc a:hover { color: var(--accent); text-decoration: underline; }
.legal-body { min-width: 0; }
.legal-section + .legal-section { margin-top: 37px; padding-top: 31px; border-top: 1px solid var(--line); }
.legal-section h2 { font-size: 27px; line-height: 1.2; letter-spacing: -.035em; margin-bottom: 19px; }
.legal-section p, .legal-section li, .legal-section dd { font-size: 16px; line-height: 1.75; color: var(--muted); overflow-wrap: anywhere; }
.legal-section p + p, .legal-section ul + p { margin-top: 16px; }
.legal-section ul { padding-left: 22px; margin-block: 19px; }
.legal-section li + li { margin-top: 12px; }
.legal-section dl { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(0, 1.3fr); margin: 0; }
.legal-section dt, .legal-section dd { margin: 0; padding-block: 13px; border-bottom: 1px solid var(--line); }
.legal-section dt { padding-right: 20px; font-size: 15px; font-weight: 500; }
/* Le padding vertical sur un lien en ligne agrandit la zone tactile
   sans modifier la hauteur de ligne du paragraphe. */
.legal-section a { padding-block: 4px; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; border-bottom: 1px solid var(--line); padding-bottom: 25px; }
}
@media (max-width: 740px) {
  .legal-page { padding-block: 38px 60px; }
  .legal-heading { padding-bottom: 27px; margin-bottom: 28px; }
  .legal-section h2 { font-size: 25px; }
  .legal-section dl { grid-template-columns: 1fr; }
  .legal-section dt { border: 0; padding-bottom: 2px; }
  .legal-section dd { padding-top: 2px; padding-bottom: 15px; }
}

/* ── Livre blanc : guide long, tableaux et encadrés ──────────────────────── */
.guide-meta { font-size: 14px; color: var(--muted); margin-top: 20px; }
.guide-meta a { text-decoration-color: var(--line); }
.legal-heading .primary-link { margin-top: 24px; }
.legal-section h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.025em; margin: 28px 0 10px; }
.legal-section ol { padding-left: 22px; margin-block: 19px; }
.legal-section ol li, .legal-section ul li { color: var(--muted); }
.legal-section ol li + li { margin-top: 12px; }
.guide-pull { font-size: 19px; line-height: 1.45; letter-spacing: -.02em; color: var(--ink) !important; border-left: 2px solid var(--accent); padding-left: 20px; margin-block: 26px; }
.guide-errors { list-style: none; padding-left: 0; }
.guide-errors li { padding-left: 20px; position: relative; }
.guide-errors li::before { content: ''; position: absolute; left: 0; top: 13px; width: 8px; height: 1px; background: var(--accent); }
.guide-errors strong { color: var(--ink); font-weight: 500; }

.guide-callout { background: var(--sand); padding: 28px 30px 30px; margin-block: 34px; }
.guide-callout > .label { color: var(--accent); margin-bottom: 12px; }
.guide-callout h3 { margin-top: 0; margin-bottom: 14px; font-size: 23px; }
.guide-callout p { font-size: 16px; line-height: 1.7; color: var(--muted); }
.guide-callout p + p { margin-top: 14px; }
.guide-callout strong { color: var(--ink); }
.guide-callout .guide-pull { border-left-color: var(--accent); margin-bottom: 0; }

.guide-table-wrap { overflow-x: auto; margin-block: 22px; -webkit-overflow-scrolling: touch; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; min-width: 520px; }
.guide-table th, .guide-table td { text-align: left; vertical-align: top; padding: 13px 18px 13px 0; border-bottom: 1px solid var(--line); }
.guide-table thead th { font-size: 12px; font-weight: 500; letter-spacing: .095em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--ink); padding-bottom: 10px; }
.guide-table tbody th { font-weight: 500; color: var(--ink); padding-right: 24px; }
.guide-table tbody td { color: var(--muted); }
.guide-table-check { min-width: 660px; }
.guide-table-check tbody td:first-child { color: var(--accent); font-variant-numeric: tabular-nums; padding-right: 14px; }

.guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 30px; }
.guide-actions .primary-link { margin-top: 0; }
.guide-actions .inline-link { margin-top: 0; }
@media (max-width: 740px) {
  .legal-section h3 { font-size: 19px; margin-top: 24px; }
  .guide-pull { font-size: 17px; padding-left: 16px; }
  .guide-callout { padding: 22px 20px 24px; margin-block: 28px; }
  .guide-callout h3 { font-size: 20px; }
  .guide-callout p { font-size: 15px; }
  .guide-table { font-size: 14px; }
  /* Un tableau large défile : le dire, sinon les colonnes de droite sont perdues. */
  .guide-table-wrap::after { content: 'Faites défiler le tableau vers la droite pour voir toutes les colonnes.'; display: block; font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 10px; position: sticky; left: 0; max-width: 100%; }
}

/* ── Préparation à la transmission : page de service et ressource ────────── */
.transmission-hero { padding-block: 30px 0; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin-bottom: 46px; }
.breadcrumb a { display: inline-block; padding-block: 5px; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.transmission-hero h1 { font-size: clamp(42px, 5.4vw, 70px); max-width: 1000px; margin-top: 38px; }
.transmission-lead { display: grid; grid-template-columns: 1fr 1.2fr; gap: 9%; margin-top: 48px; }
.transmission-lead > p { font-size: clamp(25px, 2.8vw, 35px); line-height: 1.22; letter-spacing: -.035em; }
.transmission-lead > p span { color: var(--accent); }
.transmission-lead > div p { color: var(--muted); }
.transmission-lead > div p + p { margin-top: 16px; }
.transmission-lead .primary-link { margin-top: 26px; }
.transmission-nav { display: flex; flex-wrap: wrap; gap: 8px 32px; border-block: 1px solid var(--line); padding-block: 16px; margin-top: 52px; font-size: 15px; }
.transmission-nav a { display: inline-block; padding-block: 6px; }
.transmission-context { padding-block: 56px 0; }
.context-title { font-size: clamp(25px, 2.4vw, 31px); line-height: 1.25; letter-spacing: -.03em; }
.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 30px; }
.stats-row > div { border-top: 1px solid var(--line); padding-top: 18px; }
.stat-figure { font-size: clamp(40px, 4.2vw, 54px); line-height: 1; letter-spacing: -.055em; color: var(--accent); font-variant-numeric: lining-nums; margin-bottom: 12px; }
.stats-row p:last-child { font-size: 15px; line-height: 1.6; color: var(--muted); }
.stats-source { font-size: 14px; line-height: 1.7; color: var(--muted); margin-top: 26px; max-width: 760px; }
.stats-source a { padding-block: 5px; }
@media (max-width: 740px) {
  .transmission-context { padding-block: 40px 0; }
  .context-title { font-size: 25px; }
  .stats-row { grid-template-columns: 1fr; gap: 22px; margin-top: 24px; }
  .stat-figure { font-size: 42px; margin-bottom: 8px; }
}

.transmission-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 9%; }
.transmission-layout h2 { font-size: clamp(34px, 3.4vw, 46px); }
.transmission-aside { color: var(--muted); margin-top: 25px; }
.transmission-topics article { border-top: 1px solid var(--line); padding-block: 24px; }
.transmission-topics article:first-child { padding-top: 0; border-top: 0; }
.transmission-topics h3 { font-size: 24px; }
.transmission-topics p { color: var(--muted); margin-top: 12px; }
.transmission-method { background: var(--ink); color: var(--paper); }
.transmission-method .label { color: var(--night-muted); }
.transmission-method .rail-mark { background: var(--accent-soft); }
.transmission-method .transmission-aside, .transmission-method p { color: var(--night-muted); }
.transmission-steps { list-style: none; margin: 0; padding: 0; counter-reset: steps; }
.transmission-steps li { counter-increment: steps; padding: 0 0 26px 40px; position: relative; }
.transmission-steps li::before { content: '0' counter(steps); position: absolute; left: 0; top: 2px; color: var(--accent-soft); font-size: 14px; }
.transmission-steps h3 { font-size: 24px; }
.transmission-steps p { margin-top: 12px; }
.transmission-results { display: grid; grid-template-columns: 1fr 1.2fr; gap: 9%; border-top: 1px solid var(--night-line); margin-top: 22px; padding-top: 30px; }
.transmission-results h3 { font-size: 24px; }
.transmission-advisers { display: grid; grid-template-columns: 1fr 1.2fr; gap: 9%; }
.transmission-advisers h2 { font-size: clamp(34px, 3.4vw, 46px); }
.transmission-advisers p + p, .transmission-advisers h2 + p { margin-top: 24px; }
.transmission-advisers > div > p { color: var(--muted); }
.transmission-advisers .transmission-signature { color: var(--ink); font-size: 15px; }
.book-section { background: #ede9e0; }
.book-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12%; align-items: center; }
.book-cover { display: block; max-width: 310px; }
.book-cover img { width: 100%; height: auto; }
.book-copy h2 { margin-top: 22px; }
.book-copy .book-subtitle { margin-top: 24px; font-size: 21px; color: var(--ink); }
.book-copy > p { color: var(--muted); }
.book-copy > p + p { margin-top: 18px; }
.book-copy .primary-link { margin-top: 28px; }
.book-copy .fine-print { margin-top: 12px; }
@media (max-width: 740px) {
  .breadcrumb { margin-bottom: 28px; font-size: 13px; }
  .transmission-hero h1 { font-size: clamp(37px, 8vw, 58px); margin-top: 28px; }
  .transmission-lead, .transmission-layout, .transmission-results, .transmission-advisers, .book-layout { grid-template-columns: 1fr; gap: 32px; }
  .transmission-lead { margin-top: 32px; }
  .transmission-nav { margin-top: 36px; gap: 4px 20px; }
  .transmission-topics h3, .transmission-steps h3 { font-size: 22px; }
  .book-cover { max-width: 240px; }
  .book-copy h2 { margin-top: 18px; }
}

/* ── Une page introuvable conserve les repères du site ───────────────────── */
.error-page { padding-block: 72px 100px; min-height: 65vh; }
.error-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 7%; align-items: center; margin-top: 30px; }
.error-page h1 { font-size: clamp(44px, 6vw, 76px); }
.error-page h1 + p { max-width: 560px; margin-top: 28px; color: var(--muted); }
.error-actions { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 32px; }
.error-number { font-size: clamp(100px, 17vw, 200px); letter-spacing: -.09em; line-height: 1; color: var(--accent); text-align: right; }
@media (max-width: 740px) {
  .error-page { padding-block: 44px 64px; }
  .error-layout { grid-template-columns: 1fr; }
  .error-number { display: none; }
}

/* Liens en ligne dans un texte courant : zone tactile élargie sans
   modifier la hauteur de ligne du paragraphe. */
.fine-print a, .guide-meta a, .stats-source a, .legal-section a, .guide-callout a { padding-block: 5px; }

/* ── Préférences système et impression ──────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .header { position: static; }
  .container { width: 100%; }
  .section { padding-block: 35px; }
  .challenge, .method-list li, .project { break-inside: avoid; }
  .primary-link, .back-top, .desktop-nav, .menu, .legal-toc { display: none; }
  .legal-layout { display: block; }
  .experience, .footer { background: white; color: black; }
  .experience p, .experience strong, .experience .project p { color: black; }
  .challenge-body, .project-body { display: block !important; }
  .project-detail::details-content { content-visibility: visible; }
}
