/* =========================================================================
   Charte graphique — République Démocratique du Congo
   Couleurs du drapeau national : bleu ciel, jaune, rouge.
     Bleu ciel  #007FFF  (bleu du drapeau : bandes, filets, icônes)
     Bleu RDC   #0057B8  (couleur principale des boutons et liens, contraste AA)
     Jaune      #F7D618  (étoile et liserés : accents, soulignements)
     Rouge      #CE1021  (diagonale : alertes, accents secondaires)
     Bleu nuit  #0B2545  (bandeau institutionnel, pied de page, titres)
   ========================================================================= */

:root {
  --rdc-bleu-ciel: #007fff;
  --rdc-bleu: #0057b8;
  --rdc-bleu-fonce: #00489a;
  --rdc-jaune: #f7d618;
  --rdc-rouge: #ce1021;
  --rdc-nuit: #0b2545;
  --rdc-fond: #f3f6fa;
  /* Bande « drapeau » : champ bleu traversé par la diagonale rouge bordée de jaune */
  --rdc-drapeau: linear-gradient(100deg,
      var(--rdc-bleu-ciel) 0 43%,
      var(--rdc-jaune) 43% 45.5%,
      var(--rdc-rouge) 45.5% 54.5%,
      var(--rdc-jaune) 54.5% 57%,
      var(--rdc-bleu-ciel) 57% 100%);
}

/* ---------- Thème DaisyUI « rdc » (couleurs au format OKLCH) ---------- */
[data-theme="rdc"] {
  color-scheme: light;
  --p: 47.37% 0.1693 257.17;    /* bleu RDC #0057B8 */
  --pc: 100% 0 0;
  --s: 54.04% 0.2134 25.82;     /* rouge #CE1021 */
  --sc: 100% 0 0;
  --a: 87.76% 0.1777 97.56;     /* jaune #F7D618 */
  --ac: 26.40% 0.0678 255.34;
  --n: 26.40% 0.0678 255.34;    /* bleu nuit #0B2545 */
  --nc: 100% 0 0;
  --b1: 100% 0 0;
  --b2: 97.20% 0.0062 255.47;
  --b3: 92.91% 0.0138 258.35;
  --bc: 25.49% 0.0313 260.42;
  --in: 61.31% 0.2120 256.33;   /* bleu ciel du drapeau */
  --inc: 26.40% 0.0678 255.34;
  --su: 52.73% 0.1371 150.07;
  --suc: 100% 0 0;
  --wa: 55.53% 0.1455 49.00;
  --wac: 100% 0 0;
  --er: 54.04% 0.2134 25.82;
  --erc: 100% 0 0;
  --rounded-box: 0.75rem;
  --rounded-btn: 0.5rem;
  --rounded-badge: 1.9rem;
  --animation-btn: 0.2s;
  --animation-input: 0.2s;
  --btn-focus-scale: 0.97;
  --border-btn: 1px;
  --tab-border: 1px;
  --tab-radius: 0.5rem;
}

body { background-color: var(--rdc-fond); color: #1a2332; }

/* ---------- Bandeau institutionnel ---------- */
.rdc-topbar {
  background: var(--rdc-nuit);
  color: #dbe6f5;
  font-size: 12px;
  letter-spacing: .04em;
}
.rdc-topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1280px; margin: 0 auto; padding: 6px 16px;
}
.rdc-topbar__country { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-transform: uppercase; }
.rdc-topbar__motto { color: var(--rdc-jaune); font-style: italic; letter-spacing: .02em; white-space: nowrap; }

/* Petit drapeau dessiné en CSS (aucune image) */
.rdc-flag {
  position: relative; display: inline-block; width: 24px; height: 16px; flex: none;
  border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25);
  background: linear-gradient(146deg,
      var(--rdc-bleu-ciel) 0 38%,
      var(--rdc-jaune) 38% 43%,
      var(--rdc-rouge) 43% 57%,
      var(--rdc-jaune) 57% 62%,
      var(--rdc-bleu-ciel) 62% 100%);
}
.rdc-flag::before {
  content: "\2605"; position: absolute; left: 2px; top: -2px;
  color: var(--rdc-jaune); font-size: 8px; line-height: 1;
}

/* Bande aux couleurs du drapeau sous la barre de navigation et au-dessus du pied de page */
.rdc-band { height: 5px; background: var(--rdc-drapeau); }

/* ---------- Barre de navigation ---------- */
.navbar.navbar-shadow { box-shadow: 0 2px 10px rgba(11, 37, 69, .08); }
.navbar .menu-horizontal > li > a,
.navbar .menu-horizontal > li > details > summary { color: var(--rdc-nuit); border-radius: .5rem; }
.navbar .menu-horizontal > li > a:hover,
.navbar .menu-horizontal > li > details > summary:hover,
.navbar .menu-horizontal > li > details[open] > summary {
  background: var(--rdc-bleu); color: #fff;
}
.mega-menu-title {
  color: var(--rdc-bleu) !important;
  border-bottom: 2px solid var(--rdc-jaune) !important;
  letter-spacing: .04em;
}

/* ---------- Titres et liens ---------- */

/* Titre de section souligné du filet jaune-rouge du drapeau */
.rdc-title { position: relative; padding-bottom: .5rem; }
.rdc-title::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--rdc-jaune) 0 50%, var(--rdc-rouge) 50% 100%);
}

.link:hover, .article-contenu a, .prose a { color: var(--rdc-bleu); }
:focus-visible { outline: 3px solid var(--rdc-jaune); outline-offset: 2px; }

.hero-gradient {
  background: linear-gradient(135deg, rgba(0, 87, 184, .92) 0%, rgba(0, 127, 255, .85) 60%, rgba(11, 37, 69, .92) 100%) !important;
  color: #fff;
}

/* Badges « À la une », « Mot du ministre »… : accent jaune sur bleu nuit */
.badge-accent { font-weight: 600; }

