/* Comité Restreint : lettre d'invitation sur fond noir, colonne de lecture étroite, filets dorés */
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ink: #111010;
  --ink-2: #1b1917;
  --ivory: #f1ece2;
  --ivory-dim: #b9b2a6;
  --gold: #b99a5b;
  --gold-soft: rgba(185, 154, 91, .3);
  --danger: #e08a7a;
  --display: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --caps: "Jost", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--gold); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ivory); color: var(--ink); padding: 8px 14px; z-index: 20; }

.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 960px; margin: 0 auto; }

.caps { font-family: var(--caps); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ivory-dim); }
.caps.gold { color: var(--gold); }
.rule { height: 1px; background: var(--gold); opacity: .7; border: 0; margin: 0; }

/* En-tête */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ink); border-bottom: 1px solid var(--gold-soft); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; max-width: 1040px; }
.brand { color: var(--ivory); text-decoration: none; display: flex; align-items: baseline; gap: 8px; font-size: 1.35rem; font-weight: 500; }
.brand .script { font-style: italic; color: var(--gold); }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a { font-family: var(--caps); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory-dim); text-decoration: none; }
.nav a:hover { color: var(--ivory); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--caps); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; padding: 14px 22px; border: 1px solid var(--gold); border-radius: 0; cursor: pointer; transition: background-color .2s, color .2s; }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--ivory); border-color: var(--ivory); }
.btn-ghost { background: transparent; color: var(--ivory); }
.btn-ghost:hover { background: var(--gold-soft); }
.nav .btn { padding: 10px 16px; color: var(--ink); }

/* Corps */
main .wrap { display: flex; flex-direction: column; gap: 80px; padding-block: 72px 64px; }
section { display: flex; flex-direction: column; gap: 22px; scroll-margin-top: 96px; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.9rem, 5vw, 2.5rem); line-height: 1.12; }
h3 { font-size: 1.28rem; font-weight: 600; line-height: 1.25; }
p { margin: 0; }
.muted { color: var(--ivory-dim); }

/* Hero */
.hero { display: flex; flex-direction: column; }
.hero-top { display: grid; grid-template-columns: auto auto; justify-content: start; gap: clamp(24px, 6vw, 80px); align-items: center; }
@media (max-width: 600px) { .hero-top { grid-template-columns: 1fr auto; gap: 12px; } }
.hero-top > div { min-width: 0; display: flex; flex-direction: column; }
.eyebrow { display: flex; align-items: center; gap: 20px; }
.eyebrow .rule { width: 96px; }
.hero h1 { margin-top: 18px; line-height: .92; font-size: clamp(3.4rem, 12vw, 5.8rem); letter-spacing: -.01em; }
.hero h1 .l1 { display: block; }
.hero h1 .l2 { display: block; font-style: italic; color: var(--gold); }
.hero .by { margin-top: 18px; }
.hero .lede { font-style: italic; font-size: clamp(1.35rem, 3.6vw, 1.7rem); line-height: 1.38; margin-top: 30px; }
.hero .sub { margin-top: 14px; color: var(--ivory-dim); }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.table-mark { width: clamp(96px, 28vw, 300px); }

.pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px 36px; }
.pair { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--gold-soft); padding-top: 16px; min-width: 0; }
.pair p { color: var(--ivory-dim); font-size: 1.05rem; }

/* Déroulé */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; position: relative; padding-bottom: 32px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 27px; top: 60px; bottom: 6px; width: 1px; background: var(--gold-soft); }
.step:last-child::before { display: none; }
.num { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--ivory); display: grid; place-items: center; font-size: 1.4rem; }
.step.key .num { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.step-body { min-width: 0; padding-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.when { font-family: var(--caps); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.morning { margin: 10px 0 0; padding: 18px 20px; background: var(--ink-2); border-left: 1px solid var(--gold); display: flex; flex-direction: column; gap: 10px; list-style: none; }
.morning li { display: grid; grid-template-columns: 4.4em 1fr; gap: 12px; font-size: 1.02rem; }
.morning .t { font-family: var(--caps); font-size: .78rem; letter-spacing: .06em; color: var(--gold); font-variant-numeric: tabular-nums; padding-top: .25em; }

.takeaways { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.takeaways li { display: grid; grid-template-columns: 14px 1fr; gap: 16px; align-items: baseline; }
.takeaways li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px; border-block: 1px solid var(--gold-soft); padding-block: 24px; }
.facts div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.facts strong { font-weight: 500; font-size: 1.22rem; }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--gold-soft); }
.faq details { border-bottom: 1px solid var(--gold-soft); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding-block: 18px; font-size: 1.22rem; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--caps); color: var(--gold); font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; color: var(--ivory-dim); }

