/*
 * Charte SEARCH — volontairement sobre.
 *
 * Le logo évoque la diversité des disciplines par une profusion de couleurs ;
 * l'interface prend le parti inverse : une seule couleur d'accent, beaucoup de
 * blanc, et de la typographie. La richesse thématique s'exprime par le
 * contenu, pas par le décor.
 *
 * Écrite à la main, sans outil de compilation : sur un hébergement mutualisé,
 * on dépose le fichier et c'est terminé.
 */

:root {
  --brand-50:  #f0fdfa;
  --brand-100: #ccfbf1;
  --brand-200: #99f6e4;
  --brand-300: #5eead4;
  --brand-600: #0d9488;
  --brand-700: #0f766e;
  --brand-800: #115e59;
  --brand-900: #134e4a;

  --ink-50:  #f8f9fa;
  --ink-100: #f1f3f5;
  --ink-200: #e6e9ec;
  --ink-300: #d3d8dd;
  --ink-400: #9aa3ad;
  --ink-500: #6b747e;
  --ink-600: #4b535c;
  --ink-700: #343a40;
  --ink-800: #212529;
  --ink-900: #14171a;

  --radius: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lift: 0 8px 24px rgba(16, 24, 40, .06);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink-50);
  color: var(--ink-800);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.25; text-wrap: balance; margin: 0; }
p { margin: 0; }
img { max-width: 100%; height: auto; }

a { color: var(--brand-700); }

/* Anneau de focus unique et bien visible : accessibilité au clavier. */
:focus-visible { outline: 2px solid var(--brand-700); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-500); }
.small { font-size: .875rem; }

.skip {
  position: absolute; left: -9999px;
  background: var(--brand-700); color: #fff;
  padding: 8px 16px; border-radius: var(--radius); z-index: 50;
}
.skip:focus { left: 16px; top: 16px; }

/* --- Bandeau de démonstration --------------------------------------------- */
.demo-banner {
  background: #fef3c7; border-bottom: 1px solid #fcd34d;
  color: #78350f; text-align: center; padding: 8px 16px; font-size: .875rem;
}

/* --- En-tête --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink-200);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand-name { font-size: 1.125rem; font-weight: 600; color: var(--brand-800); letter-spacing: -.01em; }
.brand-place { font-size: .75rem; color: var(--ink-500); }

.main-nav { display: flex; gap: 4px; flex: 1; }
.nav-link {
  padding: 8px 12px; border-radius: 6px; font-size: .875rem;
  color: var(--ink-600); text-decoration: none;
}
.nav-link:hover { background: var(--ink-100); color: var(--ink-900); }
.nav-link.is-active { background: var(--brand-50); color: var(--brand-800); font-weight: 500; }

.header-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* Espaces privés : encadrés et séparés, ce sont des outils de travail. */
.private-nav { display: flex; align-items: center; gap: 4px; padding-right: 12px; border-right: 1px solid var(--ink-200); }
.pill {
  padding: 6px 12px; border: 1px solid var(--ink-200); border-radius: 6px;
  font-size: .875rem; color: var(--ink-600); text-decoration: none;
}
.pill:hover { border-color: var(--ink-300); background: var(--ink-50); }

.lang { display: flex; align-items: center; font-size: .875rem; }
.lang-sep { padding: 0 4px; color: var(--ink-300); }
.lang-link { text-decoration: none; color: var(--ink-500); text-transform: uppercase; padding: 2px 4px; }
.lang-link.is-active { color: var(--ink-900); font-weight: 600; }

.inline-form { display: inline; }
.link-button {
  background: none; border: 0; padding: 8px 12px; border-radius: 6px;
  font: inherit; font-size: .875rem; color: var(--ink-600); cursor: pointer; text-decoration: none;
}
.link-button:hover { background: var(--ink-100); color: var(--ink-900); }

@media (max-width: 780px) {
  .main-nav { display: none; }
  .private-nav { display: none; }
}

