/* Styles pour la section des actualités - Style immersif moderne */
#actualitees {
    padding: 80px 2rem;
    background: linear-gradient(135deg, #0a1628 0%, #1a2744 50%, #0f1d36 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

#actualitees::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 204, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(23, 67, 146, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

:root {
  --primary-blue: #1e3a8a;
  --secondary-blue: #3b82f6;
  --light-blue: #dbeafe;
  --primary-orange: #ea580c;
  --secondary-orange: #fb923c;
  --light-orange: #fed7aa;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
}

.actualites-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.actualites-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out;
}

.actualites-header h1:not(.presentation_text) {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFCC00 0%, #ff6b00 50%, #FFCC00 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    animation: gradientFlow 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 204, 0, 0.3);
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.actualites-header h1:not(.presentation_text)::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #FFCC00, #ff6b00, #FFCC00, transparent);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}

.actualites-header p {
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.7);
    margin-top: 30px;
    font-weight: 300;
}

/* Nouvelle barre de filtres – sans conteneur blanc, style repensé */
.filters-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 22px;
    padding: 0 10px;
    animation: fadeInUp 0.5s ease-out;
}
.filters-strip .fs-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}
.fs-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(23,67,146,0.20);
    color: #0f1d36;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
}
.fs-pill:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.fs-pill i { color: #174392; opacity: 0.95; }
.fs-pill select,
.fs-pill input {
    border: none;
    outline: none;
    padding: 6px 8px;
    font-size: 0.95rem;
    background: transparent;
    color: #0f1d36;
}
.fs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 32px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.35);
    cursor: pointer;
    background: linear-gradient(135deg, #0ea5ff, #174392);
    color: #fff;
    box-shadow: 0 4px 12px rgba(23, 67, 146, 0.25);
    transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
}
.fs-btn:hover { transform: translateY(-1px) scale(1.04); box-shadow: 0 10px 20px rgba(23, 67, 146, 0.38); filter: brightness(1.06); }
.fs-btn:active { transform: translateY(0) scale(0.98); filter: brightness(0.98); }
.fs-btn:hover i { animation: pulseGlow 1.4s ease infinite; }
.fs-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 10px; /* rayon réduit comme demandé */
    border: 1px solid rgba(255,255,255,0.35);
    background: linear-gradient(135deg, #0ea5ff, #174392);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(23, 67, 146, 0.40);
    transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
    flex: 0 0 auto; white-space: nowrap;
}
.fs-more:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 12px 28px rgba(23, 67, 146, 0.52); filter: brightness(1.06); }
.fs-more i { font-size: 1rem; }
.fs-more span { font-weight: 800; }
.fs-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(135deg, #FFCC00, #ff8c00);
    color: #000;
    border: none;
    box-shadow: 0 6px 16px rgba(255, 204, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fs-clear:hover { transform: translateY(-1px) scale(1.03); box-shadow: 0 10px 24px rgba(255, 204, 0, 0.4); }
.fs-clear i { font-size: 1rem; }

/* Barre de recherche simplifiée ESA */
.esa-search { display: flex; align-items: stretch; gap: 10px; flex: 1 1 0; min-width: 0; }
.esa-search-field { position: relative; display: inline-flex; align-items: center; background: #fff; border: 1px solid rgba(23,67,146,0.22); border-radius: 14px; padding: 0 42px 0 14px; width: 100%; min-width: 0; height: 44px; box-shadow: 0 10px 28px rgba(23,67,146,0.12); }
#act-search {
  flex: 1 1 auto;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #0f1d36;
  font-size: 0.95rem;
}
#act-search::placeholder { color: #99a7bd; }
.esa-input-clear {
  position: absolute;
  right: 8px;
  top: 17%;
  display: none;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(23,67,146,0.20);
  background: #ffffff;
  color: #174392;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: none; /* pas d’animation au survol */
}
.esa-input-clear:hover { transform: none; box-shadow: none; border-color: rgba(23,67,146,0.20); background: #ffffff; color: #174392; }
.esa-input-clear i { font-size: 0.9rem; line-height: 1; }
.esa-search-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.35);
  background: linear-gradient(135deg, #0ea5ff, #174392);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(14,165,255,0.26);
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
  flex: 0 0 auto; white-space: nowrap;
}
.esa-search-btn:disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; filter: saturate(80%); }
.esa-search-btn:hover { transform: translateY(-1px) scale(1.04); box-shadow: 0 18px 34px rgba(14,165,255,0.30); filter: brightness(1.05); }
.esa-search-btn i { font-size: 16px; }

@media (max-width: 768px) {
    .filters-strip { padding: 0 6px; }
    .filters-strip .fs-group { gap: 10px; }
    .fs-pill { padding: 9px 10px; }
    .fs-pill input { min-width: 160px; }
}

/* Mobile: mettre "Filtrer plus" à la ligne en-dessous de la barre */
@media (max-width: 760px) {
  /* Assurer l’enroulement au bon conteneur */
  .filters-strip { flex-wrap: wrap !important; }
  .filters-strip .fs-group { flex-wrap: wrap; }
  /* Bouton "Filtrer plus" doit passer à la ligne et être centré */
  .fs-more { flex: 0 0 100%; display: flex; justify-content: center; margin: 8px auto 0; }
  /* Étendre les éléments de filtres en pleine largeur pour éviter les débordements */
  .fs-pill { flex: 1 1 100%; width: 100%; }
  .esa-search { width: 100%; }
}

/* Popup de filtres: responsive sur mobile */
@media (max-width: 760px) {
  .filters-modal.open { align-items: flex-start; }
  .filters-popup {
    min-width: 0; width: 92vw; max-width: 92vw; max-height: 80vh; box-sizing: border-box;
    margin: 10vh auto 6vh; border-radius: 16px; overflow-x: hidden;
  }
  .fp-header { padding: 12px 14px; }
  .fp-body { padding: 12px; }
  .custom-select { width: 100%; }
}

/* Tooltip d’aide: s’adapte au mobile et ne déborde pas */
.hint-pop { max-width: min(440px, 94vw); max-height: 70vh; overflow-y: auto; word-wrap: break-word; }

/* Tooltips et leur popup visibles et centrés en mobile */
@media (max-width: 760px) {
  .hint-pop {
    position: fixed; left: 50%; transform: translateX(-50%);
    top: 12vh; width: 94vw; max-width: 94vw; max-height: 76vh;
    z-index: 10000; box-sizing: border-box; padding: 12px;
  }
}

/* Refonte complète du popup de filtres en mobile */
@media (max-width: 760px) {
  .filters-modal.open {
    position: fixed; inset: 0; display: flex; align-items: flex-start; justify-content: center;
    padding: 4vh 0 6vh; overflow-y: auto; overscroll-behavior: contain;
    background: rgba(0,0,0,0.15);
  }
  .filters-modal.open .filters-popup {
    min-width: 0; width: 90vw !important; max-width: 90vw !important; max-height: 86vh; box-sizing: border-box;
    margin: 0 auto; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
  }
  .fp-header {
    position: sticky; top: 0; z-index: 2; padding: 14px 16px;
    border-top-left-radius: 16px; border-top-right-radius: 16px;
  }
  .fp-body {
    padding: 14px; overflow-y: auto; overflow-x: hidden; box-sizing: border-box; max-height: 68vh; display: grid; gap: 12px; justify-items: stretch;
  }
  .fp-row {
    display: grid; grid-template-columns: 1fr; align-items: start; gap: 12px; text-align: left; word-break: break-word;
  }
  .fp-row select, .fp-row input, .custom-select {
    width: 100%; min-height: 44px; box-sizing: border-box;
  }
  .fp-row .cs-hint {
    display: block; font-size: 0.9rem; color: #4a4a4a; word-break: break-word;
  }
  .fp-actions {
    position: sticky; bottom: 0; z-index: 2; background: #fff; padding: 10px 14px; display: flex;
    gap: 10px; justify-content: center; flex-wrap: wrap; border-top: 1px solid rgba(0,0,0,0.08);
  }
  .filters-popup .fs-clear, .filters-popup .fs-apply {
    flex: 0 0 auto; min-height: 42px; padding: 10px 14px; border-radius: 10px;
  }
}

/* Grille des actualités */
.actualites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 35px;
    margin-top: 40px;
    padding: 0 10px;
}