.cta-band { border: 1px solid var(--gold); padding: 36px 28px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.sign { font-style: italic; font-weight: 500; font-size: 2rem; line-height: 1; color: var(--gold); }

/* Formulaire */
.form { display: flex; flex-direction: column; gap: 22px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-family: var(--caps); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory-dim); }
.field .opt { letter-spacing: .05em; text-transform: none; color: var(--ivory-dim); opacity: .75; }
.field input, .field textarea { width: 100%; background: var(--ink-2); color: var(--ivory); border: 1px solid var(--gold-soft); border-radius: 0; padding: 12px 14px; font: inherit; font-size: 1.1rem; }
.field textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.field .help { font-size: .98rem; color: var(--ivory-dim); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.err { color: var(--danger); font-size: 1rem; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 1.02rem; color: var(--ivory-dim); }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--gold); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { border: 1px solid var(--gold); background: var(--ink-2); padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.notice.bad { border-color: var(--danger); }

/* Pages de texte */
.prose { display: flex; flex-direction: column; gap: 16px; }
.prose h2 { font-size: 1.7rem; margin-top: 18px; }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--gold-soft); }
.site-footer .wrap { padding-block: 32px 40px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; max-width: 1040px; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a, .site-footer span { font-family: var(--caps); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ivory-dim); text-decoration: none; }
.site-footer a:hover { color: var(--ivory); }
.h2-like { font-size: clamp(2.2rem, 6vw, 3rem); line-height: 1.08; }
.notice h2 { font-size: 1.5rem; }
.field label.check { font-family: var(--display); font-size: 1.02rem; letter-spacing: 0; text-transform: none; color: var(--ivory-dim); }

/* L'animateur */
.host-grid { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: start; }
.host-text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.portrait { width: 200px; height: 200px; border-radius: 50%; border: 1.5px solid var(--gold); padding: 6px; background: var(--ink); }
.conviction { margin: 6px 0; padding-left: 20px; border-left: 1px solid var(--gold); font-style: italic; font-size: clamp(1.3rem, 3.4vw, 1.55rem); line-height: 1.4; color: var(--ivory); }
@media (max-width: 600px) { .host-grid { grid-template-columns: 1fr; gap: 22px; } .portrait { width: 150px; height: 150px; } }
.mir { font-style: italic; }

/* Pour qui */
.roles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 36px; }
@media (max-width: 860px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .roles { grid-template-columns: 1fr; } }
.roles li { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--gold-soft); padding-top: 14px; min-width: 0; }
.roles strong { font-weight: 500; font-size: 1.12rem; }
.roles span { font-style: italic; color: var(--ivory-dim); }
/* Encadré confidentialité */
.note { border: 1px solid var(--gold-soft); background: var(--ink-2); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Logo de la table, joué une fois : le porteur du sujet d'abord, puis la table, puis les contributeurs un à un */
.table-mark .tm { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .table-mark .tm { animation: tm-pop .6s cubic-bezier(.2,.8,.2,1) both; }
  .table-mark .tm-table { animation-name: tm-fade; animation-duration: .8s; }
  .table-mark .tm-gold { animation-delay: .2s; }
  .table-mark .tm-table { animation-delay: .7s; }
  .table-mark .tm-c1 { animation-delay: 1.2s; }
  .table-mark .tm-c2 { animation-delay: 1.6s; }
  .table-mark .tm-c3 { animation-delay: 2.0s; }
  .table-mark .tm-c4 { animation-delay: 2.4s; }
}
@keyframes tm-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
@keyframes tm-fade { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 600px) { .eyebrow .rule { display: none; } .eyebrow .caps { white-space: nowrap; } }