/* --- Boutons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 6px; border: 1px solid transparent;
  font-size: .875rem; font-weight: 500; text-decoration: none; cursor: pointer;
  font-family: inherit; transition: background-color .15s, border-color .15s;
}
.btn-sm { height: 32px; padding: 0 12px; }
.btn-primary { background: var(--brand-700); color: #fff; }
.btn-primary:hover { background: var(--brand-800); }
.btn-secondary { background: #fff; color: var(--ink-800); border-color: var(--ink-300); }
.btn-secondary:hover { background: var(--ink-100); border-color: var(--ink-400); }
.btn-danger { background: #b91c1c; color: #fff; }
.btn-danger:hover { background: #991b1b; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* --- Messages -------------------------------------------------------------- */
.flashes { padding-top: 16px; display: grid; gap: 8px; }
.alert { border: 1px solid; border-radius: var(--radius); padding: 12px 16px; font-size: .875rem; }
.alert-info    { border-color: var(--brand-200); background: var(--brand-50); color: var(--brand-900); }
.alert-success { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.alert-warning { border-color: #fcd34d; background: #fffbeb; color: #78350f; }
.alert-error   { border-color: #fecaca; background: #fef2f2; color: #991b1b; }

/* --- Cartes ---------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--ink-200);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.card-header { margin-bottom: 20px; }
.card-header h2 { font-size: 1.125rem; font-weight: 600; }
.card-header p { margin-top: 4px; font-size: .875rem; color: var(--ink-500); }

/* --- Formulaires ----------------------------------------------------------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .875rem; font-weight: 500; color: var(--ink-800); }
.field .required { color: var(--brand-700); margin-left: 2px; }
.field .hint { font-size: .75rem; color: var(--ink-500); }

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], input[type="datetime-local"],
input[type="tel"], input[type="file"], select, textarea {
  width: 100%; padding: 8px 12px; font: inherit; font-size: .875rem;
  color: var(--ink-900); background: #fff;
  border: 1px solid var(--ink-300); border-radius: 6px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 1px var(--brand-600);
}
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* --- Écrans de compte ------------------------------------------------------ */
.auth-shell { max-width: 460px; margin: 0 auto; padding: 56px 16px; }
.auth-shell h1 { font-size: 1.5rem; font-weight: 600; }
.auth-shell > p { margin-top: 8px; font-size: .875rem; color: var(--ink-600); }
.auth-shell .card { margin-top: 32px; }
.auth-footer { margin-top: 24px; text-align: center; font-size: .875rem; color: var(--ink-600); }

/* --- Accueil --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-900), var(--brand-800) 45%, var(--ink-900));
  color: #fff;
}
.hero-inner { padding: 96px 0; position: relative; z-index: 1; }

/* Avec une photo : elle couvre le fond, un dégradé sombre passe par-dessus
   pour que le titre reste lisible même sur une image claire. */
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,23,26,.9), rgba(20,23,26,.7) 45%, rgba(19,78,74,.5));
}
.hero.has-photo { background: var(--ink-900); }
.hero-eyebrow {
  font-size: .875rem; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--brand-200);
}
.hero h1 { margin-top: 16px; max-width: 760px; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 600; color: #fff; }
.hero p { margin-top: 24px; max-width: 620px; font-size: 1.125rem; color: rgba(240, 253, 250, .9); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .3); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); }

.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-head h2 { font-size: 1.75rem; font-weight: 600; }

.cards { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

.post-card {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--ink-200); border-radius: 12px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.post-card:hover { border-color: var(--brand-300); box-shadow: var(--shadow-lift); }
.post-cover { aspect-ratio: 16 / 9; background: var(--ink-100); position: relative; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Aplats de repli : la teinte varie selon la position, pour que plusieurs
   cartes côte à côte restent distinguables sans image. */
.post-cover-0 { background: linear-gradient(135deg, var(--brand-700), var(--brand-900)); }
.post-cover-1 { background: linear-gradient(135deg, var(--brand-600), var(--ink-800)); }
.post-cover-2 { background: linear-gradient(135deg, var(--ink-700), var(--brand-800)); }
.post-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-date { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-500); }
.post-card h3 { font-size: 1rem; font-weight: 600; }
.post-card:hover h3 { color: var(--brand-800); }
.post-excerpt { font-size: .875rem; color: var(--ink-600); }
.badge-pinned {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255, 255, 255, .95); color: var(--brand-800);
  font-size: .75rem; font-weight: 500; padding: 4px 10px; border-radius: 999px;
}