.act-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 36px rgba(23,67,146,0.18);
  border: 1px solid rgba(255,255,255,0.28);
}

.act-searchbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  box-shadow: inset 0 2px 6px rgba(23,67,146,0.08);
}
.act-searchbar .act-input {
  flex: 1 1 auto;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  color: #0f1d36;
  outline: none;
}
.act-searchbar .act-input::placeholder { color: #6b7a91; font-weight: 500; }
.act-searchbar .act-clear {
  display: none;
  min-width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(23,67,146,0.20);
  background: #ffffff;
  color: #6b7a91;
}

.act-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.act-tab {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(23,67,146,0.12);
}
.act-tab-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #0f1d36;
}
.act-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.act-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(23,67,146,0.20);
  background: #ffffff;
  color: #0f1d36;
  font-weight: 700;
}
.act-option.active {
  background: linear-gradient(135deg, #174392, #2558b3);
  color: #ffffff;
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 8px 20px rgba(23,67,146,0.28);
}

@media (max-width: 768px) {
  .act-toolbar { padding: 12px; }
  .act-tab { grid-template-columns: 1fr; }
  .act-tab-label { font-weight: 800; }
  .act-options { overflow-x: auto; padding-bottom: 4px; }
}
/* Variantes de grille selon le nombre d'éléments */
.actualites-grid.grid-1 { grid-template-columns: 1fr; }
.actualites-grid.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Header: gérer l’affichage du lien Audit & Expertise */
.nav .nav-menu .nav-link.audit-expertise .label-desktop { display: inline !important; }
.nav .nav-menu .nav-link.audit-expertise .label-mobile { display: none !important; }
@media (max-width: 576px) {
  .nav .nav-menu .nav-link.audit-expertise { height: auto; align-items: flex-start; padding-top: 1.2rem; padding-bottom: 1.2rem; }
  .nav .nav-menu .nav-link.audit-expertise .label-desktop { display: none !important; }
  .nav .nav-menu .nav-link.audit-expertise .label-mobile { display: inline-flex !important; flex-direction: column; white-space: normal; line-height: 1.1; }
  .nav .nav-menu .nav-link.audit-expertise .label-mobile .line2 { display: block; margin-top: 2px; }
}

/* Carte d'actualité - Style immersif avec contraste */
.actualite-card {
    background: #ffffff;
    border: 1px solid rgba(23, 67, 146, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(23, 67, 146, 0.05) inset;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: fadeInUp 0.6s ease-out;
    display: flex;
    flex-direction: column;
}

.actualite-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 204, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.actualite-card:hover::before {
    left: 100%;
}

.actualite-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 204, 0, 0.3) inset,
        0 0 40px rgba(255, 204, 0, 0.2);
    border-color: rgba(255, 204, 0, 0.3);
}

