/* ═══════════════════════════════════════════════════════════════
   FS — feuille unique du thème (remplace theme.css + home.css + tailwind)
   Faculté des Sciences — Université de Ngaoundéré
   Système : brique #7B3210 · or #C09A5A · neutres chauds · Playfair Display + Source Sans 3
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Couleurs (design system FS conservé) */
  --brick:      #7B3210;
  --brick-700:  #5C2509;
  --brick-900:  #3E1906;
  --brick-50:   #FBF1EA;
  --brick-100:  #F4E1D3;
  --gold:       #C09A5A;   /* décor uniquement — jamais en texte sur clair */
  --gold-50:    #F8F1E4;
  --gold-700:   #7A5A22;   /* or lisible en texte (5.6:1 sur blanc) */
  --bg:         #FAF7F4;
  --surface:    #FFFFFF;
  --warm:       #F3EDE6;
  --line:       #E6DCD3;
  --line-strong:#D3C3B5;
  --ink:        #2B1F1B;
  --text:       #3D2E2A;
  --muted:      #6B554D;   /* 6.3:1 sur --bg */
  --ok:         #1A6B30;

  /* Typo */
  --font-title: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:  'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Rythme */
  --gutter: 20px;
  --container: 1200px;
  --section: clamp(48px, 7vw, 88px);
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(62, 25, 6, .06);
  --shadow:    0 10px 30px -12px rgba(62, 25, 6, .18);
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* Couches */
  --z-header: 40;
  --z-dropdown: 50;
  --z-overlay: 60;
  --z-drawer: 70;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Protection du contenu (choix FS) */
body:not(.wp-admin) { -webkit-user-select: none; user-select: none; }
body input, body textarea, body select { -webkit-user-select: text; user-select: text; }
@media print { body { display: none !important; } }

img, svg, video { max-width: 100%; height: auto; display: block; }
img { border-radius: inherit; }
a { color: var(--brick); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brick-700); }
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.screen-reader-text, .sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 100; width: auto; height: auto; clip: auto;
  background: var(--surface); padding: 10px 16px; border-radius: var(--r-sm); box-shadow: var(--shadow);
}
.fs-icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section--warm { background: var(--warm); }
.section--warm + .section, .section + .section--warm { padding-top: var(--section); }
.section--line { border-top: 1px solid var(--line); }
#page-content { overflow-x: clip; }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(24px, 3vw, 36px); }
.section-head > div { max-width: 62ch; }
.section-head h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); }
.section-head p { color: var(--muted); margin-top: 8px; font-size: 1.0625rem; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 280px)), 1fr)); }
.stack > * + * { margin-top: var(--stack, 16px); }

/* ── Boutons & liens ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px;
  border-radius: var(--r-sm); border: 1px solid var(--brick);
  background: var(--brick); color: #fff;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: var(--brick-700); border-color: var(--brick-700); color: #fff; }
.btn--ghost { background: transparent; color: var(--brick); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--brick-50); color: var(--brick-700); border-color: var(--brick); }
.btn--light { background: #fff; color: var(--brick); border-color: #fff; }
.btn--light:hover { background: var(--brick-50); color: var(--brick-700); border-color: var(--brick-50); }
.btn--sm { min-height: 38px; padding: 7px 16px; font-size: .9375rem; }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--brick); text-decoration: none;
}
.link .fs-icon { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.link:hover { color: var(--brick-700); }
.link:hover .fs-icon { transform: translateX(3px); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border-radius: 999px;
  background: var(--brick-50); color: var(--brick-700);
  font-size: .8125rem; font-weight: 600; line-height: 1.6; white-space: nowrap;
}
.tag--neutral { background: var(--warm); color: var(--text); }
.tag--gold { background: var(--gold-50); color: var(--gold-700); }
.meta { color: var(--muted); font-size: .9375rem; }

/* ═══════════════════════ HEADER ═══════════════════════ */
.topbar { background: var(--brick-900); color: rgba(255,255,255,.82); font-size: .8125rem; }
.topbar .container { display: flex; align-items: center; gap: 24px; min-height: 36px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .fs-icon { width: 14px; height: 14px; opacity: .8; }
.topbar__end { margin-left: auto; display: flex; gap: 20px; }
@media (max-width: 1023px) { .topbar { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 20px -14px rgba(62,25,6,.35); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; white-space: nowrap; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 46px; height: 46px; border-radius: 50%; }
.brand__name { display: block; font-family: var(--font-title); font-weight: 700; font-size: 1.125rem; line-height: 1.15; color: var(--brick); }
.brand__sub { display: block; font-size: .8125rem; color: var(--muted); line-height: 1.3; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--r-sm); border: 1px solid transparent; background: transparent;
  color: var(--text); cursor: pointer; transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--brick-50); color: var(--brick); }
.icon-btn .fs-icon { width: 22px; height: 22px; }

/* Navigation — desktop */
.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px; padding: 8px 10px; border: 0; background: none; border-radius: var(--r-sm);
  color: var(--text); font-weight: 600; font-size: .9688rem; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.nav__link:hover, .nav__item:focus-within > .nav__link { color: var(--brick); background: var(--brick-50); }
.nav__item.is-current > .nav__link { color: var(--brick); }
/* Soulignement : grandit au survol, plein sur la rubrique active */
.nav__list > .nav__item > .nav__link { position: relative; }
.nav__list > .nav__item > .nav__link::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brick), var(--gold));
  transform: scaleX(0); transform-origin: left; opacity: .45;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__list > .nav__item > .nav__link:hover::after, .nav__list > .nav__item:focus-within > .nav__link::after { transform: scaleX(1); }