/* ---------- Pied de page ---------- */
.rdc-footer { background: var(--rdc-nuit) !important; color: #dbe6f5 !important; }
.rdc-footer .footer-title { color: var(--rdc-jaune); opacity: 1; letter-spacing: .06em; }
.rdc-footer a.link:hover { color: #fff; }
.rdc-footer--bottom { background: #071a33 !important; border-top: 1px solid rgba(255, 255, 255, .08) !important; color: #b8c7dc !important; }
.rdc-footer--bottom .btn-ghost { color: #dbe6f5; }
.rdc-footer--bottom .btn-ghost:hover { background: var(--rdc-bleu); color: #fff; }

@media (max-width: 640px) {
  .rdc-topbar__motto { display: none; }
}

/* Bande du drapeau collée sous la barre de navigation (reste visible au défilement) */
.navbar.navbar-shadow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px;
  background: var(--rdc-drapeau); pointer-events: none;
}

/* Titres de section de l'accueil (« NOS ORGANES »…) : bleu nuit + filet jaune-rouge du drapeau */
h2.text-3xl.text-error { color: var(--rdc-nuit); letter-spacing: .02em; }
h2.text-3xl.text-error:not(.flex)::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: .6rem; border-radius: 2px;
  background: linear-gradient(90deg, var(--rdc-jaune) 0 50%, var(--rdc-rouge) 50% 100%);
}
.text-center h2.text-3xl.text-error:not(.flex)::after { margin-left: auto; margin-right: auto; }
h2.text-3xl.text-error.flex i { color: var(--rdc-bleu); }

/* ---------- Visuels de la section « Nos services » ----------
   Panneau bleu RDC traversé par la diagonale du drapeau (jaune-rouge-jaune),
   étoile jaune en haut à gauche et icône du service au centre. */
.rdc-service-visual {
  position: relative; width: 100%; height: 12rem; overflow: hidden; border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(152deg,
      transparent 0 58%,
      var(--rdc-jaune) 58% 61%,
      var(--rdc-rouge) 61% 71%,
      var(--rdc-jaune) 71% 74%,
      transparent 74%),
    radial-gradient(circle at 30% 35%, rgba(255, 255, 255, .16), transparent 60%),
    linear-gradient(160deg, var(--rdc-bleu-ciel) 0%, var(--rdc-bleu) 55%, var(--rdc-nuit) 100%);
}
.rdc-service-visual::before {
  content: "\2605"; position: absolute; left: 16px; top: 10px;
  color: var(--rdc-jaune); font-size: 30px; line-height: 1; text-shadow: 0 2px 6px rgba(11, 37, 69, .25);
}
.rdc-service-visual__icon {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: rgba(255, 255, 255, .96); color: var(--rdc-bleu); font-size: 38px;
  box-shadow: 0 10px 25px rgba(11, 37, 69, .35), 0 0 0 6px rgba(255, 255, 255, .25);
  transition: transform .3s ease;
}
.card:hover .rdc-service-visual__icon { transform: scale(1.06) rotate(-3deg); }

/* ---------- Page de détail d'un service ---------- */
.rdc-service-hero {
  position: relative; overflow: hidden; color: #fff; padding: 28px 0 40px;
  background: linear-gradient(135deg, var(--rdc-bleu) 0%, var(--rdc-bleu-fonce) 55%, var(--rdc-nuit) 100%);
}
/* Bande du drapeau sous le bandeau : ne passe jamais derrière le texte */
.rdc-service-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
  background: linear-gradient(to bottom, var(--rdc-jaune) 0 25%, var(--rdc-rouge) 25% 75%, var(--rdc-jaune) 75% 100%);
}
/* Étoile jaune discrète dans le coin, hors de la zone de texte */
.rdc-service-hero::before {
  content: "\2605"; position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  font-size: 160px; line-height: 1; color: var(--rdc-jaune); opacity: .14; pointer-events: none;
}
.rdc-service-hero > * { position: relative; z-index: 1; }
.rdc-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: #c9d8ec; margin-bottom: 18px; }
.rdc-breadcrumb a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); }
.rdc-breadcrumb a:hover { text-decoration-color: var(--rdc-jaune); }
.rdc-service-hero__body { display: flex; align-items: center; gap: 20px; max-width: 900px; }
.rdc-service-hero__icon {
  flex: none; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
  background: #fff; color: var(--rdc-bleu); font-size: 32px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .2), 0 10px 25px rgba(0, 0, 0, .25);
}
.rdc-service-hero h1 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; color: #fff; }
.rdc-service-hero p { margin-top: 8px; color: #dbe6f5; font-size: 1.05rem; line-height: 1.55; max-width: 70ch; }
.rdc-service-content p { text-align: justify; }
.rdc-service-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 24px; padding: 16px 18px; border-radius: .75rem;
  background: #eef4fc; border-left: 5px solid var(--rdc-bleu);
}
.rdc-service-cta strong { display: block; color: var(--rdc-nuit); }
.rdc-service-cta span { font-size: 14px; color: #4a5568; }
.rdc-aside-title { font-weight: 700; font-size: 1.05rem; color: var(--rdc-nuit); padding-bottom: 8px; margin-bottom: 6px; border-bottom: 3px solid var(--rdc-jaune); }
.rdc-service-list { list-style: none; margin: 0; padding: 0; }
.rdc-service-list a { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-radius: .5rem; font-size: 14px; line-height: 1.3; color: #1a2332; }
.rdc-service-list a:hover { background: #eef4fc; color: var(--rdc-bleu); }
.rdc-service-list__icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--rdc-bleu); color: #fff; font-size: 14px; }
@media (max-width: 640px) {
  .rdc-service-hero__body { flex-direction: column; align-items: flex-start; }
  .rdc-service-hero__icon { width: 60px; height: 60px; font-size: 26px; }
  .rdc-service-hero::before { display: none; }
}
.line-clamp-5 { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Pages des organes (/organe/…) ---------- */
.rdc-section-title {
  font-size: 1.35rem; font-weight: 800; color: var(--rdc-nuit); margin-bottom: 14px;
  padding-left: 12px; border-left: 5px solid var(--rdc-bleu);
}
.rdc-sigle {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--rdc-nuit); background: var(--rdc-jaune); border-radius: 999px; padding: 2px 9px;
}
.rdc-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--rdc-bleu); }
.rdc-avatar--initiales { display: grid; place-items: center; background: var(--rdc-bleu); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.rdc-avatar--sm { width: 46px; height: 46px; font-size: 12px; margin: 0 auto 6px; }
.rdc-entite { height: 100%; border-top: 4px solid var(--rdc-bleu); }
.rdc-entite .card-body { gap: 10px; }
.rdc-entite__head { display: flex; align-items: center; gap: 14px; }
.rdc-entite__title { font-weight: 700; line-height: 1.3; margin-top: 4px; color: var(--rdc-nuit); }
.rdc-entite__title a:hover { color: var(--rdc-bleu); }
.rdc-entite__person { font-size: 14px; }
.rdc-entite__person span { color: #4a5568; font-size: 13px; }

.rdc-ministre { display: grid; grid-template-columns: minmax(0, 300px) 1fr; }
.rdc-ministre__photo { width: 100%; height: 100%; min-height: 280px; object-fit: cover; object-position: top; }
.rdc-ministre__body { padding: 24px 28px; }
.rdc-ministre__nom { font-size: 1.4rem; font-weight: 800; color: var(--rdc-nuit); margin-top: 8px; line-height: 1.25; }
.rdc-ministre__titre { color: var(--rdc-bleu); font-weight: 600; margin-top: 4px; }
@media (max-width: 767px) {
  .rdc-ministre { grid-template-columns: 1fr; }
  .rdc-ministre__photo { max-height: 340px; }
  .rdc-ministre__body { padding: 20px; }
}

/* Organigramme du Cabinet : Ministre → DIRCAB → DIRCABA */
.rdc-organigramme { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.rdc-organigramme__niveau { position: relative; display: flex; justify-content: center; gap: 20px; width: 100%; }
.rdc-organigramme__niveau + .rdc-organigramme__niveau::before {
  content: ""; position: absolute; top: -28px; left: 50%; width: 2px; height: 28px; background: var(--rdc-bleu);
}
.rdc-organigramme__niveau--multi::after {
  content: ""; position: absolute; top: -14px; left: 25%; right: 25%; height: 2px; background: var(--rdc-bleu);
}
.rdc-organigramme__niveau--multi::before { height: 14px !important; }
.rdc-node {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  width: min(100%, 320px); padding: 16px; border-radius: .75rem; background: #fff;
  border: 1px solid #dbe6f5; border-top: 4px solid var(--rdc-bleu); box-shadow: 0 6px 18px rgba(11, 37, 69, .08);
}
.rdc-organigramme__niveau--multi .rdc-node::before {
  content: ""; position: absolute; top: -16px; left: 50%; width: 2px; height: 14px; background: var(--rdc-bleu);
}
.rdc-node--top { background: var(--rdc-bleu); color: #fff; border-color: var(--rdc-bleu); border-top-color: var(--rdc-jaune); }
.rdc-node__role { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--rdc-rouge); }
.rdc-node--top .rdc-node__role { color: var(--rdc-jaune); }
.rdc-node strong { line-height: 1.3; margin-top: 2px; }
.rdc-node small { font-size: 12px; color: #4a5568; margin-top: 4px; line-height: 1.35; }
@media (max-width: 640px) {
  .rdc-organigramme__niveau--multi { flex-direction: column; align-items: center; }
  .rdc-organigramme__niveau--multi::after, .rdc-organigramme__niveau--multi .rdc-node::before { display: none; }
  .rdc-organigramme__niveau--multi::before { height: 28px !important; }
}

/* Secrétariats Généraux en colonnes */
.rdc-pole { overflow: hidden; }
.rdc-pole__head { padding: 18px 20px; color: #fff; background: linear-gradient(135deg, var(--rdc-bleu), var(--rdc-nuit)); border-bottom: 5px solid var(--rdc-jaune); }
.rdc-pole__head h2 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; color: #fff; }
.rdc-pole__sigle { display: inline-block; margin-bottom: 6px; font-size: 12px; font-weight: 800; color: var(--rdc-nuit); background: var(--rdc-jaune); border-radius: 4px; padding: 1px 8px; }
.rdc-pole__chef { margin-top: 6px; font-size: 14px; color: #dbe6f5; }
.rdc-service-list__item { display: flex; align-items: center; gap: 12px; padding: 9px 6px; font-size: 14px; line-height: 1.3; color: #1a2332; }
.rdc-service-list__icon--text { font-size: 10px; font-weight: 800; }

.rdc-ancien__photo { width: 100%; height: 220px; object-fit: cover; object-position: top; }
.rdc-ancien__photo--vide { display: grid; place-items: center; font-size: 64px; color: #9fb6d6; background: #eef4fc; }
.rdc-details summary { cursor: pointer; font-weight: 600; color: var(--rdc-bleu); margin-top: 4px; }
.rdc-details[open] summary { margin-bottom: 8px; }

.rdc-hero__kicker { margin: 0 0 4px !important; font-size: .8rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--rdc-jaune) !important; }
.rdc-hero__sigle { font-weight: 600; color: #c9d8ec; }
.rdc-responsable { display: flex; align-items: center; gap: 16px; padding: 14px 16px; margin-bottom: 20px; border-radius: .75rem; background: #eef4fc; border-left: 5px solid var(--rdc-bleu); }
.rdc-responsable img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.rdc-responsable strong { display: block; color: var(--rdc-nuit); }
.rdc-responsable span { font-size: 14px; color: #4a5568; }

/* ---------- Accueil : à la une, mot du Ministre, à lire aussi ---------- */
.rdc-une { border-radius: 1rem; }
.rdc-home .heroSwiper { height: 380px; }
@media (min-width: 768px) { .rdc-home .heroSwiper { height: 460px; } .rdc-home .swiper-slide { min-height: 460px; } }
.rdc-une__slide { position: relative; display: block; width: 100%; height: 100%; color: #fff; }
.rdc-une__slide img { transition: transform .6s ease; }
.rdc-une__slide:hover img { transform: scale(1.03); }
.rdc-une__overlay {
  position: absolute; inset: auto 0 0 0; padding: 72px 28px 40px;
  background: linear-gradient(to bottom, rgba(11, 37, 69, 0) 0%, rgba(11, 37, 69, .78) 45%, rgba(11, 37, 69, .96) 100%);
}
.rdc-une__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: #dbe6f5; }
.rdc-une__badge { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--rdc-nuit); background: var(--rdc-jaune); padding: 3px 10px; border-radius: 4px; }
.rdc-une__title { margin-top: 10px; font-size: clamp(1.2rem, 2.4vw, 1.9rem); font-weight: 800; line-height: 1.22; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rdc-une__excerpt { margin-top: 8px; max-width: 70ch; font-size: .95rem; line-height: 1.5; color: #dbe6f5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rdc-une__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--rdc-jaune); }
.rdc-une__slide:hover .rdc-une__cta i { transform: translateX(3px); }
.rdc-une__cta i { transition: transform .2s; }
.rdc-home .swiper-button-next, .rdc-home .swiper-button-prev {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--rdc-bleu); top: 42%;
}
.rdc-home .swiper-button-next::after, .rdc-home .swiper-button-prev::after { font-size: 16px; font-weight: 800; }
.rdc-home .swiper-pagination-bullet { background: #fff; opacity: .6; }
.rdc-home .swiper-pagination-bullet-active { background: var(--rdc-jaune); opacity: 1; }
@media (max-width: 640px) {
  .rdc-une__overlay { padding: 56px 18px 34px; }
  .rdc-une__excerpt { display: none; }
  .rdc-home .swiper-button-next, .rdc-home .swiper-button-prev { display: none; }
}

.rdc-mot { display: flex; flex-direction: column; border-radius: 1rem; }
.rdc-mot__photo { position: relative; height: 260px; background: var(--rdc-nuit); }
.rdc-mot__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.rdc-mot__photo-vide { display: grid; place-items: center; height: 100%; font-size: 72px; color: #9fb6d6; }
.rdc-mot__photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(to right, var(--rdc-bleu) 0 40%, var(--rdc-jaune) 40% 46%, var(--rdc-rouge) 46% 54%, var(--rdc-jaune) 54% 60%, var(--rdc-bleu) 60%); }
.rdc-mot__id { position: absolute; left: 0; right: 0; bottom: 6px; padding: 48px 18px 14px; color: #fff; background: linear-gradient(to bottom, rgba(11, 37, 69, 0), rgba(11, 37, 69, .92)); }
.rdc-mot__label { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--rdc-jaune); }
.rdc-mot__id strong { display: block; font-size: 1.05rem; line-height: 1.25; margin-top: 2px; }
.rdc-mot .card-body { flex: 1; gap: 12px; }
.rdc-mot__titre { font-size: 13px; font-weight: 600; color: var(--rdc-bleu); line-height: 1.35; }
.rdc-mot__texte { position: relative; padding-left: 30px; font-size: 14px; line-height: 1.6; color: #2d3748; }
.rdc-mot__texte i { position: absolute; left: 0; top: 2px; font-size: 20px; color: var(--rdc-jaune); }
@media (min-width: 1024px) { .rdc-mot__photo { height: 230px; } }


/* Flèches du diaporama en haut à droite, hors du texte */
.rdc-home .swiper-button-next, .rdc-home .swiper-button-prev { top: 38px; bottom: auto; margin-top: 0; }
.rdc-home .swiper-button-prev { left: auto; right: 66px; }
.rdc-home .swiper-button-next { right: 16px; }
@media (min-width: 1024px) { .rdc-home .heroSwiper { height: 500px; } .rdc-home .swiper-slide { min-height: 500px; } }
/* Mise en page : une colonne sur mobile (une, puis Ministre), deux colonnes sur grand écran */
.rdc-home__grid { display: flex; flex-direction: column; gap: 1.5rem; }
.rdc-home__col { display: contents; }
.rdc-o-une { order: 1; } .rdc-o-mot { order: 2; }
.rdc-home__grid > *, .rdc-home__col > * { min-width: 0; }
@media (min-width: 1024px) {
  .rdc-home__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
  .rdc-home__col { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
}

/* À lire aussi : 8 actualités, 4 par ligne sur grand écran */
.rdc-lire__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.rdc-lire__head .rdc-section-title { margin-bottom: 0; }
.rdc-lire__grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .rdc-lire__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .rdc-lire__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rdc-lire__card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 1rem; background: #fff;
  box-shadow: 0 8px 22px rgba(11, 37, 69, .08); border-bottom: 4px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rdc-lire__card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11, 37, 69, .14); border-bottom-color: var(--rdc-jaune); }
.rdc-lire__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eef4fc; }
.rdc-lire__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.rdc-lire__card:hover .rdc-lire__img img { transform: scale(1.05); }
.rdc-lire__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.rdc-lire__body time { font-size: 12px; color: #6b7a90; }
.rdc-lire__body strong { font-size: 15px; line-height: 1.4; color: #1a2332; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rdc-lire__card:hover strong { color: var(--rdc-bleu); }
@media (max-width: 639px) {
  .rdc-lire__grid { gap: 12px; }
  .rdc-lire__card { flex-direction: row; border-bottom: 0; border-left: 4px solid var(--rdc-bleu); }
  .rdc-lire__img { flex: none; width: 112px; aspect-ratio: auto; }
  .rdc-lire__body { padding: 10px 12px; gap: 4px; }
  .rdc-lire__body strong { font-size: 14px; }
}

/* Flash info : carte rouge clignotante dans « À lire aussi » */
.rdc-flash {
  display: flex; align-items: stretch; margin-bottom: 20px; overflow: hidden;
  border-radius: 1rem; background: #fff; border: 2px solid var(--rdc-rouge);
  box-shadow: 0 8px 22px rgba(206, 16, 33, .12);
}
.rdc-flash__label {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 14px 18px;
  background: var(--rdc-rouge); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
}
.rdc-flash__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rdc-jaune); animation: rdc-flash-pulse 1s ease-in-out infinite; }
.rdc-flash__list { flex: 1; list-style: none; margin: 0; padding: 6px 18px; }
.rdc-flash__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 8px 0; }
.rdc-flash__list li + li { border-top: 1px dashed #f3c2c7; }
.rdc-flash__count { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: 12px; letter-spacing: 0; }
/* Défilement en boucle : un flash à la fois, empilés dans la même cellule */
.rdc-flash--loop .rdc-flash__list { display: grid; align-items: center; }
.rdc-flash--loop .rdc-flash__item {
  grid-area: 1 / 1; border-top: 0 !important; opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s;
}
.rdc-flash--loop .rdc-flash__item.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .5s ease; }
.rdc-flash__text { flex: 1 1 280px; font-weight: 700; font-size: 15px; line-height: 1.45; color: var(--rdc-rouge); animation: rdc-flash-blink 1.4s ease-in-out infinite; }
.rdc-flash__list time { font-size: 12px; color: #6b7a90; }
@keyframes rdc-flash-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes rdc-flash-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.55); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .rdc-flash__text, .rdc-flash__dot { animation: none; } .rdc-flash--loop .rdc-flash__item { transition: none; transform: none; } }
@media (max-width: 639px) {
  .rdc-flash { flex-direction: column; }
  .rdc-flash__label { padding: 10px 14px; }
  .rdc-flash__list { padding: 4px 14px; }
}

/* ===== Recherche globale ===== */
.rdc-nav-search {
  z-index: 60; margin-top: 10px; display: flex; gap: 6px; align-items: center; padding: 8px;
  width: min(360px, calc(100vw - 32px)); background: #fff; border-radius: .75rem;
  box-shadow: 0 12px 30px rgba(11, 37, 69, .18); border: 1px solid #e3e9f2;
}
.rdc-nav-search input[type="search"] {
  flex: 1; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid #cfd9e6; border-radius: .5rem; font-size: 15px;
}
.rdc-nav-search input[type="search"]:focus { outline: 2px solid var(--rdc-bleu); outline-offset: 0; border-color: transparent; }

.rdc-search-hero h1 { margin-bottom: 18px; }
.rdc-search-form {
  position: relative; display: flex; align-items: center; gap: 8px; max-width: 760px; padding: 6px;
  background: #fff; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.rdc-search-form > .fa-search { position: absolute; left: 22px; color: #6b7a90; }
.rdc-search-form input[type="search"] {
  flex: 1; min-width: 0; height: 46px; padding: 0 12px 0 44px; border: 0; border-radius: 999px;
  color: var(--rdc-nuit); font-size: 16px; background: transparent;
}
.rdc-search-form input[type="search"]:focus { outline: none; }
.rdc-search-form:focus-within { box-shadow: 0 0 0 3px var(--rdc-jaune), 0 10px 30px rgba(0, 0, 0, .25); }
.rdc-search-form .btn { border-radius: 999px; padding-inline: 22px; }

.rdc-search-summary { margin-bottom: 14px; color: #44546a; font-size: 15px; }
.rdc-search-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: thin; }
.rdc-search-tabs a {
  flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid #d8e1ec; color: var(--rdc-nuit); font-size: 14px; font-weight: 500;
}
.rdc-search-tabs a span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #eef3f9; font-size: 12px; text-align: center; }
.rdc-search-tabs a:hover { border-color: var(--rdc-bleu); }
.rdc-search-tabs a.is-active { background: var(--rdc-bleu); border-color: var(--rdc-bleu); color: #fff; }
.rdc-search-tabs a.is-active span { background: rgba(255, 255, 255, .25); }
.rdc-search-tabs a.is-empty { color: #8a97a8; }

.rdc-search-group { margin-bottom: 28px; }
.rdc-search-group__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 10px; }
.rdc-search-group__head h2 { font-size: 1.15rem; font-weight: 700; color: var(--rdc-nuit); display: flex; align-items: center; gap: 8px; }
.rdc-search-group__head h2 i { color: var(--rdc-bleu); }
.rdc-search-group__head h2 span { font-size: 13px; font-weight: 600; color: #6b7a90; }
.rdc-search-group__head a { color: var(--rdc-bleu); font-weight: 600; font-size: 14px; }

.rdc-search-list { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.rdc-search-item {
  display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; background: #fff;
  border: 1px solid #e3e9f2; border-radius: .9rem; transition: border-color .15s, box-shadow .15s;
}
.rdc-search-item:hover { border-color: #b9cbe2; box-shadow: 0 6px 18px rgba(11, 37, 69, .08); }
.rdc-search-item > div { min-width: 0; flex: 1; }
.rdc-search-item__img { flex: none; width: 112px; aspect-ratio: 4 / 3; border-radius: .6rem; overflow: hidden; background: #eef3f9; }
.rdc-search-item__img img { width: 100%; height: 100%; object-fit: cover; }
.rdc-search-item__icon {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: #e8f0fb; color: var(--rdc-bleu); font-size: 19px;
}
.rdc-search-item__icon--doc { background: #fdecee; color: var(--rdc-rouge); }
.rdc-search-item__title { display: block; color: var(--rdc-nuit); font-weight: 700; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.rdc-search-item__title:hover { color: var(--rdc-bleu); text-decoration: underline; text-underline-offset: 3px; }
.rdc-search-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 4px; font-size: 13px; color: #6b7a90; }
.rdc-search-item__text { margin-top: 6px; font-size: 14px; line-height: 1.55; color: #44546a; overflow-wrap: anywhere; }
.rdc-search-item__links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 14px; }
.rdc-search-item__links a { color: var(--rdc-bleu); font-weight: 600; }
.rdc-search-item__links a:hover { text-decoration: underline; }
.rdc-search-tag { padding: 1px 9px; border-radius: 999px; background: #eef3f9; color: var(--rdc-bleu-fonce); font-weight: 600; font-size: 12px; }
.rdc-search-list mark, .rdc-search-item mark { background: #fdf3b0; color: inherit; padding: 0 2px; border-radius: 3px; }

.rdc-search-empty { max-width: 640px; margin: 10px auto 30px; text-align: center; color: #44546a; }
.rdc-search-empty > i { font-size: 40px; color: #b9cbe2; }
.rdc-search-empty h2 { margin: 12px 0 6px; font-size: 1.3rem; font-weight: 700; color: var(--rdc-nuit); }
.rdc-search-suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.rdc-search-suggest a { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid #d8e1ec; color: var(--rdc-bleu); font-size: 14px; font-weight: 500; }
.rdc-search-suggest a:hover { border-color: var(--rdc-bleu); }

.rdc-search-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 20px; margin-top: 10px; font-size: 14px; color: #44546a; }
.rdc-search-pages a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid #d8e1ec; color: var(--rdc-bleu); font-weight: 600; }
.rdc-search-pages a:hover { border-color: var(--rdc-bleu); }

@media (max-width: 639px) {
  .rdc-search-form { border-radius: 1rem; flex-wrap: wrap; }
  .rdc-search-form > .fa-search { top: 21px; }
  .rdc-search-form input[type="search"] { flex-basis: 100%; }
  .rdc-search-form .btn { width: 100%; border-radius: .75rem; }
  .rdc-search-item { padding: 14px; gap: 12px; }
  .rdc-search-item__img { width: 84px; }
  .rdc-search-item__icon { width: 38px; height: 38px; font-size: 16px; }
}

/* Barre de navigation : menu resserré entre 1024 et 1279 px, icône Facebook seulement à partir de 1280 px (la loupe tient sans débordement) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .navbar .desk { gap: 0; }
  .navbar .desk > li > a, .navbar .desk > li > details > summary { padding-inline: .4rem; font-size: .8125rem; }
  .navbar .desk > li > details > summary::after { margin-inline-start: .2rem; }
  .navbar img[alt="Logo ESU"] { width: 9rem; }
}
@media (max-width: 1279px) {
  .navbar .navbar-end > a[href*="facebook"] { display: none; }
}

/* ===== Badges communs ===== */
.rdc-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.rdc-badge--vert { background: #e3f5e9; color: #146c34; }
.rdc-badge--jaune { background: #fff4cc; color: #7a5a00; }
.rdc-badge--bleu { background: #e3eefb; color: var(--rdc-bleu-fonce); }
.rdc-badge--gris { background: #eef1f5; color: #44546a; }
.rdc-badge--rouge { background: #fde8ea; color: #a10d1a; }

/* ===== Annuaire des établissements ===== */
.rdc-annu-hero .rdc-annu-search { margin-top: 20px; }
.rdc-annu-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; }
.rdc-annu-stats div { display: flex; flex-direction: column-reverse; }
.rdc-annu-stats dt { font-size: 13px; color: #c9d8ec; }
.rdc-annu-stats dd { font-size: 1.6rem; font-weight: 700; color: #fff; line-height: 1.1; }
.rdc-annu-hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px !important; }

.rdc-annu-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1024px) { .rdc-annu-layout { grid-template-columns: 280px minmax(0, 1fr); align-items: start; } .rdc-annu-filters { position: sticky; top: 96px; } }

.rdc-annu-filters__box { background: #fff; border: 1px solid #e3e9f2; border-radius: 1rem; }
.rdc-annu-filters__box > summary { display: flex; align-items: center; gap: 8px; padding: 14px 18px; font-weight: 700; color: var(--rdc-nuit); cursor: pointer; list-style: none; }
.rdc-annu-filters__box > summary::-webkit-details-marker { display: none; }
.rdc-annu-filters__box > summary::after { content: "\f078"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900; margin-left: auto; font-size: 12px; transition: transform .2s; }
.rdc-annu-filters__box[open] > summary::after { transform: rotate(180deg); }
.rdc-annu-filters__box > summary span { padding: 0 8px; border-radius: 999px; background: var(--rdc-bleu); color: #fff; font-size: 12px; }
.rdc-annu-filters__box form { padding: 0 18px 18px; display: grid; gap: 14px; }
.rdc-annu-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.rdc-annu-field > label, .rdc-annu-field > legend { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; color: #44546a; }
.rdc-annu-seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: .6rem; background: #eef3f9; }
.rdc-annu-seg input { position: absolute; opacity: 0; pointer-events: none; }
.rdc-annu-seg span { display: block; padding: 5px 4px; border-radius: .45rem; text-align: center; font-size: 13px; font-weight: 600; color: #44546a; cursor: pointer; }
.rdc-annu-seg input:checked + span { background: #fff; color: var(--rdc-bleu); box-shadow: 0 1px 3px rgba(11, 37, 69, .15); }
.rdc-annu-seg input:focus-visible + span { outline: 2px solid var(--rdc-bleu); }
.rdc-annu-actions { display: flex; gap: 8px; }
.rdc-annu-help { display: flex; gap: 10px; margin-top: 14px; padding: 14px; border-radius: 1rem; background: #fff8dc; color: #5c4700; font-size: 13px; line-height: 1.5; }
.rdc-annu-help i { margin-top: 3px; }

.rdc-annu-h2 { font-size: 1.1rem; font-weight: 700; color: var(--rdc-nuit); margin-bottom: 12px; }
.rdc-annu-provinces { margin-bottom: 26px; }
.rdc-annu-provinces ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.rdc-annu-provinces a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: .7rem; background: #fff; border: 1px solid #e3e9f2; color: var(--rdc-nuit); font-size: 14px; font-weight: 500; }
.rdc-annu-provinces a:hover { border-color: var(--rdc-bleu); color: var(--rdc-bleu); }
.rdc-annu-provinces strong { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #eef3f9; color: var(--rdc-bleu-fonce); }

.rdc-annu-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; color: #44546a; }
.rdc-annu-head strong { color: var(--rdc-nuit); font-size: 1.15rem; }
.rdc-annu-csv { color: var(--rdc-bleu); font-weight: 600; font-size: 14px; }
.rdc-annu-csv:hover { text-decoration: underline; }
.rdc-annu-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; }
.rdc-annu-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--rdc-bleu); color: #fff; font-size: 13px; font-weight: 500; }
.rdc-annu-chips a:hover { background: var(--rdc-bleu-fonce); }
.rdc-annu-chips a.is-clear { background: transparent; color: var(--rdc-bleu); text-decoration: underline; }

.rdc-annu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.rdc-annu-card { display: flex; flex-direction: column; padding: 16px 18px; background: #fff; border: 1px solid #e3e9f2; border-radius: 1rem; transition: border-color .15s, box-shadow .15s; }
.rdc-annu-card:hover { border-color: #b9cbe2; box-shadow: 0 8px 22px rgba(11, 37, 69, .08); }
.rdc-annu-card__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
.rdc-annu-sigle { padding: 2px 10px; border-radius: .4rem; background: var(--rdc-nuit); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rdc-annu-card h3 { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--rdc-nuit); overflow-wrap: anywhere; }
.rdc-annu-card h3 a:hover { color: var(--rdc-bleu); text-decoration: underline; text-underline-offset: 3px; }
.rdc-annu-card__cat { margin-top: 4px; font-size: 13px; color: #6b7a90; }
.rdc-annu-card__loc { margin-top: 6px; font-size: 13px; color: #44546a; }
.rdc-annu-card__loc i { color: var(--rdc-rouge); }
.rdc-annu-card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; }
.rdc-annu-card__icons { display: inline-flex; gap: 8px; color: #8a97a8; font-size: 12px; }
.rdc-annu-card__more { margin-left: auto; color: var(--rdc-bleu); font-weight: 600; font-size: 13px; white-space: nowrap; }
.rdc-annu-card__more:hover { text-decoration: underline; }

.rdc-annu-pages { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 24px; }
.rdc-annu-pages a, .rdc-annu-pages span[aria-current] { min-width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0 10px; border-radius: .6rem; background: #fff; border: 1px solid #d8e1ec; color: var(--rdc-bleu); font-weight: 600; font-size: 14px; }
.rdc-annu-pages a:hover { border-color: var(--rdc-bleu); }
.rdc-annu-pages span[aria-current] { background: var(--rdc-bleu); border-color: var(--rdc-bleu); color: #fff; }
.rdc-annu-pages__gap { color: #8a97a8; }

.rdc-annu-official { display: flex; gap: 14px; padding: 16px 18px; border-radius: 1rem; background: #e3f5e9; border: 1px solid #b7e2c4; color: #14532d; }
.rdc-annu-official > i { font-size: 24px; color: #1f8a46; margin-top: 2px; }
.rdc-annu-official p { margin-top: 4px; font-size: 14px; line-height: 1.55; }
.rdc-annu-dl { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 10px 24px; font-size: 15px; }
.rdc-annu-dl dt { color: #6b7a90; }
.rdc-annu-dl dd { color: var(--rdc-nuit); font-weight: 500; overflow-wrap: anywhere; }
.rdc-annu-contacts { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.rdc-annu-contacts li { display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere; }
.rdc-annu-contacts i { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #e8f0fb; color: var(--rdc-bleu); }
.rdc-annu-contacts a { color: var(--rdc-bleu); font-weight: 600; }
.rdc-annu-voisins { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; list-style: none; margin: 0 0 12px; padding: 0; }
.rdc-annu-voisins a { display: block; padding: 8px 10px; border-radius: .6rem; }
.rdc-annu-voisins a:hover { background: #f3f6fa; }
.rdc-annu-voisins strong { display: block; font-size: 14px; color: var(--rdc-nuit); }
.rdc-annu-voisins span { display: block; font-size: 12px; color: #6b7a90; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 639px) {
  .rdc-annu-stats { gap: 8px 20px; }
  .rdc-annu-stats dd { font-size: 1.3rem; }
  .rdc-annu-dl { grid-template-columns: 1fr; gap: 2px; }
  .rdc-annu-dl dd { margin-bottom: 10px; }
  .rdc-annu-grid { grid-template-columns: 1fr; }
}

/* ===== Bibliothèque juridique ===== */
.rdc-annu-stats__date { font-size: 1.1rem !important; padding-top: 6px; }
.rdc-bib-types { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 16px; scrollbar-width: thin; }
.rdc-bib-types a {
  flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid #d8e1ec; color: var(--rdc-nuit); font-size: 14px; font-weight: 500;
}
.rdc-bib-types a i { color: var(--rdc-bleu); }
.rdc-bib-types a span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #eef3f9; font-size: 12px; text-align: center; }
.rdc-bib-types a:hover { border-color: var(--rdc-bleu); }
.rdc-bib-types a.is-active { background: var(--rdc-bleu); border-color: var(--rdc-bleu); color: #fff; }
.rdc-bib-types a.is-active i { color: #fff; }
.rdc-bib-types a.is-active span { background: rgba(255, 255, 255, .25); }

.rdc-bib-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; color: #44546a; }
.rdc-bib-toolbar strong { color: var(--rdc-nuit); font-size: 1.15rem; }
.rdc-bib-toolbar__fields { display: flex; flex-wrap: wrap; gap: 8px; }
.rdc-bib-clear { margin-left: 6px; color: var(--rdc-bleu); font-size: 13px; text-decoration: underline; }

.rdc-bib-list { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.rdc-bib-item {
  --t: var(--rdc-bleu); --t-bg: #e8f0fb;
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: #fff;
  border: 1px solid #e3e9f2; border-left: 4px solid var(--t); border-radius: .9rem; transition: box-shadow .15s;
}
.rdc-bib-item:hover { box-shadow: 0 6px 18px rgba(11, 37, 69, .08); }
.rdc-bib-item--t2, .rdc-bib-item--t4 { --t: #b8860b; --t-bg: #fff4cc; }
.rdc-bib-item--t3, .rdc-bib-item--t5 { --t: var(--rdc-rouge); --t-bg: #fde8ea; }
.rdc-bib-item--t8, .rdc-bib-item--t9 { --t: var(--rdc-nuit); --t-bg: #e6ebf2; }
.rdc-bib-item--t6, .rdc-bib-item--t7 { --t: #5b6b80; --t-bg: #eef1f5; }
.rdc-bib-item__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: .7rem; background: var(--t-bg); color: var(--t); font-size: 18px; }
.rdc-bib-item__body { flex: 1; min-width: 0; }
.rdc-bib-item__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: #6b7a90; }
.rdc-bib-item__type { color: var(--t); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.rdc-bib-item__title { display: block; margin-top: 3px; color: var(--rdc-nuit); font-weight: 700; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.rdc-bib-item__title:hover { color: var(--rdc-bleu); text-decoration: underline; text-underline-offset: 3px; }
.rdc-bib-item__title mark { background: #fdf3b0; color: inherit; padding: 0 2px; border-radius: 3px; }
.rdc-bib-item__file { margin-top: 4px; font-size: 12.5px; color: #6b7a90; overflow-wrap: anywhere; }
.rdc-bib-item__actions { flex: none; display: flex; align-items: center; gap: 8px; }
.rdc-bib-item__format { font-size: 12px; color: #6b7a90; white-space: nowrap; }

.rdc-bib-h1 { font-size: clamp(1.25rem, 2.4vw, 1.85rem) !important; }
.rdc-bib-viewer { background: #fff; border: 1px solid #e3e9f2; border-radius: 1rem; overflow: hidden; }
.rdc-bib-viewer iframe { display: block; width: 100%; height: min(80vh, 900px); border: 0; background: #525659; }
.rdc-bib-viewer img { display: block; width: 100%; height: auto; }
.rdc-bib-viewer__fallback { padding: 10px 16px; font-size: 13px; color: #6b7a90; border-top: 1px solid #e3e9f2; }
.rdc-bib-viewer__fallback a { color: var(--rdc-bleu); font-weight: 600; }
.rdc-bib-actions { display: grid; gap: 8px; }
.rdc-bib-actions .btn { justify-content: flex-start; }
.rdc-bib-dl { grid-template-columns: max-content 1fr; font-size: 14px; }
.rdc-bib-filename { font-size: 13px; color: #44546a !important; font-weight: 400 !important; }
.rdc-bib-related { font-weight: 600 !important; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 639px) {
  .rdc-bib-item { flex-wrap: wrap; padding: 12px 14px; gap: 10px 12px; }
  .rdc-bib-item__icon { width: 38px; height: 38px; font-size: 16px; }
  .rdc-bib-item__body { flex-basis: calc(100% - 52px); }
  .rdc-bib-item__actions { width: 100%; justify-content: flex-end; }
  .rdc-bib-item__format { margin-right: auto; }
  .rdc-bib-viewer iframe { height: 70vh; }
  .rdc-bib-dl { grid-template-columns: max-content 1fr !important; gap: 6px 14px !important; }
  .rdc-bib-dl dd { margin-bottom: 0 !important; }
}
.rdc-bib-viewer__mobile { display: none; padding: 28px 20px; text-align: center; }
.rdc-bib-viewer__mobile > i { font-size: 44px; color: var(--rdc-rouge); }
.rdc-bib-viewer__mobile p { margin: 10px 0 14px; color: #44546a; font-size: 14px; }
@media (max-width: 767px) {
  .rdc-bib-viewer iframe, .rdc-bib-viewer__fallback { display: none; }
  .rdc-bib-viewer__mobile { display: block; }
}
/* Colonnes de grille : le contenu long (noms, titres) ne doit jamais élargir la page */
.rdc-col { min-width: 0; }

/* ===== Recherche scientifique ===== */
.rdc-rech-nav { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 18px; padding: 4px; border-radius: 1rem; background: #eef3f9; scrollbar-width: thin; }
.rdc-rech-nav a { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: .75rem; color: #44546a; font-weight: 600; font-size: 14px; white-space: nowrap; }
.rdc-rech-nav a:hover { color: var(--rdc-bleu); }
.rdc-rech-nav a.is-active { background: #fff; color: var(--rdc-bleu); box-shadow: 0 1px 4px rgba(11, 37, 69, .12); }
.rdc-rech-nav a span { padding: 0 8px; border-radius: 999px; background: rgba(0, 0, 0, .06); font-size: 12px; }
.rdc-rech-domaines { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.rdc-rech-domaines a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: .6rem; border: 1px dashed #c3d1e3; color: #44546a; font-size: 13px; font-weight: 500; }
.rdc-rech-domaines a i { color: var(--rdc-bleu); }
.rdc-rech-domaines a:hover { border-style: solid; border-color: var(--rdc-bleu); }
.rdc-rech-domaines a.is-active { border-style: solid; border-color: var(--rdc-nuit); background: var(--rdc-nuit); color: #fff; }
.rdc-rech-domaines a.is-active i { color: var(--rdc-jaune); }
.rdc-rech-count { margin-bottom: 14px; color: #44546a; }
.rdc-rech-section { margin-bottom: 28px; }
.rdc-rech-n { margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #eef3f9; color: var(--rdc-bleu-fonce); font-size: 12px; vertical-align: middle; }
.rdc-rech-card--cmd { border-left: 4px solid var(--rdc-jaune); }
.rdc-rech-ico { color: #9fb3cc; }
.rdc-rech-themes { margin-top: 8px; font-size: 13px; color: #44546a; line-height: 1.5; }
.rdc-rech-resp { font-size: 13px; color: #44546a; }
.rdc-rech-person__head { display: flex; gap: 12px; align-items: center; margin-bottom: 4px; }
.rdc-rech-avatar { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--rdc-bleu); color: #fff; font-weight: 700; font-size: 18px; }
.rdc-rech-help { margin-top: 28px; }
.rdc-rech-cover { width: 100%; max-height: 360px; object-fit: cover; border-radius: 1rem; margin-bottom: 18px; }
.rdc-rech-list { display: grid; gap: 4px; list-style: none; margin: 0 0 10px; padding: 0; }
.rdc-rech-list li { padding: 10px 0; border-bottom: 1px solid #eef1f5; }
.rdc-rech-list li:last-child { border-bottom: 0; }
.rdc-rech-list strong { display: block; color: var(--rdc-nuit); overflow-wrap: anywhere; }
.rdc-rech-list span { display: block; font-size: 13px; color: #6b7a90; }

/* Appels à projets */
.rdc-appel-list { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.rdc-appel { display: flex; align-items: flex-start; gap: 16px; padding: 16px 18px; background: #fff; border: 1px solid #e3e9f2; border-left: 4px solid #1f8a46; border-radius: 1rem; }
.rdc-appel--avenir { border-left-color: var(--rdc-bleu); }
.rdc-appel--cloture { border-left-color: #c3ccd8; }
.rdc-appel--cloture .rdc-bib-item__title { color: #5b6b80; }
.rdc-appel__date { width: 64px; flex: none; display: grid; place-items: center; align-content: center; padding: 8px 4px; border-radius: .8rem; background: #f3f6fa; color: var(--rdc-nuit); text-align: center; min-height: 64px; }
.rdc-appel__date span { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.rdc-appel__date small { font-size: 11px; color: #6b7a90; line-height: 1.2; margin-top: 3px; }
.rdc-appel__date i { font-size: 22px; color: var(--rdc-bleu); }
.rdc-appel__body { flex: 1; min-width: 0; }
.rdc-appel__resume { margin-top: 6px; font-size: 14px; color: #44546a; line-height: 1.5; }
.rdc-appel__info { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 13px; color: #44546a; }
.rdc-appel__info i { color: var(--rdc-bleu); }
.rdc-appel__left { margin-left: 6px; color: #146c34; }
.rdc-appel__left.is-urgent { color: var(--rdc-rouge); }
.rdc-appel__btn { flex: none; align-self: center; }
.rdc-appel__lead { font-size: 1.05rem; font-weight: 500; color: var(--rdc-nuit); line-height: 1.6; margin-bottom: 14px; }

/* Publications et revues */
.rdc-pub-item__authors { margin-top: 3px; font-size: 13px; color: #44546a; font-style: italic; }
.rdc-pub-item__resume { margin-top: 6px; font-size: 13px; color: #44546a; }
.rdc-pub-item__resume summary { cursor: pointer; color: var(--rdc-bleu); font-weight: 600; }
.rdc-pub-item__resume p { margin-top: 6px; line-height: 1.55; }
.rdc-revue { flex-direction: row; gap: 14px; }
.rdc-revue__cover { width: 72px; height: 100px; flex: none; object-fit: cover; border-radius: .4rem; box-shadow: 0 2px 6px rgba(11, 37, 69, .15); }
.rdc-revue__cover--empty { display: grid; place-items: center; background: linear-gradient(160deg, var(--rdc-bleu), var(--rdc-nuit)); color: var(--rdc-jaune); font-size: 24px; }
.rdc-revue__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rdc-revue__body .rdc-annu-sigle { align-self: flex-start; margin-bottom: 4px; }

@media (max-width: 639px) {
  .rdc-appel { flex-wrap: wrap; gap: 10px 12px; padding: 14px; }
  .rdc-appel__date { width: 52px; min-height: 52px; }
  .rdc-appel__body { flex-basis: calc(100% - 70px); }
  .rdc-appel__btn { width: 100%; }
  .rdc-rech-nav a { flex: none; padding: 9px 12px; }
}

/* ===== Médiathèque ===== */
.rdc-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.rdc-media-card { background: #fff; border: 1px solid #e3e9f2; border-radius: 1rem; overflow: hidden; display: flex; flex-direction: column; }
.rdc-media-card__thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; width: 100%; background: #e8eef6; color: #9fb3cc; font-size: 32px; overflow: hidden; border: 0; padding: 0; cursor: pointer; }
.rdc-media-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.rdc-media-card:hover .rdc-media-card__thumb img { transform: scale(1.04); }
.rdc-media-card__count { position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(11, 37, 69, .75); color: #fff; font-size: 12px; font-weight: 600; }
.rdc-media-card__body { padding: 12px 14px 14px; }
.rdc-media-card__body h3 { font-size: 15px; font-weight: 700; color: var(--rdc-nuit); line-height: 1.35; overflow-wrap: anywhere; }
.rdc-media-card__body h3 a:hover { color: var(--rdc-bleu); }
.rdc-media-card__body p { margin-top: 4px; font-size: 13px; color: #6b7a90; }
.rdc-media-card__desc { color: #44546a !important; }
.rdc-video__play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: rgba(206, 16, 33, .92); color: #fff; font-size: 22px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.rdc-video__play i { margin-left: 4px; }
.rdc-video__frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.rdc-disc-video { border-radius: 1rem; }
.rdc-disc-video .rdc-media-card__thumb { aspect-ratio: 16 / 9; }

.rdc-media-mosaic { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.rdc-media-mosaic a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: .8rem; overflow: hidden; background: #e8eef6; }
.rdc-media-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.rdc-media-mosaic a:hover img { transform: scale(1.05); }
.rdc-media-mosaic span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; background: linear-gradient(transparent, rgba(5, 20, 40, .85)); color: #fff; font-size: 12px; line-height: 1.35; }
.rdc-media-mosaic--album { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.rdc-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; background: rgba(4, 14, 28, .94); }
.rdc-lightbox[hidden] { display: none; }
.rdc-lightbox figure { margin: 0; max-width: min(1200px, 100%); display: flex; flex-direction: column; align-items: center; min-width: 0; }
.rdc-lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: .4rem; }
.rdc-lightbox figcaption { margin-top: 12px; color: #e6edf6; font-size: 14px; text-align: center; line-height: 1.5; }
.rdc-lightbox figcaption a { color: var(--rdc-jaune); font-weight: 600; text-decoration: underline; }
.rdc-lightbox figcaption small { display: block; color: #9fb3cc; }
.rdc-lightbox__close, .rdc-lightbox__nav { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 18px; cursor: pointer; }
.rdc-lightbox__close:hover, .rdc-lightbox__nav:hover { background: rgba(255, 255, 255, .25); }
.rdc-lightbox__close { position: absolute; top: 14px; right: 14px; }
@media (max-width: 639px) {
  .rdc-media-grid { grid-template-columns: 1fr; }
  .rdc-media-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .rdc-lightbox { padding: 8px; }
  .rdc-lightbox__nav { position: absolute; bottom: 18px; }
  .rdc-lightbox__prev { left: 18px; }
  .rdc-lightbox__next { right: 18px; }
  .rdc-lightbox img { max-height: calc(100vh - 190px); }
}
@media print {
  .rdc-bib-actions, .navbar, footer { display: none !important; }
}
