/* ==========================================================================
   ACTU MESRI — Feuille de style du site public
   Identité : institutionnelle, éditoriale et moderne.
   Couleurs pilotées depuis l'administration (--primary, --secondary, --accent).
   ========================================================================== */

:root {
  --primary: #0b3b60; --primary-rgb: 11, 59, 96;
  --secondary: #00853f; --secondary-rgb: 0, 133, 63;
  --accent: #f2b705; --accent-rgb: 242, 183, 5;
  --danger: #d62828;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #f0efe9;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e3dc;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06), 0 1px 3px rgba(17, 24, 39, .05);
  --shadow: 0 10px 30px -12px rgba(17, 24, 39, .18);
  --shadow-lg: 0 24px 60px -20px rgba(11, 31, 58, .35);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --bs-primary: var(--primary);
  --bs-primary-rgb: var(--primary-rgb);
  --bs-link-color-rgb: var(--primary-rgb);
  --bs-body-font-family: var(--font-sans);
}

[data-theme="dark"] {
  --bg: #0d1117;
  --surface: #151b23;
  --surface-2: #1c2330;
  --ink: #e8ecf2;
  --ink-2: #c3cad5;
  --muted: #8b95a5;
  --line: #273041;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ Base */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
[data-theme="dark"] a { color: #8cc4ff; }
a:hover { color: var(--secondary); }
h1, h2, h3, h4 { color: var(--ink); }
img { max-width: 100%; height: auto; }
.text-muted-2 { color: var(--muted) !important; }
.min-w-0 { min-width: 0; }
:focus-visible { outline: 3px solid rgba(var(--accent-rgb), .9); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 12px; color: #fff; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
::selection { background: rgba(var(--accent-rgb), .45); }

.btn { border-radius: 999px; font-weight: 600; padding-inline: 1.15rem; }
.btn-primary { --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-hover-bg: var(--secondary); --bs-btn-hover-border-color: var(--secondary); --bs-btn-active-bg: var(--secondary); }
.btn-outline-primary { --bs-btn-color: var(--primary); --bs-btn-border-color: rgba(var(--primary-rgb), .35); --bs-btn-hover-bg: var(--primary); --bs-btn-hover-border-color: var(--primary); }
[data-theme="dark"] .btn-outline-primary { --bs-btn-color: #8cc4ff; }
.form-control, .form-select { border-radius: 12px; border-color: var(--line); background-color: var(--surface); color: var(--ink); }
.form-control:focus, .form-select:focus { border-color: rgba(var(--primary-rgb), .5); box-shadow: 0 0 0 .25rem rgba(var(--primary-rgb), .12); background-color: var(--surface); color: var(--ink); }

/* Liseré aux couleurs nationales */
.flag-line { display: flex; height: 14px; }
.flag-line span { flex: 1; }
.flag-line span:nth-child(1) { background: #00853f; }
.flag-line span:nth-child(2) { background: #fdef42 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2300853f' d='M12 1.2l3.2 6.6 7.2 1-5.2 5.1 1.2 7.2L12 17.7l-6.4 3.4 1.2-7.2L1.6 8.8l7.2-1z'/%3E%3C/svg%3E") center / 11px 11px no-repeat; }
.flag-line span:nth-child(3) { background: #e31b23; }

/* --------------------------------------------------------- Barre utilitaire */
.utility-bar { background: var(--primary); color: rgba(255, 255, 255, .82); font-size: .8rem; padding: 6px 0; }
.util-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .25); display: inline-block; }
.util-icon { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 50%; color: rgba(255, 255, 255, .85) !important; background: transparent; border: 0; transition: background .2s; }
.util-icon:hover { background: rgba(255, 255, 255, .14); color: #fff !important; }

/* ---------------------------------------------------------------- En-tête */
.masthead { background: var(--surface); padding: 18px 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink) !important; min-width: 0; }
.brand-emblem { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 55%, var(--secondary) 100%); box-shadow: inset 0 -4px 0 var(--accent), var(--shadow-sm); }
.brand-logo { height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-title { font-family: var(--font-serif); font-weight: 700; font-size: 1.55rem; line-height: 1.1; letter-spacing: -.01em; }
.brand-slogan { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 460px; }
.masthead-search { align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; width: min(420px, 38vw); height: 46px; transition: box-shadow .2s, border-color .2s; }
.masthead-search:focus-within { border-color: rgba(var(--primary-rgb), .5); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .1); background: var(--surface); }
.masthead-search input { border: 0; background: transparent; outline: none; flex: 1; color: var(--ink); font-size: .92rem; }
.masthead-search i { color: var(--muted); }
.masthead-search kbd { background: var(--surface); color: var(--muted); border: 1px solid var(--line); font-size: .72rem; padding: 1px 7px; }
.btn-icon { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.3rem; display: grid; place-items: center; }

/* ------------------------------------------------------------ Navigation */
.main-nav { position: sticky; top: 0; z-index: 1030; background: rgba(var(--primary-rgb), .98); backdrop-filter: saturate(160%) blur(10px); box-shadow: 0 6px 20px -12px rgba(0, 0, 0, .45); }
.nav-list { list-style: none; display: flex; align-items: stretch; margin: 0; padding: 0; gap: 2px; }
.nav-list > li { position: relative; display: flex; }
.nav-list > li > a, .nav-list > li > button { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .9) !important; font-weight: 600; font-size: .9rem; padding: 14px 13px; background: none; border: 0; position: relative; white-space: nowrap; }
.nav-list > li > a::after, .nav-list > li > button::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav-list > li > a:hover::after, .nav-list > li > button:hover::after, .nav-list > li > .active::after, .has-drop.open > button::after { transform: scaleX(1); }
.nav-list .bi-chevron-down { font-size: .65rem; transition: transform .2s; }
.has-drop.open .bi-chevron-down { transform: rotate(180deg); }
.nav-cta { background: rgba(255, 255, 255, .1); border-radius: 999px; margin: 8px 0; padding: 6px 16px !important; }
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--accent); color: var(--primary) !important; }
.drop { position: absolute; top: 100%; left: 0; min-width: 260px; list-style: none; margin: 0; padding: 8px; background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s var(--ease); z-index: 20; border-top: 3px solid var(--accent); }
.has-drop.open > .drop, .has-drop:hover > .drop, .has-drop:focus-within > .drop { opacity: 1; visibility: visible; transform: none; }
.drop li a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink) !important; font-size: .9rem; font-weight: 500; }
.drop li a:hover { background: var(--surface-2); color: var(--primary) !important; }
.drop li a i { color: var(--muted); }
.drop-sep { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.has-mega { position: static !important; }
.mega { left: 12px; right: 12px; width: auto; padding: 18px; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mega-item { display: flex; gap: 12px; padding: 10px; border-radius: 12px; color: var(--ink) !important; align-items: flex-start; }
.mega-item:hover { background: color-mix(in srgb, var(--c) 8%, transparent); }
.mega-item strong { display: block; font-size: .88rem; }
.mega-item small { display: block; color: var(--muted); font-size: .75rem; line-height: 1.35; }
.mega-ico { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.mega-all { display: inline-flex; gap: 8px; align-items: center; margin-top: 12px; padding: 8px 12px; font-weight: 600; font-size: .9rem; }

/* ----------------------------------------------------------- Flash info */
.ticker { background: var(--surface); border-bottom: 1px solid var(--line); font-size: .9rem; }
.ticker .container { height: 46px; gap: 14px; }
.ticker-label { flex: none; display: inline-flex; align-items: center; gap: 8px; background: var(--danger); color: #fff; font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); } 70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-move { display: inline-flex; gap: 42px; white-space: nowrap; animation: ticker 55s linear infinite; }
.ticker.paused .ticker-move, .ticker-track:hover .ticker-move { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-move a { color: var(--ink) !important; font-weight: 500; }
.ticker-move a:hover { color: var(--danger) !important; }
.ticker-time { color: var(--danger); font-weight: 700; margin-right: 8px; font-size: .8rem; }
.ticker-pause { border: 0; background: var(--surface-2); color: var(--ink); width: 30px; height: 30px; border-radius: 50%; flex: none; }

/* -------------------------------------------------------- Fil d'Ariane */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 0 0; margin: 0; font-size: .82rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }

/* ----------------------------------------------------------- Badges */
.badge-rub { --c: var(--primary); display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c) !important; background: color-mix(in srgb, var(--c) 11%, var(--surface)); padding: 4px 10px; border-radius: 999px; line-height: 1.3; border: 1px solid color-mix(in srgb, var(--c) 18%, transparent); }
[data-theme="dark"] .badge-rub { color: color-mix(in srgb, var(--c) 55%, #fff) !important; }
.badge-rub:hover { background: var(--c); color: #fff !important; }
.badge-rub.badge-light { background: var(--c); color: #fff !important; border-color: transparent; }
.etab-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; color: var(--ink-2) !important; background: var(--surface-2); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etab-chip:hover { border-color: var(--primary); color: var(--primary) !important; }
.etab-chip.light { background: rgba(255, 255, 255, .16); color: #fff !important; border-color: rgba(255, 255, 255, .25); }
.etab-chip.big { font-size: .85rem; padding: 7px 14px; }

/* --------------------------------------------------- Couverture générée */
.cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
picture { display: contents; }
.cover-fallback { --c: var(--primary); width: 100%; height: 100%; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: rgba(255, 255, 255, .95); background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--c) 60%, #fff) 0, transparent 45%), radial-gradient(circle at 85% 85%, color-mix(in srgb, var(--c) 50%, #000) 0, transparent 50%), linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #0b1220)); position: relative; overflow: hidden; }
.cover-fallback::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(160deg, #000, transparent 70%); }
.cover-fallback i { font-size: clamp(2rem, 6vw, 3.4rem); position: relative; z-index: 1; opacity: .95; }
.cover-fallback span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; position: relative; z-index: 1; opacity: .8; }

/* ---------------------------------------------------------------- Slider */
.hero { padding: 28px 0 8px; }
.hero-shell { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; }
.hero-stage { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; min-height: 420px; background: #0b1220; box-shadow: var(--shadow-lg); }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility .8s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-media { position: absolute; inset: 0; }
.hero-media > * , .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide.is-active .hero-media img, .hero-slide.is-active .hero-media .cover-fallback { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(20px, 4vw, 44px); padding-bottom: 74px; color: #fff; background: linear-gradient(180deg, rgba(5, 12, 24, 0) 25%, rgba(5, 12, 24, .55) 55%, rgba(5, 12, 24, .92) 100%); }
.hero-kicker { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-title { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.45rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: -.015em; max-width: 26ch; margin: 0 0 12px; }
.hero-title a { color: #fff !important; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 3px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .4s var(--ease); }
.hero-title a:hover { background-size: 100% 3px; }
.hero-excerpt { color: rgba(255, 255, 255, .85); max-width: 62ch; margin: 0 0 18px; font-size: 1.02rem; }
.hero-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: .88rem; color: rgba(255, 255, 255, .8); }
.hero-meta i { margin-right: 6px; }
.btn-hero { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #111 !important; font-weight: 700; padding: 10px 20px; border-radius: 999px; transition: transform .2s, box-shadow .2s; }
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(var(--accent-rgb), .7); }
.btn-hero i { transition: transform .2s; }
.btn-hero:hover i { transform: translateX(3px); }
.hero-controls { position: absolute; right: 18px; bottom: 18px; display: flex; gap: 8px; z-index: 3; }
.hero-arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .12); color: #fff; backdrop-filter: blur(8px); transition: background .2s; }
.hero-arrow:hover { background: rgba(255, 255, 255, .3); }
.hero-rail { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hero-rail li { flex: 1; display: flex; }
.hero-rail li .rail-item { align-content: center; }
.rail-item { width: 100%; text-align: left; display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; transition: all .25s var(--ease); height: 100%; }
.rail-item:hover { border-color: rgba(var(--primary-rgb), .35); }
.rail-item.is-active { background: var(--primary); border-color: var(--primary); box-shadow: var(--shadow); }
.rail-num { font-family: var(--font-serif); font-weight: 700; font-size: 1.35rem; color: var(--muted); line-height: 1; }
.rail-item.is-active .rail-num { color: var(--accent); }
.rail-text { display: flex; flex-direction: column; min-width: 0; }
.rail-cat { --c: var(--primary); font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.rail-item.is-active .rail-cat { color: rgba(255, 255, 255, .7); }
.rail-title { font-size: .86rem; font-weight: 600; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail-item.is-active .rail-title { color: #fff; }
.rail-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.rail-progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.rail-item.is-active .rail-progress span { animation: railprog var(--dur, 6.5s) linear forwards; }
.hero-stage.paused ~ .hero-rail .rail-progress span, .hero-shell.paused .rail-progress span { animation-play-state: paused; }
@keyframes railprog { to { width: 100%; } }

.projects-strip { padding: 18px 0 0; }
.projects-label { flex: none; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--secondary); }
.projects-list { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.projects-list span { flex: none; font-size: .8rem; font-weight: 700; color: var(--ink-2); padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px dashed rgba(var(--secondary-rgb), .45); }

/* -------------------------------------------------------------- Sections */
.section { padding: 44px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line); position: relative; }
.section-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 3px; background: var(--c, var(--secondary)); border-radius: 3px; }
.section-title { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin: 0; letter-spacing: -.01em; display: flex; align-items: center; }
.section-title.with-icon { gap: 12px; }
.title-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; color: #fff; background: var(--c); }
.section-link { font-weight: 600; font-size: .9rem; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.section-link i { transition: transform .2s; }
.section-link:hover i { transform: translateX(3px); }
.section-head.light { border-color: rgba(255, 255, 255, .15); }
.section-head.light .section-title, .section-head.light .section-link { color: #fff !important; }

/* ------------------------------------------------------------- Cartes */
.card-news { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 100%; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card-news:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card-media img, .card-media .cover-fallback { transition: transform .6s var(--ease); }
.card-news:hover .card-media img, .card-news:hover .card-media .cover-fallback { transform: scale(1.05); }
.media-flag { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(6px); z-index: 2; }
.media-flag.pdf { background: #b91c1c; }
.card-body-news { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-kicker { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.card-title-news { font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; line-height: 1.3; margin: 0 0 8px; letter-spacing: -.005em; }
.card-title-news a { color: var(--ink) !important; }
.card-title-news a:hover { color: var(--primary) !important; }
[data-theme="dark"] .card-title-news a:hover { color: #8cc4ff !important; }
.card-excerpt { color: var(--ink-2); font-size: .92rem; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--muted); padding-top: 12px; border-top: 1px dashed var(--line); }
.card-foot time i { margin-right: 5px; }
.read-more { font-weight: 700; font-size: .82rem; display: inline-flex; gap: 5px; align-items: center; }
.read-more i { transition: transform .2s; }
.read-more:hover i { transform: translateX(3px); }

.card-horizontal { flex-direction: row; }
.card-horizontal .card-media { flex: 0 0 52%; aspect-ratio: auto; min-height: 300px; }
.card-horizontal .card-body-news { padding: 28px; justify-content: center; }
.card-horizontal .card-title-news { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.card-horizontal .card-excerpt { -webkit-line-clamp: 4; font-size: 1rem; }

.card-overlay { position: relative; min-height: 420px; border: 0; }
.card-overlay .card-media { position: absolute; inset: 0; aspect-ratio: auto; }
.card-overlay .card-body-news { position: relative; z-index: 2; margin-top: auto; color: #fff; background: linear-gradient(180deg, transparent, rgba(5, 12, 24, .88) 42%); padding-top: 90px; }
.card-overlay .card-title-news { font-size: 1.5rem; }
.card-overlay .card-title-news a, .card-overlay .card-excerpt, .card-overlay .card-foot, .card-overlay .read-more { color: #fff !important; }
.card-overlay .card-excerpt { opacity: .85; }
.card-overlay .card-foot { border-color: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .75); }
.card-overlay .badge-rub { background: var(--c); color: #fff !important; }
.card-overlay .etab-chip { background: rgba(255, 255, 255, .15); color: #fff !important; border-color: rgba(255, 255, 255, .2); }

.card-row { flex-direction: row; height: auto; }
.card-row .card-media { flex: 0 0 150px; aspect-ratio: auto; min-height: 118px; }
.card-row .card-body-news { padding: 14px 16px; }
.card-row .card-title-news { font-size: 1rem; -webkit-line-clamp: 2; }
.card-row .card-excerpt { -webkit-line-clamp: 2; font-size: .85rem; margin-bottom: 6px; }
.card-row .card-foot { border: 0; padding-top: 4px; }
.card-row .read-more { display: none; }
.card-compact .card-body-news { padding: 14px; }
.card-compact .card-title-news { font-size: 1rem; }

.rub-block.alt { background: var(--surface-2); }
/* Blocs rubriques de l'accueil : vignettes plus grandes à partir du 2e article */
.rub-block .card-row { flex: 1 1 0; }
.rub-block .card-row .card-media { flex: 0 0 42%; min-height: 150px; aspect-ratio: 16 / 10; }
.rub-block .card-row .card-media img, .rub-block .card-row .card-media .cover-img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 575.98px) {
  .rub-block .card-row { flex-direction: column; }
  .rub-block .card-row .card-media { flex-basis: auto; width: 100%; }
}

/* -------------------------------------------------------------- Panneaux */
.side-sticky { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: block; }
.panel-title { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 16px; display: flex; gap: 10px; align-items: center; }
.panel-title i { color: var(--secondary); font-size: 1rem; }
.most-read { list-style: none; padding: 0; margin: 0; counter-reset: mr; }
.most-read li { counter-increment: mr; border-bottom: 1px solid var(--line); }
.most-read li:last-child { border: 0; }
.most-read a { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto auto; column-gap: 12px; padding: 12px 0; color: var(--ink) !important; }
.most-read a::before { content: counter(mr); grid-row: 1 / span 3; font-family: var(--font-serif); font-size: 2rem; font-weight: 700; line-height: 1; color: rgba(var(--primary-rgb), .18); }
[data-theme="dark"] .most-read a::before { color: rgba(255, 255, 255, .18); }
.most-read a:hover .mr-title { color: var(--primary); }
.mr-cat { --c: var(--primary); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c); }
.mr-title { font-weight: 600; font-size: .92rem; line-height: 1.35; }
.mr-meta { font-size: .75rem; color: var(--muted); margin-top: 2px; }
.rub-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rub-chips a { --c: var(--primary); display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--ink-2) !important; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); transition: all .2s; }
.rub-chips a i { color: var(--c); }
.rub-chips a:hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, var(--surface)); }
.rub-chips .count { font-size: .68rem; background: var(--surface-2); padding: 0 6px; border-radius: 999px; color: var(--muted); }
.panel-find { background: linear-gradient(160deg, var(--primary), color-mix(in srgb, var(--primary) 70%, var(--secondary))); border: 0; color: #fff; }
.panel-find .panel-title, .panel-find .panel-title i { color: #fff; }
.find-form { display: flex; gap: 8px; }
.find-form .form-control { border: 0; }
.find-form .btn { background: var(--accent); border: 0; color: #111; padding: 0 16px; }
.find-types { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 14px; }
.find-types a { display: flex; align-items: center; gap: 8px; color: #fff !important; background: rgba(255, 255, 255, .1); padding: 8px 10px; border-radius: 10px; font-size: .78rem; font-weight: 600; }
.find-types a:hover { background: rgba(255, 255, 255, .2); }
.find-types b { margin-left: auto; font-size: .72rem; opacity: .8; }

/* ----------------------------------------------------------------- Vidéos */
.video-band { background: linear-gradient(180deg, #0b1220, #111a2b); color: #fff; }
.page-dark { }
.video-tile { position: relative; display: block; width: 100%; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #000; text-align: left; }
.video-tile img, .video-tile .cover-fallback { transition: transform .6s var(--ease), opacity .3s; opacity: .85; }
.video-tile:hover img { transform: scale(1.04); opacity: 1; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .95); color: #e11d48; font-size: 2rem; box-shadow: 0 0 0 10px rgba(255, 255, 255, .18); transition: transform .25s var(--ease); }
.play.sm { width: 40px; height: 40px; font-size: 1.2rem; box-shadow: 0 0 0 5px rgba(255, 255, 255, .2); }
.video-tile:hover .play, .video-row:hover .play, .video-thumb:hover .play { transform: translate(-50%, -50%) scale(1.1); }
.video-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 20px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); color: #fff; display: flex; flex-direction: column; }
.video-caption strong { font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.25; }
.video-row { display: flex; gap: 14px; align-items: center; width: 100%; border: 0; background: rgba(255, 255, 255, .05); border-radius: 14px; padding: 10px; color: #fff; transition: background .2s; }
.video-row:hover { background: rgba(255, 255, 255, .1); }
.video-row .thumb { position: relative; flex: 0 0 150px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; }
.video-row strong { font-size: .95rem; line-height: 1.35; font-weight: 600; }
.video-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; }
.video-card h2 a { color: var(--ink) !important; }
.video-thumb { position: relative; display: block; width: 100%; border: 0; padding: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.video-modal { background: #000; border: 0; border-radius: 18px; overflow: hidden; }
.video-modal .modal-title { color: #fff; }

/* -------------------------------------------------------------- Documents */
.doc-card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink) !important; transition: all .25s var(--ease); }
.doc-card:hover { border-color: #b91c1c; transform: translateY(-3px); box-shadow: var(--shadow); }
.doc-ico { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #fee2e2; color: #b91c1c; font-size: 1.35rem; }
[data-theme="dark"] .doc-ico { background: rgba(185, 28, 28, .2); }
.doc-title { font-weight: 700; line-height: 1.35; color: var(--ink) !important; }
.doc-meta { font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.doc-search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px; margin-bottom: 24px; max-width: 640px; }
.doc-search input { flex: 1; border: 0; outline: none; background: transparent; color: var(--ink); }
.doc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.doc-list li { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }

/* ---------------------------------------------------- En-têtes de page */
.page-hero { --c: var(--primary); background: linear-gradient(120deg, color-mix(in srgb, var(--c) 92%, #000) 0%, var(--c) 55%, color-mix(in srgb, var(--c) 70%, var(--secondary)) 100%); color: #fff; padding: 42px 0 46px; margin-top: 16px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%); }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 40%, #000); pointer-events: none; }
.page-hero.dark { --c: #111a2b; }
.page-hero-inner { display: flex; gap: 22px; align-items: center; position: relative; z-index: 1; }
.page-hero-ico { flex: none; width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; font-size: 2rem; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); }
.page-title { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.1; margin: 0 0 6px; color: inherit; letter-spacing: -.015em; }
.page-intro { margin: 0; max-width: 70ch; opacity: .88; font-size: 1.05rem; }
.page-count { margin: 10px 0 0; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.page-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }

.filters-bar { display: flex; align-items: center; gap: 16px; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; }
.rub-scroller { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; flex: 1; min-width: 0; }
.rub-scroller a { --c: var(--primary); flex: none; font-size: .84rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2) !important; }
.rub-scroller a:hover { border-color: var(--c); }
.rub-scroller a.active { background: var(--c); border-color: var(--c); color: #fff !important; }
.sort-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.sort-toggle a { padding: 6px 14px; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--ink-2) !important; }
.sort-toggle a.active { background: var(--ink); color: var(--surface) !important; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state i { font-size: 2.6rem; display: block; margin-bottom: 10px; }

/* ------------------------------------------------------------ Pagination */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pager-num, .pager-btn { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink) !important; font-weight: 600; }
.pager-num:hover, .pager-btn:hover { border-color: var(--primary); }
.pager-num.current { background: var(--primary); border-color: var(--primary); color: #fff !important; }
.pager-gap { color: var(--muted); padding: 0 4px; }

/* ---------------------------------------------------------------- Article */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 1100; }
.read-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--secondary), var(--accent)); }
.article-head { padding-top: 26px; }
.article-head-inner { max-width: 900px; }
.article-kicker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.article-title { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.8rem, 4.2vw, 3rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 14px; }
.article-subtitle { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--ink-2); line-height: 1.5; margin: 0 0 22px; font-family: var(--font-serif); font-weight: 500; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.author { display: flex; align-items: center; gap: 10px; color: var(--ink); line-height: 1.2; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.meta-item { display: inline-flex; gap: 6px; align-items: center; }
.article-figure { margin: 26px auto 8px; }
.article-figure img { border-radius: 20px; width: 100%; max-height: 640px; object-fit: cover; box-shadow: var(--shadow); }
.article-figure figcaption { font-size: .82rem; color: var(--muted); margin-top: 10px; padding-left: 12px; border-left: 3px solid var(--accent); }
.share-rail { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 8px; align-items: center; margin-top: 30px; }
.share-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2) !important; transition: all .2s; }
.share-btn:hover { transform: translateY(-2px); color: #fff !important; border-color: transparent; background: var(--primary); }
.s-facebook:hover { background: #1877f2; } .s-twitter-x:hover { background: #000; } .s-linkedin:hover { background: #0a66c2; } .s-whatsapp:hover { background: #25d366; } .s-telegram:hover { background: #229ed9; } .s-instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.share-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 26px 0; }
.share-inline span { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-right: 6px; }
.reading-tools { display: flex; gap: 6px; justify-content: flex-end; margin: 24px 0 8px; }
.reading-tools button { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 10px; min-width: 38px; height: 34px; font-weight: 700; font-size: .85rem; }
.reading-tools button:hover { border-color: var(--primary); color: var(--primary); }
.article-body { --fs: 1.1rem; font-size: var(--fs); line-height: 1.8; color: var(--ink-2); font-family: var(--font-serif); }
.article-body > * { margin-bottom: 1.25em; }
.article-body .lead-paragraph { font-family: var(--font-sans); font-size: calc(var(--fs) * 1.08); font-weight: 500; color: var(--ink); line-height: 1.65; }
.article-body > p:not(.lead-paragraph):first-of-type::first-letter, .article-body .lead-paragraph + p::first-letter { float: left; font-size: 3.6em; line-height: .9; font-weight: 700; margin: .06em .1em 0 0; color: var(--c, var(--primary)); }
.article-body h2 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--ink); margin: 1.8em 0 .6em; }
.article-body h3 { font-size: 1.3rem; font-weight: 700; color: var(--ink); margin: 1.6em 0 .5em; }
.article-body a { text-decoration: underline; text-decoration-color: rgba(var(--primary-rgb), .35); text-underline-offset: 3px; }
.article-body blockquote { margin: 1.8em 0; padding: 22px 26px; background: var(--surface); border-left: 5px solid var(--c, var(--accent)); border-radius: 0 16px 16px 0; font-size: 1.2em; font-style: italic; color: var(--ink); box-shadow: var(--shadow-sm); }
.article-body blockquote p:last-child { margin: 0; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin-bottom: .4em; }
.article-body img { border-radius: 14px; }
.article-body table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: .9em; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 12px; }
.article-body th { background: var(--surface-2); }
.source-note { font-family: var(--font-sans); font-size: .85rem !important; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; }
.article-block { margin: 34px 0; }
.block-title { font-size: .85rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.pdf-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.pdf-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.pdf-ico { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; background: #fee2e2; color: #b91c1c; }
.pdf-viewer { margin-top: 16px; }
.pdf-viewer iframe { width: 100%; height: 75vh; min-height: 480px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 30px 0 10px; color: var(--muted); }
.tags a { font-size: .82rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2) !important; }
.tags a:hover { border-color: var(--primary); color: var(--primary) !important; }
.report-box { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 30px 0; padding: 18px 20px; border-radius: var(--radius); background: color-mix(in srgb, var(--danger) 5%, var(--surface)); border: 1px solid color-mix(in srgb, var(--danger) 18%, transparent); }
.report-box span { display: block; font-size: .88rem; color: var(--muted); }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 10px; }
.pn { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink) !important; transition: all .2s; }
.pn:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.pn span { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pn strong { font-family: var(--font-serif); line-height: 1.3; }
.pn.next { text-align: right; grid-column: 2; }
.recent-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.recent-list a { display: grid; grid-template-columns: 84px 1fr; gap: 12px; color: var(--ink) !important; align-items: start; }
.recent-thumb { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.recent-thumb .cover-fallback i { font-size: 1.4rem; } .recent-thumb .cover-fallback span { display: none; }
.recent-title { display: block; font-weight: 600; font-size: .9rem; line-height: 1.35; }
.recent-list a:hover .recent-title { color: var(--primary); }
.recent-date { font-size: .75rem; color: var(--muted); }
.panel-etab { display: flex; gap: 14px; align-items: center; color: var(--ink) !important; }
.panel-etab:hover { border-color: var(--primary); }
.etab-ico { width: 50px; height: 50px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: rgba(var(--primary-rgb), .1); color: var(--primary); }
.related { background: var(--surface-2); }

.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(4, 8, 16, .94); display: flex; align-items: center; justify-content: center; padding: 50px 70px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-height: 80vh; border-radius: 10px; }
.lightbox figcaption { color: #cbd5e1; margin-top: 12px; font-size: .9rem; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; }
.lb-close { top: 16px; right: 16px; } .lb-prev { left: 14px; top: 50%; } .lb-next { right: 14px; top: 50%; }

/* ---------------------------------------------------------- Établissements */
.etab-filter { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; height: 42px; min-width: 280px; }
.etab-filter input { border: 0; outline: 0; background: transparent; flex: 1; color: var(--ink); }
.etab-group { margin-bottom: 36px; }
.etab-group-title { font-size: 1.1rem; font-weight: 700; display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.etab-group-title i { color: var(--secondary); }
.etab-group-title span { font-size: .75rem; background: var(--surface-2); padding: 2px 8px; border-radius: 999px; color: var(--muted); }
.etab-card { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink) !important; height: 100%; transition: all .25s var(--ease); }
.etab-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.etab-logo { flex: none; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: .78rem; letter-spacing: .02em; color: var(--primary); background: linear-gradient(135deg, rgba(var(--primary-rgb), .1), rgba(var(--secondary-rgb), .12)); overflow: hidden; text-align: center; line-height: 1.1; padding: 4px; }
.etab-logo img { width: 100%; height: 100%; object-fit: contain; }
.etab-logo.xl { width: 96px; height: 96px; font-size: 1.2rem; background: #fff; color: var(--primary); border-radius: 22px; }
.etab-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.etab-info strong { line-height: 1.3; font-size: .95rem; }
.etab-sub { font-size: .78rem; color: var(--muted); }
.etab-sub i { margin-right: 3px; }
.etab-count { text-align: center; font-weight: 800; font-size: 1.15rem; color: var(--primary); line-height: 1; }
[data-theme="dark"] .etab-count { color: #8cc4ff; }
.etab-count small { display: block; font-size: .6rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.etab-facts { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; opacity: .9; }
.etab-facts i { margin-right: 6px; }
.etab-facts a { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink) !important; }
.stat i { color: var(--secondary); font-size: 1.3rem; } .stat b { font-size: 1.6rem; font-family: var(--font-serif); } .stat span { font-size: .8rem; color: var(--muted); }
.page-nav { list-style: none; padding: 0; margin: 0; }
.page-nav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink-2) !important; font-weight: 500; }
.page-nav a:hover, .page-nav a.active { background: var(--surface-2); color: var(--primary) !important; }

/* -------------------------------------------------------------- Recherche */
.search-hero { padding-bottom: 36px; }
.search-big-field { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 6px 6px 6px 22px; box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.search-big-field i { color: #6b7280; font-size: 1.1rem; }
.search-big-field input { flex: 1; border: 0; outline: 0; font-size: 1.1rem; background: transparent; color: #111; min-width: 0; }
.search-big-field .btn { padding: 12px 26px; }
.search-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; position: relative; z-index: 1; }
.search-filters .form-select { width: auto; background-color: rgba(255, 255, 255, .95); color: #111; border: 0; }
.search-etabs { margin-bottom: 26px; }
.search-results { display: flex; flex-direction: column; gap: 14px; }
.result { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.result-thumb { display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; }
.result-title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; margin: 0 0 6px; }
.result-title a { color: var(--ink) !important; }
.result-excerpt { color: var(--ink-2); font-size: .92rem; margin-bottom: 6px; }
mark { background: rgba(var(--accent-rgb), .45); color: inherit; padding: 0 2px; border-radius: 3px; }

/* ----------------------------------------------------------- Formulaires */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.form-label { font-weight: 600; font-size: .88rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list i { color: var(--secondary); font-size: 1.1rem; }
.notfound { padding: 40px 0 20px; }
.nf-code { font-family: var(--font-serif); font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; line-height: 1; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ----------------------------------------------------------- Menu mobile */
.mobile-nav { max-width: 360px; background: var(--surface); color: var(--ink); }
.m-link { display: flex; gap: 12px; align-items: center; padding: 13px 8px; font-weight: 600; color: var(--ink) !important; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
.m-link i { color: var(--secondary); font-size: 1.1rem; }
details summary::-webkit-details-marker { display: none; }
details[open] > summary { color: var(--primary) !important; }
.m-sub { display: block; padding: 9px 8px 9px 40px; color: var(--ink-2) !important; font-size: .92rem; }
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0; }
.m-chips a { --c: var(--primary); display: inline-flex; gap: 6px; align-items: center; font-size: .8rem; font-weight: 600; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2) !important; }
.m-chips a i { color: var(--c); }
.m-social { display: flex; gap: 8px; margin-top: 20px; }
.m-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink) !important; }
.search-panel { height: auto !important; background: var(--surface); }

/* ------------------------------------------------------------ Pied de page */
.site-footer { background: #0a1626; color: rgba(255, 255, 255, .72); padding: 60px 0 0; margin-top: 30px; font-size: .92rem; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2300853f' d='M12 1.2l3.2 6.6 7.2 1-5.2 5.1 1.2 7.2L12 17.7l-6.4 3.4 1.2-7.2L1.6 8.8l7.2-1z'/%3E%3C/svg%3E") center / 11px 11px no-repeat, linear-gradient(90deg, #00853f 33.3%, #fdef42 33.3% 66.6%, #e31b23 66.6%); }
.brand-footer { color: #fff !important; }
.brand-footer .brand-title { color: #fff; }
.footer-about { max-width: 40ch; }
.footer-title { color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; break-inside: avoid; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .72) !important; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent) !important; }
.columns-2 { columns: 1; }
.footer-contact { list-style: none; padding: 0; margin: 0 0 18px; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 8px; }
.footer-contact i { color: var(--accent); }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff !important; transition: all .2s; }
.footer-social a:hover { background: var(--accent); color: #111 !important; transform: translateY(-2px); }
.footer-inst { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 40px; }
.footer-col { flex: 0 0 auto; min-width: 0; }
@media (min-width: 1200px) { .footer-inst { flex-wrap: nowrap; } .footer-bullets li { white-space: nowrap; } }
@media (max-width: 1199.98px) { .footer-col { flex: 1 1 calc(50% - 40px); } }
@media (max-width: 575.98px) { .footer-col { flex-basis: 100%; } }
.footer-title-bar { font-size: 1.05rem; letter-spacing: .02em; padding-bottom: 14px; margin-bottom: 20px; position: relative; }
.footer-title-bar::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; border-radius: 2px; background: #fdc82f; }
.footer-bullets { list-style: none; padding: 0; margin: 0; }
.footer-bullets li { position: relative; padding-left: 18px; margin-bottom: 11px; line-height: 1.4; }
.footer-bullets li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.footer-bullets li.sep { padding: 0; height: 0; border-top: 1px dashed rgba(255, 255, 255, .35); margin: 4px 0 14px; width: 110px; }
.footer-bullets li.sep::before { display: none; }
.footer-bullets a, .footer-bullets span { color: rgba(255, 255, 255, .85) !important; text-decoration: none; transition: color .2s, padding .2s; }
.footer-bullets a:hover { color: #fdc82f !important; padding-left: 3px; }
[dir="rtl"] .footer-bullets li { padding-left: 0; padding-right: 18px; }
[dir="rtl"] .footer-bullets li::before { left: auto; right: 0; }
[dir="rtl"] .footer-title-bar::after { left: auto; right: 0; }
.footer-bottom { margin-top: 44px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; }
.footer-bottom a { color: rgba(255, 255, 255, .72) !important; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); z-index: 1000; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------------------------------------------------------- Responsive */
@media (max-width: 1199.98px) {
  .hero-shell { grid-template-columns: 1fr; }
  .hero-rail { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .hero-rail li { flex: 0 0 260px; scroll-snap-align: start; }
  .mega-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-list > li > a, .nav-list > li > button { padding-inline: 10px; font-size: .86rem; }
}
@media (max-width: 991.98px) {
  .card-horizontal { flex-direction: column; }
  .card-horizontal .card-media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .card-horizontal .card-body-news { padding: 20px; }
  .side-sticky { position: static; }
  .brand-title { font-size: 1.25rem; }
  .brand-slogan { max-width: 52vw; }
  .main-nav { display: none; }
}
@media (max-width: 767.98px) {
  body { font-size: 15px; }
  .masthead { padding: 12px 0; }
  .brand-emblem { width: 44px; height: 44px; font-size: 1.3rem; border-radius: 12px; }
  .brand-slogan { display: none; }
  .hero { padding-top: 14px; }
  .hero-stage { aspect-ratio: auto; min-height: 480px; border-radius: 18px; }
  .hero-overlay { padding: 20px 20px 76px; }
  .hero-excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .95rem; }
  .hero-controls { left: 20px; right: auto; }
  .hero-rail li { flex-basis: 78%; }
  .section { padding: 32px 0; }
  .page-hero { padding: 30px 0; }
  .page-hero-ico { width: 54px; height: 54px; font-size: 1.5rem; border-radius: 16px; }
  .page-hero-inner { align-items: flex-start; }
  .card-row .card-media { flex-basis: 112px; }
  .card-overlay { min-height: 360px; }
  .result { grid-template-columns: 96px 1fr; gap: 12px; padding: 12px; }
  .result-excerpt { display: none; }
  .prev-next { grid-template-columns: 1fr; }
  .pn.next { grid-column: auto; }
  .doc-list li { flex-wrap: wrap; }
  .etab-filter { min-width: 0; width: 100%; }
  .search-big-field { padding-left: 16px; }
  .search-big-field .btn { padding: 10px 16px; }
  .lightbox { padding: 60px 10px; }
  .article-figure img { border-radius: 14px; }
  .ticker .container { height: 42px; }
}
@media (min-width: 576px) { .columns-2 { columns: 2; column-gap: 20px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ticker-move { animation: none; }
}

/* ------------------------------------------------------------ Impression */
@media print {
  .utility-bar, .masthead, .main-nav, .ticker, .site-footer, .share-rail, .share-inline, .reading-tools, .report-box, .prev-next, aside, .related, .to-top, .read-progress, .flag-line, .crumbs { display: none !important; }
  body { background: #fff; color: #000; }
  .article-body { font-size: 12pt; }
  .col-lg-7 { width: 100% !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

/* Navigation sur écrans intermédiaires (992–1299 px) */
@media (min-width: 992px) and (max-width: 1299.98px) {
  .nav-list > li > a, .nav-list > li > button { padding-inline: 8px; font-size: .84rem; }
  .nav-list > li > a::after, .nav-list > li > button::after { left: 8px; right: 8px; }
  .nav-cta { padding: 6px 12px !important; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .nav-hide-md { display: none !important; }
  .nav-cta .nav-cta-label { display: none; }
}

/* ---------------------------------------------------- Menus type mesrisenegal.sn */
.utility-bar { position: relative; z-index: 1045; }
.top-menu ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.top-menu > ul > li { position: relative; }
.top-menu > ul > li > a, .top-menu > ul > li > button { display: inline-flex; align-items: center; gap: 4px; color: rgba(255, 255, 255, .9) !important; font-size: .78rem; font-weight: 600; padding: 4px 9px; border-radius: 6px; background: none; border: 0; white-space: nowrap; }
.top-menu > ul > li > a:hover, .top-menu > ul > li > button:hover, .top-menu .has-drop.open > button { background: rgba(255, 255, 255, .12); color: #fff !important; }
.top-menu .bi-chevron-down { font-size: .6rem; }
.top-menu .drop { border-radius: 0 0 12px 12px; top: calc(100% + 6px); min-width: 250px; }
/* Liste déroulante « Nos projets en cours » : éléments empilés verticalement (pas en ligne comme la barre) */
.top-menu .drop, .top-menu .drop ul { display: block; gap: 0; }
.top-menu .drop { padding: 8px; min-width: 300px; }
.top-menu .drop li { display: block; }
.top-menu .drop li a, .top-menu .drop .drop-label { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 12px; font-size: .86rem; font-weight: 500; color: var(--ink) !important; white-space: normal; border-radius: 10px; }
.top-menu .drop .drop-label { cursor: default; }
.top-menu .drop li a:hover, .top-menu .drop .has-sub:hover > .drop-label { background: var(--surface-2); color: var(--primary) !important; }
.top-menu .drop .has-sub > .drop { top: -8px; left: 100%; min-width: 340px; }
.top-menu .has-drop > .drop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* pont de survol : la liste reste ouverte en descendant la souris */
.drop li { position: relative; }
.drop .drop-label { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-size: .9rem; font-weight: 600; cursor: default; }
.drop .has-sub > a, .drop .has-sub > .drop-label { display: flex; }
.drop .has-sub:hover > a, .drop .has-sub:hover > .drop-label, .drop .has-sub:focus-within > .drop-label { background: var(--surface-2); color: var(--primary) !important; }
.drop .has-sub > .drop { top: -8px; left: 100%; border-radius: var(--radius); border-top: 3px solid var(--accent); }
.drop .has-sub:hover > .drop, .drop .has-sub:focus-within > .drop { opacity: 1; visibility: visible; transform: none; }
.nav-list > li:nth-last-child(-n+3) .has-sub > .drop { left: auto; right: 100%; }
.nav-list .drop, .top-menu .drop { max-width: 360px; }
.drop li a, .drop .drop-label { white-space: normal; line-height: 1.35; }
.drop .ext { font-size: .7rem; color: var(--muted); margin-left: 4px; }
.nav-list > li > a .bi-house-door { font-size: 1rem; }
.brand { flex: 1 1 auto; }
.brand-logo.wide { height: auto; max-height: 72px; width: auto; max-width: min(820px, 100%); object-fit: contain; object-position: left center; display: block; }
.brand-footer .brand-logo.wide { background: #fff; padding: 8px 12px; border-radius: 12px; max-height: 70px; }
.masthead-search { flex: 0 0 auto; width: min(360px, 32vw); }
.m-top-title { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 18px 0 4px; }
.mobile-nav summary.m-link, .mobile-nav summary.m-sub { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
@media (max-width: 767.98px) { .brand-logo.wide { max-height: 44px; } }
@media (min-width: 992px) and (max-width: 1199.98px) { .brand-logo.wide { max-height: 56px; } }

/* ------------------------------------------------------ Sélecteur de langue */
.lang-drop { position: relative; }
.utility-bar .container { flex-wrap: nowrap; }
.utility-bar .ms-auto { flex: none; }
@media (min-width: 992px) and (max-width: 1499.98px) { .util-social, .util-social + .util-sep { display: none !important; } }
@media (min-width: 992px) and (max-width: 1199.98px) { .top-menu > ul > li > a, .top-menu > ul > li > button { padding: 4px 6px; font-size: .72rem; } }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.lang-btn:hover, .lang-drop.open .lang-btn { background: rgba(255, 255, 255, .18); }
.lang-btn .bi-chevron-down { font-size: .6rem; transition: transform .2s; }
.lang-drop.open .lang-btn .bi-chevron-down { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; list-style: none; margin: 0; padding: 6px; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-lg); border-top: 3px solid var(--accent); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s var(--ease); z-index: 60; }
.lang-drop.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button { display: flex; width: 100%; gap: 10px; align-items: center; border: 0; background: none; color: var(--ink); text-align: left; padding: 8px 10px; border-radius: 8px; font-size: .88rem; }
.lang-menu button b { width: 26px; font-size: .75rem; color: var(--muted); }
.lang-menu button:hover { background: var(--surface-2); }
.lang-menu button[aria-checked="true"] { background: rgba(var(--primary-rgb), .08); color: var(--primary); font-weight: 700; }
.lang-menu button[aria-checked="true"]::after { content: "✓"; margin-left: auto; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
/* Masquer la barre et les infobulles de Google Traduction */
.skiptranslate iframe, iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
body { top: 0 !important; position: static !important; }
font[style] { background: none !important; box-shadow: none !important; }
/* Arabe : lecture de droite à gauche */
[dir="rtl"] body { font-family: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif; }
[dir="rtl"] .nav-list, [dir="rtl"] .top-menu ul { direction: rtl; }
[dir="rtl"] .drop { left: auto; right: 0; text-align: right; }
[dir="rtl"] .drop .has-sub > .drop { left: auto; right: 100%; }
[dir="rtl"] .bi-arrow-right, [dir="rtl"] .bi-chevron-right { transform: scaleX(-1); }
[dir="rtl"] .article-body blockquote { border-left: 0; border-right: 5px solid var(--c, var(--accent)); border-radius: 16px 0 0 16px; }
[dir="rtl"] .crumbs li + li::before { content: "‹"; margin: 0 0 0 6px; }
[dir="rtl"] .hero-overlay, [dir="rtl"] .card-body-news, [dir="rtl"] .page-hero { text-align: right; }

/* ------------------------------------------- Logo MESRI + nom du ministère (2 lignes) */
.brand { gap: 16px; align-items: center; }
.brand-logo { height: 76px; width: auto; flex: none; object-fit: contain; }
.brand-ministry { display: flex; flex-direction: column; font-family: var(--font-sans); font-weight: 700; font-size: clamp(.74rem, 1.15vw, 1rem); line-height: 1.3; letter-spacing: .04em; color: var(--ink); text-transform: uppercase; padding-left: 16px; border-left: 3px solid #000; min-width: 0; }
[data-theme="dark"] .masthead .brand-ministry { border-left-color: #fff; }
.brand-ministry span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-theme="dark"] .masthead .brand-logo { filter: invert(1) hue-rotate(180deg) brightness(1.1); }
.brand-footer .brand-logo { height: 64px; }
.brand-footer .brand-logo.on-light { background: #fff; border-radius: 10px; padding: 6px; }
.brand-footer .brand-ministry { color: #fff; font-size: .72rem; border-color: #fff; }
@media (max-width: 1199.98px) { .brand-logo { height: 64px; } }
@media (max-width: 767.98px) {
  .brand { gap: 10px; }
  .brand-logo { height: 46px; }
  .brand-ministry { font-size: clamp(6px, calc((100vw - 232px) / 24), 11px); padding-left: 8px; border-left-width: 2px; letter-spacing: 0; }
  .brand-ministry span { white-space: nowrap; overflow: visible; }
}

/* Texte justifié dans les articles et les pages */
.article-body p, .article-body li, .article-body blockquote, .article-body .lead-paragraph { text-align: justify; text-justify: inter-word; }
/* Aucune coupure de mot (pas de trait d'union en fin de ligne) dans les articles et les pages */
.article-body, .article-body *, .page-body, .page-body *, .article-title, .article-subtitle, .page-title { hyphens: manual !important; -webkit-hyphens: manual !important; word-break: normal !important; overflow-wrap: normal; }
.article-body a, .page-body a { overflow-wrap: anywhere; } /* seules les très longues adresses web peuvent passer à la ligne */
[dir="rtl"] .article-body p, [dir="rtl"] .article-body li { text-align: justify; }

/* Bouton lecture des vignettes vidéo : contour animé au survol */
.play::before, .play::after, .media-flag::before, .media-flag::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); opacity: 0; pointer-events: none; }
.play.sm::before, .play.sm::after, .media-flag::before, .media-flag::after { inset: -4px; }
.play::after, .media-flag::after { border-color: var(--accent); }
.video-tile:hover .play::before, .video-row:hover .play::before, .video-thumb:hover .play::before, .video-thumb:focus-visible .play::before, .video-tile:focus-visible .play::before,
.card-news:hover .media-flag:not(.pdf)::before { animation: playRing 1.6s cubic-bezier(.2, .7, .2, 1) infinite; }
.video-tile:hover .play::after, .video-row:hover .play::after, .video-thumb:hover .play::after, .video-thumb:focus-visible .play::after, .video-tile:focus-visible .play::after,
.card-news:hover .media-flag:not(.pdf)::after { animation: playRing 1.6s cubic-bezier(.2, .7, .2, 1) .8s infinite; }
.video-tile:hover .play, .video-row:hover .play, .video-thumb:hover .play { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .55); }
@keyframes playRing { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .play::before, .play::after, .media-flag::before, .media-flag::after { animation: none !important; } }

/* Vidéo en tête d'article (remplace l'image) */
.article-video .ratio { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); background: #000; max-width: 1100px; margin: 0 auto; }
.article-video .ratio iframe { border: 0; }
.article-video figcaption { max-width: 1100px; margin-left: auto; margin-right: auto; }
@media (max-width: 767.98px) { .article-video .ratio { border-radius: 14px; } }

/* ------------------------------------------------------ Indicateur de chargement */
.page-loader { position: fixed; inset: 0; z-index: 2000; pointer-events: none; }
.page-loader-bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; overflow: hidden; opacity: 0; transition: opacity .2s; }
.page-loader-bar span { position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; background: linear-gradient(90deg, #00853f, #fdef42, #e31b23); border-radius: 0 4px 4px 0; }
.page-loader-box { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96); display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 999px; background: var(--surface, #fff); color: var(--ink, #0b1f33); box-shadow: 0 12px 40px rgba(10, 22, 38, .18); font-size: .9rem; font-weight: 600; opacity: 0; transition: opacity .2s, transform .2s; }
.page-loader-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(0, 133, 63, .18); border-top-color: #00853f; border-right-color: #fdc82f; animation: pl-spin .8s linear infinite; }
.page-loader.is-active { pointer-events: auto; cursor: progress; background: rgba(255, 255, 255, .35); backdrop-filter: blur(1.5px); }
[data-theme="dark"] .page-loader.is-active { background: rgba(10, 22, 38, .35); }
.page-loader.is-active .page-loader-bar, .page-loader.is-boot .page-loader-bar { opacity: 1; }
.page-loader.is-active .page-loader-bar span, .page-loader.is-boot .page-loader-bar span { animation: pl-bar 1.1s cubic-bezier(.4, 0, .2, 1) infinite; }
.page-loader.is-active .page-loader-box { opacity: 1; transform: translate(-50%, -50%) scale(1); transition-delay: .25s; }
.page-loader.is-boot { animation: pl-fallback 0s 8s forwards; }
@keyframes pl-bar { 0% { left: -40%; width: 40%; } 60% { left: 45%; width: 55%; } 100% { left: 110%; width: 20%; } }
@keyframes pl-spin { to { transform: rotate(360deg); } }
@keyframes pl-fallback { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .page-loader-bar span { animation-duration: 2.5s !important; } .page-loader-spin { animation-duration: 1.6s; } }
@media print { .page-loader { display: none !important; } }