.nav__list > .nav__item.is-current > .nav__link::after { transform: scaleX(1); opacity: 1; }
.nav__list > .nav__item.is-current > .nav__link { background: none; }
@media (prefers-reduced-motion: reduce) { .nav__list > .nav__item > .nav__link::after { transition: none; } }
.nav__link .fs-icon { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav__sub {
  list-style: none; position: absolute; top: 100%; left: 0; z-index: var(--z-dropdown);
  min-width: 240px; padding: 8px; margin-top: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s;
}
.nav__sub::before { content: ''; position: absolute; inset: -8px 0 auto; height: 8px; }
.nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub, .nav__item.is-open > .nav__sub {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.nav__item:hover > .nav__link .fs-icon, .nav__item.is-open > .nav__link .fs-icon { transform: rotate(180deg); }
.nav__sub a {
  display: block; padding: 9px 12px; border-radius: var(--r-sm);
  color: var(--text); text-decoration: none; font-size: .9688rem; line-height: 1.35;
}
.nav__sub a:hover, .nav__sub .is-current > a { background: var(--brick-50); color: var(--brick); }
.nav__drawer-head, .nav__extra, .nav-toggle { display: none; }
.header-cta { margin-left: 4px; }
.site-header__inner > .icon-btn, .header-cta { flex-shrink: 0; }
@media (min-width: 1100px) and (max-width: 1339px) { .header-cta { display: none; } }
@media (min-width: 1100px) and (max-width: 1279px) { .brand__sub { display: none; } .brand__name { font-size: 1rem; } }

/* Navigation — mobile (tiroir) */
@media (max-width: 1099px) {
  .nav-toggle { display: inline-grid; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; z-index: var(--z-drawer);
    width: min(360px, 88vw); height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
    background: var(--surface); box-shadow: -20px 0 40px -20px rgba(62,25,6,.35);
    transform: translateX(100%); visibility: hidden;
    transition: transform .3s var(--ease), visibility 0s .3s;
    display: flex; flex-direction: column;
  }
  .nav.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .nav__drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); font-weight: 600; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 12px; }
  .nav__link { width: 100%; justify-content: space-between; font-size: 1.0625rem; padding: 12px; }
  .nav__list > .nav__item > .nav__link::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, var(--brick), var(--gold)); }
  .nav__list > .nav__item > .nav__link:hover::after, .nav__list > .nav__item:focus-within > .nav__link::after { transform: scaleY(1); }
  .nav__list > .nav__item.is-current > .nav__link::after { transform: scaleY(1); }
  .nav__list > .nav__item.is-current > .nav__link { background: var(--brick-50); }
  .nav__sub {
    position: static; margin: 0 0 8px; padding: 0 0 0 12px; min-width: 0;
    border: 0; box-shadow: none; background: none;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub { display: none; }
  .nav__item.is-open > .nav__sub { display: block; }
  .nav__item:hover > .nav__link .fs-icon { transform: none; }
  .nav__item.is-open > .nav__link .fs-icon { transform: rotate(180deg); }
  .nav__sub a { padding: 10px 12px; }
  .nav__extra { display: grid; gap: 10px; margin-top: auto; padding: 20px; border-top: 1px solid var(--line); }
  .nav__extra .btn { width: 100%; }
}
.nav-overlay {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: rgba(43, 31, 27, .45); opacity: 0; visibility: hidden;
  transition: opacity .25s var(--ease), visibility 0s .25s;
}
.nav-overlay.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
body.nav-open { overflow: hidden; }

/* Recherche (dialog natif) */
.search-dialog {
  width: min(680px, calc(100vw - 32px)); margin: 12vh auto auto; padding: 0;
  border: 1px solid var(--line); border-radius: 28px; background: var(--surface); box-shadow: var(--shadow);
}
.search-dialog::backdrop { background: rgba(43, 31, 27, .45); }
.search-dialog form { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 18px; }
.search-dialog input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1.125rem; padding: 10px 0; background: none; color: var(--ink); }
.search-dialog .fs-icon { color: var(--muted); }
.search-dialog__hint { padding: 0 18px 14px; color: var(--muted); font-size: .875rem; }

/* ═══════════════════════ EN-TÊTE DE PAGE ═══════════════════════ */
.page-hero { background: var(--warm); border-bottom: 1px solid var(--line); padding-block: clamp(32px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(1.85rem, 1.3rem + 2vw, 2.75rem); max-width: 24ch; }
/* Entrée animée par motion-site.js ; s'affiche quand même après 1,2 s si le script ne charge pas */
.motion-ready .page-hero .container > * { opacity: 0; animation: fs-reveal-fallback 0s 1.2s forwards; }
@keyframes fs-reveal-fallback { to { opacity: 1; } }
.page-hero__lede { margin-top: 12px; color: var(--muted); font-size: 1.125rem; max-width: 62ch; }
.page-hero__meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: .9375rem; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 14px; font-size: .875rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brick); }
.breadcrumb [aria-current] { color: var(--text); }
.breadcrumb .fs-icon { width: 12px; height: 12px; opacity: .6; }

/* ═══════════════════════ CONTENU ÉDITORIAL (WP) ═══════════════════════ */
.layout { display: grid; gap: clamp(32px, 4vw, 56px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .layout--aside { grid-template-columns: minmax(0, 1fr) 300px; } }
.aside { display: grid; gap: 20px; align-content: start; }
@media (min-width: 1024px) { .aside { position: sticky; top: 96px; } }
.aside-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.aside-box h2, .aside-box h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.aside-links { list-style: none; display: grid; gap: 2px; margin: 0 -8px; }
.aside-links a { display: block; padding: 8px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; line-height: 1.35; }
.aside-links a:hover, .aside-links [aria-current] { background: var(--brick-50); color: var(--brick); }

.prose { max-width: 72ch; font-size: 1.0625rem; color: var(--text); }
.prose--wide { max-width: none; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.5em; }
.prose h4, .prose h5, .prose h6 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; margin-top: 1.4em; color: var(--ink); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--brick); }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.5em 0; padding: 20px 24px; background: var(--gold-50); border-radius: var(--r); font-family: var(--font-title); font-size: 1.2rem; color: var(--ink); }
.prose img, .prose figure img { border-radius: var(--r); height: auto; }
.prose figure { margin: 1.5em 0; }
.prose figcaption, .prose .wp-element-caption { margin-top: 8px; color: var(--muted); font-size: .875rem; text-align: center; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose iframe, .prose embed, .prose object { width: 100%; border: 0; border-radius: var(--r); }
.prose embed[type="application/pdf"], .prose iframe[src$=".pdf"] { min-height: 70vh; }
.prose .aligncenter { margin-inline: auto; }
.prose .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.prose::after { content: ''; display: table; clear: both; }
.prose .wp-block-button__link, .prose .wp-block-file__button {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border-radius: var(--r-sm);
  background: var(--brick); color: #fff; text-decoration: none; font-weight: 600;
}
.prose .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.prose .wp-block-file > a:first-child { font-weight: 600; }
.prose .wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px; }
.prose .wp-block-column { flex: 1 1 260px; }
.prose .wp-block-image img { margin-inline: auto; }
.prose .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }

/* Tableaux (contenu, TablePress) */
.prose table, table.tablepress, .table {
  width: 100%; border-collapse: collapse; font-size: .9375rem; background: var(--surface);
}
.prose th, .prose td, .tablepress th, .tablepress td, .table th, .table td {
  padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top;
}
.prose thead th, .tablepress thead th, .table thead th {
  background: var(--warm); color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--line-strong);
}
.prose tbody tr:hover, .tablepress tbody tr:hover, .table tbody tr:hover { background: #FDFBF9; }
.table-wrap, .prose .wp-block-table, .prose .tablepress-table-wrap, .dataTables_wrapper {
  display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); -webkit-overflow-scrolling: touch;
}
.table-wrap table, .prose .wp-block-table table { border: 0; }
.dataTables_wrapper table.tablepress, .table-wrap table { width: 100% !important; margin: 0; }
.dataTables_wrapper { padding: 0; }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper select {
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 6px 10px; font: inherit; background: #fff;
}
.dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_paginate { padding: 10px 12px; font-size: .875rem; color: var(--muted); }

/* ═══════════════════════ COMPOSANTS ═══════════════════════ */

/* Lignes cliquables (listes épurées) */
.rows { list-style: none; border-top: 1px solid var(--line); }
.row-link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none; transition: background .2s, padding .2s var(--ease);
}
.row-link:hover { background: var(--surface); padding-inline: 12px; color: var(--text); }
.row-link__title { font-weight: 600; color: var(--ink); line-height: 1.35; }
.row-link:hover .row-link__title { color: var(--brick); }
.row-link__meta { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .9063rem; }
.row-link > .fs-icon { grid-row: 1 / span 2; grid-column: 2; color: var(--muted); width: 18px; height: 18px; transition: transform .2s var(--ease), color .2s; }
.row-link:hover > .fs-icon { color: var(--brick); transform: translateX(3px); }

/* Panneau (surface sobre) */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 2.5vw, 28px); }
.panel h3 { font-size: 1.25rem; }
a.panel { display: block; color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s var(--ease), transform .2s var(--ease); }
a.panel:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
a.panel:hover h3 { color: var(--brick); }

/* Filtres */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.filters__group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  color: var(--text); font-size: .9375rem; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--brick); color: var(--brick); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--brick); border-color: var(--brick); color: #fff; }
.chip__count { font-weight: 400; opacity: .75; font-size: .8125rem; }
.field {
  min-height: 46px; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field:hover { border-color: var(--muted); }
.field:focus { outline: none; border-color: var(--brick); box-shadow: 0 0 0 4px rgba(123, 50, 16, .14); }
select.field { padding-right: 42px; appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B554D' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 16px center / 18px no-repeat; }
.search-field { position: relative; flex: 1 1 260px; max-width: 420px; }
.search-field .fs-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.search-field .field { width: 100%; padding-left: 46px; }
.result-count { color: var(--muted); font-size: .9375rem; }

/* État vide */
.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line-strong); border-radius: var(--r); color: var(--muted); }
.empty h2, .empty h3 { font-size: 1.25rem; margin-bottom: 8px; }
.empty p { max-width: 52ch; margin-inline: auto; }
.empty .btn { margin-top: 20px; }

/* Avatars (initiales) */
.avatar {
  display: grid; place-items: center; flex-shrink: 0; width: var(--size, 48px); height: var(--size, 48px);
  border-radius: 50%; background: var(--brick-50); color: var(--brick);
  font-family: var(--font-title); font-weight: 700; font-size: calc(var(--size, 48px) * .36); overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Personne (annuaire / responsables) */
.person { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.person__name { font-weight: 700; color: var(--ink); line-height: 1.3; }
.person__role { color: var(--muted); font-size: .9063rem; line-height: 1.4; }
.person__extra { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; }
a.person { text-decoration: none; transition: border-color .2s, box-shadow .2s; }
a.person:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination .page-numbers {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  color: var(--text); text-decoration: none; font-weight: 600;
}
.pagination .page-numbers:hover { border-color: var(--brick); color: var(--brick); }
.pagination .current { background: var(--brick); border-color: var(--brick); color: #fff; }
.pagination .dots { border: 0; background: none; }

/* Onglets */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 24px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0; min-height: 44px; padding: 10px 16px; border: 0; background: none; cursor: pointer;
  color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--brick); }
.tab[aria-selected="true"] { color: var(--brick); border-bottom-color: var(--brick); }
[role="tabpanel"][hidden] { display: none; }

/* Accordéon natif */
.disclosure { border-bottom: 1px solid var(--line); }
.disclosure summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 4px; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink);
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary .fs-icon { transition: transform .2s var(--ease); color: var(--muted); width: 18px; height: 18px; }
.disclosure[open] summary .fs-icon { transform: rotate(180deg); }
.disclosure__body { padding: 0 4px 20px; }

/* Fiche clé/valeur */
.facts { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.fact { padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.fact dt { font-size: .8125rem; color: var(--muted); }
.fact dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); line-height: 1.35; }

/* Liste à puces sobre */
.ticks { list-style: none; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.ticks--cols { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); column-gap: 24px; }

/* ═══════════════════════ ACCUEIL ═══════════════════════ */