.missions { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 780px) { .missions { grid-template-columns: 1fr; } }
.mission { background: #fff; border: 1px solid var(--ink-200); border-radius: 12px; padding: 24px; }
.mission h3 { margin-top: 12px; font-size: 1.125rem; font-weight: 600; }
.mission p { margin-top: 8px; font-size: .875rem; color: var(--ink-600); }
.mission-mark { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--brand-50); color: var(--brand-700); font-size: 1.25rem; }

/* --- Contenu éditorial ------------------------------------------------------ */
.prose { color: var(--ink-700); }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 1.375rem; font-weight: 600; margin-top: 32px; }
.prose h3 { font-size: 1.125rem; font-weight: 600; margin-top: 24px; }
.prose ul, .prose ol { padding-left: 24px; margin-top: 16px; }
.prose li + li { margin-top: 4px; }
.prose blockquote {
  border-left: 3px solid var(--brand-200); padding-left: 16px; color: var(--ink-600);
}
/* Une image d'article occupe sa propre ligne, centrée, et ne dépasse jamais la
   colonne de texte : sur un téléphone, une photo de 4000 px se réduit au lieu
   d'imposer un défilement horizontal à tout l'article. */
.prose img { display: block; max-width: 100%; height: auto; margin: 24px auto; border-radius: var(--radius); }
.prose code { background: var(--ink-100); padding: 2px 5px; border-radius: 4px; font-size: .9em; }

.article { max-width: 720px; margin: 0 auto; padding: 48px 16px; }
.article h1 { font-size: 2rem; font-weight: 600; margin-top: 24px; }
.article-meta { margin-top: 12px; font-size: .875rem; color: var(--ink-500); }
/* Bannière de tête : même rapport que .post-cover, pour que l'image ouvrant
   l'article soit cadrée comme la vignette d'où l'on vient. */
.article-cover {
  display: block; width: 100%; max-width: 100%;
  aspect-ratio: 16 / 9; object-fit: cover;
  margin-top: 32px; border-radius: 12px; background: var(--ink-100);
}
@media (max-width: 640px) { .article-cover { margin-top: 24px; border-radius: 8px; } }

/* --- Pagination ------------------------------------------------------------- */
.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 40px; font-size: .875rem; }

/* --- Pied de page ----------------------------------------------------------- */
.site-footer { margin-top: auto; background: #fff; border-top: 1px solid var(--ink-200); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; padding: 40px 16px; }
.footer-name { font-weight: 600; color: var(--ink-800); }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: .875rem; }
.footer-links a { color: var(--ink-500); text-decoration: none; }
.footer-links a:hover { color: var(--ink-800); }

