/* Le site est un document : page blanche, barre d'outils et règle en tête, colonne de texte et marge de commentaires, barre d'état en pied. Thème clair assumé, comme une page de traitement de texte. */
:root {
  --page: #FFFFFF;
  --chrome: #F6F6F8;
  --chrome-2: #ECECF0;
  --ink: #18181C;
  --muted: #64646D;
  --faint: #A4A4AD;
  --rule: #E6E6EB;
  --red: #D21F1F;
  --blue: #2944EE;
  --hl-yellow: #FFF06B;
  --hl-green: #C8F2C2;
  --hl-pink: #FFD2E0;
  --note: #FFF6F5;
  --note-rule: #EBB7B2;
  --serif: "EB Garamond", "Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --main: 680px;
  --margin: 250px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--chrome);
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  body { font-size: 18px; }
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.ui { font-family: var(--sans); }

/* Barre d'outils et règle */
.toolbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--chrome);
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
}
.tb-inner { display: flex; align-items: center; gap: 20px; padding-block: 10px; }
.logo { display: block; line-height: 0; flex: none; }
.logo img { height: 32px; width: auto; max-width: none; display: block; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 6px;
}
.tabs a:hover { background: var(--chrome-2); color: var(--ink); }
.tabs a.current { color: var(--ink); background: var(--page); box-shadow: 0 0 0 1px var(--rule); }
.tool {
  flex: none;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1;
  width: 36px; height: 32px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.tool:hover { background: var(--chrome-2); }
.tool[aria-pressed="true"] { background: var(--page); color: var(--blue); border-color: var(--rule); }
.ruler-row { border-top: 1px solid var(--rule); background: var(--page); }
.ruler {
  height: 20px;
  max-width: calc(var(--main) + var(--margin) + 56px);
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(var(--faint), var(--faint)) 0 100% / 1px 7px repeat-x,
    repeating-linear-gradient(90deg, var(--faint) 0 1px, transparent 1px 9.5px) 0 100% / 100% 4px no-repeat;
  background-size: 38px 7px, 100% 4px;
  background-repeat: repeat-x, no-repeat;
}
.ruler span {
  position: absolute;
  top: 1px;
  font-family: var(--sans);
  font-size: 9px;
  color: var(--faint);
  transform: translateX(-50%);
}
.ruler .indent {
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-bottom: 7px solid var(--blue);
}

/* Pages */
.page { padding-block: clamp(56px, 8vw, 96px) 24px; scroll-margin-top: 90px; }
.grid {
  display: grid;
  grid-template-columns: minmax(0, var(--main)) minmax(0, var(--margin));
  gap: 0 56px;
}
.main { min-width: 0; }
.aside { min-width: 0; position: relative; }
@media (max-width: 1000px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .main { max-width: var(--main); }
  .aside { max-width: var(--main); margin-top: 28px; }
}
.pagebreak {
  position: relative;
  margin: 56px 0 0;
  height: 1px;
  background: var(--rule);
}
.pagebreak span {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: var(--page);
  padding: 0 10px;
  opacity: 0;
}
.folio {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--faint);
  text-align: center;
  margin: 18px 0 0;
}
body.marks .pagebreak { background: repeating-linear-gradient(90deg, var(--blue) 0 4px, transparent 4px 8px); opacity: .6; }
body.marks .pagebreak span { opacity: 1; }
body.marks .main p:not(.ui)::after,
body.marks .main li::after { content: " ¶"; color: var(--blue); opacity: .55; font-family: var(--sans); font-size: .8em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 7vw, 5.2rem); line-height: 1.02; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.08; margin-bottom: 18px; }
h2 em, h1 em { font-style: italic; font-weight: 400; color: var(--red); }
h3 { font-size: 1.45rem; line-height: 1.25; }
.main p { margin: 0 0 1em; max-width: 62ch; }
.lede { font-size: 1.18rem; color: #34343B; }
.muted { color: var(--muted); }

/* Marques de révision */
.typo { text-decoration: underline wavy var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; transition: text-decoration-color .4s; }
.fixed .typo { text-decoration-color: transparent; }
.hero-ins { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; display: none; }
.fixed .hero-ins { display: inline; animation: appear .45s ease both; }
.settled .hero-ins { color: inherit; text-decoration-color: transparent; transition: color .6s, text-decoration-color .6s; }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
.caret { display: inline-block; width: 2px; height: 0.82em; background: var(--ink); margin-left: 4px; vertical-align: -0.04em; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Bulles de commentaire */
.note {
  position: relative;
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.5;
  background: var(--note);
  border: 1px solid var(--note-rule);
  border-left: 3px solid var(--red);
  border-radius: 4px;
  padding: 10px 12px 11px;
  color: var(--ink);
  margin-bottom: 16px;
}
.note b { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.72rem; color: var(--red); margin-bottom: 3px; }
.note b i { font-style: normal; font-weight: 400; color: var(--faint); }
@media (min-width: 1001px) {
  .note.tethered::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 18px;
    width: 56px;
    border-top: 1px dashed var(--note-rule);
  }
}
.resolved { display: none; color: #2E7D4F; font-weight: 600; }
.settled .resolved { display: inline; }

/* Bouton */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 15px 22px 15px 26px;
  cursor: pointer;
  transition: background .2s;
}
.pill:hover { background: var(--blue); }
.pill svg { transition: transform .2s; }
.pill:hover svg { transform: translateX(4px); }

/* Séquences animées */
.clips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
@media (max-width: 760px) { .clips { grid-template-columns: minmax(0, 1fr); } }
.clip { margin: 0; min-width: 0; }
.clip-frame {
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  background: var(--page);
  box-shadow: 0 1px 2px rgba(20, 20, 30, .04), 0 12px 32px rgba(20, 20, 30, .06);
}
.clip-bar {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--chrome);
  border-bottom: 1px solid var(--rule);
  padding: 8px 12px;
}
.clip-bar .dots { display: flex; gap: 5px; }
.clip-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--chrome-2); box-shadow: inset 0 0 0 1px var(--rule); }
.clip-bar .file { flex: 1; text-align: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clip-bar .time { font-variant-numeric: tabular-nums; }
.clip-page {
  position: relative;
  height: 236px;
  padding: 26px 26px 20px;
  font-size: 1.04rem;
  line-height: 1.62;
  overflow: hidden;
}
.clip-page p { margin: 0 0 .7em; }
.progress { height: 2px; background: var(--chrome-2); }
.progress i { display: block; height: 100%; width: 0; background: var(--blue); }
.clip figcaption {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--muted);
  padding: 14px 2px 0;
}
.clip figcaption strong { color: var(--ink); font-weight: 600; }
.clip figcaption .play {
  margin-left: auto;
  font: inherit; font-size: 0.78rem; font-weight: 500;
  color: var(--ink);
  background: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
}
.clip figcaption .play:hover { border-color: var(--ink); }
.clip .note { position: absolute; right: 14px; bottom: 14px; max-width: 64%; margin: 0; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.clip .note.show { opacity: 1; transform: none; }

/* Suivi des modifications */
.chg del { text-decoration: line-through; text-decoration-color: transparent; transition: color .3s, text-decoration-color .3s; }
.chg ins { display: none; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .14em; color: var(--blue); }
.chg.on del { color: var(--red); text-decoration-color: var(--red); }
.chg.on ins { display: inline; animation: appear .4s ease both; }
.accepted .chg.on del { display: none; }
.accepted .chg.on ins { color: inherit; text-decoration-color: transparent; transition: color .5s, text-decoration-color .5s; }

/* Surlignage */
.hl { background-repeat: no-repeat; background-size: 0% 100%; background-position: 0 0; transition: background-size .7s ease; padding: 0 .08em; border-radius: 2px; }
.hl.y { background-image: linear-gradient(var(--hl-yellow), var(--hl-yellow)); }
.hl.g { background-image: linear-gradient(var(--hl-green), var(--hl-green)); }
.hl.p { background-image: linear-gradient(var(--hl-pink), var(--hl-pink)); }
.hl.on { background-size: 100% 100%; }

/* Étiquette IA */
.chip { display: inline-flex; font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.chip b { padding: 4px 9px; border-radius: 4px; }
.chip .ai { background: var(--chrome-2); color: var(--muted); }
.chip .hu { display: none; background: #E9EDFF; color: var(--blue); }
.human .chip .ai { display: none; }
.human .chip .hu { display: inline; animation: appear .4s both; }

/* Mise en page */
.lay p { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); text-transform: lowercase; margin: 0 0 .55em; transition: color .4s, letter-spacing .4s; }
.lay .l-title.on { font-family: var(--serif); font-size: 0.95rem; text-transform: uppercase; letter-spacing: .2em; text-align: center; color: var(--ink); margin-bottom: .9em; }
.lay .l-par.on, .lay .l-par2.on { font-family: var(--serif); font-size: 0.98rem; text-transform: none; text-align: justify; text-indent: 1.4em; color: var(--ink); hyphens: auto; }
.lay .l-head.on { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; text-transform: none; color: var(--ink); margin-top: .4em; }
.lay sup { opacity: 0; font-size: .7em; color: var(--blue); }
.lay .l-note { position: absolute; left: 26px; right: 26px; bottom: 16px; border-top: 1px solid var(--rule); padding-top: 6px; font-size: 0.7rem; opacity: 0; text-transform: none; }
.lay.notes sup, .lay.notes .l-note { opacity: 1; transition: opacity .5s; }
.lay.notes .l-note { font-family: var(--serif); font-size: 0.78rem; color: var(--muted); }

/* Prestations */
.services { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: s; }
.services li { counter-increment: s; padding: 22px 0; border-top: 1px solid var(--rule); }
.services li:last-child { border-bottom: 1px solid var(--rule); }
.services h3::before { content: counter(s) ". "; color: var(--red); font-style: italic; }
.services p { margin: 6px 0 0; }
.services .detail { display: block; margin-top: 6px; font-family: var(--sans); font-size: 0.8rem; letter-spacing: .02em; color: var(--muted); }

/* Modèles */
.block-title { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 56px 0 22px; padding-top: 16px; border-top: 1px solid var(--rule); }
.sheets { display: grid; gap: 28px; }
.sheets.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sheets.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
@media (max-width: 860px) { .sheets.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sheets.three, .sheets.two { grid-template-columns: minmax(0, 1fr); max-width: 360px; } }
.sheet-fig { margin: 0; min-width: 0; }
.sheet-fig figcaption { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.sheet {
  container-type: inline-size;
  aspect-ratio: 1 / 1.414;
  max-width: 100%;
  background: var(--page);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgba(20,20,30,.05), 0 14px 30px rgba(20,20,30,.07);
  position: relative;
  overflow: hidden;
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.3;
}
.sheet p { margin: 0; max-width: none; }
body.marks .sheet p::after { content: none; }
.cover-classic { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10cqw 9cqw 8cqw; }
.cover-classic .c-inst { font-size: 4.4cqw; text-transform: uppercase; letter-spacing: .08em; }
.cover-classic .c-dept { font-size: 3.6cqw; color: var(--muted); margin-top: 2cqw; }
.cover-classic .c-kind { font-family: var(--sans); font-size: 3cqw; letter-spacing: .2em; text-transform: uppercase; margin-top: 16cqw; }
.cover-classic .c-title { font-size: 7.6cqw; font-weight: 500; line-height: 1.12; margin-top: 4cqw; padding: 4cqw 0; border-top: .4cqw solid var(--ink); border-bottom: .4cqw solid var(--ink); }
.cover-classic .c-sub { font-style: italic; font-size: 4.4cqw; margin-top: 3cqw; }
.cover-classic .c-people { display: flex; justify-content: space-between; width: 100%; text-align: left; font-size: 3.4cqw; margin-top: auto; }
.cover-classic .c-people p:last-child { text-align: right; }
.cover-classic .c-year { font-size: 3.4cqw; margin-top: 7cqw; color: var(--muted); }
.cover-modern { padding: 12cqw 10cqw 9cqw 14cqw; display: flex; flex-direction: column; }
.cover-modern::before { content: ""; position: absolute; left: 7cqw; top: 12cqw; bottom: 9cqw; width: .8cqw; background: var(--red); }
.cover-modern .m-kind { font-family: var(--sans); font-size: 3.1cqw; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); line-height: 1.6; }
.cover-modern .m-title { font-size: 9cqw; font-weight: 500; line-height: 1.06; margin-top: 12cqw; }
.cover-modern .m-auth { font-style: italic; font-size: 5.4cqw; color: var(--blue); margin-top: 6cqw; }
.cover-modern .m-foot { margin-top: auto; font-size: 3.2cqw; color: var(--muted); display: grid; gap: 2cqw; }
.cover-modern .m-jury { color: var(--ink); line-height: 1.5; }
.cover-pfe { padding: 8cqw 9cqw; display: flex; flex-direction: column; text-align: center; }
.cover-pfe .p-logos { display: flex; justify-content: space-between; gap: 4cqw; }
.cover-pfe .p-logos span { flex: 1; font-family: var(--sans); font-size: 2.6cqw; color: var(--faint); border: .3cqw dashed var(--rule); padding: 4cqw 2cqw; }
.cover-pfe .p-kind { font-size: 7cqw; font-weight: 500; margin-top: 12cqw; }
.cover-pfe .p-deg { font-size: 3.6cqw; color: var(--muted); margin-top: 2cqw; }
.cover-pfe .p-title { font-size: 6.2cqw; font-style: italic; line-height: 1.15; margin-top: 9cqw; padding: 4cqw 3cqw; background: #F4F6FF; border-left: .8cqw solid var(--blue); text-align: left; }
.cover-pfe .p-people { display: flex; justify-content: space-between; text-align: left; font-size: 3.3cqw; margin-top: auto; }
.cover-pfe .p-people p:last-child { text-align: right; }
.cover-pfe .p-year { font-family: var(--sans); font-size: 2.9cqw; letter-spacing: .2em; text-transform: uppercase; margin-top: 6cqw; color: var(--muted); }
.toc { padding: 11cqw 9cqw; }
.toc .toc-h { font-size: 6.4cqw; text-transform: uppercase; letter-spacing: .14em; text-align: center; margin-bottom: 8cqw; }
.toc .row { display: flex; align-items: baseline; gap: 1.5cqw; font-size: 3.6cqw; margin-bottom: 2.4cqw; }
.toc .row span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toc .row i { flex: 1; border-bottom: .35cqw dotted var(--faint); transform: translateY(-.6cqw); min-width: 3cqw; }
.toc .row b { font-weight: 400; font-variant-numeric: tabular-nums; }
.toc .l1 { font-weight: 600; margin-top: 3.4cqw; }
.toc .l1 b { font-weight: 600; }
.toc .l2 { padding-left: 5cqw; }
.toc .l3 { padding-left: 10cqw; font-style: italic; color: #3A3A42; }
.toc.dense .toc-h { margin-bottom: 6cqw; }
.toc.dense .row { font-size: 3.2cqw; margin-bottom: 1.5cqw; }
.toc.dense .l1 { margin-top: 2.6cqw; }
.extras { margin-top: 24px; }
.bib { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.bib-tabs { display: flex; overflow-x: auto; background: var(--chrome); border-bottom: 1px solid var(--rule); scrollbar-width: none; }
.bib-tabs button { flex: none; font: inherit; font-size: 0.8rem; font-weight: 500; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 16px; cursor: pointer; }
.bib-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red); background: var(--page); }
.bib-panel { padding: 22px 24px 8px; }
.bib-panel .lab { font-size: 0.68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.bib-panel .ref-in { margin: 0 0 20px; color: var(--blue); }
.bib-panel .ref { margin: 0 0 20px; padding-left: 2em; text-indent: -2em; }

/* Méthode */
.steps { list-style: none; margin: 28px 0 40px; padding: 0; counter-reset: st; display: grid; gap: 18px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 4px 12px; }
.steps li::before { content: counter(st); font-style: italic; font-size: 1.9rem; line-height: 1.1; color: var(--blue); grid-row: span 2; }
.steps b { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.steps span { color: #34343B; }
.engage h3 { margin: 26px 0 6px; }
.engage h3 em { color: var(--red); }
.fn { font-size: .7em; vertical-align: super; color: var(--blue); text-decoration: none; }
.footnotes { margin-top: 36px; padding-top: 10px; border-top: 1px solid var(--rule); width: 40%; min-width: 220px; }
.footnotes p { font-size: 0.86rem; color: var(--muted); width: 62ch; max-width: calc(100vw - 48px); }
.shelf { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.shelf li { font-family: var(--sans); font-size: 0.8rem; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; color: #34343B; }
body.marks .shelf li::after { content: none; }

/* Lettre */
.letter p { margin: 0 0 1.05em; }
.letter .place { text-align: right; color: var(--muted); }
.letter input, .letter select, .letter textarea {
  font: inherit;
  color: var(--blue);
  background: transparent;
  border: 0;
  border-bottom: 1px dotted var(--faint);
  border-radius: 0;
  padding: 0 2px;
  max-width: 100%;
}
.letter input:focus, .letter select:focus, .letter textarea:focus { outline: none; border-bottom: 1px solid var(--blue); background: #F4F6FF; }
.letter input::placeholder, .letter textarea::placeholder { color: var(--faint); font-style: italic; }
.letter #nom { width: 12em; }
.letter #courriel { width: 15em; }
.letter #echeance { width: 9.5em; }
.letter select { appearance: none; padding-right: 4px; cursor: pointer; }
.letter textarea {
  display: block;
  width: 100%;
  min-height: 7.5em;
  resize: vertical;
  line-height: 1.6;
  border: 0;
  background: repeating-linear-gradient(transparent 0 calc(1.6em - 1px), var(--rule) calc(1.6em - 1px) 1.6em);
  margin: 0 0 1.05em;
}
.letter .sign { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.anon { font-size: 0.82rem; color: var(--muted); margin: 18px 0 0 !important; max-width: 52ch; }
.wa-link { font-family: var(--sans); font-size: 0.84rem; font-weight: 500; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding-block: 8px; }
.wa-link:hover { color: var(--ink); }
.form-status { font-family: var(--sans); font-size: 0.86rem; color: var(--blue); margin: 14px 0 0; }
.form-status.err { color: var(--red); }

.contact-card { font-family: var(--sans); font-size: 0.86rem; border: 1px solid var(--rule); border-radius: 8px; padding: 16px 16px 6px; }
.contact-card dt { font-size: 0.68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-card dd { margin: 2px 0 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.contact-card dd span { user-select: all; word-break: break-word; }
.copy { font: inherit; font-size: 0.72rem; color: var(--blue); background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 2px 9px; cursor: pointer; }
.copy:hover { border-color: var(--blue); }

/* Mentions légales */
.legal-page h3 { font-size: 1.35rem; margin: 40px 0 10px; scroll-margin-top: 100px; }
.legal-page .main p b { font-weight: 600; }
.legal-toc { display: grid; gap: 4px; margin: 28px 0 8px; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 8px; font-size: 0.86rem; max-width: 420px; }
.legal-toc .toc-title { font-size: 0.68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.legal-toc a { text-decoration: none; color: var(--ink); }
.legal-toc a:hover { color: var(--blue); }
body.marks .legal-toc p::after { content: none; }
.todo { background: var(--hl-yellow); padding: 0 .2em; border-radius: 2px; font-style: italic; }
.anon a { color: var(--blue); }

/* Couvertures de thèses */
.grid.hero { grid-template-columns: minmax(0, 600px) minmax(0, 410px); }
@media (max-width: 1000px) { .grid.hero { grid-template-columns: minmax(0, 1fr); } }
.cover-figure { margin: 40px 0 0; }
.cover-stage {
  position: relative;
  width: calc(100% - 30px);
  max-width: 380px;
  aspect-ratio: 1 / 1.414;
  margin: 0 auto;
  animation: drift 9s ease-in-out infinite;
}
@media (max-width: 1000px) { .cover-stage { max-width: 280px; } .cover-figure { overflow-x: clip; padding: 8px 0 24px; } .cover-figure { margin-top: 48px; } }
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-0.4deg); }
}
.tcover {
  position: absolute;
  inset: 0;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.25;
  border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgba(20,20,30,.06), 0 22px 44px -12px rgba(20,20,30,.22);
  transition: transform 1.5s cubic-bezier(.22,.7,.2,1), opacity 1.5s ease, filter 1.5s ease;
  transform-origin: 50% 90%;
}
.tcover p { margin: 0; max-width: none; }
body.marks .tcover p::after { content: none; }
.tcover[data-pos="0"] { z-index: 5; transform: none; opacity: 1; }
.tcover[data-pos="1"] { z-index: 4; transform: translate(12px, 9px) rotate(3deg); opacity: 1; filter: brightness(.97); }
.tcover[data-pos="2"] { z-index: 3; transform: translate(24px, 18px) rotate(6deg); opacity: .9; filter: brightness(.94); }
.tcover[data-pos="out"] { z-index: 6; transform: translate(-46px, -10px) rotate(-7deg); opacity: 0; }
.tcover[data-pos="h"] { z-index: 1; transform: translate(24px, 18px) rotate(6deg); opacity: 0; }
.cover-cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.72rem; letter-spacing: .08em; color: var(--muted); max-width: 380px; margin: 38px auto 0; }
.cover-dots { display: flex; gap: 5px; }
.cover-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--rule); transition: background .6s; }
.cover-dots i.on { background: var(--red); }
@media (prefers-reduced-motion: reduce) { .cover-stage { animation: none; } .tcover { transition: none; } }

/* 1. Université d'Orvane : classique */
.c-orv { padding: 10% 9% 8%; text-align: center; justify-content: space-between; }
.c-orv .o-crest { width: 16.8cqw; height: auto; color: #1C2B5A; display: block; margin: 0 auto 3.5cqw; }
.c-orv .o-inst { font-size: 5.3cqw; letter-spacing: .18em; text-transform: uppercase; }
.c-orv .o-ed { font-size: 3.6cqw; font-style: italic; color: var(--muted); margin-top: 1.4cqw; }
.c-orv .o-kind { font-family: var(--sans); font-size: 3.0cqw; letter-spacing: .32em; text-transform: uppercase; color: var(--red); margin-bottom: 4cqw; }
.c-orv .o-title { font-size: 14.1cqw; font-weight: 500; line-height: 1.02; }
.c-orv .o-sub { font-size: 5.2cqw; font-style: italic; color: var(--muted); margin-top: 4cqw; padding-top: 4cqw; border-top: .25cqw solid var(--ink); display: inline-block; }
.c-orv .o-foot { font-size: 3.7cqw; line-height: 1.6; color: #34343B; }
.c-orv .o-foot b { font-weight: 500; color: var(--ink); }
.c-orv .o-year { font-size: 3.4cqw; letter-spacing: .4em; margin-top: 3cqw; color: var(--muted); }

/* 2. Institut Saint-Alcide : moderne */
.c-alc { padding: 10% 9% 8% 14%; }
.c-alc::before { content: ""; position: absolute; left: 7cqw; top: 10cqw; bottom: 8cqw; width: .7cqw; background: var(--red); }
.c-alc .a-head { display: flex; align-items: center; gap: 3cqw; }
.c-alc .a-mono { width: 15.4cqw; height: auto; color: var(--ink); flex: none; }
.c-alc .a-inst { font-family: var(--sans); font-size: 3.2cqw; line-height: 1.4; letter-spacing: .06em; color: #34343B; }
.c-alc .a-kind { font-family: var(--sans); font-size: 3.1cqw; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 22cqw; }
.c-alc .a-title { font-size: 14.8cqw; font-weight: 500; line-height: 1; margin-top: 4cqw; letter-spacing: -.01em; }
.c-alc .a-sub { font-size: 5.0cqw; font-style: italic; color: var(--muted); margin-top: 5cqw; line-height: 1.35; }
.c-alc .a-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; font-family: var(--sans); font-size: 3.2cqw; color: var(--muted); }
.c-alc .a-auth { font-family: var(--serif); font-style: italic; font-size: 5.3cqw; color: var(--blue); }

/* 3. Université libre de Morvaux : bleu nuit */
.c-mor { background: #0D1838; color: #FFFFFF; border-color: #0D1838; padding: 10% 9% 8%; text-align: center; align-items: center; }
.c-mor .m-logo { width: 18.2cqw; height: auto; color: #FFFFFF; margin-bottom: 4cqw; }
.c-mor .m-inst { font-size: 5.0cqw; letter-spacing: .16em; text-transform: uppercase; }
.c-mor .m-fac { font-size: 3.6cqw; font-style: italic; color: #B9C6E6; margin-top: 1.4cqw; }
.c-mor .m-mid { margin: auto 0; padding: 6cqw 0; border-top: .25cqw solid #86A7F0; border-bottom: .25cqw solid #86A7F0; }
.c-mor .m-title { font-size: 13.4cqw; font-weight: 500; line-height: 1.04; }
.c-mor .m-sub { font-size: 4.7cqw; font-style: italic; color: #C9D4EE; margin-top: 3.5cqw; line-height: 1.35; }
.c-mor .m-kind { font-family: var(--sans); font-size: 3.0cqw; letter-spacing: .2em; text-transform: uppercase; color: #86A7F0; }
.c-mor .m-auth { font-size: 3.8cqw; margin-top: 2.5cqw; color: #E6EBF7; }

/* 4. ESIT : ingénierie */
.c-esi { padding: 0; }
.c-esi .e-band { display: flex; align-items: center; gap: 4cqw; background: var(--blue); color: #FFFFFF; padding: 8cqw 9cqw 7cqw; }
.c-esi .e-logo { width: 18.2cqw; height: auto; flex: none; }
.c-esi .e-acr { font-family: var(--sans); font-weight: 600; font-size: 7.7cqw; letter-spacing: .14em; line-height: 1; }
.c-esi .e-inst { font-family: var(--sans); font-size: 3.1cqw; margin-top: 1.4cqw; opacity: .9; }
.c-esi .e-body {
  flex: 1; display: flex; flex-direction: column; padding: 9cqw 9cqw 8cqw;
  background-image: linear-gradient(var(--chrome) .2cqw, transparent .2cqw), linear-gradient(90deg, var(--chrome) .2cqw, transparent .2cqw);
  background-size: 7cqw 7cqw;
}
.c-esi .e-kind { font-family: var(--sans); font-size: 3.2cqw; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.c-esi .e-deg { font-family: var(--sans); font-size: 3.1cqw; color: var(--muted); margin-top: 1.6cqw; }
.c-esi .e-title { font-size: 11.6cqw; font-weight: 500; line-height: 1.08; margin-top: 9cqw; padding-left: 3.5cqw; border-left: .7cqw solid var(--blue); background: rgba(255,255,255,.85); }
.c-esi .e-people { margin-top: auto; display: flex; justify-content: space-between; font-size: 3.6cqw; line-height: 1.5; color: var(--muted); background: rgba(255,255,255,.85); }
.c-esi .e-people p:last-child { text-align: right; }
.c-esi .e-people b { font-weight: 500; color: var(--ink); }
.c-esi .e-year { font-family: var(--sans); font-size: 3.0cqw; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 4cqw; text-align: center; }

/* 5. Faculté de Clairance : épure */
.c-cla { padding: 11% 9% 9%; text-align: center; }
.c-cla .l-kind { font-family: var(--sans); font-size: 3.0cqw; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); }
.c-cla .l-mid { margin: auto 0; display: flex; flex-direction: column; align-items: center; }
.c-cla .l-title { font-size: 16.1cqw; font-style: italic; font-weight: 400; line-height: 1; }
.c-cla .l-rule { width: 10cqw; height: .3cqw; background: var(--red); margin: 6cqw 0 5cqw; }
.c-cla .l-sub { font-size: 5.2cqw; letter-spacing: .02em; color: #34343B; }
.c-cla .l-foot { display: flex; flex-direction: column; align-items: center; gap: 1.6cqw; font-size: 3.6cqw; color: var(--muted); }
.c-cla .l-logo { width: 12.6cqw; height: auto; color: var(--ink); margin-bottom: 1.5cqw; }
.c-cla .l-auth { font-family: var(--sans); font-size: 3.0cqw; letter-spacing: .14em; text-transform: uppercase; }

/* 6. Collège doctoral de Lorvane : double cadre */
.c-lor { padding: 13% 13% 12%; text-align: center; align-items: center; }
.c-lor::before { content: ""; position: absolute; inset: 5cqw; border: .35cqw solid var(--ink); pointer-events: none; }
.c-lor::after { content: ""; position: absolute; inset: 6.6cqw; border: .15cqw solid var(--ink); pointer-events: none; }
.c-lor .r-seal { width: 16.8cqw; height: auto; color: var(--red); }
.c-lor .r-inst { font-size: 4.8cqw; letter-spacing: .16em; text-transform: uppercase; margin-top: 3cqw; }
.c-lor .r-kind { font-size: 3.8cqw; font-style: italic; color: var(--muted); margin-top: 1.6cqw; }
.c-lor .r-title { font-size: 12.6cqw; font-weight: 500; line-height: 1.05; margin-top: auto; }
.c-lor .r-sub { font-size: 4.7cqw; font-style: italic; color: var(--muted); margin-top: 3.5cqw; }
.c-lor .r-foot { margin-top: auto; font-size: 3.6cqw; line-height: 1.6; color: #34343B; }
.c-lor .r-foot b { font-weight: 500; color: var(--ink); }
.c-lor .r-year { font-size: 3.4cqw; letter-spacing: .4em; margin-top: 2cqw; color: var(--muted); }

/* Pied de page */
.site-footer { padding-block: 48px 24px; text-align: center; font-family: var(--sans); }
.site-footer img { height: 44px; width: auto; display: inline-block; }
.motto { font-size: 0.72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; margin: 18px 0 10px; }
.motto span { padding: 0 .9em; color: var(--red); }
.legal { font-size: 0.78rem; color: var(--muted); display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; }
.legal a { text-decoration: none; }

/* Barre d'état */
.status {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  background: var(--chrome);
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--muted);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.status .wrap { display: flex; align-items: center; gap: 18px; height: 30px; white-space: nowrap; overflow: hidden; }
.status .sep { color: var(--faint); }
.status .right { margin-left: auto; }
.status .num { font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .status .opt { display: none; } }

/* ==========================================================
   Version 2 : plusieurs documents ouverts dans le même éditeur.
   Accueil, quatre dossiers (Recherche, Institutions, Livres, Prépas),
   Méthode et Mentions. Thème clair assumé, comme une page imprimée.
   ========================================================== */
:root {
  --oxblood: #7E1A1F;
  --navy: #1C2B5A;
  --seyes: #DCE2F2;
  --ok: #2E7D4F;
}
body { background: var(--page); color: var(--ink); }
[hidden] { display: none !important; }
.clip-page { height: 250px; }
.tabs a[aria-current="page"] { color: var(--ink); background: var(--page); box-shadow: 0 0 0 1px var(--rule); }

/* Titres des pages intérieures */
.title-page { font-size: clamp(2.4rem, 5.6vw, 4.1rem); line-height: 1.04; letter-spacing: -0.01em; margin-bottom: 26px; }
.title-page em { font-style: italic; font-weight: 400; color: var(--red); }
.section-lede { max-width: 60ch; }
.letter #pseudo { width: 11em; }
.letter select { max-width: 100%; field-sizing: content; }

/* Quatre dossiers */
.doors { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
@media (max-width: 1000px) { .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .doors { grid-template-columns: minmax(0, 1fr); } }
body.marks .doors li::after { content: none; }
.door { min-width: 0; }
.door a { display: flex; flex-direction: column; gap: 12px; height: 100%; text-decoration: none; color: inherit; }
.thumb {
  position: relative;
  aspect-ratio: 1 / 1.18;
  max-width: 100%;
  background: var(--page);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 16% 14% 12%;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20,20,30,.05), 0 14px 28px -14px rgba(20,20,30,.22);
  transition: transform .25s ease, box-shadow .25s ease;
}
.thumb::after {
  content: "";
  position: absolute; top: -1px; right: -1px;
  width: 17%; aspect-ratio: 1;
  background: linear-gradient(to bottom left, var(--chrome) 50%, var(--chrome-2) 50%);
  box-shadow: -1px 1px 2px rgba(20,20,30,.08);
}
.door a:hover .thumb, .door a:focus-visible .thumb { transform: translateY(-5px); box-shadow: 0 1px 2px rgba(20,20,30,.05), 0 22px 36px -14px rgba(20,20,30,.3); }
@media (prefers-reduced-motion: reduce) { .thumb { transition: none; } .door a:hover .thumb { transform: none; } }
.ln { display: block; height: 4px; border-radius: 2px; background: var(--chrome-2); margin-bottom: 7%; }
.ln.t { height: 8px; width: 68%; background: var(--ink); margin-bottom: 11%; }
.ln.s { width: 58%; }
.ln.m { width: 82%; }
.ln.c { margin-left: auto; margin-right: auto; }
.ln.blue { background: #CDD5FB; }
.ln.red { background: #F4B9B9; }
.thumb .fnline { position: absolute; left: 14%; right: 14%; bottom: 10%; border-top: 1px solid var(--rule); padding-top: 5%; }
.thumb .fnline .ln { margin: 0; width: 70%; height: 3px; }
.thumb .band { position: absolute; left: 0; right: 0; top: 0; height: 15%; background: var(--navy); }
.thumb.inst { padding-top: 26%; }
.thumb .margin-red { position: absolute; top: 0; bottom: 0; left: 11%; width: 1px; background: var(--red); opacity: .6; }
.thumb.cahier { padding-left: 18%; background-image: repeating-linear-gradient(transparent 0 9px, var(--seyes) 9px 10px); }
.thumb .mark { position: absolute; right: 22%; font-family: var(--serif); font-style: italic; color: var(--red); font-size: .9rem; line-height: 1; }
.thumb.livre { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14%; }
.thumb.livre .bt { font-family: var(--serif); font-size: 1.05rem; line-height: 1.15; color: var(--ink); }
.thumb.livre .bt i { color: var(--red); }
.thumb.livre .rule { width: 22%; height: 1px; background: var(--ink); margin: 10% 0 8%; }
.thumb.livre .by { font-family: var(--sans); font-size: .55rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.door-file { display: flex; align-items: center; gap: 7px; font-family: var(--sans); font-size: 0.74rem; color: var(--muted); margin: 4px 0 0; }
.door-file svg { flex: none; color: var(--blue); }
.door h3 { font-size: 1.32rem; line-height: 1.2; }
.door p { margin: 0; font-size: 0.98rem; color: #3A3A42; }
.door .go { margin-top: auto; padding-top: 4px; font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.door a:hover .go { color: var(--blue); }

/* Prestations : une ligne par service, la fiche à droite */
.block-title.first { margin-top: 44px; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc {
  display: grid;
  grid-template-columns: minmax(0, 40rem) minmax(0, 19rem);
  justify-content: space-between;
  gap: 14px 48px;
  padding: 28px 0 30px;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 100px;
}
.svc:first-child { border-top: 0; padding-top: 4px; }
@media (max-width: 880px) { .svc { grid-template-columns: minmax(0, 1fr); } }
.svc-text { min-width: 0; }
.svc-text h3 { margin-bottom: 8px; }
.svc-text p { margin: 0 0 .6em; max-width: 62ch; }
.svc-text .detail { display: block; font-family: var(--sans); font-size: 0.8rem; color: var(--muted); max-width: 62ch; }
body.marks .svc-list li::after, body.marks .fiche::after { content: none; }
.svc-side { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.fiche {
  margin: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 7px 14px;
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 14px 16px;
  background: var(--chrome);
  border-radius: 6px;
}
.fiche dt { font-size: 0.64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.fiche dd { margin: 0; color: var(--ink); min-width: 0; }
.fiche dd.price { font-weight: 600; }
.ask { align-self: flex-start; font-family: var(--sans); font-size: 0.78rem; font-weight: 500; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.ask:hover { color: var(--ink); }

/* Fin de dossier */
.cta-end {
  margin-top: 56px;
  padding: 30px 0 0;
  border-top: 1px solid var(--ink);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px 32px;
}
.cta-end h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-end h3 em { color: var(--red); }
.cta-end p { margin: 6px 0 0; color: var(--muted); max-width: 52ch; }

/* Feuilles illustratives : marges en % (une page ne peut pas se mesurer elle-même en cqw) */
.cover-classic { padding: 10% 9% 8%; }
.cover-modern { padding: 12% 10% 9% 14%; }
.cover-pfe { padding: 8% 9%; }
.toc { padding: 11% 9%; }

.sheet .crit { font-style: normal; font-family: var(--sans); font-size: .82em; color: var(--blue); }
.speech { padding: 11% 9% 9% 17%; line-height: 1.55; }
.speech .sp-h { font-family: var(--sans); font-size: 2.8cqw; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 7cqw; }
.speech p { margin: 0 0 4cqw; position: relative; font-size: 4.7cqw; }
.speech .t { position: absolute; left: -12cqw; top: .6cqw; font-family: var(--sans); font-size: 2.8cqw; color: var(--blue); font-variant-numeric: tabular-nums; }
.speech .pause { font-style: italic; color: var(--red); font-size: .92em; }

/* Livres */
.books { display: flex; align-items: flex-end; justify-content: center; gap: 4%; padding: 28px 0 8px; }
.book {
  container-type: inline-size;
  position: relative;
  width: 30%;
  max-width: 200px;
  aspect-ratio: 2 / 3;
  border-radius: 2px 5px 5px 2px;
  overflow: hidden;
  box-shadow: 0 2px 3px rgba(20,20,30,.12), 0 22px 30px -16px rgba(20,20,30,.45);
}
.bk-in { height: 100%; display: flex; flex-direction: column; padding: 16cqw 12cqw 12cqw 17cqw; box-shadow: inset 7cqw 0 0 -3cqw rgba(0,0,0,.16); }
.book.tall { width: 33%; max-width: 220px; }
.book.b1 { background: var(--navy); color: #F1F3FA; }
.book.b2 { background: var(--oxblood); color: #FBEFEF; }
.book.b3 { background: #F2F3F7; color: var(--ink); border: 1px solid var(--rule); }
.book .bk-kind { font-family: var(--sans); font-size: 5.4cqw; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.book .bk-title { font-family: var(--serif); font-size: 13cqw; line-height: 1.05; margin-top: 14cqw; }
.book .bk-rule { display: block; width: 18cqw; height: 1px; background: currentColor; opacity: .7; margin: 9cqw 0; }
.book.b3 .bk-rule { background: var(--red); opacity: 1; }
.book .bk-sub { font-family: var(--serif); font-style: italic; font-size: 7cqw; line-height: 1.3; opacity: .9; }
.book .bk-foot { margin-top: auto; font-family: var(--sans); font-size: 5cqw; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.books-cap { text-align: center; font-family: var(--sans); font-size: 0.74rem; letter-spacing: .08em; color: var(--muted); margin: 18px 0 0; }
.process { list-style: none; margin: 30px 0 0; padding: 0; counter-reset: pr; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 32px; }
@media (max-width: 860px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .process { grid-template-columns: minmax(0, 1fr); } }
.process li { counter-increment: pr; min-width: 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.process li::before { content: counter(pr); display: block; font-style: italic; font-size: 1.7rem; line-height: 1; color: var(--blue); margin-bottom: 8px; }
body.marks .process li::after { content: none; }
.process b { display: block; font-family: var(--sans); font-size: 0.76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.process span { display: block; font-size: 1rem; color: #34343B; }
.formules { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
@media (max-width: 920px) { .formules { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }
body.marks .formules li::after { content: none; }
.formule { min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 24px; border: 1px solid var(--rule); border-radius: 8px; background: var(--page); }
.formule.star { border-color: var(--ink); box-shadow: 0 18px 34px -20px rgba(20,20,30,.35); }
.formule .tag { font-family: var(--sans); font-size: 0.66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); min-height: 1em; }
.formule.star .tag { color: var(--red); }
.formule h3 { font-size: 1.6rem; }
.formule .for { margin: -4px 0 0; font-style: italic; color: var(--muted); font-size: 1rem; }
.formule ul { list-style: none; margin: 4px 0 0; padding: 0; font-family: var(--sans); font-size: 0.84rem; color: #34343B; display: grid; gap: 0; }
.formule ul li { padding: 8px 0; border-top: 1px solid var(--rule); }
.formule ul li:last-child { border-bottom: 1px solid var(--rule); }
body.marks .formule ul li::after { content: none; }
.formule .price { margin-top: auto; padding-top: 10px; font-size: 1.05rem; color: var(--muted); }
.formule .price b { font-size: 1.75rem; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.terms { font-family: var(--sans); font-size: 0.82rem; color: var(--muted); margin: 22px 0 0; max-width: 72ch; }

/* Prépas : copie double et programme */
.copie {
  position: relative;
  background-color: var(--page);
  background-image: repeating-linear-gradient(transparent 0 calc(1.75em - 1px), var(--seyes) calc(1.75em - 1px) 1.75em);
  background-position: 0 30px;
  border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgba(20,20,30,.05), 0 16px 32px -18px rgba(20,20,30,.28);
  padding: 30px 26px 26px 64px;
  line-height: 1.75em;
  font-size: 1.02rem;
}
.copie::before { content: ""; position: absolute; top: 0; bottom: 0; left: 46px; width: 1px; background: #E06C6C; }
.copie .sujet { font-family: var(--sans); font-size: 0.74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 1lh; max-width: none; line-height: inherit; }
.copie .sujet b { color: var(--ink); font-weight: 600; letter-spacing: 0; text-transform: none; font-family: var(--serif); font-size: 1.1rem; font-style: italic; line-height: 0; }
.copie p { margin: 0; max-width: none; }
.copie .ref { font-family: var(--sans); font-size: .62rem; font-weight: 700; color: var(--red); position: relative; top: -0.6em; margin-left: 1px; line-height: 0; }
.copie .grade { position: absolute; top: -14px; right: 18px; font-family: var(--serif); font-style: italic; font-size: 1.45rem; color: var(--red); background: var(--page); border: 1.5px solid var(--red); border-radius: 50%; width: 3.2rem; height: 3.2rem; display: grid; place-items: center; transform: rotate(-6deg); line-height: 1; }
.copie .grade small { font-size: .62em; }
body.marks .copie p::after { content: none; }
.copie-notes .note b { color: var(--red); }
.prog { margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; }
body.marks .prog li::after { content: none; }
.prog li { padding-top: 14px; border-top: 1px solid var(--rule); }
.prog .who { font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.prog .theme { font-size: 1.45rem; font-style: italic; margin: 4px 0 6px; }
.prog .works { margin: 0; font-size: 1rem; color: #34343B; max-width: 64ch; }
.source-line { font-family: var(--sans); font-size: 0.76rem; color: var(--muted); margin-top: 16px; }

/* Méthode : protocole et avant/après */
.proto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; margin: 36px 0 0; }
@media (max-width: 860px) { .proto { grid-template-columns: minmax(0, 1fr); } }
.proto div { min-width: 0; padding-top: 14px; border-top: 1px solid var(--ink); }
.proto h3 { font-style: italic; color: var(--red); font-weight: 400; font-size: 1.6rem; margin-bottom: 8px; }
.proto p { margin: 0; color: #34343B; }
.excl { max-width: 680px; margin-top: 34px; }
.ba-list { display: grid; gap: 34px; margin-top: 36px; }
.ba { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--page); box-shadow: 0 1px 2px rgba(20,20,30,.04), 0 12px 32px rgba(20,20,30,.05); }
.ba-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: var(--chrome); border-bottom: 1px solid var(--rule); padding: 8px 12px; font-family: var(--sans); font-size: 0.76rem; color: var(--muted); }
.ba-bar .dots { display: flex; gap: 5px; }
.ba-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--chrome-2); box-shadow: inset 0 0 0 1px var(--rule); }
.ba-bar .file { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ba-bar .kind { font-weight: 600; color: var(--ink); }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 2px; background: var(--page); }
.seg button { font: inherit; font-size: 0.74rem; border: 0; background: none; padding: 4px 12px; border-radius: 999px; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }
.ba-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 16rem); gap: 22px 32px; padding: 26px 26px 24px; }
@media (max-width: 760px) { .ba-body { grid-template-columns: minmax(0, 1fr); } }
.ba-text { margin: 0; font-size: 1.1rem; line-height: 1.7; max-width: 62ch; }
.ba-text del { color: var(--red); text-decoration: line-through; text-decoration-color: var(--red); }
.ba-text ins { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .14em; }
.ba.clean .ba-text del { display: none; }
.ba.clean .ba-text ins { color: inherit; text-decoration: none; }
.ba .note { margin: 0; align-self: start; }
.ba-legend { font-family: var(--sans); font-size: 0.78rem; color: var(--muted); margin-top: 18px; }
.engage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 48px; margin-top: 18px; }
@media (max-width: 860px) { .engage-grid { grid-template-columns: minmax(0, 1fr); } }
.engage-grid > div { min-width: 0; }
.engage-grid h3 { margin: 26px 0 6px; font-size: 1.4rem; }
.engage-grid h3 em { color: var(--red); }
.engage-grid .not h3 em { color: var(--ink); }
.engage-grid p { margin: 0; max-width: 58ch; }
.nots { margin: 6px 0 0; padding-left: 1.1em; max-width: 58ch; }
.nots li { margin-bottom: .4em; }
.nots li::marker { color: var(--red); }
body.marks .nots li::after { content: none; }

/* Lettre : sélection des objets */
.letter optgroup { font-style: normal; color: var(--muted); }
.letter option { color: var(--ink); }

/* Pied de page */
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 0.82rem; margin: 0 0 14px; }
.foot-nav a { text-decoration: none; color: var(--ink); }
.foot-nav a:hover { color: var(--blue); }

/* Rapport de similitude : exemple composé, dans la mise en forme du site */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.blur { filter: blur(4px); user-select: none; -webkit-user-select: none; }
.rpt { margin-top: 36px; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--page); box-shadow: 0 1px 2px rgba(20,20,30,.04), 0 22px 44px -22px rgba(20,20,30,.28); scroll-margin-top: 100px; }
.rpt:not(.apres) .only-apres, .rpt.apres .only-avant { display: none !important; }
.rpt-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 17rem); gap: 28px 40px; padding: 30px 30px 32px; }
@media (max-width: 920px) { .rpt-body { grid-template-columns: minmax(0, 1fr); padding: 22px 18px 24px; } }
.rpt-main { min-width: 0; display: grid; gap: 28px; font-family: var(--sans); }
.rpt-h { font-family: var(--sans); font-size: 0.66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.rpt-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.rpt-meta { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; font-size: 0.78rem; min-width: 0; }
.rpt-meta dt { color: var(--muted); }
.rpt-meta dd { margin: 0; color: var(--ink); font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.rpt-score { display: flex; align-items: center; gap: 16px; }
.rpt-score p { margin: 0; }
.ring { width: 84px; height: 84px; flex: none; }
.ring circle { fill: none; stroke-width: 7; }
.ring .trk { stroke: var(--chrome-2); }
.ring .val { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 54.7 210.5; transform: rotate(-90deg); transform-origin: 40px 40px; transition: stroke-dasharray 1s cubic-bezier(.22,.7,.2,1); }
.rpt.apres .ring .val { stroke-dasharray: 14.7 210.5; }
.rpt-score .big { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.rpt-score .lab { font-size: 0.74rem; color: var(--muted); margin-top: 6px; }
.rpt-strip { position: relative; height: 28px; background: linear-gradient(var(--rule), var(--rule)) 0 50% / 100% 1px no-repeat; }
.rpt-strip i { position: absolute; top: 4px; bottom: 4px; width: 2px; border-radius: 1px; }
.rpt-strip i.s, .k.s { background: var(--red); }
.rpt-strip i.c, .k.c { background: var(--blue); }
.rpt-strip i.x, .k.x { background: var(--faint); }
.excl-zone { position: absolute; left: 88%; right: 0; top: 2px; bottom: 2px; border: 1px dashed var(--faint); border-radius: 3px; font-size: 0.56rem; color: var(--muted); display: grid; place-items: center; text-align: center; line-height: 1.1; background: repeating-linear-gradient(135deg, transparent 0 4px, var(--chrome) 4px 6px); }
.rpt-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; font-size: 0.72rem; color: var(--muted); }
.rpt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.k { display: inline-block; width: 10px; height: 3px; border-radius: 2px; }
.rpt-cats { list-style: none; margin: 0; padding: 0; }
.rpt-cats li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 2px 14px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--rule); }
.rpt-cats li:last-child { border-bottom: 1px solid var(--rule); }
.rpt-cats .dot { width: 10px; height: 10px; border-radius: 50%; align-self: center; }
.rpt-cats .ring-dot { border: 1.5px dashed var(--muted); }
.rpt-cats .nm { font-size: 0.86rem; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.rpt-cats .pc { font-family: var(--serif); font-size: 1.4rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); grid-row: 1 / span 2; grid-column: 3; align-self: center; text-align: right; }
.rpt-cats .pc.red { color: var(--red); }
.rpt-cats .pc.blue { color: var(--blue); }
.rpt-cats .pc .sm { font-family: var(--sans); font-size: 0.74rem; color: var(--muted); }
.rpt-cats .ds { grid-column: 2; font-size: 0.76rem; line-height: 1.45; color: var(--muted); max-width: 54ch; }
.rpt-src { list-style: none; margin: 0; padding: 0; }
.rpt-src li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) 3.6rem 6rem; gap: 10px 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 0.8rem; }
.rpt-src li:last-child { border-bottom: 1px solid var(--rule); }
@media (max-width: 560px) { .rpt-src li { grid-template-columns: 1.5rem minmax(0, 1fr) 3.4rem; } .rpt-src .bar { display: none; } }
.rpt-src .n { font-weight: 600; color: var(--red); text-align: center; }
.rpt-src .t { min-width: 0; }
.rpt-src .t b { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink); }
.rpt-src .t > span { display: block; color: var(--muted); font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpt-src .p { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.rpt.apres .rpt-src .p .only-apres { color: var(--blue); font-weight: 500; }
.rpt-src .bar { position: relative; height: 9px; background: var(--chrome-2); border-radius: 2px; overflow: hidden; }
.rpt-src .bar i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red); }
.rpt.apres .rpt-src li:not(:nth-child(2)) .bar i { background: var(--blue); }
.rpt-ex { margin: 0; padding: 18px 20px; background: var(--chrome); border-radius: 6px; font-family: var(--serif); font-size: 1.06rem; line-height: 1.8; color: var(--ink); max-width: none; }
.rpt-ex .s { background: #FBDADA; box-shadow: inset 0 -2px 0 var(--red); }
.rpt-ex .c { background: #E4E9FF; box-shadow: inset 0 -2px 0 var(--blue); }
.rpt-ex ins { text-decoration: none; color: var(--blue); }
.nn { display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 1.5px solid var(--red); color: var(--red); background: var(--page); font-family: var(--sans); font-size: 0.64rem; font-weight: 700; line-height: 1; vertical-align: 0.15em; margin-left: 3px; flex: none; }
.rpt-notes { min-width: 0; }
.rpt-notes .note b { gap: 8px; }
.rpt-notes .note b .nn { margin-left: 0; vertical-align: 0; }
body.marks .rpt p::after, body.marks .rpt li::after { content: none; }
.demo-more { margin: 30px 0 0; }
.rpt-src li { align-items: start; }
.rpt-src .bar { margin-top: 5px; }
@media (max-width: 560px) { .excl-zone { font-size: 0; } }

/* Ouverture : bandeau d'appel, rapport annoté et pages de garde en alternance */
.hero-flag { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin: 0 0 26px; padding: 8px 14px 8px 12px; border: 1px solid var(--note-rule); border-radius: 999px; background: var(--note); color: var(--ink); font-size: 0.8rem; font-weight: 500; line-height: 1.35; text-decoration: none; }
.hero-flag:hover { border-color: var(--red); }
.hero-flag b { font-weight: 600; color: var(--red); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hf-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(210,31,31,.45); animation: pulse 2s infinite; }
.hf-go { color: var(--red); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(210,31,31,.45); } 70% { box-shadow: 0 0 0 9px rgba(210,31,31,0); } 100% { box-shadow: 0 0 0 0 rgba(210,31,31,0); } }
@media (prefers-reduced-motion: reduce) { .hf-dot { animation: none; } }
.hero-stage { margin-top: 24px; }
@media (max-width: 1000px) { .hero-stage { max-width: 440px; } }
.hs-switch { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 2px; background: var(--page); margin: 0 0 16px; }
.hs-switch button { font: inherit; font-size: 0.74rem; border: 0; background: none; padding: 5px 12px; border-radius: 999px; color: var(--muted); cursor: pointer; }
.hs-switch button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }
.hs-slides { display: grid; }
.hs-slide { grid-area: 1 / 1; min-width: 0; transition: opacity .7s ease, transform .7s ease, visibility 0s; }
.hs-slide:not(.on) { opacity: 0; transform: translateY(10px); visibility: hidden; pointer-events: none; transition: opacity .7s ease, transform .7s ease, visibility 0s .7s; }
@media (prefers-reduced-motion: reduce) { .hs-slide, .hs-slide:not(.on) { transition: none; } }
.hs-slide .cover-figure { margin-top: 8px; }
.mini { position: relative; margin: 0; max-width: 410px; border: 1px solid var(--rule); border-radius: 10px; background: var(--page); overflow: hidden; font-family: var(--sans); box-shadow: 0 1px 2px rgba(20,20,30,.06), 0 28px 52px -24px rgba(20,20,30,.38); }
.mini:not(.apres) .only-apres, .mini.apres .only-avant { display: none !important; }
.mini .ba-bar { font-size: 0.7rem; gap: 8px 10px; flex-wrap: nowrap; }
.mini .ba-bar .file { flex: 1; }
.mini .state { flex: none; font-size: 0.6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; background: #FDECEC; color: var(--red); }
.mini.apres .state { background: #E9EDFF; color: var(--blue); }
.mini-body { padding: 18px 18px 16px; display: grid; gap: 14px; }
.mini-head { position: relative; display: flex; align-items: center; gap: 14px; }
.mini-head p { margin: 0; }
.mini .ring { width: 72px; height: 72px; }
.mini.apres .ring .val { stroke-dasharray: 14.7 210.5; }
.mini .big { font-family: var(--serif); font-size: 2.7rem; line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; }
.mini .lab { font-size: 0.72rem; color: var(--muted); margin-top: 5px; }
.stamp { position: absolute; right: 2px; top: 50%; font-weight: 700; font-size: 0.78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); border: 2px solid var(--blue); border-radius: 4px; padding: 5px 10px 5px 12px; opacity: 0; transform: translateY(-50%) rotate(-9deg) scale(1.5); transition: opacity .3s ease, transform .4s cubic-bezier(.3,1.6,.5,1); pointer-events: none; }
.mini.apres .stamp { opacity: .92; transform: translateY(-50%) rotate(-9deg) scale(1); }
.mini .rpt-strip { height: 22px; }
.mini .excl-zone { font-size: 0.56rem; }
.mini-rows { list-style: none; margin: 0; padding: 0; font-size: 0.78rem; color: #34343B; }
.mini-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid var(--rule); }
.mini-rows li:last-child { border-bottom: 1px solid var(--rule); }
.mini-rows b { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.mini-rows b.red { color: var(--red); }
.mini-rows b.blue { color: var(--blue); }
.mini-rows .sm { font-family: var(--sans); font-size: 0.72rem; color: var(--muted); }
.mini-notes { display: grid; gap: 7px; }
.mini-notes .note { margin: 0; font-size: 0.74rem; line-height: 1.4; padding: 7px 10px 8px; opacity: 0; transform: translateX(-8px); transition: opacity .45s ease, transform .45s ease; }
.mini-notes .note.show { opacity: 1; transform: none; }
.mini-notes .note b { gap: 7px; margin-bottom: 2px; font-size: 0.68rem; }
.mini-notes .nn { margin-left: 0; vertical-align: 0; width: 1.1rem; height: 1.1rem; font-size: 0.6rem; }
.mini-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; max-width: 410px; margin: 12px 0 0 !important; font-size: 0.74rem; color: var(--muted); }
body.marks .mini p::after, body.marks .mini li::after, body.marks .mini-cap::after { content: none; }
/* Sur téléphone, le rapport passe juste sous le titre */
@media (max-width: 1000px) {
  #hero.grid.hero { display: flex; flex-direction: column; }
  #hero > .main, #hero > .aside { display: contents; }
  #hero .hero-flag { order: 1; align-self: flex-start; }
  #hero .eyebrow { order: 2; }
  #hero h1 { order: 3; }
  #hero .hero-stage { order: 4; margin-top: 28px; width: 100%; }
  #hero .lede { order: 5; }
  #hero > .main > p.ui { order: 6; }
  #hero > .aside > .note { display: none; }
}
/* Version 3 de l'ouverture : le rapport, toujours visible, en tête de page */
.page-hero { padding-top: clamp(28px, 4vw, 52px); }
.page-hero .hero-stage { margin-top: 0; }
.rpt.apres .ring .val, .mini.apres .ring .val { stroke-dasharray: 4.2 210.5; }
.rpt.apres .rpt-src li:nth-child(2) .bar i { background: var(--faint); }
.demo-head .cover-figure { margin-top: 0; }
.demo-head .cover-stage { max-width: 240px; }
.demo-head .cover-cap { max-width: 240px; margin-top: 26px; }
@media (max-width: 1000px) {
  #hero .hero-stage { order: 2; margin: 4px 0 30px; }
  #hero .eyebrow { order: 3; }
  #hero h1 { order: 4; }
  #hero .lede { order: 5; }
  .demo-head .aside { display: none; }
}
/* Logiciels dont nous lisons les rapports (noms seuls, sans logos) */
.mini-tools { max-width: 410px; margin: 14px 0 0; }
.mini-tools p { margin: 0 0 8px !important; font-size: 0.7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tools li { font-family: var(--sans); font-size: 0.76rem; font-weight: 500; color: var(--ink); padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px; background: var(--page); }
body.marks .tools li::after, body.marks .mini-tools p::after { content: none; }
.mini-tools + .mini-cap { margin-top: 10px !important; }

/* Bandeau de consentement : deux boutons de même poids */
.consent {
  position: fixed;
  z-index: 40;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  width: min(420px, calc(100% - 32px));
  background: var(--page);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(20,20,30,.06), 0 24px 48px -16px rgba(20,20,30,.35);
  padding: 18px 20px 16px;
  font-size: 0.84rem;
  line-height: 1.5;
}
.consent p { margin: 0 0 12px; max-width: none; }
.consent .consent-title { font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; margin-bottom: 8px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.c-btn { font: inherit; font-weight: 600; font-size: 0.82rem; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--page); color: var(--ink); cursor: pointer; }
.c-btn:hover { background: var(--ink); color: #FFFFFF; }
.consent-more { display: inline-block; margin-top: 10px; font-size: 0.76rem; color: var(--blue); }
body.marks .consent p::after { content: none; }
.link-btn { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }

/* ==========================================================
   Version 3 : même contenu, tenue plus sobre.
   Le rouge ne sert plus qu'à la correction, le bleu à l'encre et aux liens.
   Les étiquettes passent des capitales espacées aux petites capitales du Garamond.
   ========================================================== */
:root {
  --page: #FFFFFF;
  --chrome: #F6F6F4;
  --chrome-2: #EBEBE8;
  --ink: #17171B;
  --text: #2C2C33;
  --muted: #66666E;
  --faint: #A9A9AF;
  --rule: #E5E5E1;
  --red: #BE1A1F;
  --blue: #2238C4;
  --note: #FFFFFF;
  --note-rule: #E5E5E1;
  --shadow-s: 0 1px 2px rgba(23,23,27,.04), 0 10px 24px -14px rgba(23,23,27,.18);
  --shadow-m: 0 1px 2px rgba(23,23,27,.05), 0 24px 48px -28px rgba(23,23,27,.30);
}
::selection { background: #DCE1FA; color: var(--ink); }
body {
  font-size: 20px;
  line-height: 1.62;
  font-variant-numeric: oldstyle-nums;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 480px) { body { font-size: 18.5px; } }
.ui, .fiche, .rpt, .mini, .contact-card, .status, .toolbar { font-variant-numeric: lining-nums tabular-nums; }
.main p, .door p, .svc-text p, .ba-text { text-wrap: pretty; }
.main p { color: var(--text); }
.lede { font-size: 1.16rem; line-height: 1.58; color: var(--text); }

/* Titres : un seul noir, l'italique sans couleur */
h1, h2, h3 { font-weight: 400; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.5rem); line-height: 1.04; letter-spacing: -0.018em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.12; letter-spacing: -0.012em; margin-bottom: 16px; }
h3 { font-size: 1.4rem; line-height: 1.25; letter-spacing: -0.004em; }
.title-page { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -0.016em; margin-bottom: 24px; }
h1 em, h2 em, .title-page em, .cta-end h3 em, .engage h3 em, .engage-grid h3 em { color: inherit; }
.proto h3 { color: var(--ink); font-size: 1.5rem; }
.proto div { border-top-color: var(--rule); }
.cta-end { border-top-color: var(--rule); margin-top: 48px; }

/* Étiquettes : petites capitales */
.eyebrow, .block-title, .steps b, .process b, .fiche dt, .contact-card dt, .rpt-h,
.bib-panel .lab, .legal-toc .toc-title, .formule .tag, .prog .who, .mini-tools p,
.motto, .copie .sujet {
  font-family: var(--serif);
  font-weight: 500;
  text-transform: none;
  font-variant-caps: all-small-caps;
  font-variant-numeric: oldstyle-nums;
  letter-spacing: .075em;
}
.eyebrow { font-size: 1.16rem; color: var(--muted); margin-bottom: 14px; }
.block-title { font-size: 1.16rem; color: var(--muted); margin: 48px 0 20px; padding-top: 14px; }
.steps b, .process b { font-size: 1.12rem; color: var(--ink); line-height: 1.3; }
.fiche dt, .contact-card dt, .rpt-h, .bib-panel .lab, .legal-toc .toc-title { font-size: 1.04rem; line-height: 1.25; color: var(--muted); }
.fiche dt { padding-top: 0; }
.formule .tag, .prog .who { font-size: 1.08rem; }
.mini-tools p { font-size: 1.04rem !important; }
.copie .sujet { font-size: 1rem; }
.copie .sujet b { font-variant-caps: normal; }
.motto { font-size: 1.02rem; letter-spacing: .14em; color: var(--ink); margin: 16px 0 12px; }
.motto span { color: var(--faint); }

/* Barre d'outils, règle, barre d'état */
.toolbar { background: rgba(255,255,255,.9); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
.tb-inner { padding-block: 12px; gap: 24px; }
.logo img { height: 30px; }
.tabs { gap: 2px; }
.tabs a { font-size: 0.82rem; font-weight: 450; padding: 7px 11px; border-radius: 5px; transition: color .15s, background .15s; }
.tabs a:hover { background: var(--chrome); }
.tabs a[aria-current="page"], .tabs a.current { background: none; box-shadow: inset 0 -1.5px 0 var(--ink); border-radius: 0; color: var(--ink); }
.tool { border-radius: 5px; }
.ruler-row { border-top-color: transparent; background: none; }
.ruler { height: 14px; background: repeating-linear-gradient(90deg, var(--faint) 0 1px, transparent 1px 38px) 0 100% / 100% 5px no-repeat; opacity: .7; }
.ruler span { font-size: 8.5px; top: 0; }
.status { background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 0.7rem; }
.status .wrap { height: 26px; }
@media (max-width: 760px) {
  .status { display: none; }
  body { padding-bottom: env(safe-area-inset-bottom, 0px); }
}

/* Rythme vertical */
.page { padding-block: clamp(44px, 5.6vw, 74px) 16px; }
.page-hero { padding-top: clamp(28px, 4vw, 56px); }
.pagebreak { margin-top: 48px; }
.folio { margin-top: 14px; font-size: 0.68rem; }

/* Bouton principal et liens d'action */
.pill {
  gap: 18px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 14px 20px 14px 24px;
  transition: background .2s, transform .2s;
}
.pill:hover { background: var(--blue); }
.wa-link, .ask, .demo-more a, .consent-more { text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--blue) 40%, transparent); transition: text-decoration-color .15s, color .15s; }
.wa-link:hover, .ask:hover { color: var(--blue); text-decoration-color: var(--blue); }
.main a:not(.pill):not(.hero-flag):not(.ask):not(.wa-link) { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Commentaires de marge */
.note {
  background: var(--page);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--red);
  border-radius: 3px;
  padding: 11px 14px 12px;
  font-size: 0.82rem;
  line-height: 1.52;
  color: var(--text);
  box-shadow: var(--shadow-s);
}
.note b { font-size: 0.72rem; letter-spacing: .01em; margin-bottom: 4px; }
@media (min-width: 1001px) { .note.tethered::before { border-top-color: var(--faint); } }

/* Ouverture */
.hero-flag {
  display: flex; align-items: baseline; gap: 10px;
  margin: 0 0 30px; padding: 0 0 14px;
  border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  background: none;
  font-size: 0.82rem; font-weight: 450; color: var(--muted);
}
.hero-flag:hover { border-color: var(--ink); color: var(--ink); }
.hero-flag > span:not(.hf-dot):not(.hf-go) { flex: 1; }
.hf-dot { width: 6px; height: 6px; animation: none; box-shadow: none; transform: translateY(-2px); }
.hf-go { color: var(--muted); margin-left: auto; }
.hero-flag:hover .hf-go { color: var(--ink); }
.mini { border-radius: 8px; box-shadow: var(--shadow-m); }
.mini .state { font-size: 0.66rem; letter-spacing: .02em; text-transform: none; font-weight: 600; background: none; padding: 0; }
.mini.apres .state { background: none; }
.mini .big, .rpt-score .big { font-variant-numeric: lining-nums tabular-nums; }
.mini-notes .note { box-shadow: none; }
.stamp { font-size: 0.72rem; letter-spacing: .16em; border-width: 1.5px; }
.tools li, .shelf li { border-radius: 4px; font-weight: 450; color: var(--text); padding: 4px 9px; }
.mini-cap { font-size: 0.74rem; }

/* Fenêtres de document */
.clip-frame, .ba, .rpt { border-radius: 8px; box-shadow: var(--shadow-s); }
.rpt { box-shadow: var(--shadow-m); }
.clip-bar, .ba-bar { background: var(--page); }
.clip-bar .dots i, .ba-bar .dots i { width: 7px; height: 7px; background: var(--chrome-2); box-shadow: none; }
.clips { gap: 32px 28px; margin-top: 36px; }
.clip figcaption { font-size: 0.84rem; padding-top: 12px; }
.clip figcaption .play, .copy { border-radius: 4px; }
.chip { letter-spacing: .04em; text-transform: none; font-size: 0.72rem; }
.seg, .seg button { border-radius: 5px; }

/* Les quatre dossiers */
.doors { margin-top: 40px; gap: 36px 28px; }
.thumb { border-radius: 2px; box-shadow: var(--shadow-s); }
.door a:hover .thumb, .door a:focus-visible .thumb { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.door-file { font-size: 0.72rem; margin-top: 6px; }
.door-file svg { color: var(--faint); }
.door h3 { font-size: 1.34rem; }
.door p { font-size: 1rem; line-height: 1.5; color: var(--text); }
.door .go { font-size: 0.82rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--blue); padding-top: 2px; }
.door a:hover .go { color: var(--ink); }

/* Prestations */
.svc { padding: 30px 0 32px; }
.fiche { background: none; border: 0; border-left: 1px solid var(--rule); border-radius: 0; padding: 2px 0 2px 20px; gap: 6px 16px; font-size: 0.82rem; align-items: baseline; }
.svc-side { gap: 12px; }
.svc-side .ask { margin-left: 21px; }
@media (max-width: 880px) { .fiche { border-left: 0; padding-left: 0; } .svc-side .ask { margin-left: 0; } }
.svc-text .detail { font-size: 0.8rem; margin-top: 2px; }
.steps li::before, .process li::before { color: var(--faint); }
.steps span, .process span, .prog .works { color: var(--text); }
.formule { border-radius: 4px; padding: 28px 26px 26px; }
.formule.star { box-shadow: var(--shadow-m); }
.formule.star .tag { color: var(--red); }
.contact-card, .legal-toc, .bib { border-radius: 4px; }
.contact-card { padding: 18px 18px 8px; }
.rpt-ex { background: var(--chrome); border-radius: 4px; }

/* Lettre */
.letter { font-size: 1.04rem; }
.letter input, .letter select, .letter textarea { border-bottom-style: solid; border-bottom-color: var(--rule); transition: border-color .15s, background .15s; }
.letter input:focus, .letter select:focus, .letter textarea:focus { background: #F5F6FD; }

/* Pied de page */
.site-footer { margin-top: 40px; padding-block: 44px 28px; border-top: 1px solid var(--rule); }
.site-footer img { height: 40px; }
.foot-nav { gap: 6px 24px; margin-bottom: 16px; }
.foot-nav a { color: var(--text); }
.legal { font-size: 0.76rem; }

/* Bandeau de consentement */
.consent {
  width: min(372px, calc(100% - 32px));
  bottom: calc(42px + env(safe-area-inset-bottom, 0px));
  border-radius: 8px;
  box-shadow: var(--shadow-m), 0 0 0 1px rgba(23,23,27,.02);
  padding: 16px 18px 14px;
  font-size: 0.8rem;
}
.consent .consent-title { font-size: 1.12rem; margin-bottom: 6px; }
.c-btn { border-width: 1px; border-radius: 5px; font-weight: 500; padding: 9px 12px; transition: background .15s, color .15s; }
@media (max-width: 760px) { .consent { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); } }

@media (prefers-reduced-motion: reduce) {
  .pill, .tabs a, .c-btn, .thumb { transition: none; }
}