/* Slider « à la une » — pleine largeur, photo en fond, slide entière cliquable */
.slider { position: relative; color: #fff; background: var(--brick-900); overflow: hidden; isolation: isolate; }
.slider__track { position: relative; display: grid; }
.slide { grid-area: 1 / 1; position: relative; display: flex; align-items: flex-end; min-height: clamp(460px, 76vh, 680px); padding-block: 72px 120px; visibility: hidden; opacity: 0; }
.slide.is-active { visibility: visible; opacity: 1; z-index: 1; }
.slide__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.slide__img { width: 100%; height: 100%; object-fit: cover; }
.slide__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30, 12, 4, .15) 0%, rgba(30, 12, 4, .35) 40%, rgba(30, 12, 4, .85) 100%),
              linear-gradient(90deg, rgba(30, 12, 4, .55) 0%, rgba(30, 12, 4, 0) 70%);
}
.slide__content { position: relative; }
.slide__content > * { max-width: 760px; }
.slide__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .9375rem; color: rgba(255,255,255,.88); }
.slide__tag { padding: 3px 12px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); font-weight: 600; }
.slide__title { margin-top: 0; font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3.25rem); line-height: 1.12; color: #fff; }
.slide__link, .slide__link:hover, .slide__link:focus { color: #fff; text-decoration: none; }
.slide__link::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.slide__link:focus-visible { outline: none; }
.slide__link:focus-visible::after { outline: 3px solid #fff; outline-offset: -6px; border-radius: var(--r-lg); }
.slide__excerpt { margin-top: 14px; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: rgba(255,255,255,.88); }
.slide__cta { margin-top: 24px; pointer-events: none; }
.slide:hover .slide__cta { background: var(--brick-50); }
.slider__controls { position: absolute; left: 0; right: 0; bottom: 64px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; pointer-events: none; }
.slider__controls > * { pointer-events: auto; }
.slider__dots { display: flex; gap: 8px; }
.slider__dot { width: 44px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.slider__dot span { display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; position: relative; }
.slider__dot i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.slider__dot[aria-selected="true"] i { transform: scaleX(1); }
.slider.is-playing .slider__dot[aria-selected="true"] i { transform: scaleX(0); }
.slider__arrows { display: flex; gap: 8px; }
.slider__arrow { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(30,12,4,.25); color: #fff; cursor: pointer; transition: background .2s, border-color .2s; }
.slider__arrow:hover { background: rgba(255,255,255,.18); border-color: #fff; }
.slider__arrow .fs-icon { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .slide { min-height: 520px; padding-block: 48px 110px; }
  .slider__arrows { display: none; }
  .slide__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* Recherche de formation — barre posée sur le bas du slider */
.finder-wrap { position: relative; z-index: 4; margin-top: -40px; }
.finder {
  display: grid; gap: 12px; align-items: end; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 18px 40px -20px rgba(62, 25, 6, .35);
}
.finder__title { font-family: var(--font-title); font-weight: 700; font-size: 1.15rem; color: var(--ink); align-self: center; }
.finder__field label { display: block; font-size: .8125rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.finder .field { width: 100%; }
.finder__submit { min-height: 44px; }
.finder__submit .fs-icon { width: 18px; height: 18px; }
@media (min-width: 720px) { .finder { grid-template-columns: 1fr 1fr; } .finder__title, .finder__submit { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .finder { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 16px 20px; } .finder__title, .finder__submit { grid-column: auto; } }

/* Cycles */
.cycles { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cycle { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.cycle__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.cycle__head h3 { font-size: 1.5rem; color: var(--brick); }
.cycle__count { color: var(--muted); font-size: .9375rem; white-space: nowrap; }
.cycle__desc { color: var(--muted); font-size: .9688rem; margin: 6px 0 20px; }
.cycle .link { margin-top: auto; }

/* Doyen */
.dean { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 860px) { .dean { grid-template-columns: 300px 1fr; } }
.dean__photo { width: 100%; max-width: 300px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-lg); background: var(--warm); }
.dean__quote { font-family: var(--font-title); font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); line-height: 1.5; color: var(--ink); font-weight: 600; max-width: 52ch; }
.dean__sign { margin-top: 20px; }
.dean__sign strong { display: block; color: var(--brick); }
.dean__sign span { color: var(--muted); font-size: .9375rem; }
.dean .btn { margin-top: 24px; }

/* Départements */
.depts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.dept { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--surface); color: inherit; text-decoration: none; transition: background .2s; }
.dept:hover { background: var(--brick-50); }
.dept__sigle { font-family: var(--font-title); font-weight: 700; font-size: 1.1rem; color: var(--gold-700); letter-spacing: .02em; }
.dept__name { font-weight: 700; color: var(--ink); line-height: 1.3; font-size: 1.0625rem; }
.dept:hover .dept__name { color: var(--brick); }
.dept__meta { color: var(--muted); font-size: .9063rem; margin-top: auto; padding-top: 8px; }

/* Actualités */
.news { display: grid; gap: clamp(24px, 3vw, 40px); }
@media (min-width: 960px) { .news { grid-template-columns: 1.2fr 1fr; } }
.news-feature { display: block; color: inherit; text-decoration: none; }
.news-feature__img { aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--warm); margin-bottom: 18px; }
.news-feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-feature:hover img { transform: scale(1.03); }
.news-feature h3 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); }
.news-feature:hover h3 { color: var(--brick); }
.news-feature p { color: var(--muted); margin-top: 10px; }
.news-list { list-style: none; border-top: 1px solid var(--line); }
.news-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.news-item__date { text-align: center; padding: 8px 4px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); line-height: 1.1; align-self: start; }
.news-item__date strong { display: block; font-family: var(--font-title); font-size: 1.5rem; color: var(--brick); }
.news-item__date span { font-size: .75rem; color: var(--muted); text-transform: lowercase; }
.news-item h3 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; line-height: 1.4; color: var(--ink); }
.news-item:hover h3 { color: var(--brick); }
.news-item p { margin-top: 4px; color: var(--muted); font-size: .9375rem; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Bandeau admission */
.cta-band { background: var(--brick); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); display: grid; gap: 20px; align-items: center; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 8px; max-width: 56ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }

/* ═══════════════════════ ARTICLES ═══════════════════════ */
.post-cards { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .2s var(--ease), border-color .2s; }
.post-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.post-card__img { aspect-ratio: 16 / 9; background: var(--warm); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.post-card h3 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; line-height: 1.4; color: var(--ink); }
.post-card:hover h3 { color: var(--brick); }
.post-card__excerpt { color: var(--muted); font-size: .9375rem; }
.post-card__foot { margin-top: auto; padding-top: 4px; color: var(--muted); font-size: .875rem; display: flex; gap: 8px; align-items: center; }

.article-cover { aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--warm); margin-bottom: 32px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.share { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: .9375rem; }
.share a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--text); }
.share a:hover { border-color: var(--brick); color: var(--brick); }
.share .fs-icon { width: 18px; height: 18px; }
.post-nav { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 32px; }
.post-nav a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: inherit; text-decoration: none; }
.post-nav a:hover { border-color: var(--brick); }
.post-nav small { display: block; color: var(--muted); }
.post-nav span { font-weight: 600; color: var(--ink); }
.post-nav a:last-child:not(:first-child) { text-align: right; }

