/* ==========================================================================
   Portail des CRE — feuille de style du site public (design « Science · Recherche · Innovation »)
   Couleurs de marque et police éditoriale : /theme.css (réglables dans le back-office).
   Police d'interface (titres d'écran, chiffres) : Space Grotesk, fournie localement.
   ========================================================================== */
@font-face { font-family: "Public Sans"; src: url("../lib/fonts/public-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Public Sans"; src: url("../lib/fonts/public-sans-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; src: url("../lib/fonts/source-serif.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; src: url("../lib/fonts/source-serif-ext.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Space Grotesk"; src: url("../lib/fonts/space-grotesk-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; src: url("../lib/fonts/space-grotesk-latin-ext.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --cre-primary: #0b3b60; --cre-primary-rgb: 11, 59, 96;
  --cre-secondary: #00853f; --cre-secondary-rgb: 0, 133, 63;
  --cre-accent: #b3261e; --cre-accent-rgb: 179, 38, 30;
  --cre-font-body: "Public Sans", system-ui, sans-serif;
  --cre-font-heading: "Source Serif 4", Georgia, serif;

  --sci-display: "Space Grotesk", "Public Sans", system-ui, sans-serif;
  --sci-night: #061423;      /* fonds sombres */
  --sci-night-2: #0b2238;
  --sci-cyan: #19c2d6;       /* accent lumineux sur fond sombre */
  --sci-cyan-ink: #0b7285;   /* accent lisible sur fond clair (contraste AA) */
  --sci-pin: #e31b23;        /* rouge des repères de la carte (drapeau) */
  --cre-ink: #0f1d2b; --cre-muted: #556575; --cre-line: #e1e8ee; --cre-tint: #f4f7fa; --cre-paper: #ffffff;
  --cre-radius: 14px; --cre-radius-sm: 8px;
  --sci-shadow: 0 1px 2px rgba(6, 20, 35, .06), 0 12px 32px -12px rgba(6, 20, 35, .18);
  --sci-shadow-lg: 0 2px 4px rgba(6, 20, 35, .06), 0 28px 60px -20px rgba(6, 20, 35, .32);

  --bs-primary: var(--cre-primary); --bs-primary-rgb: var(--cre-primary-rgb);
  --bs-link-color: var(--cre-primary); --bs-link-color-rgb: var(--cre-primary-rgb);
  --bs-link-hover-color-rgb: var(--cre-primary-rgb);
  --bs-body-font-family: var(--cre-font-body); --bs-body-color: var(--cre-ink);
  --bs-border-radius: var(--cre-radius-sm);
}

body { font-family: var(--cre-font-body); color: var(--cre-ink); background: var(--cre-paper); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .h1, .h2, .h3 { font-family: var(--sci-display); font-weight: 650; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
a { text-underline-offset: .18em; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--sci-cyan); outline-offset: 2px; border-radius: 4px; }
.container-narrow { max-width: 820px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 2000; background: var(--sci-night); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--cre-radius-sm) var(--cre-radius-sm); transition: top .15s; }
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Boutons ---------- */
.btn { font-weight: 600; border-radius: 999px; padding: .55rem 1.2rem; }
.btn-sm { padding: .35rem .9rem; }
.btn-lg { padding: .8rem 1.6rem; font-size: 1.05rem; }
.btn-primary { --bs-btn-bg: var(--cre-primary); --bs-btn-border-color: var(--cre-primary); --bs-btn-hover-bg: var(--sci-night-2); --bs-btn-hover-border-color: var(--sci-night-2); --bs-btn-active-bg: var(--sci-night); --bs-btn-active-border-color: var(--sci-night); --bs-btn-disabled-bg: var(--cre-primary); --bs-btn-disabled-border-color: var(--cre-primary); }
.btn-outline-primary { --bs-btn-color: var(--cre-primary); --bs-btn-border-color: rgba(var(--cre-primary-rgb), .35); --bs-btn-hover-bg: var(--cre-primary); --bs-btn-hover-border-color: var(--cre-primary); --bs-btn-active-bg: var(--cre-primary); --bs-btn-active-border-color: var(--cre-primary); }
.btn-glow { --bs-btn-color: #04121f; --bs-btn-bg: var(--sci-cyan); --bs-btn-border-color: var(--sci-cyan); --bs-btn-hover-color: #04121f; --bs-btn-hover-bg: #5fe0ee; --bs-btn-hover-border-color: #5fe0ee; --bs-btn-active-color: #04121f; --bs-btn-active-bg: #5fe0ee; --bs-btn-active-border-color: #5fe0ee; box-shadow: 0 8px 24px -8px rgba(25, 194, 214, .7); }
.btn-ghost-light { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255, 255, 255, .35); --bs-btn-hover-color: #04121f; --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff; --bs-btn-active-color: #04121f; --bs-btn-active-bg: #fff; }
.btn-light { --bs-btn-bg: #fff; }
.btn-icon { width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--cre-line); border-radius: 50%; color: var(--cre-primary); font-size: 1.15rem; padding: 0; background: #fff; }
.btn-icon:hover { border-color: var(--cre-primary); color: var(--cre-primary); }
.form-control, .form-select { border-radius: var(--cre-radius-sm); border-color: #cfd9e2; }
.form-control:focus, .form-select:focus { border-color: var(--sci-cyan-ink); box-shadow: 0 0 0 .2rem rgba(25, 194, 214, .22); }

/* ---------- Barre supérieure ---------- */
.topbar { background: var(--sci-night); color: #b9c8d6; font-size: .8rem; padding: .45rem 0; }
.topbar a { color: #e6eef5; text-decoration: none; }
.topbar a:hover { color: var(--sci-cyan); }
.topbar-org { letter-spacing: .08em; text-transform: uppercase; font-weight: 600; font-size: .7rem; display: inline-flex; align-items: center; gap: .55rem; }
.topbar-flag { display: inline-flex; width: 18px; height: 12px; border-radius: 2px; overflow: hidden; }
.topbar-flag span { flex: 1; }
.topbar-flag span:nth-child(1) { background: #00853f; } .topbar-flag span:nth-child(2) { background: #fdef42; } .topbar-flag span:nth-child(3) { background: #e31b23; }
.topbar-social a { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.topbar-social a:hover { background: rgba(255, 255, 255, .1); }

/* ---------- En-tête et menu ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--cre-line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--cre-ink); min-width: 0; flex: none; }
.brand-logo { height: 52px; width: auto; max-width: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-family: var(--sci-display); font-size: 1.35rem; color: var(--cre-primary); line-height: 1.05; letter-spacing: -.02em; }
.brand-text small { color: var(--cre-muted); font-size: .78rem; }
.main-nav { margin-left: auto; }
.nav-list { gap: .1rem; }
.nav-link-main { position: relative; display: block; padding: .6rem .8rem; font-weight: 600; font-size: .94rem; color: var(--cre-ink); text-decoration: none; background: none; border: 0; border-radius: 999px; transition: color .15s, background .15s; }
.nav-link-main:hover, .nav-link-main.show { color: var(--cre-primary); background: var(--cre-tint); }
.nav-link-main.is-active { color: var(--cre-primary); }
.nav-link-main.is-active::after { content: ""; position: absolute; left: 50%; bottom: .15rem; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--sci-pin); box-shadow: 0 0 0 4px rgba(227, 27, 35, .15); }
.main-nav .dropdown-menu { border: 0; border-radius: var(--cre-radius); margin-top: .35rem !important; box-shadow: var(--sci-shadow-lg); padding: .5rem; min-width: 240px; }
.main-nav .dropdown-item { padding: .55rem .85rem; font-size: .94rem; border-radius: var(--cre-radius-sm); }
.main-nav .dropdown-item:hover, .main-nav .dropdown-item:focus { background: var(--cre-tint); color: var(--cre-primary); }
@media (hover: hover) and (min-width: 992px) {
  .main-nav .dropdown:hover > .dropdown-menu, .main-nav .dropdown:focus-within > .dropdown-menu { display: block; top: 100%; }
  .main-nav .dropdown:hover > .dropdown-menu { margin-top: 0 !important; }
  .main-nav .dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .5rem; }
  .main-nav .dropdown:hover > .nav-link-main { color: var(--cre-primary); background: var(--cre-tint); }
}
.dropdown-item-sub { padding-left: 1.75rem !important; font-size: .9rem !important; color: var(--cre-muted); }
.header-tools { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.main-nav + .header-tools { margin-left: .5rem; }
.header-search { position: relative; align-items: center; width: 210px; }
.header-search > i { position: absolute; left: .85rem; color: var(--cre-muted); pointer-events: none; }
.header-search .form-control { border-radius: 999px; padding-left: 2.3rem; background: var(--cre-tint); border-color: transparent; font-size: .92rem; transition: width .2s, background .2s; }
.header-search .form-control:focus { background: #fff; border-color: var(--sci-cyan-ink); }
.search-suggest { position: absolute; top: calc(100% + 8px); right: 0; width: 360px; z-index: 1050; background: #fff; border-radius: var(--cre-radius); box-shadow: var(--sci-shadow-lg); overflow: hidden; }
.search-suggest a { display: block; padding: .65rem .9rem; text-decoration: none; color: var(--cre-ink); border-bottom: 1px solid var(--cre-line); font-size: .92rem; line-height: 1.35; }
.search-suggest a:last-child { border-bottom: 0; }
.search-suggest a:hover, .search-suggest a:focus { background: var(--cre-tint); }
.search-suggest small { display: block; color: var(--cre-muted); font-size: .75rem; }
.tricolor { display: flex; height: 6px; }
.tricolor span { flex: 1; }
.tricolor span:nth-child(1) { background: #00853f; }
.tricolor span:nth-child(2) { background: #fdef42; position: relative; }
.tricolor span:nth-child(3) { background: #e31b23; }
.site-header .tricolor { height: 14px; }
/* Étoile verte à cinq branches au centre de la bande jaune */
.site-header .tricolor span:nth-child(2)::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; transform: translate(-50%, -50%); background: #00853f; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.tricolor-thin { height: 3px; opacity: .9; }
.mobile-nav > li { border-bottom: 1px solid var(--cre-line); }
.mobile-nav a { display: block; padding: .8rem 0; font-weight: 600; text-decoration: none; color: var(--cre-ink); }
.mobile-nav-title { display: block; padding: .8rem 0 .2rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sci-cyan-ink); font-weight: 700; }
.mobile-nav ul a { padding: .55rem 0 .55rem .9rem; font-weight: 500; }
.mobile-nav-secondary a { font-weight: 500; color: var(--cre-muted); }
.offcanvas { border-left: 0 !important; }

/* ---------- Titres de section ---------- */
.eyebrow { --eyebrow: var(--sci-cyan-ink); display: inline-flex; align-items: center; gap: .55rem; font-family: var(--sci-display); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow); margin: 0 0 .6rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-light { --eyebrow: var(--sci-cyan); }
.display-title { font-size: clamp(1.75rem, 3.6vw, 2.75rem); margin: 0; }
.section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.section-tint { background: var(--cre-tint); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.section-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 1.25rem; }
.section-head .section-title { margin-bottom: 0; }
.section-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .92rem; white-space: nowrap; text-decoration: none; color: var(--cre-primary); padding: .45rem .95rem; border: 1px solid rgba(var(--cre-primary-rgb), .2); border-radius: 999px; transition: background .15s, color .15s, border-color .15s; }
.section-link:hover { background: var(--cre-primary); border-color: var(--cre-primary); color: #fff; }
.section-link i { transition: transform .15s; }
.section-link:hover i { transform: translateX(3px); }
.lead-text { font-size: 1.1rem; color: #33424f; }
.empty-state { color: var(--cre-muted); background: var(--cre-tint); border: 1px dashed #cfd9e2; border-radius: var(--cre-radius); padding: 1.5rem; text-align: center; margin: 0; }
.section-tint .empty-state { background: #fff; }

/* ---------- À la une ---------- */
.hero { position: relative; background: var(--sci-night); isolation: isolate; }
.hero .carousel-item { position: relative; height: clamp(460px, 62vw, 700px); }
.hero-media, .hero-media picture, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; transform: scale(1.04); transition: transform 7s ease-out; }
.hero .carousel-item.active .hero-media img { transform: scale(1); }
.hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(90deg, rgba(6, 20, 35, .92) 0%, rgba(6, 20, 35, .62) 45%, rgba(6, 20, 35, .15) 100%),
  linear-gradient(0deg, rgba(6, 20, 35, .9) 0%, rgba(6, 20, 35, 0) 45%); }
.hero-media::after { content: ""; position: absolute; inset: 0; z-index: 2; opacity: .5; background-image:
  linear-gradient(rgba(25, 194, 214, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(25, 194, 214, .09) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%); mask-image: linear-gradient(90deg, #000 0%, transparent 70%); }
.hero-caption { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; padding-bottom: 5rem; color: #fff; }
.hero-text { max-width: 720px; }
.hero-kicker { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--sci-display); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sci-cyan); margin: 0; padding: .4rem .8rem; border: 1px solid rgba(25, 194, 214, .35); border-radius: 999px; background: rgba(25, 194, 214, .08); }
.hero-kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sci-pin); box-shadow: 0 0 0 0 rgba(227, 27, 35, .6); animation: ping 2s infinite; }
.hero-kicker-sep { opacity: .5; }
.hero-title { font-size: clamp(1.75rem, 4.2vw, 3.3rem); margin: 1.1rem 0 .9rem; line-height: 1.08; }
.hero-title a { color: #fff; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s; }
.hero-title a:hover { background-size: 100% 2px; }
.hero-excerpt { color: #c9d6e2; font-size: 1.1rem; max-width: 60ch; margin-bottom: 1.6rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; font-size: .9rem; color: #b9c8d6; }
.hero-foot i { color: var(--sci-cyan); margin-right: .25rem; }
.hero-nav { position: absolute; left: 0; right: 0; bottom: 4.25rem; z-index: 4; }
.hero-dots { display: flex; gap: .5rem; }
.hero .hero-dots.carousel-indicators { position: static; margin: 0; padding: 0; justify-content: flex-start; z-index: auto; }
.hero .hero-dots [data-bs-target] { box-sizing: border-box; flex: none; width: 54px; height: auto; margin: 0; padding: .6rem 0 0; text-indent: 0; background: none; border: 0; opacity: 1; transition: color .2s; }
.hero-dots button { position: relative; border: 0; background: none; color: rgba(255, 255, 255, .55); font-family: var(--sci-display); font-size: .8rem; font-weight: 600; padding: .6rem 0 0; width: 54px; text-align: left; }
.hero-dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255, 255, 255, .25); }
.hero-dots button::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--sci-cyan); }
.hero-dots button.active { color: #fff; }
.hero-dots button.active::after { width: 100%; transition: width 7s linear; }
.hero-arrows { display: flex; gap: .5rem; }
.hero-arrows button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(6, 20, 35, .3); color: #fff; display: grid; place-items: center; font-size: 1.1rem; backdrop-filter: blur(6px); transition: background .15s, border-color .15s, color .15s; }
.hero-arrows button:hover { background: var(--sci-cyan); border-color: var(--sci-cyan); color: #04121f; }

/* ---------- Bannière d'accueil ---------- */
.banner { position: relative; overflow: hidden; isolation: isolate; color: #c6d4e1; padding: 5.5rem 0 8rem;
  background: radial-gradient(900px 520px at 78% 40%, rgba(25, 194, 214, .2), transparent 62%), radial-gradient(700px 500px at 0% 100%, rgba(var(--cre-primary-rgb), .75), transparent 65%), linear-gradient(160deg, var(--sci-night-2), var(--sci-night) 60%); }
.banner-photo, .banner-photo picture, .banner-photo img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.banner-photo img { object-fit: cover; }
.banner.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 20, 35, .94) 0%, rgba(6, 20, 35, .78) 50%, rgba(6, 20, 35, .55) 100%); }
.banner-grid { position: absolute; inset: 0; z-index: -1; opacity: .55; background-image: linear-gradient(rgba(25, 194, 214, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(25, 194, 214, .08) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 70% 45%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 45%, #000 10%, transparent 70%); }
.banner-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 2.5rem; }
.banner-kicker { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--sci-display); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--sci-cyan); margin: 0; padding: .45rem .9rem; border: 1px solid rgba(25, 194, 214, .35); border-radius: 999px; background: rgba(25, 194, 214, .08); }
.banner-title { font-size: clamp(2.1rem, 5vw, 3.9rem); line-height: 1.04; letter-spacing: -.035em; color: #fff; margin: 1.3rem 0 1.1rem; max-width: 15ch; }
.banner-title::after { content: ""; display: block; width: 84px; height: 4px; margin-top: 1.1rem; border-radius: 4px; background: linear-gradient(90deg, #00853f 0 33%, #fdef42 33% 66%, #e31b23 66%); }
.banner-lead { font-size: 1.15rem; color: #b5c5d4; max-width: 54ch; margin: 0 0 2rem; }
.banner-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.banner-pillars { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 2.2rem 0 0; font-family: var(--sci-display); font-size: .9rem; font-weight: 500; color: #dbe6ef; }
.banner-pillars li { display: inline-flex; align-items: center; gap: .5rem; }
.banner-pillars i { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 9px; color: var(--sci-cyan); background: rgba(25, 194, 214, .12); font-size: .95rem; }
.banner-art { position: relative; }
.banner-art::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 50%; background: radial-gradient(circle, rgba(25, 194, 214, .16), transparent 68%); filter: blur(10px); }
.banner-art svg { position: relative; display: block; width: 100%; height: auto; overflow: visible; }
.banner-land path { fill: url(#banner-land); stroke: rgba(130, 210, 230, .45); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.banner-links line { stroke: rgba(25, 194, 214, .55); stroke-width: 1.2; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; animation: dash-flow 3s linear infinite; }
.banner-pulse { fill: none; stroke: var(--sci-pin); stroke-width: 1.6; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: pin-pulse 3s ease-out infinite; }
.banner-dot { fill: var(--sci-pin); stroke: #fff; stroke-width: 1.4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(227, 27, 35, .95)); }
@keyframes dash-flow { to { stroke-dashoffset: -20; } }

/* ---------- Badges ---------- */
.badge-category { --badge: var(--cre-primary); display: inline-flex; align-items: center; gap: .4rem; background: color-mix(in srgb, var(--badge) 12%, #fff); color: color-mix(in srgb, var(--badge) 80%, #000); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 999px; text-decoration: none; line-height: 1.2; }
.badge-category::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--badge); }
a.badge-category:hover { background: var(--badge); color: #fff; }
a.badge-category:hover::before { background: #fff; }
.badge-center, .badge-region { display: inline-flex; align-items: center; gap: .25rem; font-size: .76rem; font-weight: 600; color: var(--sci-cyan-ink); text-decoration: none; background: rgba(25, 194, 214, .1); padding: .28rem .6rem; border-radius: 999px; line-height: 1.2; }
.badge-center i, .badge-region i { color: var(--sci-pin); }
a.badge-center:hover { background: rgba(25, 194, 214, .2); color: var(--sci-cyan-ink); }

/* ---------- Chiffres clés ---------- */
.stats-band { position: relative; z-index: 5; margin-top: -3.5rem; }
.hero + .stats-band, .banner + .stats-band { margin-top: -3.5rem; }
.stats-band:first-child, h1 + .stats-band { margin-top: 0; padding-top: 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; background: #fff; border-radius: var(--cre-radius); box-shadow: var(--sci-shadow-lg); overflow: hidden; }
.stat { position: relative; padding: 1.6rem 1.4rem 1.5rem; border-left: 1px solid var(--cre-line); display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; }
.stat:first-child { border-left: 0; }
.stat-icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; color: var(--sci-cyan-ink); background: linear-gradient(135deg, rgba(25, 194, 214, .16), rgba(25, 194, 214, .04)); }
.stat dt { font-family: var(--sci-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; line-height: 1; color: var(--cre-ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat dd { margin: .3rem 0 0; font-size: .85rem; color: var(--cre-muted); line-height: 1.35; }

/* ---------- Mission ---------- */
.section-mission { padding-top: 5rem; }
.pillar-card { position: relative; height: 100%; padding: 1.9rem 1.75rem 1.75rem; background: #fff; border: 1px solid var(--cre-line); border-radius: var(--cre-radius); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.pillar-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, var(--sci-cyan), var(--cre-primary)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--sci-shadow); border-color: transparent; }
.pillar-card:hover::after { transform: scaleX(1); }
.pillar-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--cre-primary), var(--sci-night)); box-shadow: 0 10px 24px -10px rgba(var(--cre-primary-rgb), .8); margin-bottom: 1.25rem; }
.pillar-index { position: absolute; top: 1.2rem; right: 1.4rem; font-family: var(--sci-display); font-size: 2.6rem; font-weight: 700; color: var(--cre-tint); line-height: 1; }
.pillar-card h3 { font-size: 1.3rem; margin: 0 0 .5rem; }
.pillar-card p { color: var(--cre-muted); margin: 0; }

/* ---------- Actualités ---------- */
.section-news { background: var(--cre-tint); }
.news-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-auto-rows: 1fr; gap: 1.5rem; }
.news-featured { grid-row: span 2; }
.card-article { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--cre-radius); overflow: hidden; box-shadow: 0 1px 2px rgba(6, 20, 35, .05); border: 1px solid var(--cre-line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-article:hover { transform: translateY(-4px); box-shadow: var(--sci-shadow); border-color: transparent; }
.card-article-media { position: relative; display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #e9f0f5, #dfe8ef); overflow: hidden; }
.card-article-media picture, .card-article-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-article-media img { object-fit: cover; transition: transform .5s; }
.card-article:hover .card-article-media img { transform: scale(1.05); }
.card-article-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #b4c3cf; font-size: 2.5rem; }
.card-article-play { position: absolute; inset: 0; display: grid; place-items: center; }
.card-article-play i { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: rgba(6, 20, 35, .7); color: #fff; font-size: 1.8rem; padding-left: 3px; box-shadow: 0 0 0 8px rgba(255, 255, 255, .18); backdrop-filter: blur(4px); }
.card-article-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.3rem 1.1rem; }
.card-article-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.card-article-title { font-size: 1.12rem; margin: 0 0 .55rem; line-height: 1.3; letter-spacing: -.01em; }
.card-article-title a { color: var(--cre-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-article-title a:hover { color: var(--cre-primary); }
.card-article.is-plain .card-article-title span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-article-text { color: var(--cre-muted); font-size: .93rem; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-article-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .85rem; border-top: 1px solid var(--cre-line); font-size: .82rem; color: var(--cre-muted); }
.card-article-more { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; font-size: .86rem; text-decoration: none; white-space: nowrap; color: var(--cre-primary); }
.card-article-more i { transition: transform .15s; }
.card-article-more:hover i, .card-article:hover .card-article-more i { transform: translateX(3px); }
.card-article-compact .card-article-title { font-size: 1rem; }
.card-article-compact .card-article-media { aspect-ratio: 16 / 9; }
.card-article-featured .card-article-media { aspect-ratio: auto; flex: 1 1 0; min-height: 280px; }
.card-article-featured .card-article-body { flex: 0 0 auto; padding: 1.5rem 1.6rem 1.3rem; }
.card-article-featured .card-article-title { font-size: clamp(1.3rem, 2vw, 1.65rem); }

/* ---------- Réseau des CRE (section sombre) ---------- */
.section-network { position: relative; overflow: hidden; color: #c6d4e1; background: radial-gradient(1200px 600px at 85% 0%, rgba(25, 194, 214, .14), transparent 60%), radial-gradient(900px 500px at 0% 100%, rgba(var(--cre-primary-rgb), .55), transparent 60%), var(--sci-night); }
.section-network::before { content: ""; position: absolute; inset: 0; opacity: .35; background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.section-network-compact { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.network-glow { position: absolute; width: 520px; height: 520px; right: -120px; top: 30%; border-radius: 50%; background: radial-gradient(circle, rgba(227, 27, 35, .16), transparent 65%); pointer-events: none; }
.network-intro { color: #9fb2c4; margin: .9rem 0 0; max-width: 60ch; }
.network-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 0; }
.network-figures > div { padding: 1rem 1.1rem; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--cre-radius); background: rgba(255, 255, 255, .03); }
.network-figures dt { font-family: var(--sci-display); font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1; }
.network-figures dd { margin: .35rem 0 0; font-size: .82rem; color: #9fb2c4; }

/* ---------- Carte interactive ---------- */
[id] { scroll-margin-top: 110px; }
.cre-map { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.25rem; }
.cre-map-stage { position: relative; border-radius: calc(var(--cre-radius) + 4px); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .1); overflow: hidden; min-height: 300px; }
.cre-map-stage::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(25, 194, 214, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(25, 194, 214, .06) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.cre-map-svg { position: relative; display: block; width: 100%; height: auto; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.cre-map.is-zoomed .cre-map-svg { cursor: grab; touch-action: none; }
.cre-map.is-dragging .cre-map-svg { cursor: grabbing; }
.map-region { fill: rgba(255, 255, 255, .06); stroke: rgba(160, 200, 230, .35); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .2s; cursor: pointer; }
.map-region.is-covered { fill: rgba(25, 194, 214, .13); }
.map-region:hover { fill: rgba(25, 194, 214, .26); }
.map-region.is-selected { fill: rgba(25, 194, 214, .3); stroke: var(--sci-cyan); stroke-width: 1.5; }
.map-gambia { fill: rgba(255, 255, 255, .02); stroke: rgba(160, 200, 230, .2); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; pointer-events: none; }
.map-labels text { fill: rgba(200, 220, 236, .55); font-family: var(--sci-display); font-size: 15px; font-weight: 600; letter-spacing: .06em; text-anchor: middle; text-transform: uppercase; pointer-events: none; }
.map-pin { cursor: pointer; outline: none; }
.map-pin-zone { stroke: rgba(255, 70, 70, .55); stroke-width: 1.2; vector-effect: non-scaling-stroke; transition: r .2s; }
.map-pin-pulse { fill: none; stroke: var(--sci-pin); stroke-width: 2; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: pin-pulse 2.6s ease-out infinite; }
.map-pin:nth-child(3n+2) .map-pin-pulse { animation-delay: .9s; }
.map-pin:nth-child(3n) .map-pin-pulse { animation-delay: 1.7s; }
.map-pin-dot { fill: var(--sci-pin); stroke: #fff; stroke-width: 2.4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(227, 27, 35, .9)); }
.map-pin-shape { transform-box: fill-box; transform-origin: center; transition: transform .18s; }
.map-pin:hover .map-pin-shape, .map-pin:focus-visible .map-pin-shape, .map-pin.is-active .map-pin-shape, .map-pin.is-hover .map-pin-shape { transform: scale(1.35); }
.map-pin:focus-visible .map-pin-dot { stroke: var(--sci-cyan); stroke-width: 3; }
.map-pin.is-pending .map-pin-dot { fill: #fff; stroke: var(--sci-pin); }
.map-pin.is-clustered, .map-pin.is-muted { display: none; }
.map-cluster { cursor: pointer; }
.map-cluster-zone { fill: rgba(227, 27, 35, .14); stroke: rgba(255, 70, 70, .5); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.map-cluster-pulse { fill: none; stroke: var(--sci-pin); stroke-width: 2; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: pin-pulse 2.6s ease-out infinite; }
.map-cluster-dot { fill: var(--sci-pin); stroke: #fff; stroke-width: 2.4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 8px rgba(227, 27, 35, .9)); transition: transform .15s; transform-box: fill-box; transform-origin: center; }
.map-cluster:hover .map-cluster-dot { transform: scale(1.12); }
.map-cluster text { fill: #fff; font-family: var(--sci-display); font-size: 15px; font-weight: 700; text-anchor: middle; pointer-events: none; }
@keyframes pin-pulse { 0% { transform: scale(.35); opacity: .95; } 80%, 100% { transform: scale(1.45); opacity: 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(227, 27, 35, .6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(227, 27, 35, 0); } }

.map-controls { position: absolute; top: 1rem; right: 1rem; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: rgba(6, 20, 35, .7); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); }
.cre-map:not(.is-interactive) .map-controls { display: none; }
.map-controls button { width: 40px; height: 40px; border: 0; background: none; color: #e6eef5; display: grid; place-items: center; font-size: 1rem; }
.map-controls button + button { border-top: 1px solid rgba(255, 255, 255, .1); }
.map-controls button:hover { background: var(--sci-cyan); color: #04121f; }
.map-legend { position: absolute; left: 1rem; bottom: 1rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .76rem; color: #b9c8d6; padding: .5rem .8rem; border-radius: 10px; background: rgba(6, 20, 35, .65); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(8px); }
.map-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.legend-pin { width: 12px; height: 12px; border-radius: 50%; background: var(--sci-pin); border: 2px solid #fff; box-shadow: 0 0 0 5px rgba(227, 27, 35, .25); }
.legend-cluster { width: 20px; height: 20px; border-radius: 50%; background: var(--sci-pin); border: 2px solid #fff; color: #fff; font-style: normal; font-size: .65rem; font-weight: 700; display: grid; place-items: center; }

.map-tooltip { position: absolute; z-index: 5; width: 250px; transform: translate(-50%, calc(-100% - 18px)); background: #fff; color: var(--cre-ink); border-radius: 12px; padding: .9rem 1rem .85rem; box-shadow: 0 18px 48px -12px rgba(0, 0, 0, .55); pointer-events: auto; }
.map-tooltip::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.map-tooltip.is-below { transform: translate(-50%, 18px); }
.map-tooltip.is-below::after { bottom: auto; top: -7px; }
.map-tooltip p { margin: 0; }
.map-tooltip-kicker { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--sci-pin); margin-bottom: .2rem !important; }
.map-tooltip-title { font-family: var(--sci-display); font-weight: 700; font-size: 1.05rem; line-height: 1.2; margin-bottom: .45rem !important; }
.map-tooltip-meta { font-size: .82rem; color: var(--cre-muted); margin-bottom: .2rem !important; }
.map-tooltip-meta i { color: var(--sci-cyan-ink); margin-right: .2rem; }
.map-tooltip-meta em { font-size: .74rem; }
.map-tooltip-link { display: inline-flex; align-items: center; gap: .3rem; margin-top: .55rem; font-weight: 600; font-size: .85rem; text-decoration: none; color: var(--cre-primary); }
.map-tooltip-link:hover { text-decoration: underline; }
.map-tooltip-list { margin: .3rem 0 .4rem; padding-left: 1rem; font-size: .85rem; }
.map-tooltip-hint { font-size: .76rem; color: var(--cre-muted); }

.cre-map-panel { display: flex; flex-direction: column; height: 0; min-height: 100%; border-radius: calc(var(--cre-radius) + 4px); border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); overflow: hidden; }
.cre-map-panel-head { padding: .9rem; display: grid; gap: .5rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.cre-map-search { position: relative; }
.cre-map-search i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: #8aa1b5; font-size: .9rem; }
.cre-map-search input { width: 100%; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff; border-radius: 999px; padding: .5rem .9rem .5rem 2.2rem; font-size: .9rem; }
.cre-map-search input::placeholder { color: #8aa1b5; }
.cre-map-search input:focus { outline: none; border-color: var(--sci-cyan); background: rgba(255, 255, 255, .1); }
.cre-map-panel .form-select { background-color: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #e6eef5; border-radius: 999px; --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23b9c8d6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.cre-map-panel .form-select option { color: var(--cre-ink); }
.cre-map-list { margin: 0; overflow-y: auto; flex: 1; padding: .35rem; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.cre-map-list-item { width: 100%; border: 0; background: none; text-align: left; font: inherit; }
.cre-map-list a, .cre-map-list-item { display: flex; align-items: center; gap: .7rem; padding: .6rem .65rem; border-radius: 10px; text-decoration: none; color: #e6eef5; transition: background .15s; }
.cre-map-list-item:hover, .cre-map-list li.is-active .cre-map-list-item, .cre-map-list a:hover, .cre-map-list li.is-active a { background: rgba(25, 194, 214, .12); }
.cre-map-list-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--sci-pin); box-shadow: 0 0 0 4px rgba(227, 27, 35, .2); }
.cre-map-list-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.cre-map-list-text strong { font-weight: 600; font-size: .92rem; }
.cre-map-list-text small { color: #8aa1b5; font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cre-map-list-count { flex: none; font-family: var(--sci-display); font-size: .74rem; font-weight: 700; color: var(--sci-cyan); border: 1px solid rgba(25, 194, 214, .35); border-radius: 999px; padding: .1rem .5rem; }
.cre-map-empty { color: #8aa1b5; font-size: .9rem; padding: 1rem; margin: 0; text-align: center; }

/* ---------- Domaines d'innovation ---------- */
.domain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0; }
.domain-card { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: .9rem; row-gap: .35rem; align-items: center; padding: 1.2rem 1.25rem; border-radius: var(--cre-radius); border: 1px solid var(--cre-line); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.domain-card:hover { border-color: transparent; box-shadow: var(--sci-shadow); transform: translateY(-3px); }
.domain-icon { grid-row: span 3; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; color: var(--sci-cyan-ink); background: linear-gradient(135deg, rgba(25, 194, 214, .18), rgba(25, 194, 214, .04)); }
.domain-name { font-family: var(--sci-display); font-weight: 600; line-height: 1.25; font-size: .98rem; }
.domain-meter { display: block; height: 4px; border-radius: 4px; background: var(--cre-tint); overflow: hidden; }
.domain-meter span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--sci-cyan), var(--cre-primary)); }
.domain-count { font-size: .78rem; color: var(--cre-muted); }

/* ---------- Appel à l'action ---------- */
.cta-band { padding: 0 0 4.5rem; }
.cta-inner { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; padding: 2.5rem 2.75rem; border-radius: calc(var(--cre-radius) + 6px); color: #c6d4e1; background: radial-gradient(600px 300px at 100% 0%, rgba(25, 194, 214, .28), transparent 60%), linear-gradient(135deg, var(--cre-primary), var(--sci-night)); }
.cta-inner::before { content: ""; position: absolute; inset: 0; opacity: .35; background-image: radial-gradient(rgba(255, 255, 255, .25) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.cta-inner > * { position: relative; }
.cta-inner h2 { color: #fff; font-size: clamp(1.35rem, 2.6vw, 1.9rem); margin: 0 0 .4rem; }
.cta-inner p { margin: 0; }

/* ---------- En-tête de page ---------- */
.page-head { position: relative; overflow: hidden; color: #c6d4e1; padding: 2.75rem 0 3rem; background: radial-gradient(800px 400px at 90% -20%, rgba(25, 194, 214, .22), transparent 60%), linear-gradient(135deg, var(--cre-primary), var(--sci-night) 75%); }
.page-head::after { content: ""; position: absolute; inset: 0; opacity: .4; background-image: linear-gradient(rgba(25, 194, 214, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(25, 194, 214, .1) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); pointer-events: none; }
.page-head .container { position: relative; z-index: 1; }
.breadcrumb { font-size: .82rem; --bs-breadcrumb-divider: "›"; --bs-breadcrumb-divider-color: #7f97ab; --bs-breadcrumb-item-active-color: #c6d4e1; margin-bottom: 0; }
.page-head .breadcrumb a { color: #fff; text-decoration: none; }
.page-head .breadcrumb a:hover { color: var(--sci-cyan); }
.breadcrumb a { text-decoration: none; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: .9rem 0 0; color: #fff; }
.page-intro { color: #a9bccd; margin: .7rem 0 0; max-width: 70ch; font-size: 1.05rem; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1.5rem; padding: .75rem; background: var(--cre-tint); border-radius: var(--cre-radius); }
.filter-bar .form-control { flex: 1 1 260px; background: #fff; }
.filter-bar .form-select { flex: 0 1 260px; background-color: #fff; }
.result-count { color: var(--cre-muted); font-size: .9rem; margin-bottom: 1.25rem; }
.pagination-wrap { margin-top: 2.5rem; display: flex; justify-content: center; }
.pagination-wrap nav { width: 100%; }
.pagination { --bs-pagination-color: var(--cre-primary); --bs-pagination-hover-color: var(--cre-primary); --bs-pagination-active-bg: var(--cre-primary); --bs-pagination-active-border-color: var(--cre-primary); --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(25, 194, 214, .25); --bs-pagination-border-radius: 999px; flex-wrap: wrap; gap: .3rem; }
.pagination .page-link { border-radius: 999px !important; min-width: 40px; text-align: center; }

/* ---------- Article ---------- */
.article-head { padding: 2rem 0 1.25rem; }
.article-title { font-size: clamp(1.85rem, 4.2vw, 2.9rem); margin: .9rem 0 .7rem; line-height: 1.12; }
.article-subtitle { font-size: 1.2rem; color: #33424f; margin-bottom: .8rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; color: var(--cre-muted); font-size: .88rem; margin: 0; padding-top: .9rem; border-top: 1px solid var(--cre-line); }
.article-meta i { color: var(--sci-cyan-ink); }
.article-figure { margin: 0 auto 2rem; }
.article-figure img { width: 100%; border-radius: var(--cre-radius); }
.article-video { margin-bottom: 2rem; }
.article-video iframe { border: 0; border-radius: var(--cre-radius); }
.article-body { font-size: 1.125rem; line-height: 1.75; overflow-wrap: break-word; }
.article-body > * { max-width: 70ch; }
.article-body p { margin-bottom: 1.25em; }
.article-body h2, .article-body h3 { font-family: var(--cre-font-heading); letter-spacing: -.01em; }
.article-body h2 { font-size: 1.55rem; margin: 2em 0 .7em; }
.article-body h3 { font-size: 1.25rem; margin: 1.7em 0 .6em; }
.article-body ul, .article-body ol { margin-bottom: 1.25em; padding-left: 1.3em; }
.article-body li { margin-bottom: .4em; }
.article-body img { border-radius: var(--cre-radius-sm); margin: 1em 0; }
.article-body blockquote { border-left: 3px solid var(--sci-cyan); background: var(--cre-tint); padding: .9rem 1.2rem; margin: 1.5em 0; font-family: var(--cre-font-heading); font-size: 1.2rem; color: #33424f; border-radius: 0 var(--cre-radius-sm) var(--cre-radius-sm) 0; }
.article-body table { width: 100%; max-width: 100%; border-collapse: collapse; margin-bottom: 1.25em; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid var(--cre-line); padding: .5rem .7rem; }
.article-body .lead { font-size: .95rem; color: var(--cre-muted); font-weight: 400; border-left: 3px solid var(--sci-cyan); padding-left: .9rem; }
.article-pdf { display: flex; align-items: center; gap: 1rem; background: var(--cre-tint); border: 1px solid var(--cre-line); border-radius: var(--cre-radius); padding: 1rem 1.15rem; margin: 2rem 0; }
.article-pdf > i { font-size: 2rem; color: var(--cre-accent); }
.article-pdf div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.article-pdf span { font-size: .85rem; color: var(--cre-muted); }
.article-gallery { margin: 2.5rem 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.gallery-item { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--cre-radius-sm); background: var(--cre-tint); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.article-source { font-size: .88rem; color: var(--cre-muted); }
.article-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; margin-top: 2rem; border-top: 1px solid var(--cre-line); border-bottom: 1px solid var(--cre-line); }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.share-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--cre-muted); margin-right: .4rem; }
.share-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--cre-line); border-radius: 50%; color: var(--cre-primary); background: #fff; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.share-btn:hover { background: var(--cre-primary); border-color: var(--cre-primary); color: #fff; }
.btn-report { color: var(--cre-muted); font-size: .9rem; text-decoration: none; padding: .4rem 0; border-radius: 0; }
.btn-report:hover { color: var(--cre-accent); }
.report-form { background: var(--cre-tint); border: 1px solid var(--cre-line); border-radius: var(--cre-radius); padding: 1.5rem; margin-top: 1.25rem; }
.hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; } /* sans décalage à gauche : sinon débordement en arabe */
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0 3rem; }
.article-nav-link { display: block; text-decoration: none; padding: 1rem 1.15rem; border: 1px solid var(--cre-line); border-radius: var(--cre-radius); color: var(--cre-ink); transition: border-color .15s, box-shadow .15s; }
.article-nav-link:hover { border-color: transparent; box-shadow: var(--sci-shadow); }
.article-nav-link span { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sci-cyan-ink); font-weight: 700; margin-bottom: .3rem; }
.article-nav-link strong { font-family: var(--sci-display); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.recent-list li { display: grid; grid-template-columns: 150px 1fr auto; gap: 1rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid var(--cre-line); }
.recent-list time, .recent-cat { font-size: .82rem; color: var(--cre-muted); }
.recent-list a { font-weight: 600; color: var(--cre-ink); text-decoration: none; }
.recent-list a:hover { color: var(--cre-primary); text-decoration: underline; }

/* ---------- Fiches CRE ---------- */
.card-center { position: relative; height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--cre-line); border-radius: var(--cre-radius); padding: 1.35rem 1.4rem; overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card-center::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--sci-pin), var(--sci-cyan)); }
.card-center:hover { transform: translateY(-3px); box-shadow: var(--sci-shadow); border-color: transparent; }
.card-center-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; }
.card-center-title { font-size: 1.15rem; margin: 0; }
.card-center-title a { color: var(--cre-ink); text-decoration: none; }
.card-center-title a:hover { color: var(--cre-primary); }
.badge-region { white-space: nowrap; }
.tag-list { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.tag-list li { font-size: .76rem; background: var(--cre-tint); border-radius: 999px; padding: .2rem .6rem; color: #33424f; }
.tag-list .tag-more { background: none; border: 1px dashed #cfd9e2; color: var(--cre-muted); }
.tag-list-lg li { font-size: .9rem; padding: .4rem .8rem; }
.card-center-contact { font-size: .9rem; margin-bottom: 1rem; display: grid; gap: .35rem; }
.card-center-contact i { color: var(--sci-cyan-ink); margin-right: .35rem; }
.card-center-contact a { color: var(--cre-ink); overflow-wrap: anywhere; }
.card-center > .card-article-more { margin-top: auto; padding-top: .85rem; border-top: 1px solid var(--cre-line); white-space: normal; }
.side-card { background: var(--cre-tint); border-radius: var(--cre-radius); padding: 1.5rem; }
.side-card-title { font-size: 1.15rem; margin-bottom: 1rem; }
.search-form { margin-bottom: 1.5rem; }
.result-links { margin-bottom: 2rem; display: grid; gap: .1rem; }
.result-links li { padding: .55rem 0; border-bottom: 1px solid var(--cre-line); }
.result-links a { font-weight: 600; text-decoration: none; }
.result-links a:hover { text-decoration: underline; }
.result-links span { color: var(--cre-muted); font-size: .85rem; margin-left: .5rem; }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--sci-night); color: #9fb2c4; font-size: .93rem; }
.footer-grid-bg { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(25, 194, 214, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(25, 194, 214, .06) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 80% 0%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 80% 0%, #000, transparent 70%); }
.footer-title { font-family: var(--sci-display); font-size: 1.3rem; color: #fff; font-weight: 650; margin-bottom: .6rem; letter-spacing: -.01em; }
.footer-text { max-width: 46ch; }
.footer-motto { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 1.25rem; }
.footer-motto span { font-family: var(--sci-display); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sci-cyan); border: 1px solid rgba(25, 194, 214, .3); border-radius: 999px; padding: .25rem .65rem; }
.footer-heading { font-family: var(--sci-display); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: #fff; font-weight: 600; margin-bottom: .9rem; }
.footer-links { display: grid; gap: .5rem; margin: 0; }
.site-footer a { color: #d5e1eb; text-decoration: none; }
.site-footer a:hover { color: var(--sci-cyan); }
.footer-social a { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; transition: background .15s, color .15s, border-color .15s; }
.footer-social a:hover { background: var(--sci-cyan); border-color: var(--sci-cyan); color: #04121f; }
.footer-bottom { padding: 1rem 0; font-size: .82rem; color: #7f97ab; position: relative; }

/* ---------- Visionneuse de galerie ---------- */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(6, 14, 22, .94); display: grid; place-items: center; padding: 3.5rem 1rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: #dbe6ef; font-size: .9rem; margin-top: .75rem; text-align: center; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.3rem; display: grid; place-items: center; }
.lightbox button:hover { background: var(--sci-cyan); color: #04121f; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ---------- Pages d'erreur ---------- */
.error-page { min-height: 100vh; display: grid; place-items: center; background: var(--cre-tint); }
.error-box { text-align: center; padding: 2rem; max-width: 520px; }
.error-code { font-family: var(--sci-display); font-size: 5.5rem; font-weight: 700; line-height: 1; color: var(--cre-primary); margin: 0; letter-spacing: -.04em; }

/* ---------- Adaptation ---------- */
@media (max-width: 1199.98px) {
  .nav-link-main { padding: .55rem .6rem; font-size: .9rem; }
  .cre-map { grid-template-columns: minmax(0, 1fr) 280px; }
  .domain-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991.98px) {
  .topbar-links { display: none !important; }
  .banner { padding: 3.5rem 0 7rem; }
  .banner-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .banner-art { max-width: 560px; width: 100%; margin: 0 auto; }
  .banner-title { max-width: none; }
  .header-inner { min-height: 66px; }
  .brand-logo { height: 44px; }
  .section { padding-top: 3.25rem; padding-bottom: 3.25rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--cre-line); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-featured { grid-column: span 2; grid-row: auto; }
  .card-article-featured .card-article-media { aspect-ratio: 16 / 8; min-height: 0; }
  .cre-map { grid-template-columns: 1fr; }
  .cre-map-panel { height: auto; min-height: 0; max-height: 340px; }
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
  body { font-size: 1rem; }
  .banner { padding: 2rem 0 6rem; }
  .banner-art { max-width: 340px; }
  .banner-lead { font-size: 1.02rem; }
  .banner-actions .btn { flex: 1 1 100%; }
  .hero .carousel-item { height: clamp(480px, 120vw, 600px); }
  .hero-caption { align-items: flex-end; padding-bottom: 8.5rem; }
  .hero-media::before { background: linear-gradient(0deg, rgba(6, 20, 35, .95) 10%, rgba(6, 20, 35, .35) 70%, rgba(6, 20, 35, .2) 100%); }
  .hero-excerpt { display: none; }
  .hero-nav { bottom: 4.5rem; }
  .hero-arrows { display: none; }
  .stats-band, .hero + .stats-band, .banner + .stats-band { margin-top: -3rem; }
  .stat { padding: 1.1rem 1rem; grid-template-columns: 1fr; text-align: left; row-gap: .5rem; }
  .stat-icon { grid-row: auto; width: 38px; height: 38px; font-size: 1.05rem; }
  .section-head { flex-wrap: wrap; align-items: flex-start; }
  .news-grid { grid-template-columns: 1fr; }
  .news-featured { grid-column: auto; }
  .network-figures dt { font-size: 1.5rem; }
  .map-legend { position: static; margin: 0; border-radius: 0; border-width: 1px 0 0; background: rgba(6, 20, 35, .4); }
  .map-tooltip { width: 220px; }
  .domain-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 2rem 1.5rem; }
  .article-body { font-size: 1.0625rem; }
  .article-nav { grid-template-columns: 1fr; }
  .recent-list li { grid-template-columns: 1fr; gap: .15rem; }
  .article-pdf { flex-wrap: wrap; }
  .filter-bar .form-select { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .carousel-fade .carousel-item { transition: none !important; }
  .hero-media img { transform: none !important; }
}
@media print {
  .topbar, .site-header, .site-footer, .article-actions, .article-nav, #signaler, .section-tint, .btn-icon, .cre-map, .cta-band { display: none !important; }
  .page-head { background: none; color: var(--cre-ink); }
  .page-title { color: var(--cre-ink); }
  .article-body > * { max-width: none; }
}

/* ---------- Sélecteur de langue ---------- */
.lang-switch { flex: none; margin: 0; }
.header-inner > .lang-switch:nth-child(2) { margin-inline-start: auto; } /* page sans menu : sélecteur aligné à droite */
.lang-current { display: inline-flex; align-items: center; gap: .4rem; height: 42px; padding: 0 .8rem; border: 1px solid var(--cre-line); border-radius: 999px; background: #fff; color: var(--cre-primary); font-family: var(--sci-display); font-weight: 600; font-size: .9rem; letter-spacing: .04em; transition: border-color .15s, background .15s; }
.lang-current:hover, .lang-current[aria-expanded="true"] { border-color: var(--cre-primary); background: var(--cre-tint); }
.lang-current .bi-translate { font-size: 1.05rem; color: var(--sci-cyan-ink); }
.lang-caret { font-size: .7rem; transition: transform .2s; }
.lang-current[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-switch .dropdown-menu { border: 0; border-radius: var(--cre-radius); box-shadow: var(--sci-shadow-lg); padding: .4rem; min-width: 190px; margin-top: .4rem !important; }
.lang-switch .dropdown-item { display: flex; align-items: center; gap: .65rem; border-radius: var(--cre-radius-sm); padding: .55rem .75rem; font-weight: 500; }
.lang-switch .dropdown-item:hover, .lang-switch .dropdown-item:focus { background: var(--cre-tint); color: var(--cre-primary); }
.lang-switch .dropdown-item.active, .lang-switch .dropdown-item:active { background: var(--cre-primary); color: #fff; }
.lang-code { width: 30px; height: 24px; display: inline-grid; place-items: center; border-radius: 6px; background: var(--cre-tint); color: var(--cre-primary); font-family: var(--sci-display); font-size: .72rem; font-weight: 700; }
.lang-switch .dropdown-item.active .lang-code { background: rgba(255, 255, 255, .2); color: #fff; }
/* Transition fluide lors du changement de langue */
html body { transition: opacity .2s ease, filter .2s ease; }
html.lang-leaving body { opacity: 0; filter: blur(2px); }
html.lang-entering body { opacity: 0; transition: none; }

/* ---------- Arabe (écriture de droite à gauche) ---------- */
@font-face { font-family: "Noto Kufi Arabic"; src: url("../lib/fonts/noto-kufi-arabic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Noto Sans Arabic"; src: url("../lib/fonts/noto-sans-arabic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
html[lang="ar"] { --sci-display: "Noto Kufi Arabic", "Space Grotesk", system-ui, sans-serif; --cre-font-body: "Noto Sans Arabic", "Public Sans", system-ui, sans-serif; --cre-font-heading: "Noto Kufi Arabic", system-ui, sans-serif; }
html[lang="ar"] body { font-family: var(--cre-font-body); line-height: 1.75; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .banner-title { letter-spacing: 0; line-height: 1.35; }
html[lang="ar"] .eyebrow, html[lang="ar"] .banner-kicker, html[lang="ar"] .hero-kicker, html[lang="ar"] .footer-heading, html[lang="ar"] .footer-motto span, html[lang="ar"] .topbar-org, html[lang="ar"] .badge-category, html[lang="ar"] .map-tooltip-kicker, html[lang="ar"] .map-labels text { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .bi-arrow-right, [dir="rtl"] .bi-arrow-left, [dir="rtl"] .bi-chevron-right, [dir="rtl"] .bi-chevron-left { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .section-link:hover i, [dir="rtl"] .card-article-more:hover i, [dir="rtl"] .card-article:hover .card-article-more i { transform: scaleX(-1) translateX(3px); }
[dir="rtl"] .main-nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .header-tools { margin-left: 0; margin-right: auto; }
[dir="rtl"] .main-nav + .header-tools { margin-right: .5rem; }
[dir="rtl"] .header-search > i { left: auto; right: .85rem; }
[dir="rtl"] .header-search .form-control { padding-left: .75rem; padding-right: 2.3rem; }
[dir="rtl"] .search-suggest { right: auto; left: 0; }
[dir="rtl"] .eyebrow::before { order: 0; }
[dir="rtl"] .pillar-index { right: auto; left: 1.4rem; }
[dir="rtl"] .card-center::before { background: linear-gradient(270deg, var(--sci-pin), var(--sci-cyan)); }
[dir="rtl"] .article-body blockquote { border-left: 0; border-right: 3px solid var(--sci-cyan); border-radius: var(--cre-radius-sm) 0 0 var(--cre-radius-sm); }
[dir="rtl"] .article-body .lead { border-left: 0; padding-left: 0; border-right: 3px solid var(--sci-cyan); padding-right: .9rem; }
[dir="rtl"] .cre-map-search i { left: auto; right: .8rem; }
[dir="rtl"] .cre-map-search input { padding: .5rem 2.2rem .5rem .9rem; }
[dir="rtl"] .cre-map-list-item { text-align: right; }
[dir="rtl"] .article-nav-link.text-end { text-align: left !important; }
/* La carte garde son orientation géographique */
[dir="rtl"] .cre-map-stage { direction: ltr; }
[dir="rtl"] .cre-map-stage .map-tooltip, [dir="rtl"] .cre-map-stage .map-legend { direction: rtl; text-align: right; }
[dir="rtl"] .banner-art svg { direction: ltr; }

/* Le drapeau garde l'ordre vert-jaune-rouge ; les nombres (« 20 000 », « 75 % ») restent lisibles en arabe */
.tricolor, .topbar-flag { direction: ltr; }
[dir="rtl"] .stat dt, [dir="rtl"] .network-figures dt, [dir="rtl"] .cre-map-list-count { direction: ltr; unicode-bidi: isolate; text-align: right; }

/* En-tête sur petit écran : logo, recherche, menu et langue tiennent sur une ligne */
@media (max-width: 575.98px) {
  .header-inner { gap: .5rem; }
  .brand { min-width: 0; flex: 1 1 auto; }
  .brand-logo { height: 38px; max-width: 100%; }
  .header-tools { gap: .35rem; }
  .btn-icon, .lang-current { height: 38px; }
  .btn-icon { width: 38px; }
  .lang-current { padding: 0 .55rem; gap: .25rem; }
  .lang-caret { display: none; }
}