/* --- Espaces membre et gestion ----------------------------------------------- */
.section-layout { padding: 40px 16px; display: grid; gap: 32px; grid-template-columns: 200px 1fr; align-items: start; }
.section-title { grid-column: 1 / -1; }
.section-title h1 { font-size: 1.5rem; font-weight: 600; }
.section-title p { margin-top: 4px; font-size: .875rem; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-link { padding: 8px 12px; border-radius: 6px; font-size: .875rem; color: var(--ink-600); text-decoration: none; }
.side-link:hover { background: var(--ink-100); color: var(--ink-900); }
.side-link.is-active { background: var(--brand-50); color: var(--brand-800); font-weight: 500; }
.section-body { min-width: 0; }
@media (max-width: 780px) {
  .section-layout { grid-template-columns: 1fr; }
  .side-nav { flex-direction: row; overflow-x: auto; }
}

.data-list { margin: 0; display: grid; }
.data-list > div { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding: 12px 0; border-top: 1px solid var(--ink-100); font-size: .875rem; }
.data-list > div:first-child { border-top: 0; }
.data-list dt { color: var(--ink-500); margin: 0; }
.data-list dd { margin: 0; }

.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 10px; font-size: .75rem; font-weight: 500; }
.badge-draft, .badge-archived, .badge-cancelled { background: var(--ink-100); color: var(--ink-600); }
.badge-published, .badge-active { background: #ecfdf5; color: #065f46; }
.badge-pending { background: #fffbeb; color: #78350f; }
.badge-rejected { background: #fef2f2; color: #991b1b; }

.tiles { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 780px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius); padding: 16px; text-decoration: none; color: inherit; display: block; }
.tile:hover { border-color: var(--brand-300); }
.tile-label { display: block; font-size: .75rem; color: var(--ink-500); }
.tile-value { display: block; margin-top: 4px; font-size: 1.75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tile-value.is-zero { color: var(--ink-400); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.toolbar h2 { font-size: 1.125rem; font-weight: 600; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows > li + li { border-top: 1px solid var(--ink-100); }
.row-link { display: flex; align-items: center; gap: 12px; padding: 14px 20px; text-decoration: none; color: inherit; }
.row-link:hover { background: var(--ink-50); }
.row-main { flex: 1; min-width: 0; font-weight: 500; }
.row-pin { color: var(--brand-700); }
.row-date { font-size: .75rem; color: var(--ink-500); white-space: nowrap; }

.stack { display: grid; gap: 16px; }
.check-box { display: flex; align-items: flex-start; gap: 12px; font-size: .875rem; padding: 12px 0; }
.check-box span span { display: block; }
.danger-zone { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--ink-200); }
.cover-preview { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.cover-preview img { width: 128px; height: 80px; object-fit: cover; border: 1px solid var(--ink-200); border-radius: 6px; }

/* --- Événements ---------------------------------------------------------------- */
.event-head { display: flex; gap: 12px; align-items: flex-start; }
.event-mark {
  display: inline-flex; width: 40px; height: 40px; flex: 0 0 40px;
  align-items: center; justify-content: center; border-radius: 10px;
  background: var(--brand-700); color: #fff; font-size: 1.125rem;
}
.event-foot { margin-top: auto; padding-top: 12px; }
.choices { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 4px; }
.choices-column { flex-direction: column; gap: 6px; }
.choice { display: flex; align-items: center; gap: 8px; font-size: .875rem; }
.question-row {
  border: 1px solid var(--ink-200); border-radius: var(--radius);
  padding: 16px; margin-bottom: 12px;
}

/* --- Bandeau d'adhésion -------------------------------------------------------- */
.cta { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; border: 1px solid; border-radius: 12px; padding: 24px; }
.cta-text { flex: 1; min-width: 240px; }
.cta h2 { font-size: 1.25rem; font-weight: 600; }
.cta p { margin-top: 6px; font-size: .875rem; opacity: .9; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-invite    { border-color: var(--brand-200); background: var(--brand-50); color: var(--brand-900); }
.cta-confirmed { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.cta-warning   { border-color: #fcd34d; background: #fffbeb; color: #78350f; }
.cta-neutral   { border-color: var(--ink-200); background: #fff; color: var(--ink-700); }
.cta h2, .cta-confirmed h2, .cta-warning h2 { color: inherit; }

.season-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 780px) { .grid-3 { grid-template-columns: 1fr; } }
.ink { color: var(--ink-800); }

/* --- Éditeur Markdown --------------------------------------------------------- */
.md-editor { position: relative; border: 1px solid var(--ink-300); border-radius: 6px; overflow: hidden; background: #fff; }
.md-editor:focus-within { border-color: var(--brand-600); box-shadow: 0 0 0 1px var(--brand-600); }
.md-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; background: var(--ink-50); border-bottom: 1px solid var(--ink-200); }
.md-tool { min-width: 32px; padding: 4px 8px; font: inherit; font-size: .75rem; background: none; border: 0; border-radius: 4px; color: var(--ink-700); cursor: pointer; }
.md-tool:hover { background: var(--ink-200); }
.md-file { display: none; }
.md-tabs { margin-left: auto; display: flex; gap: 2px; }
.md-tab { padding: 4px 10px; font: inherit; font-size: .75rem; background: none; border: 0; border-radius: 4px; color: var(--ink-600); cursor: pointer; }
.md-tab[aria-pressed="true"] { background: var(--brand-700); color: #fff; }
.md-source { border: 0; border-radius: 0; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .8125rem; }
.md-source:focus { box-shadow: none; }
.md-preview { min-height: 160px; padding: 12px; }
.md-status { margin: 0; padding: 8px 12px; font-size: .75rem; background: var(--ink-50); color: var(--ink-600); border-top: 1px solid var(--ink-200); }
.md-status-error { background: #fef2f2; color: #991b1b; border-top-color: #fecaca; }
.md-hint { margin: 0; padding: 6px 12px; font-size: .75rem; color: var(--ink-500); background: var(--ink-50); border-top: 1px solid var(--ink-200); }

/* Cible du glisser-déposer : le cadre se dessine par-dessus, sans déplacer la
   zone de saisie — un décalage d'un pixel au survol donnerait l'impression que
   le texte saute. */
.md-editor.is-dragover { border-color: var(--brand-600); }
.md-editor.is-dragover::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px dashed var(--brand-600);
  border-radius: 4px;
  background: var(--brand-50);
  opacity: .55;
  pointer-events: none;
}

/* --- Pages d'erreur ---------------------------------------------------------- */
.error-page { max-width: 560px; margin: 0 auto; padding: 96px 16px; text-align: center; }
.error-page h1 { font-size: 1.75rem; font-weight: 600; }
.error-page p { margin-top: 12px; color: var(--ink-600); }
.error-page .btn { margin-top: 32px; }

/* --- Colloque ------------------------------------------------------------- */

/* Formulaire en étapes. Sans JavaScript, aucune de ces règles ne masque quoi
   que ce soit : les sections s'enchaînent simplement les unes sous les autres. */
.stepper .step { border-top: 1px solid var(--ink-200); padding-top: 24px; margin-top: 24px; }
.stepper .step:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.stepper .step h2 { font-size: 1.125rem; font-weight: 600; margin-bottom: 16px; }
.stepper-enhanced .step { display: none; border-top: 0; padding-top: 0; margin-top: 0; }
.stepper-enhanced .step.is-current { display: block; }

.stepper-progress { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.stepper-progress:empty { display: none; }
.stepper-progress li {
  flex: 1 1 0; min-width: 96px; padding: 8px 4px 0;
  border-top: 3px solid var(--ink-200);
  font-size: .8125rem; color: var(--ink-500);
}
.stepper-progress li.is-done { border-color: var(--brand-300); color: var(--ink-600); cursor: pointer; }
.stepper-progress li.is-current { border-color: var(--brand-700); color: var(--brand-800); font-weight: 500; }

.stepper-nav { display: flex; gap: 12px; margin-top: 24px; }
.stepper-nav:empty { display: none; }
.stepper-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Choix de format : une carte cliquable plutôt qu'un bouton radio perdu. */
.choice-card {
  align-items: flex-start; gap: 12px; border: 1px solid var(--ink-200);
  border-radius: 10px; padding: 12px 14px; cursor: pointer;
}
.choice-card:hover { border-color: var(--brand-300); }
.choice-card:has(input:checked) { border-color: var(--brand-700); background: #f0fdfa; }
.choice-card strong { display: block; }
.choice-card .hint { margin-top: 2px; }

.word-count.is-over { color: #991b1b; font-weight: 500; }

.authors-table input { width: 100%; }
.authors-table th { font-weight: 500; font-size: .8125rem; color: var(--ink-600); }

/* Programme : composé à partir des données, jamais retapé. */
.presentation h3 { font-size: 1.0625rem; font-weight: 600; }
.presentation-authors { margin-top: 8px; font-size: .9375rem; }
.presentation-authors .is-presenter { font-weight: 600; }
.presentation-authors sup { color: var(--brand-700); }
.presentation-labs {
  margin: 8px 0 0; padding: 0; list-style: none;
  font-size: .8125rem; color: var(--ink-600);
}
.presentation-body { margin-top: 12px; }

/* --- Écrans de gestion ----------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--ink-200); }
.tabs a {
  padding: 8px 14px; font-size: .875rem; color: var(--ink-600);
  border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none;
}
.tabs a:hover { color: var(--ink-900); }
.tabs a.is-active { color: var(--brand-800); border-color: var(--brand-700); font-weight: 500; }

.grid-4 { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 780px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-size: 1.75rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table th, .table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--ink-100); }
.table thead th { font-size: .8125rem; color: var(--ink-600); font-weight: 500; }
.table tfoot th { border-bottom: 0; font-weight: 600; }

.decision-card summary {
  display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none;
}
.decision-card summary::-webkit-details-marker { display: none; }
.decision-card summary .row-main { flex: 1; min-width: 0; }
.decision-card[open] summary { border-bottom: 1px solid var(--ink-100); padding-bottom: 12px; }

.row-static { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: .875rem; }
.row-static .row-main { flex: 1; min-width: 0; }

.badge-confirmed { background: #ecfdf5; color: #065f46; }
.badge-waitlisted { background: #eff6ff; color: #1e40af; }
.badge-submitted, .badge-under_review { background: #fffbeb; color: #78350f; }
.badge-accepted_oral, .badge-accepted_poster { background: #ecfdf5; color: #065f46; }
.badge-withdrawn, .badge-closed { background: var(--ink-100); color: var(--ink-600); }
/* --- Mode aperçu ------------------------------------------------------------ */

/* Bandeau distinct du bandeau de démonstration : on doit pouvoir dire d'un
   coup d'oeil dans lequel des deux états on se trouve. */
.preview-banner {
  display: flex; justify-content: center; align-items: center; gap: 12px;
  flex-wrap: wrap;
  background: var(--brand-800); border-bottom: 1px solid var(--brand-700);
  color: #fff; text-align: center; padding: 6px 16px; font-size: .875rem;
}
.preview-banner .link-button { color: #fff; text-decoration: underline; padding: 2px 6px; }
.preview-banner .link-button:hover { background: rgba(255, 255, 255, .15); color: #fff; }

.eye {
  background: none; border: 1px solid var(--ink-200); border-radius: 6px;
  padding: 5px 9px; font-size: 1rem; line-height: 1; cursor: pointer;
  color: var(--ink-500); filter: grayscale(1); opacity: .65;
}
.eye:hover { border-color: var(--ink-300); background: var(--ink-50); opacity: 1; }
.eye.is-on { border-color: var(--brand-700); background: #f0fdfa; filter: none; opacity: 1; }

/* Repère de brouillon posé sur une vignette, symétrique du repère d'épingle. */
.badge-preview {
  position: absolute; top: 12px; right: 12px;
  background: var(--brand-800); color: #fff;
  font-size: .75rem; font-weight: 500; padding: 4px 10px; border-radius: 999px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* --- Matrice des permissions ------------------------------------------------ */
.matrix { min-width: 720px; }
.matrix th, .matrix td { vertical-align: middle; }

/* Colonnes de cases resserrées : le nom doit garder la place, les cases n'ont
   besoin que de leur largeur. */
.matrix-col { width: 88px; text-align: center; font-size: .75rem; line-height: 1.3; }
.matrix-cell { text-align: center; }
.matrix-cell input { width: 18px; height: 18px; cursor: pointer; }
.matrix select { min-width: 150px; }
.matrix-actions { white-space: nowrap; text-align: right; }
.matrix-actions form { display: inline; }
.matrix tr.is-inactive td { opacity: .55; }
.matrix tr:hover td { background: var(--ink-50); }
/* --- Barre d'édition contextuelle ------------------------------------------- */

/* Discrète et collée sous l'en-tête : c'est un outil de travail posé sur la
   page, pas un élément du site. */
.edit-bar { background: var(--ink-50); border-bottom: 1px solid var(--ink-200); }
.edit-bar-inner {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 8px 16px; font-size: .8125rem;
}
.edit-bar-label {
  text-transform: uppercase; letter-spacing: .1em; font-weight: 500;
  color: var(--ink-500); font-size: .6875rem;
}
.edit-bar a { color: var(--brand-800); text-decoration: none; }
.edit-bar a:hover { text-decoration: underline; }