/* Galerie d'article (article-gallery.js) */
.fs-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 24px; }
.fs-gallery__item { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: var(--warm); border: 0; padding: 0; }
.fs-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.fs-gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(43,31,27,.55); color: #fff; font-size: 1.5rem; font-weight: 700; }
.fs-lightbox { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; background: rgba(20,12,9,.92); }
.fs-lightbox.is-open { display: grid; }
.fs-lightbox img { max-width: 92vw; max-height: 84vh; border-radius: var(--r); }
.fs-lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.5rem; cursor: pointer; }
.fs-lightbox button:hover { background: rgba(255,255,255,.22); }
.fs-lightbox__close { top: 16px; right: 16px; }
.fs-lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.fs-lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.fs-lightbox__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: .875rem; }

/* ═══════════════════════ ORGANISATION ═══════════════════════ */
.org-group + .org-group { margin-top: 40px; }
.org-group > h2 { font-size: 1.35rem; margin-bottom: 16px; }
.people { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.lead-card { display: grid; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
@media (min-width: 720px) { .lead-card { grid-template-columns: 180px 1fr; } }
.lead-card img { width: 180px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r); background: var(--warm); }
.lead-card h3 { font-size: 1.5rem; }
.vacant { color: var(--muted); font-style: italic; }

/* ═══════════════════════ FORMATION (fiche) ═══════════════════════ */
.formation-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .formation-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.block + .block { margin-top: 36px; }
.block > h2 { font-size: 1.35rem; margin-bottom: 14px; }
.contact-box dl { display: grid; gap: 10px; margin: 0; }
.contact-box dt { font-size: .8125rem; color: var(--muted); }
.contact-box dd { margin: 0; font-weight: 600; word-break: break-word; }
.formation-list { display: grid; gap: 28px; }
.formation-list > section > h2 { font-size: 1.3rem; display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.formation-list > section > h2 small { font-family: var(--font-body); font-size: .9375rem; font-weight: 400; color: var(--muted); }

/* Maquettes (UE par semestre) */
.ue-table td:nth-child(n+3), .ue-table th:nth-child(n+3) { text-align: center; white-space: nowrap; }
.ue-table td:first-child { white-space: nowrap; color: var(--muted); font-size: .875rem; }
.ue-table tfoot td { font-weight: 700; background: var(--warm); }
.semester + .semester { margin-top: 28px; }
.semester h3 { font-family: var(--font-body); font-size: 1.0625rem; margin-bottom: 10px; display: flex; gap: 10px; align-items: baseline; }
.semester h3 small { color: var(--muted); font-weight: 400; }

/* Timeline LMD */
.steps { list-style: none; counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps li { counter-increment: step; position: relative; padding: 24px 22px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brick-50); color: var(--brick); font-weight: 700; margin-bottom: 12px; }
.steps h3 { font-size: 1.2rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .9688rem; }

/* ═══════════════════════ FOOTER ═══════════════════════ */
.site-footer { background: var(--brick-900); color: rgba(255,255,255,.78); font-size: .9688rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 36px; padding-block: 56px 40px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.25fr; gap: 32px; } }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer__brand img { width: 52px; height: 52px; border-radius: 50%; background: #fff; }
.footer__brand strong { display: block; font-family: var(--font-title); color: #fff; font-size: 1.125rem; line-height: 1.2; }
.footer__brand span { font-size: .875rem; }
.footer__about { max-width: 38ch; }
.site-footer h2 { font-family: var(--font-body); font-size: .9375rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer__links { list-style: none; display: grid; gap: 8px; }
.footer__contact { list-style: none; display: grid; gap: 12px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .fs-icon { width: 18px; height: 18px; margin-top: 3px; color: var(--gold); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-right: 64px; } /* place pour le bouton « Retour en haut » */
.footer__bottom .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 18px; font-size: .875rem; color: rgba(255,255,255,.65); }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; }
.footer__legal a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer__legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__credit { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.18); }
.footer__credit a { color: var(--gold); font-weight: 600; }
@media (max-width: 640px) { .footer__credit { flex-basis: 100%; padding-left: 0; border-left: 0; } }

/* ═══════════════════════ 404 / RECHERCHE ═══════════════════════ */
.notfound { text-align: center; padding-block: clamp(56px, 10vw, 120px); }
.notfound__code { font-family: var(--font-title); font-size: clamp(4rem, 3rem + 5vw, 6rem); color: var(--brick-100); line-height: 1; }
.notfound h1 { font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.25rem); margin-top: 8px; }
.notfound p { color: var(--muted); margin: 12px auto 0; max-width: 48ch; }
.notfound form { display: flex; gap: 8px; max-width: 480px; margin: 28px auto 0; }
.notfound form .field { flex: 1; min-width: 0; }
.notfound__links { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }

/* ═══════════════════════ PLUGINS (rendu sobre) ═══════════════════════ */
.wpcf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]), .wpcf7 textarea, .wpcf7 select {
  width: 100%; min-height: 44px; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 999px; font: inherit; background: #fff;
}
.wpcf7 input[type="submit"] { min-height: 44px; padding: 10px 22px; border: 0; border-radius: var(--r-sm); background: var(--brick); color: #fff; font-weight: 600; cursor: pointer; }
.envira-gallery-wrap img { border-radius: var(--r-sm); }

/* ═══════════════════════ MOUVEMENT ═══════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
.fs-lightbox__stage { margin: 0; text-align: center; }
.fs-lightbox__cap { margin-top: 10px; color: rgba(255,255,255,.8); font-size: .875rem; }
.quote-card { margin: 0; display: flex; flex-direction: column; }
.quote-card blockquote { margin: 0; font-size: 1.125rem; }
.quote-card figcaption { display: flex; gap: 12px; align-items: center; margin-top: auto; padding-top: 18px; }
.filters .result-count { margin-left: auto; }
.article-tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.aside-links small { display: block; margin-top: 2px; }
.search-field--full { max-width: none; }
.related { margin-top: clamp(40px, 5vw, 64px); }
.panel h3 + p, .panel h3 + .meta { margin-top: 6px; }
.block > .prose, .block > p + .prose { margin-top: 12px; }
.block > .btn { margin-top: 14px; }
.aside-box .btn { width: 100%; margin-top: 14px; }
.aside-box > .link { margin-top: 12px; }
.aside-box > .meta { line-height: 1.5; }
.facts + .block { margin-top: 36px; }
.lead-in { margin-bottom: 32px; }
.panel > .tag { margin-top: 14px; }
.table tbody th { font-weight: 600; color: var(--ink); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table tbody th a { color: inherit; }
.table tbody th a:hover { color: var(--brick); }
ul.people { list-style: none; }
.org-group__title { font-size: 1.2rem; margin-bottom: 12px; }
.person__spec { color: var(--text); }
.person > span:last-child { min-width: 0; }
.dept-card { display: flex; flex-direction: column; gap: 8px; }
.dept-card__title { font-size: 1.25rem; }
.dept-card__foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .9063rem; }
.org-group__title small { font-family: var(--font-body); font-weight: 400; font-size: .9375rem; }
.matrix td { text-align: center; white-space: nowrap; } .matrix tfoot td { font-weight: 700; background: var(--warm); } .matrix tfoot td:first-child { text-align: left; }
.lead-card__name { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); margin: 4px 0 14px; }
.timeline { margin: 0; display: grid; gap: 14px; }
.timeline > div { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: baseline; }
.timeline dt { font-family: var(--font-title); font-weight: 700; color: var(--brick); font-size: 1.15rem; }
.timeline dd { margin: 0; color: var(--text); line-height: 1.45; }
.missions { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.missions > div { padding-top: 18px; border-top: 2px solid var(--brick); }
.missions h3 { font-size: 1.3rem; margin-bottom: 8px; }
.missions p { color: var(--muted); }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list .tag { font-size: .9375rem; padding: 6px 14px; }
.timeline--wide { max-width: 72ch; gap: 18px; }
.timeline--wide > div { grid-template-columns: 72px 1fr; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
a.cycle { color: inherit; }
a.cycle .link { margin-top: auto; }
.facts--big dd { font-family: var(--font-title); font-size: 2rem; color: var(--brick); }
.panel__title { font-size: 1.2rem; margin-bottom: 16px; }
.bars { list-style: none; display: grid; gap: 14px; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.bars strong { color: var(--ink); }
.bars__bar { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--warm); position: relative; overflow: hidden; }
.bars__bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--brick); border-radius: inherit; }
.dean--page { align-items: start; }
.dean__figure { margin: 0; }
.dean__figure .dean__sign { margin-top: 14px; }
@media (min-width: 860px) { .dean--page .dean__figure { position: sticky; top: 100px; } }
.form { display: grid; gap: 16px; max-width: 640px; }
.form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .9375rem; }
.form .field { width: 100%; }
.form textarea.field { resize: vertical; min-height: 140px; border-radius: 20px; }
.form__row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form .btn { justify-self: start; }
.notice { padding: 12px 16px; border-radius: var(--r); margin-bottom: 16px; font-weight: 600; }
.notice--ok { background: #E8F5EC; color: var(--ok); }
.notice--err { background: #FAEAEA; color: #8A1C1C; }
.prose:has(table, .dataTables_wrapper) { max-width: none; }
.prose .disclosure { margin-top: 0; }
.prose .disclosure + .disclosure { margin-top: 0; }
.prose details.disclosure:first-of-type { border-top: 1px solid var(--line); }
.filters .field { max-width: 100%; }
@media (max-width: 640px) {
  .filters > select.field, .filters .search-field { flex: 1 1 100%; max-width: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts--big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.post-card__body .tag { align-self: flex-start; }

/* Départements — vraies cartes */
.dept-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.dept-tile {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 196px; padding: 22px 22px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.dept-tile:hover { border-color: var(--brick-100); box-shadow: var(--shadow); color: var(--text); }
.dept-tile__sigle {
  display: inline-grid; place-items: center; align-self: flex-start; min-width: 52px; height: 52px; padding: 0 10px;
  border-radius: 14px; background: var(--brick-50); color: var(--brick);
  font-family: var(--font-title); font-weight: 700; font-size: 1.05rem; transition: background .25s var(--ease), color .25s var(--ease);
}
.dept-tile:hover .dept-tile__sigle { background: var(--brick); color: #fff; }
.dept-tile__name { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; color: var(--ink); }
.dept-tile__stats { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .875rem; color: var(--muted); }
.dept-tile__stats strong { color: var(--ink); }
.dept-tile__go { position: absolute; top: 22px; right: 20px; color: var(--muted); transition: color .25s, transform .25s var(--ease); }
.dept-tile__go .fs-icon { width: 18px; height: 18px; }
.dept-tile:hover .dept-tile__go { color: var(--brick); transform: translateX(3px); }

/* Liens : aucun soulignement au survol */
a:hover, a:focus { text-decoration: none; }
.nav__list > .nav__item > .nav__link { text-transform: uppercase; letter-spacing: .03em; font-size: .8125rem; padding-inline: 7px; }
.site-header .container, .topbar .container { max-width: 1320px; }
@media (max-width: 1099px) { .nav__list > .nav__item > .nav__link { font-size: .9375rem; padding-inline: 12px; } }

/* Chiffres clés (CPT fs_chiffre) */
.kpis { padding-block: clamp(40px, 5vw, 56px) 0; }
.kpis + .section { padding-top: var(--section); }
.kpis__list { list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.kpi { display: flex; align-items: center; gap: 16px; height: 100%; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--text); text-decoration: none; transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
a.kpi:hover { border-color: var(--brick-100); box-shadow: var(--shadow); color: var(--text); }
.kpi__icon { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; background: var(--brick-50); color: var(--brick); transition: background .25s, color .25s; }
.kpi__icon .fs-icon { width: 26px; height: 26px; }
a.kpi:hover .kpi__icon { background: var(--brick); color: #fff; }
.kpi__text { display: flex; flex-direction: column; line-height: 1.2; }
.kpi__value { font-family: var(--font-title); font-size: 1.9rem; color: var(--brick); }
.kpi__label { margin-top: 4px; color: var(--muted); font-size: .9375rem; }

/* Tiroir mobile : le header (sticky = contexte d'empilement) doit passer au-dessus du voile */
body.nav-open .site-header { z-index: calc(var(--z-overlay) + 1); }

/* Retour en haut */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: var(--z-header);
  display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--brick); color: #fff; box-shadow: 0 10px 24px -10px rgba(62,25,6,.6);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .2s, visibility 0s .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--brick-700); transform: translateY(-3px); }
.to-top:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.to-top .fs-icon { width: 20px; height: 20px; stroke-width: 2; }
@media (max-width: 640px) { .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .2s, visibility 0s .2s; transform: none; } }

/* Footer mobile compact */
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-block: 40px 28px; font-size: .9063rem; }
  .footer__grid > :first-child, .footer__grid > :last-child { grid-column: 1 / -1; }
  .footer__brand { margin-bottom: 10px; }
  .footer__brand img { width: 44px; height: 44px; }
  .footer__about { max-width: none; color: rgba(255,255,255,.7); }
  .site-footer h2 { margin-bottom: 10px; }
  .footer__links { gap: 2px; }
  .footer__links a { display: block; padding-block: 5px; }
  .footer__contact { gap: 8px; }
  .footer__bottom .container { flex-direction: column; gap: 6px; padding-block: 16px; }
}

/* Page Départements : cartes plus riches */
.dept-cards--large { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.dept-cards--large .dept-tile { min-height: 260px; padding: 26px; }
h2.dept-tile__name { font-family: var(--font-body); font-size: 1.15rem; }
.dept-tile__intro { color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.dept-tile__chef { display: flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--text); }
.dept-tile__chef .fs-icon { width: 16px; height: 16px; color: var(--brick); }
.dept-cards--large .dept-tile__stats { padding-top: 12px; border-top: 1px solid var(--line); }

/* Onglets : compteur */
.tab__count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--warm); color: var(--muted); font-size: .75rem; }
.tab[aria-selected="true"] .tab__count { background: var(--brick-50); color: var(--brick); }