/* Média (Image ou Vidéo) - Style premium */
.actualite-media {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, #174392 0%, #283593 100%);
    border-bottom: 2px solid rgba(255, 204, 0, 0.2);
}

/* Badge animé Temps de lecture sur les cartes */
.actualite-media .reading-time-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(26, 26, 26, 0.708);
    color: #fff;
    box-shadow: 0 4px 12px rgba(105, 163, 255, 0.45);
    border: 1px solid rgb(172, 172, 172);
    backdrop-filter: blur(8px);
    cursor: pointer;
    z-index: 3;
}
.reading-time-badge::after {
    content: '';
    position: absolute;
    top: 40px; /* aligné au bord supérieur du tooltip */
    left: 30px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #174392, #0f1d36);
    border: 1px solid rgba(210, 210, 210, 0.35);
    border-radius: 3px;
    transform: rotate(45deg);
    z-index: 3; /* derrière le tooltip (z-index: 4) */
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease, transform 230ms ease;
}
.reading-time-badge:hover::after {
    opacity: 1;
}

.reading-time-badge.ready {
    
}

.reading-time-badge .rt-clock {
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.85);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.15) inset;
}
.reading-time-badge .rt-clock .dial {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.reading-time-badge .rt-clock .hand {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 7px;
    background: #fff;
    transform-origin: 50% 90%;
    transform: translate(-50%, -90%) rotate(0deg);
    opacity: 0.95;
}
.reading-time-badge .rt-clock .hand.minute { height: 8px; animation: spinMinute 12s linear infinite; }
.reading-time-badge .rt-clock .hand.second { height: 10px; animation: spinSecond 1.2s linear infinite; }

@keyframes spinMinute { to { transform: translate(-50%, -90%) rotate(360deg); } }
@keyframes spinSecond { to { transform: translate(-50%, -90%) rotate(360deg); } }

.reading-time-badge .rt-content { display: flex; flex-direction: row; align-items: center; gap: 6px; line-height: 1; }
.reading-time-badge .rt-label { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.35px; text-transform: uppercase; opacity: 0; max-height: 0; max-width: 0; overflow: hidden; transition: opacity 180ms ease, max-height 180ms ease, max-width 180ms ease; }
.reading-time-badge:hover .rt-label { opacity: 1; max-height: 20px; max-width: 200px; }
.reading-time-badge .rt-value { font-size: 0.82rem; font-weight: 800; opacity: 0.98; font-variant-numeric: tabular-nums; }

/* Tooltip glassmorphique avec queue et typo soignée */
.reading-time-badge .rt-tooltip {
    position: absolute;
    top: 48px;
    left: 16px;
    display: inline-block;
    width: max-content;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #174392, #0f1d36);
    border: 1px solid rgba(210, 210, 210, 0.35);
    box-shadow: 0 10px 28px rgba(0,0,0,0.28);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    color: #fff;
    pointer-events: none;
    cursor: pointer;
    overflow: visible;
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
    transition: opacity 220ms ease, transform 240ms ease;
    z-index: 4;
}
.reading-time-badge:hover .rt-tooltip {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.reading-time-badge .rt-tooltip::after { display: none !important; }
.rt-sep { width: 46px; height: 2px; background: #fff; opacity: 0.9; border-radius: 2px; margin: 8px auto 10px; }
.rt-tooltip-title {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.rt-tooltip-body { display: grid; gap: 6px; }
.rt-row { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.rt-key { font-size: 0.7rem; font-weight: 700; opacity: 0.95; letter-spacing: 0.2px; }
.rt-val { font-size: 0.72rem; font-weight: 800; opacity: 1; font-variant-numeric: tabular-nums; }

.actualite-media::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    pointer-events: none;
}

.actualite-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9) contrast(1.1);
}

.actualite-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.actualite-card:hover .actualite-media img {
    transform: scale(1.15);
    filter: brightness(1) contrast(1.2);
}

.actualite-media-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.95), rgba(255, 107, 0, 0.95));
    color: #fff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(255, 204, 0, 0.4);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contenu de la carte */
