/* =====================================================================
   MENA-DCSPA — style.css
   Direction de la Coordination et du Suivi des Programmes
   d'Alphabétisation — Côte d'Ivoire

   Palette : orange/vert institutionnels (drapeau ivoirien) + un or
   "lumière du savoir" comme signature propre à la DCSPA (alphabétisation).
   Typo : Fraunces (display, caractère "lettres/livres") + Public Sans
   (texte, lisibilité/accessibilité) + IBM Plex Mono (données chiffrées).
   ===================================================================== */

:root {
  --ci-orange: #FF8200;
  --ci-orange-dark: #D96E00;
  --ci-green: #00853F;
  --ci-green-dark: #046532;
  --ink: #122017;
  --ink-soft: #1c3024;
  --gold: #C7960C;
  --gold-soft: #E8B93A;
  --paper: #FAF7F0;
  --paper-deep: #F0EADA;
  --text: #1E2420;
  --text-soft: #54594F;
  --white: #FFFFFF;
  --border: #E3DCC6;
  --danger: #B3261E;
  --shadow-sm: 0 1px 3px rgba(18, 32, 23, 0.08);
  --shadow-md: 0 8px 24px rgba(18, 32, 23, 0.12);
  --radius: 10px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Public Sans", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: var(--ci-green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---------- Bandeau utilitaire (tout en haut) ---------- */
.utility-bar {
  background: var(--ink);
  color: #DCE6DD;
  font-size: 0.82rem;
}
.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.utility-links { display: flex; gap: 16px; align-items: center; }
.utility-links a { color: #DCE6DD; }
.social-icons { display: flex; gap: 10px; }
.social-icons a {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 0.78rem;
}
.social-icons a:hover { background: var(--gold); text-decoration: none; }
.visit-counter {
  background: var(--ci-green);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* ---------- Bandeau institutionnel (logo + nom du ministère/direction) ---------- */
.masthead {
  background: var(--white);
  border-bottom: 4px solid var(--ci-orange);
}
.masthead .container {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  flex-wrap: wrap;
}
.masthead .coat {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--paper-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ci-green-dark);
  font-size: 1.4rem;
  flex-shrink: 0;
  border: 2px solid var(--ci-orange);
}
.masthead .titles { flex: 1; min-width: 260px; }
.masthead .ministry {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 700;
}
.masthead .direction {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: var(--ink);
  font-weight: 600;
}
.masthead .direction strong { color: var(--ci-green-dark); }
.masthead-flag {
  display: flex; height: 40px; width: 60px; border-radius: 4px; overflow: hidden;
  box-shadow: var(--shadow-sm); flex-shrink: 0;
}
.masthead-flag span { flex: 1; }
.masthead-flag span:nth-child(1) { background: var(--ci-orange); }
.masthead-flag span:nth-child(2) { background: var(--white); }
.masthead-flag span:nth-child(3) { background: var(--ci-green); }

/* ---------- Flash info (ticker) ---------- */
.flash-info {
  background: var(--gold);
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.flash-info .tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--danger); color: var(--white);
  font-weight: 700; font-size: 0.74rem; letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 7px 14px; flex-shrink: 0; position: relative; z-index: 2;
}
.flash-info .scroller-wrap {
  flex: 1; overflow: hidden; position: relative;
}
.flash-info .scroller {
  display: inline-flex;
  gap: 60px;
  padding-left: 20px;
  animation: ticker 28s linear infinite;
  font-weight: 600;
  font-size: 0.88rem;
}
.flash-info .scroller a { color: var(--ink); }
.flash-info-row { display: flex; align-items: stretch; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Navigation principale ---------- */
.navbar {
  background: var(--ci-orange);
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-toggle {
  display: none;
  background: none; border: 0; color: var(--white);
  font-size: 1.6rem; padding: 12px; cursor: pointer;
}
.nav-menu {
  list-style: none; display: flex; margin: 0; padding: 0;
  flex-wrap: wrap;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a, .nav-menu > li > button {
  display: flex; align-items: center; gap: 4px;
  color: var(--white); font-weight: 700; font-size: 0.86rem;
  letter-spacing: 0.02em; text-transform: uppercase;
  padding: 14px 14px; background: none; border: 0; cursor: pointer;
  font-family: inherit;
}
.nav-menu > li > a:hover, .nav-menu > li > button:hover,
.nav-menu > li.open > button { background: var(--ci-orange-dark); text-decoration: none; }
.nav-menu .caret { font-size: 0.65rem; margin-top: 2px; }

.nav-search {
  display: flex; align-items: center; background: rgba(255,255,255,0.18);
  border-radius: 999px; padding: 4px 6px 4px 14px; gap: 6px;
}
.nav-search input {
  border: 0; background: none; outline: none; color: var(--white);
  font-size: 0.84rem; width: 150px;
}
.nav-search input::placeholder { color: rgba(255,255,255,0.75); }
.nav-search button {
  background: var(--ink); color: var(--white); border: 0;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
}

/* Méga-menu déroulant */
.dropdown {
  position: absolute; left: 0; top: 100%;
  background: var(--white); min-width: 260px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
  display: none;
  border-top: 3px solid var(--gold);
}
.nav-menu > li.open .dropdown { display: block; }
.dropdown a {
  display: block; padding: 9px 18px; color: var(--text);
  font-size: 0.88rem; font-weight: 500;
}
.dropdown a:hover { background: var(--paper-deep); color: var(--ci-green-dark); text-decoration: none; }
.dropdown .group-title {
  padding: 8px 18px 4px; font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gold); font-weight: 800;
}
.dropdown.wide { min-width: 560px; display: none; }
.nav-menu > li.open .dropdown.wide { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
  background: var(--ink);
}
.hero-slider {
  position: relative; min-height: 420px; overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,32,23,0) 30%, rgba(10,18,12,0.92) 100%);
}
.hero-caption {
  position: relative; z-index: 2; color: var(--white);
  padding: 40px clamp(20px, 4vw, 56px); max-width: 720px;
}
.hero-caption .eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold-soft);
}
.hero-caption h1, .hero-caption h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.4rem); margin: 8px 0 10px; line-height: 1.15;
}
.hero-caption p { color: #DCE6DD; max-width: 560px; }
.hero-dots {
  position: absolute; bottom: 16px; right: 20px; z-index: 3; display: flex; gap: 8px;
}
.hero-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.45); cursor: pointer; padding: 0;
}
.hero-dots button.is-active { background: var(--gold); width: 22px; border-radius: 5px; }