/* Cartes formation */
.formation-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.formation-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--text); text-decoration: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.formation-card:hover { border-color: var(--brick-100); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.formation-card__top { display: flex; justify-content: space-between; align-items: center; }
.formation-card__top .fs-icon { width: 18px; height: 18px; color: var(--muted); transition: color .2s, transform .2s var(--ease); }
.formation-card:hover .formation-card__top .fs-icon { color: var(--brick); transform: translateX(3px); }
.formation-card__title { font-weight: 700; color: var(--ink); line-height: 1.35; }
.formation-card__meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .875rem; color: var(--muted); }
.formation-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.formation-card__meta .fs-icon { width: 15px; height: 15px; }
@media (max-width: 480px) { .tab { padding: 10px 8px; font-size: .9375rem; } .tab__count { margin-left: 4px; } }

/* Maquettes : niveau, semestres, résumé */
.level-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.level-head h2 { font-size: 1.4rem; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.level-head .tag { font-family: var(--font-body); font-size: .8125rem; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 18px; background: var(--warm); border-radius: 999px; }
.segmented__btn { min-height: 40px; padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font-weight: 600; font-size: .9375rem; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.segmented__btn small { font-weight: 400; color: var(--muted); }
.segmented__btn:hover { color: var(--brick); }
.segmented__btn[aria-selected="true"] { background: var(--surface); color: var(--brick); box-shadow: var(--shadow-sm); }
.facts--sm { margin-bottom: 14px; }
.facts--sm .fact { padding: 12px 16px; }
.facts--sm dd { font-family: var(--font-title); font-size: 1.25rem; color: var(--brick); }
.summary { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.summary dt { font-size: .8125rem; color: var(--muted); }
.summary dd { margin: 2px 0 0; font-family: var(--font-title); font-size: 1.5rem; color: var(--brick); line-height: 1.1; }
.summary > div:nth-child(4) { grid-column: 1 / -1; }
.summary > div:nth-child(4) dd { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--ink); }
.ue-table td:nth-child(2) { min-width: 220px; }

/* Maquettes : choix du parcours */
.picker-label { font-size: .8125rem; font-weight: 600; color: var(--muted); margin: 4px 0 8px; }
.parcours { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: 24px; }
.parcours__btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 16px; text-align: left; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease); }
.parcours__btn strong { font-family: var(--font-title); font-size: 1.1rem; color: var(--brick); }
.parcours__btn span { font-size: .875rem; color: var(--muted); line-height: 1.35; }
.parcours__btn:hover { border-color: var(--brick); }
.parcours__btn[aria-selected="true"] { border-color: var(--brick); background: var(--brick-50); box-shadow: inset 0 0 0 1px var(--brick); }
.semester + .semester { margin-top: 28px; }
.semester h3 small { display: block; margin-top: 2px; font-size: .875rem; }
.semester h3 { display: block; }