.actualite-content {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.actualite-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 18px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Domaine seul sur sa ligne */
.actualite-domain-wrapper {
    margin-bottom: 15px;
}

.actualite-domain {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #174392, #2558b3);
    color: #fff;
    padding: 7px 15px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(23, 67, 146, 0.3);
}

.actualite-domain i {
    font-size: 0.9rem;
}

/* Ligne de métadonnées */
.actualite-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 1px;
}

.actualite-author,
.actualite-date {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: #6b7280; /* Gris pour les métas des mini-actualités */
    font-size: 0.8rem;
    font-weight: 500;
}

/* Styles pour formatages de description (overlay actualité) */
.century-gothic {
    font-family: "Century Gothic", "URW Gothic", Arial, sans-serif;
    letter-spacing: 0.2px;
}

.gradient-anime {
    background: linear-gradient(90deg, #FFCC00, #FF6B00, #FFCC00);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Optionnel: surlignement statique si utilisé sans inline styles */
.highlight-static {
    padding: 0 0.2em;
    border-radius: 4px;
    color: #111;
}
/* Souligné */
.text-underline {
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 2px;
}

.actualite-comments-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280; /* Gris par défaut */
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.actualite-comments-count:hover {
    color: #ff6b00; /* Orange pur au survol */
    background: transparent;
}

/* Séparateur */
.actualite-separator {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 204, 0, 0.5), transparent);
    margin: 15px auto;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}

.actualite-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
    white-space: pre-wrap;
}

/* Bouton d'action - Style premium */
.actualite-action {
    margin-top: auto;
}

.actualite-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    background: linear-gradient(135deg, #FFCC00, #ff8c00);
    color: #000;
    text-decoration: none;
    border-radius: 7px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 20px rgba(255, 204, 0, 0.4),
        0 0 0 2px rgba(255, 204, 0, 0.1) inset;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.actualite-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.actualite-button:hover::before {
    width: 300px;
    height: 300px;
}

.actualite-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 35px rgba(255, 204, 0, 0.6),
        0 0 0 3px rgba(255, 204, 0, 0.2) inset;
}

.actualite-button i {
    transition: transform 0.4s ease;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.actualite-button:hover i {
    transform: translateX(5px);
}

/* Overlay fullscreen - Style immersif */
.article-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.article-overlay.active {
    display: flex;
    opacity: 1;
}

.article-overlay-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #eaf4ff 100%);
    overflow-y: auto;
    position: relative;
    animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    scrollbar-width: none; /* Masquer la scrollbar (Firefox) */
}

.article-overlay-content::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none; /* Masquer la scrollbar (WebKit) */
}

/* Bouton fermer - Style premium avec contraste */
.article-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #174392, #2558b3);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    z-index: 10001;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 16px rgba(23, 67, 146, 0.4),
        0 0 0 2px rgba(23, 67, 146, 0.25);
}

.article-close:hover {
    background: linear-gradient(135deg, #2558b3, #1e3a8a);
    color: #fff;
    transform: translateY(-1px) scale(1.03);
    box-shadow: 
        0 10px 24px rgba(23, 67, 146, 0.55),
        0 0 0 3px rgba(23, 67, 146, 0.3);
}

/* Contenu de l'article complet */
.article-full {
    max-width: 980px;
    margin: 0 auto;
    padding: 80px 24px 64px;
}

.article-full-media {
    width: 100%;
    max-width: 980px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 32px;
    max-height: none;
    overflow: visible;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 10px 30px rgba(23, 67, 146, 0.08);
    border: 1px solid rgba(23, 67, 146, 0.12);
}

.article-full-media img,
.article-full-media video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
    float: none;
}

.article-full-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f1d36;
    margin-bottom: 25px;
    line-height: 1.3;
    text-shadow: none;
}

.article-full-domain-wrapper {
    margin-bottom: 20px;
}

.article-full-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(255, 204, 0, 0.2);
}

.article-full-description {
    color: #1f2937;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    white-space: pre-wrap;
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(23, 67, 146, 0.08);
    border: 1px solid rgba(23, 67, 146, 0.1);
}

/* Section commentaires - Style immersif */
.article-comments-section {
    margin-top: 50px;
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(23, 67, 146, 0.08);
    border: 1px solid rgba(23, 67, 146, 0.12);
}

.article-comments-header {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f1d36;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: none;
}

.article-comment {
    background: rgba(23, 67, 146, 0.05);
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 14px;
    border-left: 3px solid #174392;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(23, 67, 146, 0.08);
}

.article-comment:hover {
    background: rgba(23, 67, 146, 0.08);
    border-left-color: #2558b3;
    transform: translateX(3px);
    box-shadow: 0 3px 12px rgba(23, 67, 146, 0.12);
}

.article-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.article-comment-author {
    font-weight: 600;
    color: #174392;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-comment-date {
    color: #6b7280;
    font-size: 0.75rem;
}