.coordo-card {
  background: var(--paper-deep);
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.coordo-card .label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ci-green-dark); font-weight: 700;
}
.coordo-photo {
  width: 100%; aspect-ratio: 4/5; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--ci-green) 0%, var(--ink) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85); font-family: var(--font-display); font-size: 0.95rem;
  text-align: center; padding: 16px;
}
.coordo-name { font-family: var(--font-display); font-size: 1.15rem; margin: 0; color: var(--ink); }
.coordo-role { margin: 0; color: var(--text-soft); font-size: 0.88rem; }
.coordo-card .btn { align-self: flex-start; }

/* ---------- Bandeau Observatoire (élément signature) ---------- */
.observatoire {
  background: var(--ink-soft);
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 3px solid var(--gold);
}
.observatoire .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.06);
}
.obs-cell {
  background: var(--ink-soft);
  padding: 22px 20px;
  position: relative;
}
.obs-cell .obs-label {
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #9FB3A2; margin: 0 0 6px;
}
.obs-cell .obs-value {
  font-family: var(--font-mono); font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  color: var(--gold-soft); margin: 0; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.obs-cell .obs-sub { font-size: 0.78rem; color: #C9D6CA; margin-top: 4px; }
.obs-bar {
  display: flex; height: 6px; border-radius: 4px; overflow: hidden; margin-top: 8px;
}
.obs-bar span:first-child { background: var(--ci-orange); }
.obs-bar span:last-child { background: var(--ci-green); }
.obs-foot {
  text-align: center; font-size: 0.74rem; color: #8AA08D; padding: 8px 0;
  font-family: var(--font-mono);
}

/* ---------- Sections génériques ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--paper-deep); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.section-head .eyebrow {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); font-weight: 700; display: block; margin-bottom: 4px;
}
.section-head h2 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0; color: var(--ink); font-weight: 600;
}
.section-head .see-all { font-weight: 700; font-size: 0.88rem; white-space: nowrap; }

/* ---------- Accès par service (dashboards) ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px;
}
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.service-card .ic {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--paper-deep); color: var(--ci-green-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.service-card h3 { margin: 0; font-size: 1rem; color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.service-card p { margin: 0; font-size: 0.84rem; color: var(--text-soft); flex: 1; }
.service-card .go { font-size: 0.8rem; font-weight: 700; color: var(--ci-green-dark); }

/* ---------- Cartes actualités ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.news-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); display: flex; flex-direction: column;
}
.news-card .thumb {
  height: 150px; background: linear-gradient(135deg, var(--ci-green) 0%, var(--ink) 100%);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7);
  font-family: var(--font-mono); font-size: 0.78rem;
}
.news-card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-card .date { font-size: 0.74rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.news-card h3 { margin: 0; font-size: 1rem; font-family: var(--font-display); color: var(--ink); font-weight: 600; }
.news-card .more { margin-top: auto; font-size: 0.84rem; font-weight: 700; }

/* ---------- Galeries (photothèque / vidéothèque) ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
  background: var(--paper-deep); cursor: pointer; border: 0; padding: 0;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px;
  background: linear-gradient(180deg, transparent, rgba(10,18,12,0.88));
  color: var(--white); font-size: 0.78rem; text-align: left;
}
.video-item .cap::before { content: "▶ "; color: var(--gold-soft); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filters button {
  border: 1px solid var(--border); background: var(--white); border-radius: 999px;
  padding: 7px 16px; font-size: 0.82rem; font-weight: 600; cursor: pointer; color: var(--text-soft);
}
.filters button.is-active { background: var(--ci-green); color: var(--white); border-color: var(--ci-green); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(10,16,12,0.92); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox img, .lightbox iframe { max-width: 100%; max-height: 82vh; border-radius: 6px; }
.lightbox-close {
  position: absolute; top: 18px; right: 24px; background: none; border: 0;
  color: var(--white); font-size: 2rem; cursor: pointer; line-height: 1;
}
.lightbox-cap { color: var(--white); position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; font-size: 0.9rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ci-green); color: var(--white); border: 0;
  padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 0.86rem;
  cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--ci-green-dark); text-decoration: none; }
.btn.outline { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--white); }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.gold:hover { background: var(--gold-soft); }
.btn.block { width: 100%; justify-content: center; }
.btn.sm { padding: 7px 14px; font-size: 0.78rem; }

/* ---------- Bande partenaires (slider) ---------- */
.partners {
  background: var(--paper-deep); padding: 30px 0; overflow: hidden;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.partners .eyebrow {
  text-align: center; font-family: var(--font-mono); font-size: 0.76rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ci-green-dark);
  font-weight: 700; margin-bottom: 18px;
}
.partners-track-wrap { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partners-track {
  display: flex; gap: 56px; align-items: center;
  animation: partners-scroll 26s linear infinite;
  width: max-content;
}
.partners-track:hover { animation-play-state: paused; }
.partner-logo {
  height: 56px; width: 150px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-soft); font-weight: 700; font-size: 0.8rem; text-align: center; padding: 6px 10px;
}
@keyframes partners-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9D6CA; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1fr;
  gap: 28px; padding: 48px 0 28px;
}
.footer-grid h4 {
  color: var(--white); font-family: var(--font-display); font-weight: 600;
  font-size: 0.98rem; margin: 0 0 12px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: #B8C9BA; font-size: 0.86rem; }
.footer-grid a:hover { color: var(--gold-soft); }
.footer-contact li { display: flex; gap: 8px; font-size: 0.86rem; align-items: flex-start; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; color: var(--white);
}
.footer-social a:hover { background: var(--gold); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 16px 0; font-size: 0.78rem; color: #8AA08D;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-bottom .links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: #9FB3A2; }

/* ---------- Pages internes génériques (login, dashboard, galeries) ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--ci-green-dark), var(--ink));
  color: var(--white); padding: 42px 0;
}
.page-banner .eyebrow { color: var(--gold-soft); font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.page-banner h1 { font-family: var(--font-display); margin: 6px 0 0; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; }

.login-wrap { max-width: 420px; margin: 50px auto; }
.login-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-md);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.84rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.92rem; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ci-green); }

/* ---------- Champ mot de passe avec bouton "œil" ---------- */
.password-field { position: relative; }
.password-field input { padding-right: 44px; }
.password-field .toggle-pw {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; font-size: 1.05rem;
  width: 32px; height: 32px; border-radius: 6px; color: var(--text-soft);
  display: flex; align-items: center; justify-content: center;
}
.password-field .toggle-pw:hover { background: var(--paper-deep); color: var(--ink); }
.pw-strength { font-size: 0.78rem; margin-top: 6px; color: var(--text-soft); }
.alert { padding: 12px 14px; border-radius: 8px; font-size: 0.86rem; margin-bottom: 16px; }
.alert.error { background: #FBEAE8; color: var(--danger); border: 1px solid #F1C6C2; }
.alert.success { background: #E7F4ED; color: var(--ci-green-dark); border: 1px solid #BFE3CC; }

.dash-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 60vh; }
.dash-side { background: var(--ink-soft); color: #DCE6DD; padding: 26px 18px; }
.dash-side .who { font-size: 0.78rem; color: #9FB3A2; margin-bottom: 18px; }
.dash-side .who strong { color: var(--white); display: block; font-size: 0.98rem; }
.dash-side nav a {
  display: block; padding: 10px 12px; border-radius: 8px; color: #DCE6DD; font-size: 0.88rem; margin-bottom: 4px;
}
.dash-side nav a:hover, .dash-side nav a.active { background: rgba(255,255,255,0.1); text-decoration: none; color: var(--white); }
.dash-main { padding: 30px clamp(16px, 4vw, 40px); background: var(--paper); }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 30px; }
.kpi-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.kpi-card .v { font-family: var(--font-mono); font-size: 1.7rem; color: var(--ci-green-dark); font-weight: 700; }
.kpi-card .l { font-size: 0.8rem; color: var(--text-soft); }
.table-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table-card table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.table-card th, .table-card td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.table-card th { background: var(--paper-deep); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-soft); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.badge.soumis { background: #FDEFD9; color: #92600B; }
.badge.valide_responsable { background: #DCEBFB; color: #1A5FA8; }
.badge.valide_admin { background: #E2F3E5; color: var(--ci-green-dark); }
.badge.status-paid { background: #E2F3E5; color: var(--ci-green-dark); }
.badge.status-pending { background: #FDEFD9; color: #92600B; }
.badge.status-danger { background: #FBE3E1; color: #B3261E; }
.badge.status-neutral { background: var(--paper-deep); color: var(--text-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .coordo-card { flex-direction: row; align-items: center; }
  .coordo-photo { width: 110px; aspect-ratio: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .dash-shell { grid-template-columns: 1fr; }
  .dash-side { display: flex; align-items: center; gap: 16px; overflow-x: auto; }
  .dash-side nav { display: flex; gap: 4px; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-search { display: none; }
  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ci-orange-dark); flex-direction: column; padding: 8px 0;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu > li { width: 100%; }
  .dropdown, .dropdown.wide { position: static; box-shadow: none; display: none; grid-template-columns: 1fr; background: rgba(0,0,0,0.12); border-top: none; }
  .nav-menu > li.open .dropdown, .nav-menu > li.open .dropdown.wide { display: block; }
  .dropdown a { color: var(--white); }
  .dropdown a:hover { background: rgba(0,0,0,0.15); color: var(--white); }
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 36px 0 20px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .masthead .direction { font-size: 1.3rem; }
}