/* Offre de formation : cartes */
ul.formation-cards { list-style: none; }
.formation-cards > li { display: flex; }
.formation-cards > li > .formation-card { flex: 1; }
.formation-card__dept { font-size: .875rem; color: var(--muted); line-height: 1.35; }
.formation-list > section > h2 { margin-bottom: 14px; }

/* Barre de filtres (annuaires) */
.filterbar { display: grid; gap: 14px; padding: 16px; margin-bottom: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm); }
.filterbar__row { display: flex; flex-wrap: wrap; gap: 10px; }
.filterbar__row > .search-field { flex: 1 1 320px; max-width: none; }
.filterbar__row > select.field { flex: 0 1 280px; min-width: 0; }
.filterbar__row--split { align-items: center; justify-content: space-between; }
.filterbar .segmented { margin: 0; }
.segmented__btn[aria-pressed="true"] { background: var(--surface); color: var(--brick); box-shadow: var(--shadow-sm); }
.segmented--scroll { max-width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.segmented--scroll::-webkit-scrollbar { display: none; }
.segmented--scroll .segmented__btn { flex-shrink: 0; white-space: nowrap; }
.filterbar .result-count { margin-left: auto; padding-inline: 6px; }
h2.org-group__title { font-size: 1.25rem; }
@media (max-width: 640px) {
  .filterbar { padding: 12px; border-radius: 20px; }
  .filterbar__row > select.field { flex: 1 1 100%; }
  .filterbar__row--split { gap: 8px; }
  .filterbar .result-count { margin-left: 0; }
}
.filterbar__row > * { min-width: 0; }
@media (max-width: 640px) { .filterbar__row > .search-field, .filterbar__row > select.field { flex: 1 1 100%; width: 100%; } }
.filterbar { grid-template-columns: minmax(0, 1fr); }

/* Organisation : cartes identiques et centrées */
.org-section { margin-top: clamp(40px, 5vw, 56px); }
.org-section__title { text-align: center; font-size: 1.4rem; margin-bottom: 20px; }
.org-cards { list-style: none; display: grid; gap: 18px; justify-content: center; grid-template-columns: repeat(auto-fit, minmax(240px, 260px)); grid-auto-rows: 1fr; }
.org-cards > li { display: flex; }
.org-card {
  flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  min-height: 244px; padding: 26px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  color: var(--text); text-decoration: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
a.org-card:hover { border-color: var(--brick-100); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.org-card__avatar { --size: 72px; margin-bottom: 10px; }
.org-card__avatar img { object-position: top; }
.org-card__name { font-weight: 700; color: var(--ink); line-height: 1.3; }
.org-card__role { color: var(--muted); font-size: .9063rem; line-height: 1.4; }
.org-card--vacant { background: transparent; border-style: dashed; }
.org-card--vacant .avatar { background: var(--warm); color: var(--muted); }
@media (max-width: 560px) { .org-cards { grid-template-columns: minmax(0, 1fr); } .org-card { min-height: 0; } }
.org-section:first-child { margin-top: 0; }

/* Cartes d'information (coopération, école doctorale, laboratoires, réalisations, diplômés) */
.info-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.info-cards--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.info-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.info-card__head { display: flex; align-items: center; gap: 12px; }
.info-card__head h2, .info-card__head h3 { flex: 1; font-size: 1.2rem; line-height: 1.3; }
.info-card__icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--brick-50); color: var(--brick); }
.info-card__icon .fs-icon { width: 22px; height: 22px; }
.info-card__badge { display: inline-grid; place-items: center; flex-shrink: 0; min-width: 52px; height: 44px; padding: 0 10px; border-radius: 12px; background: var(--brick); color: #fff; font-family: var(--font-title); font-weight: 700; font-size: .95rem; }
.info-card__count { flex-shrink: 0; min-width: 30px; height: 26px; display: inline-grid; place-items: center; padding: 0 8px; border-radius: 999px; background: var(--warm); color: var(--muted); font-size: .8125rem; font-weight: 700; }
.info-card__sub { margin-top: 4px; font-size: .8125rem; font-weight: 700; color: var(--muted); }
.info-card__body { color: var(--muted); font-size: .9375rem; }
.info-card__list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.info-card__list li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .9688rem; line-height: 1.4; }
.info-card__list li:last-child { border-bottom: 0; }
.info-card__list a { color: var(--text); text-decoration: none; }
.info-card__list a:hover { color: var(--brick); }
.code-list { list-style: none; display: grid; gap: 8px; }
.code-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); background: var(--bg); line-height: 1.35; font-size: .9688rem; }
.code-list__code { flex-shrink: 0; min-width: 64px; padding: 3px 8px; border-radius: 999px; background: var(--brick-50); color: var(--brick); font-weight: 700; font-size: .8125rem; text-align: center; }