.article-comment-text {
    color: #1f2937;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Formulaire de commentaire - Style premium */
.article-comment-form {
    background: #ffffff;
    padding: 24px 28px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(23, 67, 146, 0.08);
    border: 1px solid rgba(23, 67, 146, 0.12);
    margin-top: 24px;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.article-comment-form h3 {
    font-size: 1.1rem;
    color: #0f1d36;
    margin-bottom: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-form-group {
    margin-bottom: 20px;
}

.comment-form-group label {
    display: block;
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.comment-form-group input,
.comment-form-group textarea {
    width: 100%;
    padding: 15px 18px;
    background: #ffffff;
    border: 1px solid rgba(23, 67, 146, 0.2);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    color: #1f2937;
    transition: all 0.3s ease;
}

.comment-form-group input:focus,
.comment-form-group textarea:focus {
    outline: none;
    border-color: #2558b3;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 88, 179, 0.12);
}

.comment-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.comment-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background: linear-gradient(135deg, #FFCC00, #ff6b00);
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 6px 25px rgba(255, 204, 0, 0.4);
}

.comment-submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(255, 204, 0, 0.6);
}

.comment-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.comment-submit-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #000;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

.comment-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
}

.comment-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
    display: block;
}

.comment-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #e57373;
    border: 1px solid rgba(244, 67, 54, 0.3);
    display: block;
}

.no-comments-message {
    text-align: center;
    color: #6b7280;
    font-size: 0.95rem;
    padding: 30px;
    font-style: italic;
}

.article-full-action {
    margin-top: 40px;
    text-align: center;
}

/* États de chargement */
.actualites-loading {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.actualites-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 204, 0, 0.2);
    border-top-color: #FFCC00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.actualites-error,