/* Réalisations */
.project__credit { font-size: .9375rem; color: var(--brick-700); font-weight: 600; line-height: 1.45; }
.project__text p { color: var(--text); font-size: .9688rem; line-height: 1.6; }
.project__text p + p { margin-top: 10px; }
.project__more summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; font-weight: 600; color: var(--brick); }
.project__more summary::-webkit-details-marker { display: none; }
.project__more summary .fs-icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.project__more[open] summary .fs-icon { transform: rotate(180deg); }
.project__more .project__text { margin-top: 12px; }

/* Cartes-liens (démarches, documents) */
.link-cards { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.link-cards > li { display: flex; }
.link-card { flex: 1; display: flex; align-items: flex-start; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--text); text-decoration: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.link-card:hover { border-color: var(--brick-100); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.link-card strong { display: block; color: var(--ink); line-height: 1.3; }
.link-card .meta { display: block; margin-top: 4px; font-size: .875rem; line-height: 1.4; }
.link-card:hover strong { color: var(--brick); }
.link-cards--docs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }

/* Services (scolarité) */
.service-grid { list-style: none; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.service-grid li { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); line-height: 1.4; }
.service-grid .fs-icon { width: 20px; height: 20px; color: var(--ok); margin-top: 1px; }

/* Panneau-lien (ex. vers Laboratoires) */
.link-panel { display: flex !important; align-items: center; gap: 16px; }
.link-panel > span:nth-child(2) { flex: 1; }
.link-panel h3 { margin-bottom: 2px; }
.link-panel > .fs-icon { color: var(--muted); }

/* Pages d'admission */
.adm-steps { list-style: none; display: grid; gap: 18px; }
.adm-step__num { display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--brick); color: #fff; font-weight: 700; }
.checklist { list-style: none; display: grid; gap: 8px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--bg); line-height: 1.5; font-size: .9688rem; }
.checklist .fs-icon { width: 18px; height: 18px; margin-top: 3px; color: var(--brick); }
.doc-links { list-style: none; display: grid; gap: 8px; }
.doc-links a { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); color: var(--text); text-decoration: none; line-height: 1.35; transition: border-color .2s, background .2s; }
.doc-links a:hover { border-color: var(--brick); background: var(--brick-50); color: var(--brick); }
.doc-links .fs-icon { width: 22px; height: 22px; color: var(--brick); }
.doc-links small { display: block; color: var(--muted); font-size: .75rem; }
.aside-note { margin-top: 10px; }

/* Emplois du temps */
.archive-title { font-size: 1.5rem; margin: clamp(36px, 5vw, 56px) 0 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.planning-year + .planning-year { margin-top: 32px; }
.planning-cards { list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.planning-cards > li { display: flex; }
.planning-card { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.planning-card__head { display: flex; align-items: center; justify-content: space-between; }
.planning-card__title { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 700; color: var(--ink); line-height: 1.35; }
.planning-card__meta { list-style: none; display: grid; gap: 6px; color: var(--muted); font-size: .9063rem; }
.planning-card__meta li { display: flex; align-items: center; gap: 8px; }
.planning-card__meta .fs-icon { width: 16px; height: 16px; color: var(--brick); }
.planning-card__btn { margin-top: auto; align-self: flex-start; }
.planning-card__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.planning-card__actions .planning-card__btn { margin-top: 0; }
.planning-card__btn .fs-icon { width: 16px; height: 16px; }
.planning-card__soon { margin-top: auto; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--warm); color: var(--muted); font-size: .875rem; font-weight: 600; }
.planning-card--soon { background: var(--bg); box-shadow: none; border-style: dashed; }
.notice--info { background: var(--gold-50); color: var(--gold-700); font-weight: 600; }

/* Opportunités */
.opp-section + .opp-section { margin-top: clamp(36px, 5vw, 52px); }
.opp-cards { list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.opp-card h3 { font-size: 1.15rem; }
.opp-card p { color: var(--muted); font-size: .9688rem; line-height: 1.55; }