.actualites-empty {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.actualites-error i,
.actualites-empty i {
    font-size: 5rem;
    color: rgba(255, 204, 0, 0.3);
    margin-bottom: 25px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Animation décalée pour les cartes */
.actualite-card:nth-child(1) { animation-delay: 0.1s; }
.actualite-card:nth-child(2) { animation-delay: 0.2s; }
.actualite-card:nth-child(3) { animation-delay: 0.3s; }
.actualite-card:nth-child(4) { animation-delay: 0.4s; }
.actualite-card:nth-child(5) { animation-delay: 0.5s; }
.actualite-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive */
@media (max-width: 1024px) {
    .actualites-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }
    
    .article-full {
        padding: 100px 25px 70px;
    }
}

@media (max-width: 768px) {
    #actualitees {
        padding: 60px 1.5rem;
    }

    .actualites-header h1 {
        font-size: 2.5rem;
    }

    .actualites-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Forcer une seule colonne en mobile, même si grid-2 est appliqué dynamiquement */
    .actualites-grid.grid-2,
    .actualites-grid.grid-1 {
        grid-template-columns: 1fr !important;
    }

    .actualite-media {
        height: 230px;
    }

    .actualite-title {
        font-size: 1.3rem;
    }

    .article-full {
        padding: 90px 20px 50px;
    }

    .article-full-title {
        font-size: 1.9rem;
    }

    .article-close {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .article-comments-section {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    #actualitees {
        padding: 50px 1rem;
    }

    .actualites-header h1 {
        font-size: 2rem;
    }

    .actualite-content {
        padding: 22px;
    }

    .actualite-media {
        height: 210px;
    }

    .article-full {
        padding: 80px 15px 40px;
    }

    .article-full-title {
        font-size: 1.6rem;
    }

    .article-full-description {
        padding: 20px;
        font-size: 0.95rem;
    }
    
    .article-comments-section {
        padding: 20px 15px;
    }
}
.article-full-meta .actualite-author,
.article-full-meta .actualite-date {
    color: #6b7280; /* gris overlay */
}
.article-full-meta .actualite-comments-count {
    color: #6b7280; /* gris overlay */
}
.article-full-meta .actualite-comments-count:hover {
    color: #ff6b00; /* orange pur au survol */
    background: transparent;
}

/* Description inline (pas de container distinct) */
.article-full-description-inline {
    margin: 12px 0 8px;
    color: #0a2e47;
    font-size: 1rem;
    line-height: 1.6;
}

/* Bouton de redirection: espacement bas en mobile */
.article-full-action {
    margin-bottom: 20px;
}
@media (max-width: 768px) {
    .article-full-action {
        margin-bottom: 34px;
    }

    .article-full-media {
        max-width: 94vw;
        margin-left: auto;
        margin-right: auto;
    }

    .article-full-media img,
    .article-full-media video {
        width: 100%;
        max-width: 94vw;
    }
}

/* Bouton charger plus: bleu avec label blanc */
.comments-load-more-wrapper {
    text-align: center;
    margin: 20px 0;
}
.comments-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1e88e5; /* bleu */
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.comments-load-more:hover {
    background: #1565c0;
}

/* Centrage strict du média en overlay (mobile) */
@media (max-width: 768px) {
  .article-overlay .article-overlay-content {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
  .article-overlay .article-full {
    max-width: 94vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .article-overlay .article-full-media {
    width: 100% !important;
    max-width: 94vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .article-overlay .article-full-media img,
  .article-overlay .article-full-media video {
    display: block !important;
    width: 100% !important;
    max-width: 94vw !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
  }
}

/* Actions sur commentaires (au clic) */
.comment-actions {
    display: none;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}
.comment-actions.show {
    display: flex;
}
.comment-action.show::before{
    z-index: -5;
}
.comment-action {
    background: #eef3ff;
    color: #0a2e47;
    border: 1px solid #dbe7ff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
}
.comment-action:hover {
    background: #e2edff;
}
.comment-action.delete {
    background: #ffecec;
    border-color: #ffcccc;
    color: #c62828;
}
.comment-action.delete:hover {
    background: #ffd6d6;
}

/* Sous-commentaires (visuellement distincts) */
.article-sub-comments {
    margin-top: 10px;
    margin-left: 14px;
    padding-left: 14px;
    border-left: 2px solid #dbe7ff;
}
.article-sub-comment {
    margin-top: 10px;
    background: #f8fbff;
    border: 1px solid #e9f2ff;
    border-radius: 8px;
    padding: 10px 12px;
}

/* Champ "Réponse à" non modifiable, avec bouton X */
.comment-reply-to {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fbff;
    border: 1px solid #e9f2ff;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}
.comment-reply-to input[readonly] {
    flex: 1;
    background: transparent;
    border: none;
    color: #0a2e47;
    font-weight: 600;
}
.reply-clear-btn {
    background: #ffecec;
    color: #c62828;
    border: 1px solid #ffcccc;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}
.reply-clear-btn:hover {
    background: #ffd6d6;
}

/* Temps de lecture - cartes et overlay */
.actualite-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text-secondary, #333);
}
.actualite-reading-time.ready .reading-time-spinner { display: none; }
.reading-time-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: var(--accent, #174392);
  border-radius: 50%;
  display: inline-block;
  animation: actualite-rt-spin 0.75s linear infinite;
}
@keyframes actualite-rt-spin { to { transform: rotate(360deg); } }
.filters-modal {
    position: fixed;
    inset: 0;
    background: rgba(12,16,28,0.45);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    display: none;
    z-index: 2147483647; /* max pour surpasser tout le site */
}
.filters-modal.open { display: flex; align-items: center; justify-content: center; animation: fadeInUp 220ms ease; }
.filters-popup {
    width: max-content;
    max-width: 92vw;
    min-width: 680px; /* un peu plus large pour contenir tout le contenu */
    background: #ffffff;
    color: #0f1d36;
    border: 1px solid rgba(23,67,146,0.18);
    border-radius: 18px;
    box-shadow: 0 20px 56px rgba(0,0,0,0.30);
    animation: slideInUp 320ms ease;
    max-height: 75vh;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    position: relative;
    z-index: 2147483647; /* max au-dessus du modal */
}
.filters-popup::-webkit-scrollbar { width: 0; height: 0; }
.fp-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid rgba(23,67,146,0.12); background: linear-gradient(135deg, #174392, #0f1d36); color: #fff; border-top-left-radius: 18px; border-top-right-radius: 18px; }
.fp-header h3 { margin: 0; font-weight: 800; font-size: 1.08rem; letter-spacing: 0.2px; }
.fp-close { border: none; background: #ffffff22; color: #fff; border-radius: 999px; width: 36px; height: 36px; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,0.22); }
.fp-close:hover { background: #ffffff33; transform: translateY(-1px); }
.fp-body { padding: 16px; display: grid; gap: 14px; justify-items: center; }
.fp-row { display: grid; grid-template-columns: 1fr; align-items: center; gap: 10px; text-align: center; }
.fp-actions { display: flex; justify-content: center; padding-top: 6px; }

.custom-select { position: relative; width: 240px; margin: 0 auto; }
.cs-trigger { width: 100%; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid rgba(23,67,146,0.20); border-radius: 12px; background: linear-gradient(180deg, #ffffff, #f6f9ff); color: #0f1d36; cursor: pointer; box-shadow: inset 0 2px 6px rgba(23,67,146,0.06); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.cs-trigger .cs-label { display: inline-block; max-width: 85%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.cs-menu { position: absolute; top: calc(100% + 6px); left: 0; width: 100%; max-height: 260px; overflow-y: auto; background: #ffffff; color: #0f1d36; border: 1px solid rgba(23,67,146,0.20); border-radius: 12px; box-shadow: 0 14px 28px rgba(0,0,0,0.22); display: none; z-index: 2147483647; }
.custom-select.open .cs-menu { display: block; }
.cs-option { display: block; width: 100%; text-align: left; padding: 12px 14px; border: none; background: #fff; color: #0f1d36; cursor: pointer; font-weight: 700; }
.cs-option:hover { background: #eef6ff; }
.cs-option:focus-visible { outline: 2px solid #0ea5ff; outline-offset: -2px; }

@media (max-width: 768px) {
    .fp-row { grid-template-columns: 1fr; }
    .custom-select { width: 100%; }
}

/* Sur-stylisation dédiée à la barre de recherche */
.fs-pill.fs-search { padding: 12px 14px; background: linear-gradient(180deg, #ffffff, #f8fbff); border: 2px solid rgba(23,67,146,0.20); box-shadow: inset 0 2px 6px rgba(23,67,146,0.08), 0 10px 28px rgba(0,0,0,0.18); }
.fs-pill.fs-search input { flex: 1 1 auto; min-width: 240px; font-size: 1rem; font-weight: 600; color: #0f1d36; }
.fs-pill.fs-search input::placeholder { color: #6b7a91; font-weight: 500; }
.fs-pill.fs-search:focus-within { box-shadow: 0 14px 36px rgba(14,165,255,0.35), inset 0 2px 6px rgba(23,67,146,0.10); filter: saturate(108%); }
.fs-pill.fs-search i { color: #0ea5ff; text-shadow: 0 1px 0 rgba(255,255,255,0.75); }

/* Amélioration du bouton de recherche */
.fs-pill.fs-search .fs-btn {
  width: 40px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #06b6d4, #1e3a8a);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.48);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.35);
}
.fs-pill.fs-search .fs-btn:hover { transform: translateY(-1px) scale(1.05); filter: brightness(1.06); box-shadow: 0 10px 28px rgba(30, 58, 138, 0.45); }
.fs-pill.fs-search .fs-btn i { font-size: 1rem; }

/* Bouton effacer (X) dans la barre de recherche */
.fs-input-clear {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  border: 1px solid rgba(23,67,146,0.20);
  background: #ffffff;
  color: #6b7a91;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.fs-input-clear:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,0.18); border-color: rgba(23,67,146,0.35); }
.fs-input-clear i { font-size: 0.9rem; }

/* Texte d’aide sous les dropdowns */
.cs-hint {
  font-size: 0.78rem;
  line-height: 1.35;
  color: #6b7a91;
  max-width: 420px;
  margin: 0 auto 2px;
}

@keyframes pulseGlow { 0% { filter: drop-shadow(0 0 0 rgba(14,165,255,0)); } 50% { filter: drop-shadow(0 0 6px rgba(14,165,255,0.7)); } 100% { filter: drop-shadow(0 0 0 rgba(14,165,255,0)); } }
/* ===== Surcouches pour modal de filtres et info pop ===== */
.filters-modal { z-index: 2147483647; isolation: isolate; }
.filters-popup { z-index: 2147483647; position: relative; }
.cs-menu { z-index: 2147483646; }
.fp-row .cs-hint { display: none; }
.cs-wrap { display: flex; align-items: center; gap: 8px; justify-content: center; }
.cs-info {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid rgba(59,130,246,0.35);
  background: linear-gradient(180deg, rgba(219,234,254,0.9), rgba(191,219,254,0.85));
  color: #0ea5e9; box-shadow: 0 4px 12px rgba(14,165,233,0.25);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.cs-info:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(14,165,233,0.32); }
.cs-info:active { transform: translateY(0); }
.cs-info i { font-size: 16px; }
.hint-pop {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.96);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(15,23,42,0.12); border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15,23,42,0.28);
  padding: 14px 16px 16px; max-width: min(420px, 86vw);
  opacity: 0; pointer-events: none; transition: opacity 220ms ease, transform 220ms ease;
  z-index: 2147483647; /* au-dessus de tout, y compris .cs-menu */
}
.hint-pop.show { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.hint-pop .hint-content { font-size: 13px; color: #374151; line-height: 1.5; padding-top: 8px; }
.hint-pop .hint-close {
  position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid rgba(15,23,42,0.12); background: #ffffff; color: #111827; font-size: 16px;
}
.hint-pop .hint-close:hover { background: #f3f4f6; }

/* ===== Overrides ciblées (lisibilité et largeur) ===== */
/* Bouton réinitialiser avec libellé */
.filters-popup .fs-clear {
  width: auto; height: auto; padding: 10px 14px; gap: 8px;
  font-weight: 800; color: #111827;
}
.filters-popup .fs-clear i { font-size: 1rem; }

/* Barre de recherche plus longue sur desktop */
@media (min-width: 992px) {
  .filters-strip #act-search { min-width: 440px; }
}

/* ===== Barre de progression de lecture (overlay article) ===== */
.reading-progress {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 28px;
  background: #174392;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.2px;
  z-index: 2147483600;
}
.reading-progress .reading-progress-text { position: relative; z-index: 2; }
.reading-progress .reading-progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0%;
  background: #0e5bdc;
  opacity: 0.28;
}
.ux-toolbox {
  position: sticky;
  top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(245,247,255,0.35));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 36px rgba(17, 24, 39, 0.18);
  border: 1px solid rgba(255,255,255,0.35);
}

.ux-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  border: 1px solid rgba(17,24,39,0.08);
}
.ux-icon {
  position: absolute;
  left: 14px;
  color: #6b7a91;
}
.ux-input {
  flex: 1 1 auto;
  padding-left: 34px;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  color: #0f1d36;
  outline: none;
}
.ux-input::placeholder { color: #6b7a91; font-weight: 500; }
.ux-clear {
  min-width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(17,24,39,0.12);
  background: #ffffff;
  color: #6b7a91;
  display: none;
}

.ux-segments {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.ux-segment {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(17,24,39,0.08);
}
.ux-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #0f1d36;
}
.ux-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ux-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,0.12);
  background: #ffffff;
  color: #0f1d36;
  font-weight: 700;
}
.ux-chip.active {
  background: linear-gradient(135deg, #6e56cf, #0ea5e9);
  color: #ffffff;
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 8px 20px rgba(14,165,233,0.28);
}

@media (max-width: 992px) {
  .ux-segments { grid-template-columns: 1fr; }
  .ux-segment { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .ux-toolbox { padding: 12px; }
  .ux-chips { overflow-x: auto; padding-bottom: 4px; }
}
.pro-toolbar {
  position: sticky;
  top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.pro-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}
.pro-icon {
  position: absolute;
  left: 12px;
  color: #6b7280;
}
.pro-input {
  flex: 1 1 auto;
  padding-left: 30px;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  outline: none;
}
.pro-input::placeholder { color: #9ca3af; }
.pro-clear {
  min-width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  display: none;
}

.pro-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.pro-group {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}
.pro-label {
  font-weight: 700;
  color: #0f172a;
}
.pro-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pro-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
}
.pro-chip.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

@media (max-width: 992px) {
  .pro-controls { grid-template-columns: 1fr; }
  .pro-group { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .pro-toolbar { padding: 12px; }
  .pro-chips { overflow-x: auto; padding-bottom: 4px; }
}
.pf-toolbar {
  position: sticky;
  top: 8px;
  z-index: 50;
  max-width: 1200px;
  width: clamp(280px, 75vw, 1200px);
  margin: 0 auto 16px;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.pf-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}
.pf-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 8px 10px;
}
.pf-icon {
  position: absolute;
  left: 12px;
  color: var(--gray-600);
}
.pf-input {
  flex: 1 1 auto;
  border: none;
  background: transparent;
  padding-left: 28px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
  outline: none;
}
.pf-input::placeholder { color: #9ca3af; }
.pf-clear {
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  display: none;
  align-items: center;
  justify-content: center;
}
.pf-clear i { font-size: 14px; }
.pf-seg {
  display: inline-flex;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}
.pf-seg-btn {
  padding: 8px 12px;
  font-weight: 600;
  color: var(--gray-800);
  background: var(--white);
  border: none;
  border-right: 1px solid var(--gray-200);
  transition: background 140ms ease, color 140ms ease;
}
.pf-seg-btn:last-child { border-right: none; }
.pf-seg-btn.active { background: var(--primary-blue); color: var(--white); border-color: var(--primary-blue); }
.pf-seg-btn:hover { background: var(--light-blue); }
.pf-select-group { display: inline-flex; align-items: center; gap: 8px; }
.pf-label { font-weight: 700; color: var(--gray-800); font-size: 0.9rem; }
.pf-select { border: 1px solid var(--gray-200); border-radius: 8px; padding: 8px 10px; font-weight: 600; color: var(--gray-800); background: var(--white); min-width: 180px; max-width: 260px; }

@media (max-width: 992px) {
  .pf-row { grid-template-columns: 1fr; }
  .pf-select-group { grid-template-columns: 1fr; }
}

.pf-more {
  justify-self: end;
  border: 1px solid var(--primary-blue);
  background: var(--white);
  color: var(--primary-blue);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
}
.pf-more:hover { background: var(--primary-blue); color: var(--white); }
.pf-panel {
  margin-top: 10px;
  border-top: 1px solid var(--gray-200);
  padding-top: 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 220ms ease, opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
  display: flex;
  justify-content: center;
}
.pf-panel[hidden] { display: none !important; margin-top: 0; padding-top: 0; border-top: 0; }
.pf-panel.open {
  max-height: 700px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.pf-panel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  max-width: 980px;
}

@media (max-width: 992px) {
  .pf-panel-row { max-width: 100%; }
}

@media (max-width: 768px) {
  .pf-toolbar { padding: 12px; margin: 10px 12px; width: calc(100% - 24px); }
  .pf-row { grid-template-columns: 1fr; gap: 8px; }
  .pf-more { justify-self: start; }
  .pf-more[aria-expanded="false"][data-has-filters="false"] { justify-self: center; }
  .pf-panel { padding-top: 8px; }
  .pf-panel-row { flex-direction: column; align-items: stretch; gap: 12px; max-width: 100%; padding: 0 4px; }
  .pf-seg { width: 100%; }
  .pf-seg-btn { flex: 1 1 0; text-align: center; padding: 10px 12px; }
  .pf-select-group { width: 100%; flex-direction: column; align-items: stretch; gap: 6px; }
  .pf-select { width: 100%; min-width: 0; max-width: 100%; }
}

.actualites-grid.loading { min-height: 300px; display: flex; align-items: center; justify-content: center; }
.esa-loader { display: inline-flex; align-items: center; gap: 12px; color: var(--white); font-weight: 800; text-shadow: 0 1px 2px rgba(0,0,0,0.15); }
.esa-spinner { width: 36px; height: 36px; border: 4px solid var(--gray-200); border-top-color: var(--secondary-blue); border-radius: 50%; animation: esa-spin 0.9s linear infinite; box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
@keyframes esa-spin { to { transform: rotate(360deg); } }
