/* Réinitialisation des styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* ===========================
   Lucide icons + brand icons
   =========================== */
[data-lucide],
.lucide {
    display: inline-block;
    vertical-align: middle;
    width: 1em;
    height: 1em;
    stroke-width: 2;
}
.brand-icon {
    display: inline-block;
    vertical-align: middle;
    width: 1em;
    height: 1em;
}
@keyframes lucide-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.lucide-spin {
    animation: lucide-spin 1s linear infinite;
}

/*
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
*/
body {
    background-color: #f5f5f5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}
p {
  margin-bottom: 24px; /* ou 24px, ou ce que tu veux */
}
ul {
    list-style: none;
}
/* search box */
    .search-box { position: relative; width: 185px; }
    .search-box input {
      width: 100%; padding: 10px 10px 10px 36px;
      box-sizing: border-box; font-size: 16px;
    }
    .search-box::before {
      
      left: 10px; top: 50%;
      transform: translateY(-50%);
      font-size: 16px; color: #666; pointer-events: none;
    }
    .suggestions {
      position: absolute; top: 40px; left: 0; right: 0;
      border: 1px solid #ff7200;
      background: white; max-height: 200px;
      overflow-y: auto; z-index: 1000;
    }
    .suggestion {
      padding: 10px; cursor: pointer;
      text-decoration: none; display: block; color: black;
	 
    }
    .suggestion:hover {
      background-color: #f0f0f0;
    }
	
	
	
/* Barre d'actualités défilante */
.news-ticker-link {
    display: block;
    width: 100%;
}
.news-tickers {  
	display: flex;
	height:15px;
 	position: fixed;
    background-color:#f5f5f5;
	top:0;
	left:250px;
	width: calc(100% - 250px - 20px); /* Largeur ajustée pour s'arrêter au bord droit de la deuxième carte */
    max-width: 1170px; /* Largeur maximale correspondant aux deux cartes */ 
	z-index: 1001;
	}
.news-ticker {
    display: flex;
    background-color: #e86c00;
    color: white;
    height: 40px;
    overflow: hidden;
    position: fixed;
    z-index: 1000;
    transition: background-color 0.3s;
    border-radius: 10px; /* Bords arrondis pour un visuel plus moderne */
    /* Ajustement précis pour aligner avec le "A" de À LA UNE et le bord droit de la deuxième carte */
    left: 250px; /* Aligné avec le "A" de À LA UNE */
    width: calc(100% - 250px - 20px); /* Largeur ajustée pour s'arrêter au bord droit de la deuxième carte */
    max-width: 1170px; /* Largeur maximale correspondant aux deux cartes */
	top:10px;
	
}

.news-ticker:hover {
    background-color: #ff7b00;
}


.ticker-title {
    background-color: #e86c00;
    padding: 10px 15px;
    font-weight: bold;
    white-space: nowrap;
    z-index: 2;
    transition: background-color 0.3s;
    border-radius: 10px 0 0 10px;
    position: relative;
    left: 0;
}

.news-ticker:hover .ticker-title {
    background-color: #ff7b00;
}

.ticker-content {
    padding: 10px 0;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.ticker-content span {
    display: inline-block;
    animation: ticker 15s linear infinite;
    position: absolute;
}

@keyframes ticker {
    0% { transform: translateX(50%); }
    100% { transform: translateX(-100%); }
}

/* Structure principale */
.main-container {
    display: flex;
    margin-top: 0;
    min-height: calc(100vh - 40px);
}

/* Barre latérale */
.sidebar {
    width: 215px;
    background-color: #00507D;
    color: white;
    padding: 0 15px 15px; /* Suppression du padding top pour l'espace bleu */
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 900;
}

/* Espace bleu au-dessus du logo */
.sidebar::before {
    content: "";
    display: block;
    height: 15px;
    background-color: #00507D; /* S'assurer que c'est bien bleu */
    margin: 0 -15px;
    width: calc(100% + 30px);
}

.logo {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 15px; /* Ajout d'une marge en haut pour l'espace */
}

.logo img {
    max-width: 100%;
    height: auto;
    border: 2px solid #e86c00; /* Cadre orange fin */
    border-radius: 10px; /* Bords arrondis */
    background-color: #0a3b73;
    padding: 5px;
}

.site-title {
    font-size: 12px;
    margin-top: 5px;
    font-weight: bold;
    white-space: nowrap; /* Empêche le texte de passer à la ligne */
}

.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 8px;
    border: 1px solid #0a3b73;
    border-radius: 5px;
    background-color: white;
}

/*.main-nav ul li {
    margin-bottom: 10px;
}

.main-nav ul li a {
    display: block;
    padding: 10px;
    background-color: #0a3b73;
    border-radius: 5px;
    transition: background-color 0.3s;
    text-align: center;
    font-weight: bold;
}

.main-nav ul li a.active {
    background-color: #e86c00;
}

.main-nav ul li a:hover {
    opacity: 0.9;
} */
.main-nav {
    padding: 0;
    margin: 0 0 8px 0;
    width: var(--sidebar-content-width);
    margin-left: var(--sidebar-padding-left);
    box-sizing: border-box;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav ul li {
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.main-nav ul li:last-child {
    border-bottom: none;
}

.main-nav ul li a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.98rem;
    text-transform: uppercase;
    padding: 9px 0;
    position: relative;
    transition: color 0.18s;
    letter-spacing: 0.01em;
    background: transparent;
}

.main-nav ul li a::before,
#menu ul li a::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background: transparent;
    border-radius: 2px;
    transition: background 0.2s;
}

/* survol ou lien actif */
.main-nav ul li a.active::before,
.main-nav ul li a:hover::before,
#menu ul li a.active::before,
#menu ul li a:hover::before {
    background: #ff7200;
}

/* effet de fond léger sur le lien actif ou survolé */
.main-nav ul li a.active,
.main-nav ul li a:hover,
#menu ul li a.active,
#menu ul li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.social-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    /*margin-top: 20px;*/
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0a3b73;
    border-radius: 5px;
    transition: background-color 0.3s;
    
}

.social-icons a:hover {
    background-color: #e86c00;
}
    .custom-fa-icon {
      width: 1.5em;
      height: 1.5em;
      display: inline-block;
      vertical-align: top;
      fill: currentColor;
      transition: color 0.3s;
    }
  /* IcÃ´nes sociaux GRILLE 3x3 compacte */

    
    .sidebar-social-logos {
       display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px 6px;
      justify-items: center;
      align-items: center;
      padding: 7px 0 7px 0;
      width: 100%;
      margin: 350px auto 0;
      background: transparent;
      min-height: 58px;
      border-radius: 0;
      position: relative;
      z-index: 20;
      
    }
        .sidebar-social-logos svg.brand-icon,
        .sidebar-social-logos [data-lucide] {

      color:#fff;
    }
    .sidebar-social-logos a {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      border-radius: 8px;
      background: transparent;
      border: none;
      box-shadow: none;
      position: relative;
      transition: background 0.12s;
      padding: 0;
      text-decoration: none;
    }

    .sidebar-social-logos img {
      width: 19px;
      height: 19px;
      object-fit: contain;
      display: block;
      filter: drop-shadow(0 1px 3px #0002);
      margin-bottom: 1px;
    }
.sidebar-social-logos a::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.17s;
  position: absolute;
  bottom: -6px;
  left: 40%;
  margin-top:0px;
  
}
    .sidebar-social-logos a:hover::after,
    .sidebar-social-logos a:focus::after {
      background: #ff7200;
    }
    .custom-fa-icon {
      width: 1.5em;
      height: 1.5em;
      display: inline-block;
      vertical-align: top;
      fill: currentColor;
      transition: color 0.3s;
    }


.sidebar-social-logos svg.custom-fa-icon {
  width: 1.5em;
  height: 1.5em;
  fill: #fff;
  display: block;
  margin-bottom: 1px;
  filter: drop-shadow(0 1px 3px #0002);

}
/* Contenu principal */
.content {
    flex: 1;
    padding: 20px;
    margin-left: 230px; /* Augmenté de 215px à 230px pour ajouter l'espace blanc */
	margin-top:040px;
    display: grid; /* Utilisation de grid pour éviter les chevauchements */
    grid-template-columns: minmax(0, 1170px) 320px; /* Colonne principale + colonne latérale */
    grid-gap: 20px; /* Espace entre les colonnes */
    max-width: 1550px; /* Largeur maximale pour éviter les débordements */
}

.main-content {
    grid-column: 1; /* Première colonne pour le contenu principal */
    width: 100%;
    max-width: 1210px;
}

.section-title {
    color: #0e4c92;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
}

/* Carrousel */
.carousel-container {
    margin-bottom: 40px;
    position: relative;
    width: 100%;
    max-width: 1210px;
    margin-left: 0; /* Aligner à gauche sous le "A" de À LA UNE */
}

.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.carousel-article {
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
    border-radius: 10px; /* Bords arrondis pour un visuel plus moderne */
}

.main-article {
    grid-column: span 1;
}

.article-image {
    position: relative;
    height:359px;
    width: 100%;
    max-width: 595px;
    overflow: hidden;
    border-radius: 10px 10px 0 0; /* Bords arrondis en haut */
	
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-category {
    position: relative;
	top:0;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 5px 10px;
    color: white;
    font-weight: bold;
    background-color: #e86c00;
    text-align: center;
}

.hover-indicator {
    position: absolute;
    right: 10px;
    width: 40px;
    height: 40px;
    background-color: #0e4c92;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.hover-indicator i {
    color: #e86c00;
    font-size: 20px;
}

.article-link:hover .hover-indicator {
    opacity: 1;
}

.article-content {
    padding: 15px;
    background-color: white;
    border-radius: 0 0 10px 10px; /* Bords arrondis en bas */
}

.article-content h3 {
    font-size: 16px;
    color: #00507D;
}

/* Indicateurs du carrousel */
.carousel-indicators, .profiles-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: #e86c00;
}

/* Section Profils */
.profiles-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1210px;
    margin-left: 0; /* Aligner à gauche sous le "P" de PROFILS ET BIOGRAPHIES */
	padding:10px;
}

.profiles-group {
    display: none;
}

.profiles-group.active {
    display: block;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes sur desktop */
    gap: 20px;
    margin-bottom: 20px;

}

.profile-card {
    background-color: white;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    border-radius: 10px; /* Bords arrondis pour un visuel plus moderne */
	
}
.profile-card:hover {
    transform: rotate(2deg) scale(1.03);
}
.profile-link {
    display: block;
}



/*.profile-link:hover .profile-image {
    transform: rotate(2deg) scale(1.05);
} */

.profile-image {
    position: relative;
    height: 100%;
    overflow: hidden;
    transition: transform 0.5s;
    transform-origin: center;
    border-radius: 10px 10px 0 0; /* Bords arrondis en haut */
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: red;
    color: white;
    padding: 5px 30px 5px 20px;
    font-weight: bold;
    transform: rotate(-45deg) translate(-15px, -15px);
    z-index: 2;
}

.profile-info {
    padding: 15px;
    border-radius: 0 0 10px 10px; /* Bords arrondis en bas */
}

.profile-country {
    display: inline-block;
    padding: 5px 10px;
    color: #e86c00;
    font-weight: bold;
    margin-bottom: 10px;
}

.profile-description {
    font-size: 14px;
    color: #00507D;
    line-height: 1.4;
}

/* Blocs latéraux */
.sidebar-blocks {
    grid-column: 2; /* Deuxième colonne pour les blocs latéraux */
    width: 100%;
    max-width: 300px;
    margin-top: 48px; /* Alignement avec le contenu principal */
}

.sidebar-block {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	padding:0 0 10px 0;
}

.sidebar-block-title {
    background-color: #00507D;
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    text-align: center;
}

.sidebar-block-content {
    padding: 15px;
}

/* Bloc Calendrier */
.election-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.election-bullet {
    width: 10px;
    height: 10px;
    background-color: #e86c00;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.election-info {
    flex-grow: 1;
}

.election-country {
    font-weight: bold;
    color: #00507D;
}

.election-type {
    font-size: 14px;
    color: #333;
}

.election-date {
    color: #e86c00;
    font-weight: bold;
    text-align: right;
    flex-shrink: 0;
    margin-left: 10px;
}

/* Bloc Explorer */
.explorer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.explorer-item {
    background-color: #e86c00;
    color: white;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s;
}

.explorer-item:hover {
    background-color: #ff7b00;
}

.explorer-item.full-width {
    grid-column: span 2;
}

.explorer-item i {
    font-size: 24px;
    margin-bottom: 5px;
}

/* Bloc Décès */
.death-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.death-info {
    flex-grow: 1;
}

.death-name {
    /*font-weight: bold;
    color: #0e4c92;*/
	color: #00507D;
    font-size: 16px;
	font-weight:600;
    margin: 0 0 0 5px;
}

.death-details {
    /*font-size: 14px;
    color: #333;*/
	color: gray;
    font-size: 13px;
	font-weight:600;
    margin: 0 0 2px 5px;
}

.death-details span {
    color: #e86c00;
}

/* Boutons "Voir tout" */
.view-all-button {
    display: block;
    background-color: #00507D;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.view-all-button:hover {
    background-color: #0a3b73;
}
/*-------CALENDRIER-------*/
/* Bloc Calendrier (aperçu) */
.calendar-block {
  /*border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);*/
  padding: 20px 24px;
  background: #fff;
  margin-bottom: 18px;
  position: relative;
}

.calendar-title {
  font-size: 1.18em;
  font-weight: bold;
  color: #185fa8;
  margin: 0 0 14px 0;
  letter-spacing: 0.5px;
}

.calendar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

 .calendar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size:1em;
}

.calendar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 7px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.10);
}

.calendar-country {
  flex: 1 1 auto;
  font-size: 0.98em;
}

.calendar-date {
  background: #f1f1f1;
  color: #00507D;
  font-size: 0.85em;
  font-weight: 600;
  border-radius: 7px;
  padding: 2px 10px;
  margin-left: 8px;
  
}

.calendar-btn {
    display: block;
    margin-top:32px ;
    margin-bottom: 0;
    margin-left: auto;
    margin-right:auto;
    background: #00507D;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.95em;
  font-weight: bold;
  /*margin: 16px 0 0 0;*/
  cursor: pointer;

  
}
.calendar-btn:hover {
  background: #133f75;
  box-shadow: 0 6px 18px rgba(24,95,168,0.14);
}
/* MODAL */
.calendar-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 26, 51, 0.35);
  z-index: 1002;
  cursor: pointer;
  animation: fadeIn 0.25s;
}

.calendar-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 95vw;
  max-width: 390px;
  max-height: 80vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 48px rgba(30, 56, 87, 0.18);
  transform: translate(-50%, -50%);
  z-index: 1003;
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  animation: popIn 0.24s;
}
@keyframes fadeIn {
  from { opacity: 0;}
  to { opacity: 1;}
}
@keyframes popIn {
  from { opacity: 0; transform: translate(-50%, -43%) scale(0.95);}
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1);}
}

.calendar-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding:10px 10px 0 10px;
  border-bottom: 1px solid #f2f2f2;
  border-radius: 8px;
  padding-bottom: 10px;
  background-color: #00507D;
}

.calendar-modal-title {
  font-size: 1.13em;
  font-weight: 700;
  color:#fff;
  
}

.calendar-modal-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.7em;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.15s;
}
.calendar-modal-close:hover {
  color: #185fa8;
}
/* Responsive Design */
@media (max-width: 1500px) {
    .content {
        grid-template-columns: minmax(0, 900px) 300px; /* Réduire la largeur des colonnes */
    }
}

@media (max-width: 1200px) {
    .content {
        grid-template-columns: 1fr; /* Une seule colonne sur écrans plus petits */
    }
    
    .main-content {
        grid-column: 1;
    }
    
    .sidebar-blocks {
        grid-column: 1;
        max-width: 100%;
        margin-top: 20px;
    }
    
    .profiles-grid {
        grid-template-columns: repeat(4, 1fr); /* Maintenu à 4 colonnes sur desktop */
    }
}

@media (max-width: 992px) {
    .profiles-grid {
        grid-template-columns: repeat(4, 1fr); /* Maintenu à 4 colonnes sur desktop */
    }
}

@media (max-width: 768px) {
	
	.sidebar-social-logos {
      
      margin: 10px auto 0;
       grid-template-columns: repeat(9, 1fr);
      
    }
	 
    .main-container {
        flex-direction: column;
		margin-top:40px;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 0 15px 15px; /* Ajustement du padding pour mobile */
    }
    
    .sidebar::before {
        margin: 0 -15px;
        width: calc(100% + 30px);
    }
    .search-box { width: 100%; }
    .content {
        margin-left: 0;
		margin-top:0;
        grid-template-columns: 1fr; /* Une seule colonne sur mobile */
    }
    
    .social-icons {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .carousel-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-container {
        overflow-x: hidden;
        position: relative;
    }
    
    .carousel {
        width: 100%;
    }
    
    
    .profiles-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur mobile */
    }
    
    .article-image {
        height: auto;
        width: 100%;
    }
    
    /* Effet de surbrillance pour mobile */
    .news-ticker:active {
        background-color: #ff7b00;
    }
    
    .news-ticker:active .ticker-title {
        background-color: #ff7b00;
    }
    
    /* Alignement du bandeau DERNIÈRE ACTUALITÉ sur mobile */
        .news-tickers {
        width: 0%; /* Occuper toute la largeur sur mobile */
		background:none;
        margin-left: 0;
        left: 0;
        right: 0;
		top:0;
        padding-left: 15px; /* Aligner avec le bord gauche du cadre du logo */
       
    }
	.news-ticker {
        width: 100%; /* Occuper toute la largeur sur mobile */
        margin-left: 0;
        left: 0;
        right: 0;
		top:0;
        padding-left: 15px; /* Aligner avec le bord gauche du cadre du logo */
        border-radius: 0; /* Pas de bords arrondis sur mobile */
    }
    
    .ticker-title {
        border-radius: 0; /* Pas de bords arrondis sur mobile */
        position: static; /* Réinitialiser la position sur mobile */
		background-color: #e86c00;
   		padding: 10px 15px;
		margin-left:-15px;
	}

  }
    
   

@media (max-width: 576px) {
	.main-container {  margin-top: 40px; }
    .social-icons {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .article-image {
        height: auto;
    }
    
  /*  .profile-image {
        height: 150px;
    }*/
    
    .profiles-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur mobile */
    }
    
    .explorer-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur très petit écran */
    }
    
    .explorer-item.full-width {
        grid-column: span 1;
    }
 

}


/* Animation douce sur apparition de carte */
.carousel-animate {
    animation: fadeIn 0.4s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px);}
    to { opacity: 1; transform: none;}
}


.profiles-slider {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .profiles-slider {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    overflow: hidden;
  }
  .profile-card {
    min-width: 160px;
    max-width: 100%;
  }
}

.carousel-slider {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.carousel-card { /* Style général des cartes, ajuste si besoin */
  min-width: 0;
}
@media (max-width: 768px) {

	  
  .carousel-slider {
    grid-template-columns: 1fr;
    gap: 16px;
    overflow: hidden;
  }
  .carousel-card {
    min-width: 100%;
  }
}

/* Effet gloss uniquement sur l'image de la section A LA UNE (carrousel) */
.carousel-card .article-image {
    position: relative;
    overflow: hidden;
}
.gloss-effect {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, rgba(0,80,125,0) 65%, rgba(0,80,125,0.32) 85%, rgba(0,80,125,0) 100%);
    z-index: 2;
    opacity: 0.7;
    transform: skewX(-20deg);
    transition: none;
}
.carousel-card .article-image.animate-gloss .gloss-effect,
.gloss-effect.active {
    animation: gloss-move 1.5s cubic-bezier(0.61,0.14,0.33,0.86);
}
@keyframes gloss-move {
    0% { left: -60%; opacity: 0.7; }
    40% { left: 35%; opacity: 1; }
    100% { left: 110%; opacity: 0; }
}
.article-image {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block;
}
.article-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}



@media (min-width: 769px) {
  .hamburger {
    display: none; /* désactivé sur ordinateur */
  }
}




@media (max-width: 768px) {
  /* header global */
  .mobile-header {
    position: relative;
    text-align: center;
    background-color: #00507D;
    padding: 10px 0;
  }

  /* forcer le logo + titre en colonne centrée */
  .mobile-header .logo-container,
  .logo .logo-container {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }
.logo {
	margin-bottom:0;
	margin-top:0;
}
  /* si tu gardes .mobile-header contenant logo directement */
  .logo .mobile-header,
  .mobile-header .top-row {
    display: block !important; /* annule les display:flex conflictuels */
    width: 100%;
  }

  /* Logo centré */
  .mobile-header img,
  .logo img {
    display: block;
    margin: 0 auto;
    height: 70px; /* ajuste si besoin */
    width: auto;
  }

  /* Titre centré sous le logo */
  .site-title {
    display: block;
    text-align: center;
    color: #fff;
    font-size: 12px; /* ajuste selon besoin */
    margin-top: 6px;
    line-height: 1.1;
  }

  /* Hamburger en haut à droite */
  .hamburger {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #e86c00;
    font-size: 30px;
    z-index: 50;
    display: block;
    cursor: pointer;
  }

  /* Masquer la version hors-menu des icônes si nécessaire (garde la logique que tu veux) */
  .sidebar > .sidebar-social-logos {
    display: none;
  }

  /* Menu mobile (ouvre/ferme) */
  .main-nav {
    display: none;
  }
  .main-nav.open {
    display: flex;
    flex-direction: column;
  }
}
/* =====================================================================
   ============  MODERNISATION INDEX UX - COUCHE ADDITIVE  ============
   Toutes les regles ci-dessous sont des AJOUTS / RAFFINEMENTS.
   Elles s'appliquent par-dessus l'existant pour moderniser l'UX
   tout en gardant la coherence visuelle des autres pages.
   ===================================================================== */

/* --- 1. DESIGN TOKENS (variables CSS) ------------------------------- */
:root {
    --epoc-blue: #00507D;
    --epoc-blue-dark: #0a3b73;
    --epoc-blue-deep: #003e60;
    --epoc-blue-soft: #185fa8;
    --epoc-orange: #e86c00;
    --epoc-orange-hover: #ff7b00;
    --epoc-orange-accent: #ff7200;
    --epoc-orange-soft: #ffb066;
    --epoc-bg: #f5f5f5;
    --epoc-bg-soft: #fafafa;
    --epoc-white: #ffffff;
    --epoc-gray: #888;
    --epoc-gray-light: #ccc;

    --grad-orange: linear-gradient(135deg, #e86c00 0%, #ff8c1a 100%);
    --grad-orange-hover: linear-gradient(135deg, #ff7b00 0%, #ffa040 100%);
    --grad-blue: linear-gradient(135deg, #00507D 0%, #0a3b73 100%);
    --grad-blue-deep: linear-gradient(135deg, #003e60 0%, #00507D 100%);
    --grad-card-overlay: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,30,50,0.55) 100%);

    --shadow-xs: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-sm: 0 2px 8px rgba(0, 80, 125, 0.08);
    --shadow-md: 0 6px 20px rgba(0, 80, 125, 0.12);
    --shadow-lg: 0 14px 40px rgba(0, 80, 125, 0.18);
    --shadow-orange: 0 8px 24px rgba(232, 108, 0, 0.28);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    --t-fast: 180ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-base: 280ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 480ms cubic-bezier(0.4, 0, 0.2, 1);

    --fs-xs:   clamp(0.75rem, 0.65rem + 0.3vw, 0.85rem);
    --fs-sm:   clamp(0.85rem, 0.75rem + 0.3vw, 0.95rem);
    --fs-base: clamp(0.95rem, 0.85rem + 0.4vw, 1.05rem);
    --fs-md:   clamp(1.05rem, 0.95rem + 0.5vw, 1.2rem);
    --fs-lg:   clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
    --fs-xl:   clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
    --fs-2xl:  clamp(1.7rem, 1.3rem + 1.8vw, 2.4rem);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* --- 2. TITRES DE SECTION (facon editoriale) ------------------------ */
.section-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--epoc-blue);
    font-size: var(--fs-xl) !important;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 30px 0 22px !important;
    padding-left: 18px;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 6px;
    background: var(--grad-orange);
    border-radius: var(--radius-pill);
    box-shadow: 0 0 12px rgba(232,108,0,0.45);
}

.section-title::after {
    content: "";
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, rgba(232,108,0,0.45), rgba(232,108,0,0));
    border-radius: var(--radius-pill);
    margin-left: 6px;
}

/* --- 3. NEWS TICKER - pulse + accent moderne ------------------------ */
.news-ticker {
    box-shadow: 0 6px 18px rgba(232, 108, 0, 0.22);
    background: var(--grad-orange);
}
.news-ticker:hover { background: var(--grad-orange-hover); }

.ticker-title {
    background: transparent;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ticker-title::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.8);
    animation: epoc-pulse 1.6s infinite;
    flex-shrink: 0;
}
@keyframes epoc-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* --- 4. CARROUSEL "A LA UNE" - cartes premium ----------------------- */
.carousel-slider {
    gap: clamp(16px, 1.5vw, 28px) !important;
}

.carousel-card {
    background: var(--epoc-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-base), box-shadow var(--t-base);
    position: relative;
    isolation: isolate;
}
.carousel-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(0,80,125,0.05);
    transition: box-shadow var(--t-base);
    z-index: 1;
}
.carousel-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.carousel-card:hover::after {
    box-shadow: inset 0 0 0 1px rgba(232,108,0,0.35);
}

.carousel-card .article-image {
    border-radius: 0 !important;
    aspect-ratio: 16 / 10;
    height: auto !important;
    max-height: none !important;
    position: relative;
    overflow: hidden;
}
.carousel-card .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}
.carousel-card:hover .article-image img {
    transform: scale(1.06);
}
.carousel-card .article-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad-card-overlay);
    opacity: 0;
    transition: opacity var(--t-base);
    z-index: 1;
    pointer-events: none;
}
.carousel-card:hover .article-image::before { opacity: 1; }

/* Bandeau "categorie" modernise en pastille flottante */
.carousel-card .article-category {
    position: absolute !important;
    top: 14px;
    left: 14px;
    width: auto;
    max-width: calc(100% - 28px);
    padding: 7px 14px;
    background: var(--grad-orange);
    color: #fff;
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-orange);
    backdrop-filter: blur(4px);
    z-index: 3;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-card .article-content {
    padding: 18px 20px 14px !important;
}
.carousel-card .article-content h3 {
    font-size: var(--fs-md);
    line-height: 1.45;
    color: var(--epoc-blue);
    font-weight: 600;
}

.carousel-card .hover-indicator {
    background: var(--grad-blue);
    box-shadow: var(--shadow-md);
    top: 14px;
}
.carousel-card .hover-indicator i { color: var(--epoc-orange); }

/* Badge NEW modernise avec lueur */
.new-badge {
    background: linear-gradient(135deg, #ff2244, #d4001a) !important;
    box-shadow: 0 4px 12px rgba(212, 0, 26, 0.45);
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    animation: epoc-new-glow 2.4s ease-in-out infinite;
}
@keyframes epoc-new-glow {
    0%, 100% { box-shadow: 0 4px 12px rgba(212, 0, 26, 0.45); }
    50%      { box-shadow: 0 4px 22px rgba(255, 34, 68, 0.7); }
}

/* --- 5. BARRE D'ACTIONS BAS DE CARTE -------------------------------- */
.carousel-card > div[style*="border-top"],
.profile-card > div[style*="border-top"] {
    border-top: 1px solid rgba(232,108,0,0.18) !important;
    background: linear-gradient(180deg, #fff, #fafbfd) !important;
    padding: 12px 18px !important;
    transition: background var(--t-base);
}

.carousel-card a[title], .profile-card a[title],
.carousel-card span[title], .profile-card span[title] {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(0, 80, 125, 0.07);
    transition: background var(--t-fast), transform var(--t-fast), color var(--t-fast);
    font-size: 17px !important;
}
.carousel-card a[title]:hover, .profile-card a[title]:hover,
.carousel-card span[title]:hover, .profile-card span[title]:hover {
    background: var(--epoc-blue);
    color: #fff !important;
    transform: translateY(-2px) scale(1.06);
}
.carousel-card span[title="Partager"]:hover,
.profile-card span[title="Partager"]:hover {
    background: var(--epoc-orange);
}
.carousel-card span[title="Partager"] i,
.profile-card span[title="Partager"] i { transition: color var(--t-fast); }
.carousel-card span[title="Partager"]:hover i,
.profile-card span[title="Partager"]:hover i { color: #fff; }
.carousel-card a[title]:hover i,
.profile-card a[title]:hover i,
.carousel-card span[title]:hover i,
.profile-card span[title]:hover i { color: #fff; }

/* --- 6. PROFILS - cartes editoriales -------------------------------- */
.profiles-container {
    padding: 0 !important;
}

.profile-card {
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm) !important;
    overflow: hidden;
    transition: transform var(--t-base), box-shadow var(--t-base) !important;
    background: var(--epoc-white);
}
.profile-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--shadow-lg) !important;
}

.profile-card .profile-image {
    aspect-ratio: 3 / 4;
    height: auto;
    overflow: hidden;
    position: relative;
}
.profile-card .profile-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--grad-card-overlay);
    opacity: 0;
    transition: opacity var(--t-base);
    pointer-events: none;
}
.profile-card:hover .profile-image::after { opacity: 1; }
.profile-card .profile-image img {
    transition: transform var(--t-slow);
}
.profile-card:hover .profile-image img { transform: scale(1.08); }

.profile-card .profile-info {
    padding: 16px 18px !important;
}
.profile-card .profile-country {
    background: linear-gradient(90deg, rgba(232,108,0,0.12), rgba(232,108,0,0));
    padding: 6px 12px !important;
    border-radius: var(--radius-pill);
    color: var(--epoc-orange);
    font-weight: 700;
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.profile-card .profile-description {
    font-size: var(--fs-sm);
    color: var(--epoc-blue);
    line-height: 1.55;
    margin-top: 8px;
}

/* --- 7. BLOCS LATERAUX - finition premium --------------------------- */
.sidebar-block {
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: box-shadow var(--t-base), transform var(--t-base);
    overflow: hidden;
}
.sidebar-block:hover {
    box-shadow: var(--shadow-md) !important;
}
.sidebar-block-title {
    background: var(--grad-blue) !important;
    letter-spacing: 0.04em;
    font-size: var(--fs-sm) !important;
    text-transform: uppercase;
    padding: 12px 15px !important;
    position: relative;
}
.sidebar-block-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--epoc-orange);
    border-radius: var(--radius-pill);
}

.election-item, .death-item {
    padding: 8px 6px;
    border-radius: var(--radius-md);
    transition: background var(--t-fast);
}
.election-item:hover, .death-item:hover {
    background: rgba(232,108,0,0.06);
}
.election-bullet {
    width: 10px !important;
    height: 10px !important;
    background: var(--grad-orange) !important;
    box-shadow: 0 0 0 3px rgba(232,108,0,0.15);
}
.election-date {
    background: rgba(232,108,0,0.12);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
}

.view-all-button {
    background: var(--grad-blue) !important;
    border-radius: var(--radius-pill) !important;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: var(--fs-xs);
    padding: 11px !important;
    transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-base) !important;
}
.view-all-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.explorer-item {
    border-radius: var(--radius-md) !important;
    background: var(--grad-orange) !important;
    transition: transform var(--t-fast), box-shadow var(--t-fast) !important;
    font-weight: 600;
    font-size: var(--fs-sm);
}
.explorer-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-orange);
    background: var(--grad-orange-hover) !important;
}

/* --- 8. ANIMATIONS REVELATION AU SCROLL ----------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal[data-delay="1"].is-visible { transition-delay: 80ms; }
.reveal[data-delay="2"].is-visible { transition-delay: 160ms; }
.reveal[data-delay="3"].is-visible { transition-delay: 240ms; }
.reveal[data-delay="4"].is-visible { transition-delay: 320ms; }
.reveal[data-delay="5"].is-visible { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; }
    .ticker-title::before { animation: none !important; }
    .new-badge { animation: none !important; }
}

/* --- 9. RESPONSIVE FLUIDE (additif, mobile-first overrides) --------- */

/* Tablette intermediaire 769 -> 1100 : 2 colonnes profils */
@media (min-width: 769px) and (max-width: 1100px) {
    .profiles-slider {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Petits desktops 1100 -> 1400 : 3 colonnes profils */
@media (min-width: 1101px) and (max-width: 1400px) {
    .profiles-slider {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Grand ecran : 4 colonnes + max-width genereux */
@media (min-width: 1700px) {
    .content {
        max-width: 1700px !important;
        grid-template-columns: minmax(0, 1fr) 340px !important;
    }
}

/* Mobile < 768 - affinage  */
@media (max-width: 768px) {
    .section-title {
        font-size: var(--fs-lg) !important;
        margin: 22px 0 16px !important;
    }
    .carousel-card .article-content {
        padding: 14px 16px 10px !important;
    }
    .profiles-slider {
        gap: 14px !important;
    }
    .carousel-card > div[style*="border-top"],
    .profile-card > div[style*="border-top"] {
        padding: 10px 14px !important;
        gap: 10px !important;
    }
    .carousel-card a[title], .profile-card a[title],
    .carousel-card span[title], .profile-card span[title] {
        width: 34px;
        height: 34px;
        font-size: 15px !important;
    }
}

/* Mobile tres petit < 380 : on simplifie davantage */
@media (max-width: 380px) {
    .carousel-card .article-category {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
    .profile-card .profile-country {
        font-size: 0.72rem;
    }
}

/* --- 10. UTILITAIRES / DETAILS ------------------------------------- */
.fixed-text-news   { line-height: 1.45; }
.fixed-text-profile { line-height: 1.5; }

/* Focus accessibilite */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid rgba(232,108,0,0.55);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* Scrollbar discrete (webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(0,80,125,0.25);
    border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: rgba(0,80,125,0.45); }

/* --- 11. HERO EDITORIAL : 1re carte plus large sur grand ecran ------ */
@media (min-width: 1101px) {
    .carousel-slider.has-hero {
        grid-template-columns: 1.4fr 1fr;
    }
    .carousel-slider.has-hero .carousel-card:first-child .article-image {
        aspect-ratio: 16 / 9;
    }
    .carousel-slider.has-hero .carousel-card:first-child .article-content h3 {
        font-size: var(--fs-lg);
    }
}

/* ============================================================
   HERO override - premiere carte en pleine largeur (editorial)
   ============================================================ */
@media (min-width: 1101px) {
    .carousel-slider.has-hero {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .carousel-slider.has-hero .carousel-card:first-child {
        grid-column: 1 / -1;
    }
    .carousel-slider.has-hero .carousel-card:first-child .article-image {
        aspect-ratio: 21 / 9;
    }
    .carousel-slider.has-hero .carousel-card:first-child .article-content {
        padding: 22px 28px 18px !important;
    }
    .carousel-slider.has-hero .carousel-card:first-child .article-content h3 {
        font-size: var(--fs-xl);
        line-height: 1.35;
    }
    .carousel-slider.has-hero .carousel-card:first-child .article-category {
        top: 20px;
        left: 20px;
        padding: 9px 18px;
        font-size: var(--fs-sm);
    }
}


/* =====================================================================
   ============  CORRECTIF MODERNISATION  ============
   Le contenu de .article-category est le TITRE complet (long).
   On le restaure en bandeau pleine largeur entre image et corps,
   avec un style modernise (degrade orange).
   On restaure aussi le fond de .ticker-title.
   ===================================================================== */

/* --- ARTICLE CATEGORY : retour au bandeau pleine largeur ----------- */
.carousel-card .article-category {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: none !important;
    padding: 10px 16px !important;
    background: var(--grad-orange) !important;
    background-color: #e86c00 !important; /* fallback */
    color: #fff !important;
    font-size: var(--fs-sm) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    text-align: center !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.3 !important;
    z-index: auto !important;
    /* Truncate proprement sur 2 lignes max si vraiment long */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
}

/* --- NEWS TICKER TITLE : restaurer le fond orange ------------------- */
.ticker-title {
    background-color: #d35f00 !important;
    background: linear-gradient(135deg, #d35f00, #e86c00) !important;
    padding: 10px 18px 10px 15px !important;
    border-radius: 10px 0 0 10px !important;
    color: #fff;
}
.news-ticker:hover .ticker-title {
    background: linear-gradient(135deg, #e86c00, #ff7b00) !important;
}

/* Mobile : pas de border-radius (comme l'original) */
@media (max-width: 768px) {
    .ticker-title {
        border-radius: 0 !important;
        margin-left: -15px !important;
    }
}

/* --- HOVER INDICATOR : reposition pour eviter chevauchement -------- */
.carousel-card .hover-indicator {
    top: auto !important;
    bottom: 14px;
    right: 14px;
    z-index: 4;
}

/* --- NEW BADGE : s'assurer qu'il reste petit ----------------------- */
.carousel-card .new-badge,
.profile-card .new-badge {
    padding: 5px 30px 5px 20px !important;
    font-size: 0.75rem !important;
    z-index: 4;
}


/* =====================================================================
   =====   BENTO DASHBOARD - REFONTE COMPLETE  =====
   Nouvelle architecture pour la home: grille bento + cartes magazine.
   Independant de l'ancien .carousel-card / .profile-card.
   ===================================================================== */

/* ---------- GRILLE BENTO --------------------------------------------- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: clamp(150px, 14vw, 200px);
    grid-auto-flow: dense;
    gap: clamp(10px, 0.9vw, 16px);
    margin-bottom: clamp(30px, 4vw, 56px);
}

.bento-card.size-hero     { grid-column: span 2; grid-row: span 2; }
.bento-card.size-wide     { grid-column: span 2; grid-row: span 1; }
.bento-card.size-standard { grid-column: span 2; grid-row: span 1; }
.bento-card.size-mini     { grid-column: span 1; grid-row: span 1; }

/* ---------- CARTE BENTO : socle commun ------------------------------- */
.bento-card {
    position: relative;
    border-radius: var(--radius-lg, 18px);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,80,125,0.08));
    transition: transform var(--t-base, 280ms cubic-bezier(0.4,0,0.2,1)),
                box-shadow var(--t-base, 280ms cubic-bezier(0.4,0,0.2,1));
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
}
.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg, 0 14px 40px rgba(0,80,125,0.18));
}
.bento-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(0,80,125,0.06);
    pointer-events: none;
    transition: box-shadow var(--t-base, 280ms ease);
    z-index: 5;
}
.bento-card:hover::after {
    box-shadow: inset 0 0 0 1px rgba(232,108,0,0.45);
}

.bento-link {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    min-height: 0;
}

.bento-media {
    position: relative;
    overflow: hidden;
    background: #eaf0f5;
}
.bento-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--t-slow, 480ms ease);
}
.bento-card:hover .bento-media img { transform: scale(1.06); }

.bento-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff2244, #d4001a);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(212,0,26,0.45);
    z-index: 6;
    animation: epoc-new-glow 2.4s ease-in-out infinite;
}

/* =====================================================================
   HERO (2x2) + MINI (1x1) : image plein cadre + overlay texte en bas
   ===================================================================== */
.size-hero .bento-link,
.size-mini .bento-link {
    flex-direction: column;
}
.size-hero .bento-media,
.size-mini .bento-media {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.size-hero .bento-content,
.size-mini .bento-content {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: clamp(14px, 1.4vw, 24px);
    color: #fff;
    background: linear-gradient(180deg,
        rgba(0,30,60,0)  0%,
        rgba(0,15,30,0.55) 40%,
        rgba(0,10,25,0.95) 100%);
}

.size-hero .bento-tag,
.size-mini .bento-tag {
    display: inline-block;
    background: linear-gradient(135deg, #e86c00 0%, #ff8c1a 100%);
    color: #fff;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(232,108,0,0.35);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.size-mini .bento-tag {
    padding: 3px 10px;
    font-size: 0.6rem;
    margin-bottom: 6px;
}

.size-hero .bento-headline {
    font-size: clamp(1.05rem, 1.5vw, 1.5rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.size-mini .bento-headline {
    font-size: clamp(0.78rem, 0.92vw, 0.92rem);
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}

/* =====================================================================
   WIDE (2x1) : image 42% gauche + texte droite (style Bloomberg)
   ===================================================================== */
.size-wide .bento-link { flex-direction: row; }
.size-wide .bento-media {
    flex: 0 0 42%;
    height: 100%;
    border-right: 1px solid rgba(0,80,125,0.06);
}
.size-wide .bento-content {
    flex: 1;
    padding: clamp(12px, 1.2vw, 20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #fff 0%, #f7faff 100%);
    min-width: 0;
}
.size-wide .bento-tag {
    align-self: flex-start;
    background: rgba(232,108,0,0.13);
    color: #e86c00;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.size-wide .bento-headline {
    font-size: clamp(0.85rem, 1vw, 1rem);
    color: var(--epoc-blue, #00507D);
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =====================================================================
   STANDARD (2x1) : image top 60%, texte bottom (carte editoriale large)
   ===================================================================== */
.size-standard .bento-link { flex-direction: column; }
.size-standard .bento-media {
    flex: 0 0 62%;
    width: 100%;
    min-height: 0;
}
.size-standard .bento-content {
    flex: 1;
    padding: 8px 14px 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
}
.size-standard .bento-tag {
    align-self: flex-start;
    background: rgba(232,108,0,0.13);
    color: #e86c00;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.size-standard .bento-headline {
    font-size: clamp(0.78rem, 0.85vw, 0.9rem);
    color: var(--epoc-blue, #00507D);
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =====================================================================
   BARRE D'ACTIONS (icones)
   ===================================================================== */
.bento-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 12px;
    background: rgba(255,255,255,0.97);
    border-top: 1px solid rgba(0,80,125,0.08);
    gap: 8px;
    z-index: 3;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}
.bento-actions-left {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}
.bento-actions a,
.bento-actions span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,80,125,0.08);
    color: var(--epoc-blue, #00507D);
    cursor: pointer;
    transition: background var(--t-fast, 180ms ease),
                color var(--t-fast, 180ms ease),
                transform var(--t-fast, 180ms ease);
    font-size: 12px;
    flex-shrink: 0;
}
.bento-actions a:hover,
.bento-actions span:hover {
    background: var(--epoc-blue, #00507D);
    color: #fff;
    transform: translateY(-2px) scale(1.06);
}
.bento-actions a i,
.bento-actions span i { transition: color var(--t-fast, 180ms ease); }
.bento-actions a:hover i,
.bento-actions span:hover i { color: #fff; }

.bento-share {
    background: rgba(232,108,0,0.13) !important;
    color: #e86c00 !important;
}
.bento-share:hover {
    background: var(--epoc-orange, #e86c00) !important;
    color: #fff !important;
}
.bento-share:hover i { color: #fff !important; }

/* HERO et MINI: actions bar overlaid sur l'image, fond translucide sombre */
.size-hero .bento-actions,
.size-mini .bento-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    background: linear-gradient(180deg, rgba(0,15,30,0.0), rgba(0,15,30,0.65));
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 8px 12px;
}
.size-hero .bento-actions a,
.size-hero .bento-actions span,
.size-mini .bento-actions a,
.size-mini .bento-actions span {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.size-hero .bento-actions a:hover,
.size-hero .bento-actions span:hover,
.size-mini .bento-actions a:hover,
.size-mini .bento-actions span:hover {
    background: var(--epoc-orange, #e86c00);
    color: #fff;
}
.size-hero .bento-share,
.size-mini .bento-share {
    background: rgba(232,108,0,0.85) !important;
    color: #fff !important;
}
.size-hero .bento-share:hover,
.size-mini .bento-share:hover {
    background: #fff !important;
    color: var(--epoc-orange, #e86c00) !important;
}
.size-hero .bento-share:hover i,
.size-mini .bento-share:hover i { color: var(--epoc-orange, #e86c00) !important; }

/* reserver l'espace pour la barre overlay dans le contenu */
.size-hero .bento-content { padding-bottom: 56px; }
.size-mini .bento-content { padding-bottom: 50px; }

/* MINI : si headline absent (trop court), on agrandit la tag */
.size-mini .bento-headline:empty { display: none; }

/* =====================================================================
   PROFILS & BIOGRAPHIES - magazine cards
   ===================================================================== */
.profiles-magazine {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(14px, 1.4vw, 22px);
    margin-bottom: 30px;
}

.bio-card {
    position: relative;
    border-radius: var(--radius-lg, 18px);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,80,125,0.08));
    transition: transform var(--t-base, 280ms ease),
                box-shadow var(--t-base, 280ms ease);
    display: flex;
    flex-direction: column;
    isolation: isolate;
}
.bio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg, 0 14px 40px rgba(0,80,125,0.18));
}
.bio-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(0,80,125,0.06);
    pointer-events: none;
    transition: box-shadow var(--t-base, 280ms ease);
    z-index: 5;
}
.bio-card:hover::after {
    box-shadow: inset 0 0 0 1px rgba(232,108,0,0.4);
}

.bio-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    min-height: 0;
}

.bio-portrait {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #eaf0f5;
    flex-shrink: 0;
}
.bio-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--t-slow, 480ms ease);
}
.bio-card:hover .bio-portrait img { transform: scale(1.08); }

.bio-portrait-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px 14px 14px;
    background: linear-gradient(180deg, rgba(0,30,50,0) 0%, rgba(0,15,30,0.85) 100%);
    z-index: 2;
}
.bio-tag {
    display: inline-block;
    background: linear-gradient(135deg, #e86c00 0%, #ff8c1a 100%);
    color: #fff;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 4px 12px rgba(232,108,0,0.35);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bio-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff2244, #d4001a);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(212,0,26,0.45);
    z-index: 6;
    animation: epoc-new-glow 2.4s ease-in-out infinite;
}

.bio-body {
    padding: 12px 16px 14px;
    background: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.bio-text {
    font-size: clamp(0.8rem, 0.85vw, 0.9rem);
    color: var(--epoc-blue, #00507D);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.bio-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    background: rgba(255,255,255,0.98);
    border-top: 1px solid rgba(0,80,125,0.08);
    gap: 8px;
    flex-shrink: 0;
}
.bio-actions-left {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}
.bio-actions a,
.bio-actions span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,80,125,0.08);
    color: var(--epoc-blue, #00507D);
    cursor: pointer;
    transition: background var(--t-fast, 180ms ease),
                color var(--t-fast, 180ms ease),
                transform var(--t-fast, 180ms ease);
    font-size: 12px;
    flex-shrink: 0;
}
.bio-actions a:hover,
.bio-actions span:hover {
    background: var(--epoc-blue, #00507D);
    color: #fff;
    transform: translateY(-2px) scale(1.06);
}
.bio-actions a i,
.bio-actions span i { transition: color var(--t-fast, 180ms ease); }
.bio-actions a:hover i,
.bio-actions span:hover i { color: #fff; }

.bio-share {
    background: rgba(232,108,0,0.13) !important;
    color: #e86c00 !important;
}
.bio-share:hover {
    background: var(--epoc-orange, #e86c00) !important;
    color: #fff !important;
}
.bio-share:hover i { color: #fff !important; }

/* =====================================================================
   RESPONSIVE - Bento adaptatif
   ===================================================================== */

/* Desktop intermediaire 1101-1400 */
@media (max-width: 1400px) {
    .bento-grid { grid-auto-rows: clamp(140px, 13vw, 180px); }
}

/* Tablette / petit desktop 769-1100 : 3 colonnes */
@media (max-width: 1100px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 165px;
    }
    .bento-card.size-hero { grid-column: span 3; grid-row: span 2; }
    .bento-card.size-wide,
    .bento-card.size-standard { grid-column: span 3; grid-row: span 1; }
    .bento-card.size-mini { grid-column: span 1; grid-row: span 1; }

    .profiles-magazine { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile 481-768 : 2 colonnes */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 155px;
        gap: 12px;
    }
    .bento-card.size-hero { grid-column: span 2; grid-row: span 2; }
    .bento-card.size-wide { grid-column: span 2; grid-row: span 1; }
    .bento-card.size-standard { grid-column: span 2; grid-row: span 1; }
    .bento-card.size-mini { grid-column: span 1; grid-row: span 1; }

    .size-wide .bento-media { flex: 0 0 38%; }
    .size-wide .bento-content { padding: 10px 14px; }
    .size-hero .bento-headline { font-size: 1rem; -webkit-line-clamp: 2; }

    .profiles-magazine {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Mobile etroit < 480 : 1 colonne, hero plus haut */
@media (max-width: 480px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
        gap: 10px;
    }
    .bento-card.size-hero,
    .bento-card.size-wide,
    .bento-card.size-standard,
    .bento-card.size-mini {
        grid-column: span 1;
        grid-row: span 1;
    }
    .bento-card.size-hero { grid-row: span 2; }
    .size-wide .bento-link { flex-direction: column; }
    .size-wide .bento-media {
        flex: 0 0 55%;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(0,80,125,0.06);
    }
    .size-wide .bento-content { padding: 12px 14px; }

    .profiles-magazine {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .bio-text { -webkit-line-clamp: 3; }
}

/* Mobile minuscule < 360 : profils en une seule colonne */
@media (max-width: 360px) {
    .profiles-magazine { grid-template-columns: 1fr; }
}

/* =====================================================================
   ACCESSIBILITE
   ===================================================================== */
.bento-link:focus-visible,
.bio-link:focus-visible {
    outline: 3px solid rgba(232,108,0,0.7);
    outline-offset: 2px;
    border-radius: var(--radius-lg, 18px);
}

@media (prefers-reduced-motion: reduce) {
    .bento-card, .bio-card,
    .bento-card *, .bio-card * {
        transition: none !important;
        animation: none !important;
    }
}


/* =====================================================================
   ===  CORRECTIF LISIBILITE BENTO  ===
   - Rangees beaucoup plus hautes
   - MINI passe en image-top + texte-dessous (plus d'overlay)
   - Typographie agrandie partout
   - Seul le HERO garde l'overlay cinema
   - Moins de minis dans le pattern (cf. PHP)
   ===================================================================== */

/* ---------- GRILLE : rangees plus hautes pour respirer -------------- */
.bento-grid {
    grid-auto-rows: clamp(220px, 21vw, 300px) !important;
    gap: clamp(12px, 1.1vw, 20px) !important;
}

@media (max-width: 1400px) {
    .bento-grid { grid-auto-rows: clamp(210px, 19vw, 270px) !important; }
}
@media (max-width: 1100px) {
    .bento-grid { grid-auto-rows: 230px !important; }
}
@media (max-width: 768px) {
    .bento-grid { grid-auto-rows: 220px !important; }
}
@media (max-width: 480px) {
    .bento-grid { grid-auto-rows: 280px !important; }
}

/* =====================================================================
   MINI : refonte complete — image en haut, texte en bas (lisible)
   ===================================================================== */
.size-mini .bento-link {
    flex-direction: column !important;
}
.size-mini .bento-media {
    position: relative !important;
    inset: auto !important;
    flex: 0 0 58% !important;
    width: 100% !important;
    height: 58% !important;
    min-height: 0;
    z-index: 1;
}
.size-mini .bento-content {
    position: relative !important;
    z-index: 2;
    margin-top: 0 !important;
    padding: 10px 14px 8px !important;
    background: #fff !important;
    color: var(--epoc-blue, #00507D) !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
    padding-bottom: 8px !important;
}

.size-mini .bento-tag {
    align-self: flex-start;
    background: rgba(232,108,0,0.13) !important;
    color: #e86c00 !important;
    padding: 3px 10px !important;
    font-size: 0.62rem !important;
    margin-bottom: 4px !important;
    box-shadow: none !important;
}

.size-mini .bento-headline {
    font-size: clamp(0.88rem, 0.95vw, 1rem) !important;
    color: var(--epoc-blue, #00507D) !important;
    font-weight: 600;
    line-height: 1.35;
    -webkit-line-clamp: 3 !important;
    text-shadow: none !important;
}

/* Barre d'actions pour MINI = barre classique sous le contenu */
.size-mini .bento-actions {
    position: relative !important;
    bottom: auto !important;
    background: rgba(255,255,255,0.98) !important;
    backdrop-filter: none !important;
    border-top: 1px solid rgba(0,80,125,0.08) !important;
    padding: 6px 12px !important;
}
.size-mini .bento-actions a,
.size-mini .bento-actions span {
    background: rgba(0,80,125,0.08) !important;
    color: var(--epoc-blue, #00507D) !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 11px !important;
}
.size-mini .bento-actions a:hover,
.size-mini .bento-actions span:hover {
    background: var(--epoc-blue, #00507D) !important;
    color: #fff !important;
}
.size-mini .bento-share {
    background: rgba(232,108,0,0.13) !important;
    color: #e86c00 !important;
}
.size-mini .bento-share:hover {
    background: var(--epoc-orange, #e86c00) !important;
    color: #fff !important;
}

/* =====================================================================
   HERO : on garde l'overlay mais on agrandit la typo et on rend
   le tag plus lisible
   ===================================================================== */
.size-hero .bento-content {
    padding: clamp(18px, 1.8vw, 28px) clamp(20px, 2vw, 32px) clamp(58px, 4vw, 70px) !important;
    background: linear-gradient(180deg,
        rgba(0,30,60,0)    0%,
        rgba(0,15,30,0.45) 30%,
        rgba(0,10,25,0.95) 80%,
        rgba(0,10,25,1)    100%) !important;
}

.size-hero .bento-tag {
    padding: 6px 16px !important;
    font-size: 0.75rem !important;
    margin-bottom: 12px !important;
    letter-spacing: 0.08em !important;
}

.size-hero .bento-headline {
    font-size: clamp(1.2rem, 1.7vw, 1.7rem) !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    -webkit-line-clamp: 3 !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6) !important;
}

/* =====================================================================
   WIDE : agrandi pour la lisibilite
   ===================================================================== */
.size-wide .bento-tag {
    padding: 5px 12px !important;
    font-size: 0.7rem !important;
    margin-bottom: 10px !important;
}
.size-wide .bento-headline {
    font-size: clamp(0.95rem, 1.1vw, 1.1rem) !important;
    line-height: 1.4 !important;
    -webkit-line-clamp: 4 !important;
}

/* =====================================================================
   STANDARD : agrandi
   ===================================================================== */
.size-standard .bento-media {
    flex: 0 0 55% !important;
    height: 55% !important;
}
.size-standard .bento-content {
    padding: 10px 14px 10px !important;
    gap: 5px !important;
}
.size-standard .bento-tag {
    padding: 3px 10px !important;
    font-size: 0.66rem !important;
    margin-bottom: 4px !important;
}
.size-standard .bento-headline {
    font-size: clamp(0.88rem, 0.95vw, 1rem) !important;
    line-height: 1.35 !important;
    -webkit-line-clamp: 2 !important;
}

/* Pour STANDARD aussi : barre d'actions en bas normale (pas overlay) */
.size-standard .bento-actions {
    position: relative !important;
    padding: 6px 12px !important;
}

/* =====================================================================
   ICONES BARRE - on garde un confort visuel partout
   ===================================================================== */
.bento-actions a,
.bento-actions span {
    width: 32px !important;
    height: 32px !important;
    font-size: 13px !important;
}

/* =====================================================================
   MOBILE — Override pour s'assurer que tout reste lisible
   ===================================================================== */
@media (max-width: 768px) {
    .size-hero .bento-headline {
        font-size: clamp(1rem, 3vw, 1.3rem) !important;
        -webkit-line-clamp: 2 !important;
    }
    .size-wide .bento-link { flex-direction: column !important; }
    .size-wide .bento-media {
        flex: 0 0 50% !important;
        width: 100% !important;
        height: 50% !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(0,80,125,0.06) !important;
    }
    .size-wide .bento-content {
        padding: 12px 14px !important;
        justify-content: flex-start !important;
    }
    .bento-actions a,
    .bento-actions span {
        width: 30px !important;
        height: 30px !important;
    }
}


/* =====================================================================
   =====   MAGAZINE COVER - LE MONDE PREMIUM STYLE  =====
   1 HERO pleine largeur immersif + 2 cartes secondaires + tuiles
   ===================================================================== */

.cover-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 2vw, 32px);
    margin-bottom: clamp(30px, 4vw, 50px);
}

/* =====================================================================
   HERO PLEINE LARGEUR — STYLE COUVERTURE MAGAZINE
   ===================================================================== */
.cover-hero {
    position: relative;
    border-radius: var(--radius-xl, 24px);
    overflow: hidden;
    box-shadow: var(--shadow-lg, 0 14px 40px rgba(0,80,125,0.18));
    isolation: isolate;
    transition: transform var(--t-base, 280ms ease),
                box-shadow var(--t-base, 280ms ease);
}
.cover-hero:hover {
    box-shadow: 0 20px 50px rgba(0,80,125,0.25);
}

.cover-hero-link {
    display: block;
    color: inherit;
    text-decoration: none;
    position: relative;
}

.cover-hero-media {
    position: relative;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    background: #0a1a2e;
}
.cover-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.cover-hero:hover .cover-hero-media img { transform: scale(1.05); }

.cover-hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,15,30,0.4) 55%, rgba(0,10,25,0.95) 100%),
        linear-gradient(90deg, rgba(0,10,25,0.5) 0%, rgba(0,10,25,0) 60%);
    z-index: 1;
    pointer-events: none;
}

.cover-hero-content {
    position: absolute;
    bottom: clamp(70px, 7vw, 100px);
    left: 0;
    right: 0;
    padding: 0 clamp(20px, 3vw, 56px);
    z-index: 2;
    color: #fff;
    max-width: 75ch;
}

.cover-hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: clamp(12px, 1.4vw, 20px);
    flex-wrap: wrap;
}

.cover-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #d4001a, #ff2244);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(212,0,26,0.4);
}
.cover-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: epoc-pulse-white 1.6s infinite;
}
@keyframes epoc-pulse-white {
    0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.9); }
    70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.cover-tag {
    display: inline-block;
    background: linear-gradient(135deg, #e86c00, #ff8c1a);
    color: #fff;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 14px rgba(232,108,0,0.4);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cover-hero-title {
    font-size: clamp(1.4rem, 3.5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cover-hero-cta {
    position: absolute;
    bottom: clamp(20px, 2.5vw, 32px);
    right: clamp(20px, 3vw, 56px);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--epoc-orange, #e86c00);
    color: #fff !important;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(232,108,0,0.45);
    transition: transform var(--t-fast, 180ms ease),
                box-shadow var(--t-fast, 180ms ease),
                background var(--t-base, 280ms ease);
    text-decoration: none;
    pointer-events: none; /* le link parent gere le clic */
}
.cover-hero:hover .cover-hero-cta {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #e86c00, #ff8c1a);
    box-shadow: 0 12px 32px rgba(232,108,0,0.6);
}
.cover-hero-cta i { font-size: 0.85em; transition: transform var(--t-base, 280ms ease); }
.cover-hero:hover .cover-hero-cta i { transform: translateX(4px); }

/* HERO actions bar : positionnée en bas, sur fond sombre */
.cover-hero .cover-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    background: linear-gradient(180deg, rgba(0,15,30,0), rgba(0,10,25,0.98));
    border-top: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 18px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.cover-hero .cover-actions-left {
    display: flex;
    gap: 6px;
    align-items: center;
}
.cover-hero .cover-actions a,
.cover-hero .cover-actions span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    color: #fff;
    cursor: pointer;
    transition: all var(--t-fast, 180ms ease);
    font-size: 14px;
}
.cover-hero .cover-actions a:hover,
.cover-hero .cover-actions span:hover {
    background: var(--epoc-orange, #e86c00);
    transform: translateY(-2px) scale(1.06);
}
.cover-hero .cover-share {
    background: rgba(232,108,0,0.95) !important;
    margin-left: auto;
}
.cover-hero .cover-share:hover {
    background: #fff !important;
    color: var(--epoc-orange, #e86c00) !important;
}

/* =====================================================================
   DOUBLET : 2 cartes secondaires en grille
   ===================================================================== */
.cover-doublet {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 1.5vw, 24px);
}

.cover-double {
    position: relative;
    border-radius: var(--radius-lg, 18px);
    overflow: hidden;
    box-shadow: var(--shadow-md, 0 6px 20px rgba(0,80,125,0.12));
    aspect-ratio: 16 / 10;
    isolation: isolate;
    transition: transform var(--t-base, 280ms ease),
                box-shadow var(--t-base, 280ms ease);
}
.cover-double:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg, 0 14px 40px rgba(0,80,125,0.18));
}

.cover-double-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
    position: relative;
}

.cover-double .cover-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #0a1a2e;
}
.cover-double .cover-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
    display: block;
}
.cover-double:hover .cover-media img { transform: scale(1.07); }

.cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(50px, 6vw, 80px) clamp(16px, 2vw, 24px) clamp(50px, 5vw, 60px);
    z-index: 2;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,10,25,0.4) 35%, rgba(0,10,25,0.95) 100%);
    color: #fff;
}
.cover-overlay .cover-tag {
    margin-bottom: 10px;
    font-size: 0.62rem;
    padding: 4px 12px;
}

.cover-title {
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* DOUBLE actions bar : positionnée en bas, sur fond sombre */
.cover-double .cover-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background: linear-gradient(180deg, rgba(0,15,30,0), rgba(0,10,25,0.95));
    border-top: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cover-double .cover-actions-left {
    display: flex;
    gap: 5px;
    align-items: center;
}
.cover-double .cover-actions a,
.cover-double .cover-actions span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.13);
    color: #fff;
    cursor: pointer;
    transition: all var(--t-fast, 180ms ease);
    font-size: 12px;
}
.cover-double .cover-actions a:hover,
.cover-double .cover-actions span:hover {
    background: var(--epoc-orange, #e86c00);
    transform: translateY(-2px) scale(1.06);
}
.cover-double .cover-share {
    background: rgba(232,108,0,0.9) !important;
}
.cover-double .cover-share:hover {
    background: #fff !important;
    color: var(--epoc-orange, #e86c00) !important;
}

/* =====================================================================
   TILES : grille editoriale claire (texte lisible sous l'image)
   ===================================================================== */
.cover-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(14px, 1.4vw, 22px);
}

.cover-tile {
    position: relative;
    border-radius: var(--radius-lg, 18px);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,80,125,0.08));
    transition: transform var(--t-base, 280ms ease),
                box-shadow var(--t-base, 280ms ease);
    display: flex;
    flex-direction: column;
    isolation: isolate;
}
.cover-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg, 0 14px 40px rgba(0,80,125,0.18));
}
.cover-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(0,80,125,0.06);
    pointer-events: none;
    transition: box-shadow var(--t-base, 280ms ease);
    z-index: 5;
}
.cover-tile:hover::after {
    box-shadow: inset 0 0 0 1px rgba(232,108,0,0.45);
}

.cover-tile-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    min-height: 0;
}

.cover-tile .cover-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eaf0f5;
    flex-shrink: 0;
}
.cover-tile .cover-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--t-slow, 480ms ease);
}
.cover-tile:hover .cover-media img { transform: scale(1.06); }

.cover-tile-content {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    min-height: 0;
}

.cover-tag-light {
    align-self: flex-start;
    background: rgba(232,108,0,0.14);
    color: var(--epoc-orange, #e86c00);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.cover-tile-title {
    font-size: clamp(0.9rem, 1vw, 1.05rem);
    color: var(--epoc-blue, #00507D);
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* TILE actions bar : claire, en bas du contenu */
.cover-tile .cover-actions {
    padding: 8px 14px;
    background: linear-gradient(180deg, #fff, #fafbfd);
    border-top: 1px solid rgba(0,80,125,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.cover-tile .cover-actions-left {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}
.cover-tile .cover-actions a,
.cover-tile .cover-actions span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,80,125,0.08);
    color: var(--epoc-blue, #00507D);
    cursor: pointer;
    transition: all var(--t-fast, 180ms ease);
    font-size: 12px;
}
.cover-tile .cover-actions a:hover,
.cover-tile .cover-actions span:hover {
    background: var(--epoc-blue, #00507D);
    color: #fff;
    transform: translateY(-2px) scale(1.06);
}
.cover-tile .cover-actions a:hover i,
.cover-tile .cover-actions span:hover i { color: #fff; }
.cover-tile .cover-share {
    background: rgba(232,108,0,0.13) !important;
    color: var(--epoc-orange, #e86c00) !important;
}
.cover-tile .cover-share:hover {
    background: var(--epoc-orange, #e86c00) !important;
    color: #fff !important;
}

/* =====================================================================
   BADGE NEW (commun a hero / double / tile)
   ===================================================================== */
.cover-new {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 6;
    background: linear-gradient(135deg, #ff2244, #d4001a);
    color: #fff;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(212,0,26,0.45);
    animation: epoc-new-glow 2.4s ease-in-out infinite;
}
.cover-hero .cover-new {
    top: 20px;
    left: 20px;
    padding: 5px 18px;
    font-size: 0.72rem;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

/* Tablette / petit desktop : 3 colonnes pour les tiles */
@media (max-width: 1100px) {
    .cover-tiles { grid-template-columns: repeat(3, 1fr); }
    .cover-hero-media { aspect-ratio: 16 / 9; }
}

/* Mobile : doublet en 1 col, tiles en 2 col */
@media (max-width: 768px) {
    .cover-stack { gap: 18px; }
    .cover-doublet { grid-template-columns: 1fr; gap: 14px; }
    .cover-double { aspect-ratio: 16/9; }
    .cover-tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cover-hero-media { aspect-ratio: 4 / 3; }
    .cover-hero-content {
        bottom: 70px;
        padding: 0 18px;
    }
    .cover-hero-title {
        font-size: clamp(1.15rem, 5vw, 1.6rem);
        -webkit-line-clamp: 3;
    }
    .cover-hero-cta {
        bottom: 18px;
        right: 18px;
        padding: 9px 16px;
        font-size: 0.78rem;
    }
    .cover-hero .cover-actions { padding: 8px 14px; }
    .cover-hero .cover-actions a,
    .cover-hero .cover-actions span { width: 30px; height: 30px; font-size: 12px; }
}

/* Tres petit mobile */
@media (max-width: 480px) {
    .cover-tiles { gap: 10px; }
    .cover-tile-content { padding: 10px 12px 12px; gap: 6px; }
    .cover-tile-title { -webkit-line-clamp: 2; font-size: 0.85rem; }
    .cover-hero-meta { gap: 6px; }
    .cover-live { padding: 3px 8px; font-size: 0.6rem; }
    .cover-tag { padding: 3px 10px; font-size: 0.6rem; }
}

/* =====================================================================
   ACCESSIBILITE
   ===================================================================== */
.cover-hero-link:focus-visible,
.cover-double-link:focus-visible,
.cover-tile-link:focus-visible {
    outline: 3px solid rgba(232,108,0,0.7);
    outline-offset: 2px;
    border-radius: var(--radius-lg, 18px);
}
@media (prefers-reduced-motion: reduce) {
    .cover-hero, .cover-double, .cover-tile,
    .cover-hero *, .cover-double *, .cover-tile * {
        transition: none !important;
        animation: none !important;
    }
}


/* =====================================================================
   =====   FILIGRANE "Source : ..."   =====
   Discret, en haut a droite de l'image (oppose au badge NEW)
   ===================================================================== */

.cover-source,
.bio-source {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    background: rgba(0,0,0,0.45);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,0.92);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.02em;
    line-height: 1.2;
    max-width: 55%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
}

/* Hero : un peu plus grand (image plus large) */
.cover-hero .cover-source {
    top: 20px;
    right: 20px;
    padding: 5px 12px;
    font-size: 0.66rem;
    max-width: 40%;
}

/* Tiles : encore plus petit (image compacte) */
.cover-tile .cover-source {
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    font-size: 0.56rem;
    max-width: 65%;
}

/* Bio-card : portrait, filigrane bas-droite pour ne pas concurrencer
   le NEW (haut-gauche) ni le tag pays (overlay du bas) */
.bio-source {
    top: auto;
    bottom: calc(50px + 8px); /* au-dessus de l'overlay du tag */
    right: 8px;
    padding: 3px 8px;
    font-size: 0.56rem;
    max-width: 80%;
}

/* Mobile : on garde lisible mais compact */
@media (max-width: 768px) {
    .cover-source,
    .bio-source {
        font-size: 0.55rem;
        padding: 3px 8px;
        top: 10px;
        right: 10px;
    }
    .cover-hero .cover-source {
        top: 14px;
        right: 14px;
        font-size: 0.6rem;
    }
    .bio-source {
        bottom: 56px;
        top: auto;
    }
}

/* =====================================================================
   PROFILS : passage a 3 colonnes pour 6 cartes (2 lignes de 3)
   ===================================================================== */
@media (min-width: 1101px) {
    .profiles-magazine {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: clamp(16px, 1.6vw, 26px) !important;
    }
}


/* =====================================================================
   ===  1. PAS DE TRONCAGE DU TEXTE corps_t18  ===
   On retire les line-clamp et on garde le full text.
   La taille de police s'adapte (clamp) pour rester lisible.
   ===================================================================== */

.cover-hero-title,
.cover-title,
.cover-tile-title,
.bio-text {
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-clamp: unset !important;
}

/* HERO : font legerement plus elastique en bas pour absorber du texte long */
.cover-hero-title {
    font-size: clamp(1.1rem, 2.2vw, 2.4rem) !important;
    line-height: 1.2 !important;
}

/* DOUBLE : pareil */
.cover-title {
    font-size: clamp(0.95rem, 1.3vw, 1.3rem) !important;
    line-height: 1.3 !important;
}

/* TILES : laisser respirer */
.cover-tile-title {
    font-size: clamp(0.85rem, 0.95vw, 1rem) !important;
    line-height: 1.4 !important;
}

/* BIO : pareil */
.bio-text {
    font-size: clamp(0.78rem, 0.85vw, 0.92rem) !important;
    line-height: 1.5 !important;
}

/* Pour que l'overlay s'agrandisse vers le haut quand le texte est long
   sans casser la lisibilite, on assombrit progressivement le degrade */
.cover-hero-content {
    padding-bottom: clamp(60px, 5vw, 80px) !important;
}

/* =====================================================================
   ===  2. BANDEAU D'ACTUALITE DISCRET  ===
   On garde la fonctionnalite (titre + texte defilant) mais reduit
   visuellement : pill blanche flottante avec petit accent orange.
   ===================================================================== */

.news-tickers {
    height: 30px !important;
    top: 10px !important;
}

.news-ticker {
    height: 30px !important;
    top: 10px !important;
    background: rgba(255,255,255,0.97) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(232,108,0,0.22) !important;
    box-shadow: 0 2px 10px rgba(0,80,125,0.07) !important;
    border-radius: 999px !important;
    color: var(--epoc-blue, #00507D) !important;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.news-ticker:hover {
    background: rgba(255,255,255,0.99) !important;
    border-color: rgba(232,108,0,0.5) !important;
    box-shadow: 0 4px 16px rgba(232,108,0,0.15) !important;
}

/* Pill orange a gauche (titre) */
.ticker-title {
    background: var(--epoc-orange, #e86c00) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 4px 14px 4px 18px !important;
    font-size: 0.6rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    margin: 2px 3px 2px 2px !important;
    height: 24px !important;
    line-height: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    position: relative !important;
    left: 0 !important;
}

/* Point pulsant — plus petit, plus discret */
.ticker-title::before {
    width: 6px !important;
    height: 6px !important;
}

.news-ticker:hover .ticker-title {
    background: var(--epoc-orange, #e86c00) !important;
}

/* Texte defilant : plus discret */
.ticker-content {
    padding: 5px 16px !important;
    color: var(--epoc-blue, #00507D) !important;
    font-weight: 500 !important;
    font-size: 0.78rem !important;
    line-height: 20px !important;
}

.ticker-content span {
    color: var(--epoc-blue, #00507D);
}

/* Mobile : on garde compact mais pleine largeur */
@media (max-width: 768px) {
    .news-tickers {
        height: 32px !important;
        top: 0 !important;
    }
    .news-ticker {
        height: 32px !important;
        top: 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        background: rgba(255,255,255,0.98) !important;
    }
    .ticker-title {
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 6px 12px 6px 14px !important;
        height: 32px !important;
        font-size: 0.58rem !important;
    }
    .ticker-content {
        font-size: 0.72rem !important;
    }
}


/* =====================================================================
   ===  ROTATEUR D'ACTUALITES (fade, 5 dernieres)  ===
   Remplace l'animation de defilement marquee par un fade in/out.
   Une actu visible a la fois, change toutes les 5s (gere en JS).
   Tient sur 1 ou 2 lignes selon longueur.
   ===================================================================== */

/* On annule l'ancien marquee (utilisait .ticker-content span avec animation) */
.ticker-content span {
    animation: none !important;
    position: static !important;
    display: inline !important;
}

/* Container du rotateur : on remplace le marquee par une zone fade */
.news-ticker .ticker-content {
    position: relative !important;
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 !important;
}

/* Chaque item : superpose en absolute, fade in/out via .is-active */
.ticker-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 4px 16px;
    color: var(--epoc-blue, #00507D);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.78rem;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    /* permet d'afficher sur 2 lignes max si tres long */
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Item actif : visible */
.ticker-item.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    display: -webkit-box; /* maintient le clamp tout en etant visible */
}

/* Liens : surlignement subtil au survol */
.ticker-item:hover {
    color: var(--epoc-orange, #e86c00);
}

/* Le hover stop le cycle (gere par JS) ; on indique visuellement
   le hover par une legere variation de fond */
.news-ticker:hover {
    border-color: rgba(232,108,0,0.5) !important;
    box-shadow: 0 4px 16px rgba(232,108,0,0.15) !important;
}

/* Mobile : on peut autoriser un peu plus de hauteur si 2 lignes */
@media (max-width: 768px) {
    .ticker-item {
        font-size: 0.72rem;
        padding: 4px 12px;
        -webkit-line-clamp: 2;
    }
    .news-tickers,
    .news-ticker {
        height: 38px !important;
    }
    .ticker-title {
        height: 38px !important;
        line-height: 18px !important;
    }
}

/* prefer-reduced-motion : on coupe les transformations */
@media (prefers-reduced-motion: reduce) {
    .ticker-item {
        transition: opacity 0.2s linear !important;
        transform: none !important;
    }
    .ticker-item.is-active { transform: none !important; }
}


/* =====================================================================
   ===  CORRECTIF RESPONSIVE DU ROTATEUR  ===
   - reset du white-space herite de l'ancien marquee
   - wrapper .ticker-item-text pour clamp 2 lignes propre
   - hauteurs adaptees a la longueur des titres (1 OU 2 lignes)
   - test 320px / 375px / 414px / 768px / desktop
   ===================================================================== */

/* On reset le white-space partout dans le ticker (l'ancien CSS forcait nowrap) */
.news-ticker,
.news-ticker .ticker-content,
.ticker-item,
.ticker-item-text {
    white-space: normal !important;
}

/* Le titre lui reste sur une seule ligne */
.ticker-title {
    white-space: nowrap !important;
}

/* Le bouton-pill (titre) ne doit pas se laisser ecraser */
.ticker-title {
    flex-shrink: 0 !important;
}

/* Container de l'item : flex pour centrer verticalement,
   l'enfant <span> gere le clamp 2 lignes */
.ticker-item {
    position: absolute;
    inset: 0;
    display: flex !important;            /* on remet flex (avait ete ecrase par -webkit-box) */
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    align-items: center !important;
    padding: 4px 14px !important;
    color: var(--epoc-blue, #00507D) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: clamp(0.7rem, 1.5vw, 0.82rem) !important;
    line-height: 1.3 !important;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    min-width: 0;
}
.ticker-item.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* L'enfant texte gere le clamp 2 lignes + ellipsis */
.ticker-item-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    min-width: 0;
}

/* =====================================================================
   HAUTEURS RESPONSIVE — accommode 1 ou 2 lignes selon largeur
   ===================================================================== */

/* Desktop large : 1 ligne suffit la plupart du temps, hauteur 32px */
.news-tickers,
.news-ticker {
    height: 36px !important;
}
.news-ticker {
    top: 10px !important;
}
.news-tickers {
    top: 10px !important;
}
.ticker-title {
    height: 30px !important;
    line-height: 18px !important;
}

/* Tablette / petit desktop : on garde 36px (titres habituellement courts) */
@media (max-width: 1100px) and (min-width: 769px) {
    .news-tickers,
    .news-ticker {
        height: 38px !important;
    }
    .ticker-title {
        height: 32px !important;
    }
}

/* Mobile <=768 : on autorise franchement 2 lignes */
@media (max-width: 768px) {
    .news-tickers,
    .news-ticker {
        height: 46px !important;
        top: 0 !important;
    }
    .news-ticker {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
    }
    .ticker-title {
        height: 46px !important;
        line-height: 18px !important;
        font-size: 0.56rem !important;
        padding: 4px 11px 4px 14px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        letter-spacing: 0.06em !important;
    }
    .ticker-item {
        font-size: 0.72rem !important;
        padding: 5px 12px !important;
        line-height: 1.25 !important;
    }
}

/* Tres petit mobile (iPhone SE 320, etc.) : pill plus compact */
@media (max-width: 380px) {
    .news-tickers,
    .news-ticker {
        height: 50px !important;
    }
    .ticker-title {
        height: 50px !important;
        font-size: 0.52rem !important;
        padding: 4px 8px 4px 11px !important;
        letter-spacing: 0.04em !important;
    }
    .ticker-item {
        font-size: 0.68rem !important;
        padding: 5px 10px !important;
    }
    /* point pulsant encore plus discret */
    .ticker-title::before {
        width: 5px !important;
        height: 5px !important;
    }
}


/* =====================================================================
   ===  ROTATEUR : TEXTE INTEGRAL, JAMAIS TRONQUE  ===
   Approche : grid-stack des 5 items dans la meme cellule grid.
   Le container prend la hauteur du PLUS LONG titre.
   Pas de line-clamp, pas d'ellipsis.
   ===================================================================== */

/* Container ticker : hauteur auto, suit le contenu */
.news-tickers {
    height: auto !important;
    min-height: 36px !important;
}
.news-ticker {
    height: auto !important;
    min-height: 36px !important;
    top: 10px !important;
    align-items: stretch !important;
}

/* Pill titre : suit la hauteur du container */
.ticker-title {
    height: auto !important;
    min-height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    align-self: stretch !important;
    white-space: nowrap !important;
}

/* Zone des items : grid 1x1 pour stack les 5 items */
.news-ticker .ticker-content {
    display: grid !important;
    grid-template-columns: 1fr;
    flex: 1;
    min-width: 0;
    padding: 0 !important;
    overflow: visible !important;
}

/* Chaque item dans la meme cellule grid : la cellule prend la
   hauteur du plus grand item */
.ticker-item {
    grid-area: 1 / 1;
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    align-items: center !important;
    padding: 6px 14px !important;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    min-width: 0;
    color: var(--epoc-blue, #00507D) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: clamp(0.7rem, 1.5vw, 0.82rem) !important;
    line-height: 1.4 !important;
    /* on supprime tout vestige de clamp/ellipsis */
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
}
.ticker-item.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.ticker-item:hover { color: var(--epoc-orange, #e86c00) !important; }

/* Le texte du titre : full display, retour a la ligne libre */
.ticker-item-text {
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* =====================================================================
   AJUSTEMENT MARGIN-TOP DU CONTENU selon hauteur reelle du ticker.
   La variable --ticker-h est ecrite par le JS (load + resize).
   Fallback de 40px si JS desactive.
   ===================================================================== */
.content {
    margin-top: calc(var(--ticker-h, 40px) + 6px) !important;
}

/* Mobile : ticker colle au top, fond plat, main-container compense */
@media (max-width: 768px) {
    .news-tickers,
    .news-ticker {
        top: 0 !important;
    }
    .news-ticker {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
    }
    .ticker-title {
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 8px 12px !important;
        font-size: 0.56rem !important;
        min-height: 36px !important;
    }
    .ticker-item {
        font-size: 0.72rem !important;
        padding: 8px 12px !important;
        line-height: 1.35 !important;
    }
    .main-container {
        margin-top: var(--ticker-h, 40px) !important;
    }
    .content {
        margin-top: 0 !important;
    }
}

/* Tres petit mobile */
@media (max-width: 380px) {
    .ticker-title {
        font-size: 0.52rem !important;
        padding: 8px 9px !important;
        letter-spacing: 0.04em !important;
    }
    .ticker-item {
        font-size: 0.68rem !important;
        padding: 8px 10px !important;
    }
}


/* =====================================================================
   =====   MENU GAUCHE v2 — Icones + etat actif premium  =====
   ===================================================================== */

/* Search box modernisee avec icone */
.sidebar-v2 .search-box-v2 {
    position: relative;
    margin-bottom: 20px;
}
.sidebar-v2 .search-box-v2 .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 2;
}
.sidebar-v2 .search-box-v2 input {
    width: 100%;
    padding: 10px 14px 10px 38px !important;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    background: rgba(255,255,255,0.96);
    color: #00507D;
    font-size: 0.85rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    transition: box-shadow 0.2s ease, background 0.2s ease;
}
.sidebar-v2 .search-box-v2 input:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 4px 16px rgba(232,108,0,0.25);
}
.sidebar-v2 .search-box-v2 input::placeholder {
    color: #888;
    font-style: normal;
}

/* Items du menu — icones + zone cliquable elargie */
.sidebar-v2 .main-nav ul li {
    border-bottom: none !important; /* on retire le separateur pour un look plus aere */
    margin-bottom: 4px !important;
}

.sidebar-v2 .main-nav ul li a {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    padding: 11px 14px !important;
    border-radius: 10px;
    color: rgba(255,255,255,0.92) !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    letter-spacing: 0.03em;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
    text-transform: uppercase;
}

/* On annule la barre orange a gauche du menu original */
.sidebar-v2 .main-nav ul li a::before {
    display: none !important;
}

.sidebar-v2 .main-nav ul li a .nav-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.85);
    flex-shrink: 0;
    font-size: 0.95rem;
    transition: color 0.18s ease, transform 0.18s ease;
}

.sidebar-v2 .main-nav ul li a .nav-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hover : fond clair tres subtil */
.sidebar-v2 .main-nav ul li a:hover {
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
}
.sidebar-v2 .main-nav ul li a:hover .nav-icon {
    color: #ff8c1a;
    transform: scale(1.08);
}

/* Etat actif : fond orange en plein */
.sidebar-v2 .main-nav ul li a.active {
    background: linear-gradient(135deg, #e86c00, #ff8c1a) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(232,108,0,0.35);
}
.sidebar-v2 .main-nav ul li a.active .nav-icon {
    color: #fff !important;
}

/* =====================================================================
   =====   MENU DROIT v2 — Titres icones + Items premium  =====
   ===================================================================== */

/* Titre de bloc : icone + texte aligne horizontalement */
.sb-v2-title {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    text-align: left !important;
    padding: 12px 16px !important;
}
.sb-v2-title-icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    font-size: 0.85rem;
    color: #fff;
    flex-shrink: 0;
}
.sb-v2-title > span:last-child {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
}

/* Items election v2 : avatar pays a gauche, info au milieu, date a droite */
.election-item-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 6px;
    border-radius: 10px;
    transition: background 0.18s ease;
    margin-bottom: 4px;
}
.election-item-v2:hover {
    background: rgba(232,108,0,0.07);
}
.election-flag {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00507D, #185fa8);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,80,125,0.25);
    text-transform: uppercase;
}
.election-item-v2 .election-info {
    flex: 1;
    min-width: 0;
}
.election-item-v2 .election-country {
    font-weight: 600;
    color: #00507D;
    font-size: 0.82rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.election-item-v2 .election-date {
    background: rgba(232,108,0,0.13);
    color: #e86c00;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Bouton "Voir tout" v2 — icone + texte */
.view-all-v2 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    background: linear-gradient(135deg, #00507D, #0a3b73) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 10px 16px !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    margin-top: 12px !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}
.view-all-v2 i {
    font-size: 0.75em;
    transition: transform 0.18s ease;
}
.view-all-v2:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,80,125,0.25);
}
.view-all-v2:hover i { transform: translateX(3px); }

/* Explorer v2 — 3 cartes en grille horizontale */
.explorer-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.explorer-card-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    background: linear-gradient(135deg, rgba(232,108,0,0.08), rgba(232,108,0,0.15));
    border: 1px solid rgba(232,108,0,0.22);
    border-radius: 14px;
    color: #00507D;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.explorer-card-v2:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(232,108,0,0.18), rgba(232,108,0,0.28));
    box-shadow: 0 8px 18px rgba(232,108,0,0.18);
}
.explorer-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e86c00, #ff8c1a);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(232,108,0,0.35);
    transition: transform 0.18s ease;
}
.explorer-card-v2:hover .explorer-icon-circle {
    transform: scale(1.08) rotate(-5deg);
}
.explorer-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
    color: #00507D;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Decès v2 : avatar initiales + infos */
.death-item-v2 {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 6px;
    border-radius: 10px;
    transition: background 0.18s ease;
    margin-bottom: 4px;
}
.death-item-v2:hover {
    background: rgba(0,80,125,0.05);
}
.death-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00507D, #0a3b73);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,80,125,0.25);
    margin-top: 2px;
}
.death-item-v2 .death-info {
    flex: 1;
    min-width: 0;
}
.death-item-v2 .death-name {
    color: #00507D;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 2px 0;
    line-height: 1.3;
}
.death-item-v2 .death-details {
    color: #888;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.35;
    margin: 0;
}

/* Bloc App Android v2 — carte premium */
.app-card-v2 {
    background: linear-gradient(135deg, #00507D, #0a3b73) !important;
    color: #fff !important;
    padding: 18px 18px 16px !important;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 24px rgba(0,80,125,0.2) !important;
    position: relative;
    overflow: hidden !important;
}
.app-card-v2::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(232,108,0,0.25), transparent 65%);
    pointer-events: none;
}
.app-card-content {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.app-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    flex-shrink: 0;
    object-fit: cover;
}
.app-card-text {
    flex: 1;
    min-width: 0;
}
.app-card-eyebrow {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff8c1a;
    margin-bottom: 4px;
}
.app-card-baseline {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255,255,255,0.92);
    line-height: 1.35;
}
.app-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #e86c00, #ff8c1a);
    color: #fff !important;
    padding: 12px 16px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(232,108,0,0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    z-index: 1;
}
.app-card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(232,108,0,0.5);
}
.app-card-cta i { font-size: 1rem; }

/* Liens legaux v2 */
.legal-links-v2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 0.72rem;
    color: #888;
}
.legal-links-v2 a {
    color: #888;
    text-decoration: none;
    transition: color 0.18s ease;
}
.legal-links-v2 a:hover { color: #e86c00; }
.legal-dot { color: #ccc; }

/* =====================================================================
   RESPONSIVE — la sidebar gauche v2 s'adapte aux memes breakpoints
   ===================================================================== */
@media (max-width: 768px) {
    .sidebar-v2 .main-nav ul li a {
        padding: 10px 14px !important;
        font-size: 0.85rem !important;
    }
    .sidebar-v2 .main-nav ul li a .nav-icon {
        font-size: 0.88rem;
    }
    .explorer-grid-v2 {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .explorer-card-v2 {
        padding: 12px 6px;
    }
    .explorer-icon-circle {
        width: 38px;
        height: 38px;
        font-size: 0.92rem;
    }
    .explorer-label {
        font-size: 0.58rem;
    }
}

@media (max-width: 380px) {
    .explorer-grid-v2 {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 6px;
    }
    .explorer-icon-circle {
        width: 34px;
        height: 34px;
    }
    .explorer-label {
        font-size: 0.55rem;
    }
}


/* =====================================================================
   =====   v2 — CORRECTIFS COMPLETS  =====
   1) Titres de blocs blancs/tendance (avec icone coloree en cercle)
   2) Drapeaux : pastille fond degrade + image surimprime (fallback initiales)
   3) Menu gauche : texte non tronque (font reduit + wrap si necessaire)
   4) Explorer : labels non tronques
   5) Ticker mobile : titre force nowrap + min-width, jamais sur 2 lignes
   ===================================================================== */

/* ---------------------------------------------------------------
   1. TITRES DE BLOCS — LOOK BLANC TENDANCE
   --------------------------------------------------------------- */
.sb-v2 {
    background: #fff !important;
    border-radius: var(--radius-lg, 18px) !important;
    box-shadow: 0 4px 16px rgba(0,80,125,0.08) !important;
    overflow: hidden !important;
    border: 1px solid rgba(0,80,125,0.06);
}

/* On masque l'ancien titre bleu et son trait orange */
.sb-v2 .sidebar-block-title { display: none !important; }

.sb-v2 .sb-v2-title {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    background: #fff !important;
    color: var(--epoc-blue, #00507D) !important;
    padding: 16px 18px 12px !important;
    border-bottom: 1px solid rgba(0,80,125,0.07);
    text-align: left !important;
}
.sb-v2 .sb-v2-title::after {
    display: none !important;
}

.sb-v2-title-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e86c00, #ff8c1a);
    color: #fff;
    border-radius: 50%;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(232,108,0,0.3);
    flex-shrink: 0;
}

.sb-v2-title-text {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--epoc-blue, #00507D);
    text-transform: uppercase;
    line-height: 1.25;
    flex: 1;
    min-width: 0;
}

.sb-v2 .sidebar-block-content {
    padding: 12px 14px 16px !important;
}

/* ---------------------------------------------------------------
   2. DRAPEAUX — pastille universelle (initiales + image overlay)
   --------------------------------------------------------------- */
.flag-circle {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #00507D, #185fa8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,80,125,0.25);
    border: 2px solid #fff;
}
.flag-initials {
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 0;
}
.flag-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* ---------------------------------------------------------------
   3. ITEMS ÉLECTION (v2) — plus aérés
   --------------------------------------------------------------- */
.election-item-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 4px;
    border-radius: 10px;
    transition: background 0.18s ease;
    margin-bottom: 4px;
}
.election-item-v2:hover {
    background: rgba(232,108,0,0.07);
}
.election-item-v2 .election-info {
    flex: 1;
    min-width: 0;
}
.election-item-v2 .election-country {
    font-weight: 600;
    color: var(--epoc-blue, #00507D);
    font-size: 0.82rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.election-item-v2 .election-date {
    background: rgba(232,108,0,0.12);
    color: var(--epoc-orange, #e86c00);
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
}

/* ---------------------------------------------------------------
   4. ITEMS DÉCÈS (v2) — drapeau + infos
   --------------------------------------------------------------- */
.death-item-v2 {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 4px;
    border-radius: 10px;
    transition: background 0.18s ease;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(0,80,125,0.05);
}
.death-item-v2:last-of-type {
    border-bottom: none;
}
.death-item-v2:hover {
    background: rgba(0,80,125,0.04);
}
.death-item-v2 .flag-circle {
    margin-top: 2px;
}
.death-item-v2 .death-info {
    flex: 1;
    min-width: 0;
}
.death-item-v2 .death-name {
    color: var(--epoc-blue, #00507D);
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 3px 0;
    line-height: 1.3;
}
.death-item-v2 .death-details {
    color: #888;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

/* ---------------------------------------------------------------
   5. EXPLORER (v2) — labels lisibles (font reduit + line-height)
   --------------------------------------------------------------- */
.explorer-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.explorer-card-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    background: linear-gradient(135deg, rgba(232,108,0,0.07), rgba(232,108,0,0.13));
    border: 1px solid rgba(232,108,0,0.2);
    border-radius: 12px;
    color: var(--epoc-blue, #00507D);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    min-width: 0;
}
.explorer-card-v2:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(232,108,0,0.15), rgba(232,108,0,0.24));
    box-shadow: 0 6px 16px rgba(232,108,0,0.15);
}
.explorer-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e86c00, #ff8c1a);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 3px 10px rgba(232,108,0,0.3);
    transition: transform 0.18s ease;
    flex-shrink: 0;
}
.explorer-card-v2:hover .explorer-icon-circle {
    transform: scale(1.08) rotate(-5deg);
}
.explorer-label {
    font-size: 0.58rem;
    font-weight: 700;
    text-align: center;
    color: var(--epoc-blue, #00507D);
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    /* Affichage en 2 lignes max, pas de troncage */
    overflow: hidden;
    word-break: keep-all;
    overflow-wrap: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* ---------------------------------------------------------------
   6. BOUTON "Voir tout" (v2) — plus discret, accent orange
   --------------------------------------------------------------- */
.view-all-v2 {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    background: transparent !important;
    color: var(--epoc-orange, #e86c00) !important;
    border: 1px solid rgba(232,108,0,0.3);
    border-radius: 999px !important;
    padding: 10px 14px !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    margin-top: 14px !important;
    transition: all 0.18s ease !important;
}
.view-all-v2 i {
    font-size: 0.75em;
    transition: transform 0.18s ease;
}
.view-all-v2:hover {
    background: linear-gradient(135deg, #e86c00, #ff8c1a) !important;
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(232,108,0,0.3);
    transform: translateY(-1px);
}
.view-all-v2:hover i { transform: translateX(3px); }

/* ---------------------------------------------------------------
   7. APP CARD (v2) — fond bleu profond avec halo orange
   --------------------------------------------------------------- */
.app-card-v2 {
    background: linear-gradient(135deg, #00507D, #0a3b73) !important;
    color: #fff !important;
    padding: 18px !important;
    border-radius: var(--radius-lg, 18px) !important;
    box-shadow: 0 8px 24px rgba(0,80,125,0.2) !important;
    position: relative;
    overflow: hidden !important;
    border: none !important;
}
.app-card-v2::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -30%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(232,108,0,0.32), transparent 65%);
    pointer-events: none;
}
.app-card-content {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.app-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    flex-shrink: 0;
    object-fit: cover;
}
.app-card-text {
    flex: 1;
    min-width: 0;
}
.app-card-eyebrow {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff8c1a;
    margin-bottom: 4px;
}
.app-card-baseline {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255,255,255,0.92);
    line-height: 1.35;
}
.app-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #e86c00, #ff8c1a);
    color: #fff !important;
    padding: 12px 16px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(232,108,0,0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    position: relative;
    z-index: 1;
}
.app-card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(232,108,0,0.5);
}
.app-card-cta i { font-size: 1rem; }

.legal-links-v2 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px 0 4px;
    font-size: 0.72rem;
    color: #888;
}
.legal-links-v2 a {
    color: #888;
    text-decoration: none;
    transition: color 0.18s ease;
}
.legal-links-v2 a:hover { color: var(--epoc-orange, #e86c00); }
.legal-dot { color: #ccc; }

/* =====================================================================
   8. MENU GAUCHE v2 — fix troncage REVUE DE PRESSE / PRÉSIDENTIELLE 2027
   ===================================================================== */
.sidebar-v2 .main-nav ul li a {
    font-size: 0.82rem !important;
    padding: 11px 12px !important;
    letter-spacing: 0 !important;
    gap: 10px;
}
.sidebar-v2 .main-nav ul li a .nav-label {
    flex: 1;
    min-width: 0;
    /* On autorise le wrap sur 2 lignes max si necessaire */
    white-space: normal;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: clip;
}
.sidebar-v2 .main-nav ul li a .nav-icon {
    font-size: 0.95rem;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Sur tres petits ecrans (mais sidebar etalee), on garde lisible */
@media (max-width: 380px) {
    .sidebar-v2 .main-nav ul li a {
        font-size: 0.82rem !important;
    }
}

/* =====================================================================
   9. TICKER — fix mobile (jamais 2 lignes sur le titre, jamais d'overlap)
   ===================================================================== */
/* Le pill du titre est insecable et conserve sa largeur de contenu */
.ticker-title,
.ticker-title * {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}
.ticker-title {
    flex-shrink: 0 !important;
    width: max-content !important;
    min-width: max-content !important;
}

/* Mobile : on reduit drastiquement le pill pour qu'il tienne sur 1 ligne */
@media (max-width: 768px) {
    .ticker-title {
        font-size: 0.5rem !important;
        padding: 6px 10px !important;
        letter-spacing: 0.04em !important;
        gap: 5px !important;
    }
    .ticker-title::before {
        width: 5px !important;
        height: 5px !important;
    }
    .ticker-item {
        font-size: 0.7rem !important;
        padding: 6px 10px !important;
    }
}
@media (max-width: 420px) {
    .ticker-title {
        font-size: 0.46rem !important;
        padding: 6px 8px !important;
        letter-spacing: 0.03em !important;
    }
    .ticker-item {
        font-size: 0.66rem !important;
        padding: 6px 8px !important;
        line-height: 1.3 !important;
    }
}
@media (max-width: 360px) {
    .ticker-title {
        font-size: 0.42rem !important;
        padding: 6px 7px !important;
    }
    .ticker-item {
        font-size: 0.62rem !important;
    }
}

/* Securite mobile : margin-top du main-container = au moins 50px de fallback */
@media (max-width: 768px) {
    .main-container {
        margin-top: max(var(--ticker-h, 50px), 48px) !important;
    }
}

/* =====================================================================
   10. RESPONSIVE Explorer / Death sur petits ecrans
   ===================================================================== */
@media (max-width: 380px) {
    .explorer-grid-v2 {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .explorer-card-v2 { padding: 10px 4px; }
    .explorer-icon-circle { width: 34px; height: 34px; font-size: 0.85rem; }
    .explorer-label { font-size: 0.5rem; }
    .flag-circle { width: 30px; height: 30px; }
    .flag-initials { font-size: 0.58rem; }
    .death-item-v2 { gap: 10px; }
}


/* =====================================================================
   =====   MENU GAUCHE v2 — LOOK BLANC/TENDANCE  =====
   Conversion du fond bleu profond vers blanc casse, avec :
   - texte bleu fonce sur fond clair
   - active state = orange degrade plein
   - logo conserve sa carte bleue pour l'identite
   - social icons en bleu fonce sur blanc
   ===================================================================== */

.sidebar.sidebar-v2 {
    background: #ffffff !important;
    color: var(--epoc-blue, #00507D) !important;
    border-right: 1px solid rgba(0,80,125,0.08);
}

/* La bande bleue du haut devient blanche */
.sidebar.sidebar-v2::before {
    background-color: #ffffff !important;
    border-bottom: 1px solid rgba(0,80,125,0.05);
}

/* Header mobile : fond blanc */
.sidebar.sidebar-v2 .mobile-header {
    background-color: #ffffff !important;
}

/* Logo : on encadre dans une carte bleue qui ressort sur fond blanc */
.sidebar.sidebar-v2 .logo {
    padding: 8px;
    margin-top: 18px;
    margin-bottom: 18px;
}
.sidebar.sidebar-v2 .logo img {
    border: 3px solid var(--epoc-orange, #e86c00);
    background: linear-gradient(135deg, #00507D, #0a3b73);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 6px 18px rgba(0,80,125,0.15);
}

/* Le titre sous le logo */
.sidebar.sidebar-v2 .site-title {
    color: var(--epoc-blue, #00507D) !important;
    margin-top: 8px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Hamburger en bleu fonce sur blanc */
.sidebar.sidebar-v2 .hamburger {
    color: var(--epoc-orange, #e86c00) !important;
}

/* Search box deja claire, on renforce */
.sidebar.sidebar-v2 .search-box-v2 input {
    background: #f5f7fa !important;
    border: 1px solid rgba(0,80,125,0.1) !important;
    color: var(--epoc-blue, #00507D);
}
.sidebar.sidebar-v2 .search-box-v2 input:focus {
    background: #fff !important;
    border-color: rgba(232,108,0,0.4) !important;
    box-shadow: 0 0 0 3px rgba(232,108,0,0.12), 0 2px 8px rgba(0,0,0,0.04) !important;
}

/* Items du menu : texte bleu fonce sur fond clair */
.sidebar.sidebar-v2 .main-nav ul li a {
    color: var(--epoc-blue, #00507D) !important;
    background: transparent !important;
}
.sidebar.sidebar-v2 .main-nav ul li a .nav-icon {
    color: rgba(0,80,125,0.65) !important;
}

/* Hover : fond bleu tres clair */
.sidebar.sidebar-v2 .main-nav ul li a:hover {
    background: rgba(0,80,125,0.06) !important;
    color: var(--epoc-blue, #00507D) !important;
}
.sidebar.sidebar-v2 .main-nav ul li a:hover .nav-icon {
    color: var(--epoc-orange, #e86c00) !important;
    transform: scale(1.08);
}

/* Active : pill orange degrade (inchange — fonctionne bien sur blanc) */
.sidebar.sidebar-v2 .main-nav ul li a.active {
    background: linear-gradient(135deg, #e86c00, #ff8c1a) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(232,108,0,0.35);
}
.sidebar.sidebar-v2 .main-nav ul li a.active .nav-icon {
    color: #fff !important;
}

/* Social icons : en bleu fonce sur fond clair */
.sidebar.sidebar-v2 .sidebar-social-logos a {
    background: rgba(0,80,125,0.06);
    border-radius: 8px;
}
.sidebar.sidebar-v2 .sidebar-social-logos a:hover {
    background: var(--epoc-orange, #e86c00);
}
.sidebar.sidebar-v2 .sidebar-social-logos a i {
    color: var(--epoc-blue, #00507D) !important;
    transition: color 0.18s ease;
}
.sidebar.sidebar-v2 .sidebar-social-logos a:hover i {
    color: #fff !important;
}
.sidebar.sidebar-v2 .sidebar-social-logos a svg path {
    fill: var(--epoc-blue, #00507D) !important;
    transition: fill 0.18s ease;
}
.sidebar.sidebar-v2 .sidebar-social-logos a:hover svg path {
    fill: #fff !important;
}

/* La separation visuelle entre sidebar et content */
.sidebar.sidebar-v2 {
    box-shadow: 2px 0 12px rgba(0,80,125,0.04);
}

/* =====================================================================
   =====   GRID GAP REDUIT — SIDEBAR DROIT PLUS PRES DES CARTES  =====
   ===================================================================== */
.content {
    grid-gap: 10px !important; /* etait 20px */
}

/* La sidebar-blocks remplit toute sa colonne (au lieu d'etre cappee a 300px) */
.sidebar-blocks {
    max-width: 100% !important;
}

/* =====================================================================
   =====   FLAG CIRCLE — pas d'init si image affichee  =====
   ===================================================================== */
.flag-circle {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #00507D, #185fa8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,80,125,0.25);
    border: 2px solid #fff;
}
.flag-circle.has-flag {
    background: #fff;
}
.flag-circle .flag-initials {
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.flag-circle .flag-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* =====================================================================
   =====   MOBILE : la sidebar blanche reste lisible  =====
   ===================================================================== */
@media (max-width: 768px) {
    .sidebar.sidebar-v2 {
        border-right: none;
        border-bottom: 1px solid rgba(0,80,125,0.08);
        box-shadow: 0 2px 12px rgba(0,80,125,0.04);
    }
}


/* =====================================================================
   =====  CORRECTIFS LOGO / TITRE / DRAPEAUX  =====
   ===================================================================== */

/* ---------------------------------------------------------------
   1. LOGO — Presentation propre, pas de cadre orange superflu.
   Le logo est deja un visuel fini (carre bleu avec EPOC et lignes
   oranges), il a juste besoin d'une ombre douce pour ressortir.
   --------------------------------------------------------------- */
.sidebar.sidebar-v2 .logo {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 14px;
    padding: 0;
}
.sidebar.sidebar-v2 .logo img {
    /* On annule TOUT le styling override precedent */
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    /* Presentation epuree */
    max-width: 120px;
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 80, 125, 0.18);
    display: block;
    margin: 0 auto;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sidebar.sidebar-v2 .logo a:hover img {
    transform: scale(1.04) rotate(-1deg);
}

/* ---------------------------------------------------------------
   2. TITRE DU SITE — Affichage centre, wrap autorise, jamais coupe
   --------------------------------------------------------------- */
.sidebar.sidebar-v2 .site-title {
    display: block !important;
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em;
    line-height: 1.3 !important;
    color: var(--epoc-blue, #00507D) !important;
    margin-top: 10px !important;
    padding: 0 10px;
    max-width: 100%;
}

/* Sur les ecrans tres etroits (mobile en accordeon), le logo + titre
   restent centres dans le header */
@media (max-width: 768px) {
    .sidebar.sidebar-v2 .logo img {
        max-width: 90px;
    }
    .sidebar.sidebar-v2 .site-title {
        font-size: 0.7rem !important;
    }
}

/* ---------------------------------------------------------------
   3. FLAG CIRCLE — initiales en fond, image en superposition
   Si image OK : recouvre les initiales (z-index 1)
   Si image fail : onerror retire l'img → initiales visibles
   --------------------------------------------------------------- */
.flag-circle {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #00507D, #185fa8);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,80,125,0.25);
    border: 2px solid #fff;
}
.flag-circle.has-flag {
    background: #f0f4f7; /* pendant le chargement, fond gris clair */
}
.flag-circle .flag-initials {
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 0;
}
.flag-circle.has-flag .flag-initials {
    color: transparent; /* invisible sous l'image qui recouvre */
}
.flag-circle .flag-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: block;
}

/* Sur le drapeau dans la calendar modal, conservation du meme look */
.calendar-list .flag-circle {
    margin-right: 4px;
}


/* =====================================================================
   =====   POLISH FINAL : titre logo, alignement sidebar, espace haut  =====
   ===================================================================== */

/* ---------------------------------------------------------------
   1. TITRE DU SITE SOUS LOGO — une seule ligne, plus petit
   --------------------------------------------------------------- */
.sidebar.sidebar-v2 .site-title {
    white-space: nowrap !important;
    overflow: visible !important;
    text-align: center !important;
    font-size: 0.58rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    line-height: 1.2 !important;
    color: var(--epoc-blue, #00507D) !important;
    margin-top: 8px !important;
    padding: 0 !important;
    max-width: 100%;
}

/* Mobile : peut etre encore plus petit si necessaire */
@media (max-width: 768px) {
    .sidebar.sidebar-v2 .site-title {
        font-size: 0.6rem !important;
    }
}
@media (max-width: 380px) {
    .sidebar.sidebar-v2 .site-title {
        font-size: 0.55rem !important;
    }
}

/* ---------------------------------------------------------------
   2. TITRE "A LA UNE" plus pres du ticker (espace reduit)
   --------------------------------------------------------------- */
.content .section-title:first-of-type {
    margin-top: 4px !important;
    margin-bottom: 14px !important;
}
/* Pour tous les titres de section, on reduit aussi en general */
.section-title {
    margin-top: 8px !important;
    margin-bottom: 16px !important;
}

/* Le content lui-meme : on resserre le padding-top */
.content {
    padding-top: 8px !important;
}

/* ---------------------------------------------------------------
   3. SIDEBAR DROIT — haut aligne avec le haut du HERO (pas du titre)
   ---------------------------------------------------------------
   Le titre "A LA UNE" prend approximativement :
   - margin-top: 4px (reduit)
   - hauteur du texte : ~28-32px
   - margin-bottom: 14px (reduit)
   - barre verticale orange du ::before : meme hauteur
   Total : ~50px depuis le haut du content.
   --------------------------------------------------------------- */
.sidebar-blocks {
    margin-top: 50px !important;
    max-width: 100% !important;
}

/* ---------------------------------------------------------------
   4. SIDEBAR DROIT encore plus pres du bord droit des cartes
   --------------------------------------------------------------- */
.content {
    grid-gap: 8px !important; /* etait 10px, on resserre encore */
}

/* ---------------------------------------------------------------
   5. LOGO — taille legerement reduite + meilleur margin
   --------------------------------------------------------------- */
.sidebar.sidebar-v2 .logo {
    margin-top: 16px !important;
    margin-bottom: 12px !important;
}
.sidebar.sidebar-v2 .logo img {
    max-width: 110px !important;
}

/* ---------------------------------------------------------------
   6. MOBILE : on garde le ticker au-dessus puis logo dessous,
   pas d'overlap.
   --------------------------------------------------------------- */
@media (max-width: 768px) {
    .sidebar-blocks {
        margin-top: 20px !important;
    }
    .content .section-title:first-of-type {
        margin-top: 8px !important;
    }
}


/* =====================================================================
   =====   COLONNE 1 = 1fr → remplit TOUT l'espace disponible  =====
   Probleme : minmax(0, 1170px) plafonne la colonne. Si l'ecran est plus
   large, l'espace EXCEDENTAIRE reste vide entre la colonne 1 (hero) et
   la colonne 2 (sidebar). Solution : passer en 1fr.
   ===================================================================== */

@media (min-width: 1201px) {
    .content {
        /* Colonne 1 = tout l'espace restant. Colonne 2 = 300px fixe. */
        grid-template-columns: minmax(0, 1fr) 300px !important;
        grid-gap: 10px !important;
        max-width: none !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .main-content {
        max-width: none !important; /* on libere le plafond */
        width: 100% !important;
    }
    .sidebar-blocks {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Sur 1201-1500, sidebar legerement plus etroite pour preserver
   un confort de lecture sur la colonne 1 */
@media (min-width: 1201px) and (max-width: 1500px) {
    .content {
        grid-template-columns: minmax(0, 1fr) 290px !important;
    }
}

/* Tres grand ecran : on plafonne quand meme pour que le hero ne devienne
   pas excessivement large (lecture confortable max 1400px de col 1) */
@media (min-width: 1700px) {
    .content {
        grid-template-columns: minmax(0, 1500px) 320px !important;
        justify-content: center;
    }
}


/* =====================================================================
   =====   LAYOUT FINAL — alignements precis  =====
   But :
   - Sidebar gauche : 240px (PRESIDENTIELLE 2027 tient sur 1 ligne)
   - Cards left = ticker left = 250px (apres sidebar gauche + 10 gap)
   - Cards right = ticker right = viewport - 300px (avant sidebar droit)
   - Sidebar droit collee aux cards (grid-gap 0)
   - Top de search box = top des cards = top du sidebar droit
   ===================================================================== */

/* ------------------------------------------------------------------
   1. SIDEBAR GAUCHE — un peu plus large
   ------------------------------------------------------------------ */
.sidebar.sidebar-v2 {
    width: 240px !important;
}

/* ------------------------------------------------------------------
   2. CONTENT — colle a droite + grid sans gap (right menu collé)
   ------------------------------------------------------------------ */
.content {
    margin-left: 250px !important; /* sidebar 240 + 10 gap */
    margin-right: 0 !important;
    padding: 0 !important;
    grid-template-columns: minmax(0, 1fr) 300px !important;
    grid-gap: 0 !important;
    max-width: none !important;
}

.main-content {
    max-width: none !important;
    width: 100% !important;
}

.sidebar-blocks {
    max-width: 100% !important;
    width: 100% !important;
    margin-top: 48px !important; /* aligne avec le haut du hero */
}

/* ------------------------------------------------------------------
   3. TICKER — meme left que cards, meme right que cards
   ------------------------------------------------------------------ */
.news-tickers {
    left: 250px !important;
    right: 300px !important;
    width: auto !important;
    max-width: none !important;
}
.news-ticker {
    left: 250px !important;
    right: 300px !important;
    width: auto !important;
    max-width: none !important;
}

/* ------------------------------------------------------------------
   4. SIDEBAR GAUCHE — logo compact + search alignee avec cards top
   Cards top ≈ ticker_height + content_top_offset + section_title_block
              ≈ 36 + 8 + (4+30+14)
              ≈ 92 px depuis viewport top
   Donc dans la sidebar (fixed, top:0), search doit demarrer a ~92px.
   ------------------------------------------------------------------ */
.sidebar.sidebar-v2::before {
    height: 0 !important; /* on retire la bande blanche du haut */
    display: none !important;
}

.sidebar.sidebar-v2 .logo {
    margin-top: 8px !important;
    margin-bottom: 4px !important;
    padding: 0;
}
.sidebar.sidebar-v2 .logo img {
    max-width: 64px !important; /* compact pour ne pas pousser la search trop bas */
    border-radius: 12px;
}

.sidebar.sidebar-v2 .site-title {
    margin-top: 4px !important;
    font-size: 0.5rem !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar.sidebar-v2 .search-box-v2 {
    margin-top: 6px !important;
    margin-bottom: 12px !important;
}

/* Items du menu : plus de space car sidebar plus large */
.sidebar.sidebar-v2 .main-nav ul li a {
    font-size: 0.82rem !important;
    padding: 10px 12px !important;
    white-space: nowrap !important; /* PRESIDENTIELLE 2027 sur 1 ligne */
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar.sidebar-v2 .main-nav ul li a .nav-label {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline !important; /* on annule le -webkit-box */
    line-clamp: unset !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
}

/* ------------------------------------------------------------------
   5. CONTENT padding/margin top : on calibre l'offset
   ------------------------------------------------------------------ */
.content {
    padding-top: 8px !important;
    padding-bottom: 20px !important;
}
.content .section-title:first-of-type {
    margin-top: 4px !important;
    margin-bottom: 14px !important;
}

/* ------------------------------------------------------------------
   6. RESPONSIVE — fallback mobile
   ------------------------------------------------------------------ */
@media (max-width: 1100px) {
    .content {
        grid-template-columns: minmax(0, 1fr) 280px !important;
    }
    .news-tickers,
    .news-ticker {
        right: 280px !important;
    }
}

@media (max-width: 768px) {
    .sidebar.sidebar-v2 {
        width: 100% !important;
    }
    .content {
        margin-left: 0 !important;
        grid-template-columns: 1fr !important;
        padding: 8px 12px !important;
    }
    .news-tickers,
    .news-ticker {
        left: 0 !important;
        right: 0 !important;
    }
    .sidebar-blocks {
        margin-top: 16px !important;
    }
}


/* =====================================================================
   =========   ARCHITECTURE V3 — TOP NAV + RIGHT SIDEBAR   =========
   Remplace l'ancienne sidebar gauche par un topbar horizontal.
   Conserve la sidebar droite (calendrier, decès, explorer, app).
   Hamburger ouvre un drawer avec : nav mobile, recherche, social.
   ===================================================================== */

/* ---------------------------------------------------------------
   1. RESET de l'ancienne sidebar gauche (annule tout le styling)
   --------------------------------------------------------------- */
.main-container { display: block !important; margin-top: 0 !important; min-height: auto !important; }
.sidebar { display: none !important; }
.sidebar-v2 { display: none !important; }

/* On annule les marges qui supposaient une sidebar fixed */
.content {
    margin-left: 0 !important;
    margin-top: 0 !important;
    max-width: none !important;
    padding: 0 !important;
}

/* ---------------------------------------------------------------
   2. TOPBAR — barre horizontale fixe en haut
   --------------------------------------------------------------- */
.topbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(135deg, #00507D 0%, #0a3b73 100%);
    color: #fff;
    box-shadow: 0 2px 14px rgba(0, 20, 40, 0.18);
    width: 100%;
}

.topbar-inner {
    max-width: 1700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px clamp(12px, 2vw, 24px);
    min-height: 64px;
}

/* Logo */
.topbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.18s ease;
}
.topbar-logo:hover { transform: scale(1.02); }
.topbar-logo img {
    height: 44px;
    width: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    background: transparent;
}
.topbar-tagline {
    display: none; /* visible seulement sur ecrans larges */
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.78);
    letter-spacing: 0.04em;
    line-height: 1.15;
    max-width: 110px;
}
@media (min-width: 1400px) {
    .topbar-tagline { display: inline-block; }
}

/* Navigation centrale */
.topbar-nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2px;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
}
.topbar-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    color: rgba(255,255,255,0.86);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.18s ease;
    white-space: nowrap;
}
.topbar-nav a i {
    font-size: 0.85rem;
    opacity: 0.85;
    transition: opacity 0.18s ease, transform 0.18s ease;
}
.topbar-nav a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.topbar-nav a:hover i {
    opacity: 1;
    transform: scale(1.1);
    color: #ff8c1a;
}
.topbar-nav a.active {
    background: linear-gradient(135deg, #e86c00 0%, #ff8c1a 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(232, 108, 0, 0.4);
}
.topbar-nav a.active i { opacity: 1; color: #fff; }

/* Hamburger */
.topbar-hamburger {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    flex-shrink: 0;
}
.topbar-hamburger:hover {
    background: rgba(255,255,255,0.18);
    transform: scale(1.04);
}
.topbar-hamburger[aria-expanded="true"] {
    background: var(--epoc-orange, #e86c00);
}

/* Bouton "Retour arriere" (a gauche du hamburger) */
.topbar-back {
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    flex-shrink: 0;
}
.topbar-back:hover {
    background: rgba(255,255,255,0.18);
    transform: scale(1.04) translateX(-1px);
}
.topbar-back:active {
    transform: scale(0.96);
}
.topbar-back.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}
@media (max-width: 768px) {
    .topbar-back {
        width: 40px;
        height: 40px;
    }
}

/* ---------------------------------------------------------------
   3. NEWS TICKER — sticky sous le topbar
   --------------------------------------------------------------- */
.news-tickers {
    position: sticky !important;
    top: 64px !important; /* matches topbar min-height */
    z-index: 99 !important;
    width: 100% !important;
    max-width: 1700px !important;
    margin: 8px auto 0 !important;
    padding: 0 clamp(12px, 2vw, 24px) !important;
    left: auto !important;
    right: auto !important;
    background: transparent !important;
    height: auto !important;
    min-height: 0 !important;
}
.news-ticker {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 38px !important;
    margin: 0 !important;
}

/* ---------------------------------------------------------------
   4. PAGE WRAPPER + CONTENT GRID
   --------------------------------------------------------------- */
.page-wrapper {
    max-width: 1700px;
    margin: 0 auto;
    padding: 16px clamp(12px, 2vw, 24px) 40px;
}

.page-wrapper > .content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 320px !important;
    grid-gap: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

.page-wrapper .main-content {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
}

.page-wrapper .sidebar-blocks {
    grid-column: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0 !important;
    min-width: 0;
}

/* Section titles — espace reduit en haut */
.page-wrapper .section-title:first-of-type {
    margin-top: 8px !important;
}

/* ---------------------------------------------------------------
   5. DRAWER — panneau lateral droit ouvert par hamburger
   --------------------------------------------------------------- */
.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 360px;
    max-width: 90vw;
    background: #fff;
    box-shadow: -8px 0 32px rgba(0, 80, 125, 0.25);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.drawer.open { transform: translateX(0); }

.drawer-inner {
    padding: 20px 22px 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 100%;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,80,125,0.08);
}
.drawer-title {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--epoc-blue, #00507D);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 80, 125, 0.08);
    color: var(--epoc-blue, #00507D);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
}
.drawer-close:hover {
    background: var(--epoc-orange, #e86c00);
    color: #fff;
    transform: rotate(90deg);
}

/* Nav mobile dans le drawer (cachee sur desktop) */
.drawer-nav {
    display: none;
    flex-direction: column;
    gap: 2px;
}
.drawer-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--epoc-blue, #00507D);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.18s ease;
}
.drawer-nav a i {
    width: 22px;
    text-align: center;
    color: rgba(0,80,125,0.55);
}
.drawer-nav a:hover {
    background: rgba(0,80,125,0.07);
}
.drawer-nav a.active {
    background: linear-gradient(135deg, #e86c00, #ff8c1a);
    color: #fff;
}
.drawer-nav a.active i { color: #fff; }

.drawer-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.drawer-label {
    font-size: 0.66rem;
    font-weight: 800;
    color: rgba(0,80,125,0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Search dans drawer */
.drawer-search {
    position: relative;
}
.drawer-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 0.85rem;
    pointer-events: none;
}
.drawer-search input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1px solid rgba(0, 80, 125, 0.15);
    border-radius: 999px;
    background: #f5f7fa;
    color: var(--epoc-blue, #00507D);
    font-size: 0.88rem;
    transition: all 0.18s ease;
}
.drawer-search input:focus {
    outline: none;
    background: #fff;
    border-color: rgba(232, 108, 0, 0.45);
    box-shadow: 0 0 0 3px rgba(232, 108, 0, 0.12);
}
.drawer-search .suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(0, 80, 125, 0.15);
    border-radius: 12px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0, 80, 125, 0.15);
}
.drawer-search .suggestion {
    padding: 10px 14px;
    display: block;
    color: var(--epoc-blue, #00507D);
    text-decoration: none;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(0, 80, 125, 0.05);
}
.drawer-search .suggestion:hover {
    background: rgba(232, 108, 0, 0.08);
    color: var(--epoc-orange, #e86c00);
}

/* Social icons dans drawer */
.drawer-social {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.drawer-social a {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    background: rgba(0, 80, 125, 0.07);
    color: var(--epoc-blue, #00507D);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.18s ease;
    font-size: 1.05rem;
}
.drawer-social a:hover {
    background: var(--epoc-orange, #e86c00);
    color: #fff;
    transform: translateY(-2px);
}
.drawer-social a svg { width: 18px; height: 18px; fill: currentColor; }

/* App CTA */
.drawer-app {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #00507D, #0a3b73);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(0, 80, 125, 0.2);
    transition: all 0.18s ease;
    position: relative;
    overflow: hidden;
}
.drawer-app::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(232,108,0,0.3), transparent 65%);
    pointer-events: none;
}
.drawer-app i {
    font-size: 1.6rem;
    color: #ff8c1a;
    flex-shrink: 0;
}
.drawer-app span {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.drawer-app strong { font-size: 0.85rem; }
.drawer-app small { font-size: 0.72rem; color: rgba(255,255,255,0.78); }
.drawer-app:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,80,125,0.3); }

.drawer-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 80, 125, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.7rem;
    color: #888;
}
.drawer-footer a {
    color: #888;
    text-decoration: none;
    transition: color 0.18s ease;
}
.drawer-footer a:hover { color: var(--epoc-orange, #e86c00); }

/* Backdrop */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 15, 30, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s ease, visibility 0.32s ease;
    z-index: 999;
}
.drawer-backdrop.visible {
    opacity: 1;
    visibility: visible;
}

/* Empêche le scroll du body quand le drawer est ouvert */
body.drawer-open { overflow: hidden; }

/* ---------------------------------------------------------------
   6. RESPONSIVE
   --------------------------------------------------------------- */

/* Desktop intermediaire 1100-1400 : on cache la nav du topbar
   et on l'affiche dans le drawer */
@media (max-width: 1200px) {
    .topbar-nav { display: none; }
    .drawer-nav { display: flex; }
}

/* Tablette : sidebar droit passe sous le contenu principal */
@media (max-width: 1100px) {
    .page-wrapper > .content {
        grid-template-columns: 1fr !important;
        grid-gap: 30px !important;
    }
    .page-wrapper .sidebar-blocks {
        grid-column: 1 !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .topbar-inner {
        padding: 8px 12px;
        gap: 10px;
        min-height: 56px;
    }
    .topbar-logo img { height: 36px; }
    .topbar-tagline { display: none; }
    .topbar-hamburger {
        width: 40px;
        height: 40px;
    }
    .news-tickers {
        top: 56px !important;
        margin-top: 6px !important;
    }
    .page-wrapper {
        padding: 12px 12px 30px;
    }
    .drawer {
        width: 320px;
    }
    .drawer-social {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Petit mobile */
@media (max-width: 480px) {
    .topbar-inner { gap: 8px; padding: 8px 10px; }
    .drawer { width: 100%; max-width: 100%; }
}


/* =====================================================================
   =========   POLISH TOPBAR / TICKER / SIDEBAR ALIGNMENT   =========
   ===================================================================== */

/* ---------------------------------------------------------------
   1. TAGLINE — alignee bas-droit du logo, sur 1 ligne, visible >=480
   --------------------------------------------------------------- */
.topbar-logo {
    align-items: flex-end !important; /* logo et tagline alignes en bas */
    gap: 12px;
}
.topbar-tagline {
    display: inline-block !important;
    white-space: nowrap !important;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.04em;
    line-height: 1;
    padding-bottom: 4px; /* aligne avec le bas du logo */
    text-transform: uppercase;
    max-width: none !important;
}

/* Override de l'ancien display: none par defaut */
@media (max-width: 1400px) {
    .topbar-tagline {
        display: inline-block !important;
        font-size: 0.65rem;
    }
}
@media (max-width: 768px) {
    .topbar-tagline {
        font-size: 0.55rem;
        padding-bottom: 2px;
    }
}
@media (max-width: 480px) {
    .topbar-tagline {
        display: none !important; /* trop etroit, on cache */
    }
}

/* ---------------------------------------------------------------
   2. SIDEBAR DROIT — top aligne avec haut du HERO
   La section-title prend ~50px de hauteur (margin-top + texte + margin-bottom)
   --------------------------------------------------------------- */
.page-wrapper .sidebar-blocks {
    margin-top: 56px !important;
}
/* Sur mobile/tablette, sidebar passe sous le contenu → pas de margin */
@media (max-width: 1100px) {
    .page-wrapper .sidebar-blocks {
        margin-top: 24px !important;
    }
}

/* ---------------------------------------------------------------
   3. MOBILE NAV — items visibles dans le topbar (faire comme web)
   Scroll horizontal si necessaire, hamburger reste pour outils.
   --------------------------------------------------------------- */

/* On annule le display: none des items sur mobile */
@media (max-width: 1200px) {
    .topbar-nav {
        display: flex !important;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        flex: 1 1 auto;
        justify-content: flex-start;
        gap: 4px;
        padding: 0 4px;
        min-width: 0;
        scroll-behavior: smooth;
    }
    .topbar-nav::-webkit-scrollbar { display: none; height: 0; }
    .topbar-nav a {
        font-size: 0.68rem;
        padding: 8px 11px;
        gap: 7px;
        flex-shrink: 0;
    }
    .topbar-nav a i { font-size: 0.85rem; }
    /* Le drawer-nav devient redondant : on le cache */
    .drawer-nav { display: none !important; }
}

@media (max-width: 768px) {
    .topbar-nav a {
        font-size: 0.62rem;
        padding: 7px 9px;
        gap: 6px;
    }
    .topbar-nav a i { font-size: 0.78rem; }
}

@media (max-width: 480px) {
    /* Sur tres petit ecran : icones seules pour gagner de la place */
    .topbar-nav a span {
        display: none;
    }
    .topbar-nav a {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
        border-radius: 9px;
    }
    .topbar-nav a i {
        font-size: 0.95rem;
        opacity: 0.95;
    }
    /* On reactive le drawer-nav puisque les icones sont sans label */
    .drawer-nav { display: flex !important; }
}

/* ---------------------------------------------------------------
   4. TICKER — alignement avec barre titre + style pill conserve mobile
   --------------------------------------------------------------- */

/* Desktop : on respecte le padding du page-wrapper */
.news-tickers {
    padding: 0 clamp(12px, 2vw, 24px) !important;
}

/* On reduit le padding interne entre pill orange et texte */
.ticker-title {
    padding: 4px 10px 4px 14px !important;
    margin: 2px 2px 2px 2px !important;
}
.ticker-item {
    padding: 6px 10px !important;
}

/* MOBILE : on annule l'override qui mettait le ticker edge-to-edge,
   et on garde le style pill (border-radius + bordure orange) */
@media (max-width: 768px) {
    .news-tickers {
        left: auto !important;
        right: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 12px !important;
        max-width: 100% !important;
        top: 56px !important; /* matches topbar height mobile */
        margin-top: 6px !important;
    }
    .news-ticker {
        border-radius: 999px !important;
        border: 1px solid rgba(232, 108, 0, 0.25) !important;
        background: rgba(255, 255, 255, 0.97) !important;
        box-shadow: 0 2px 10px rgba(0, 80, 125, 0.08) !important;
        left: auto !important;
        right: auto !important;
        margin: 0 !important;
        width: 100% !important;
        min-height: 38px !important;
    }
    .ticker-title {
        border-radius: 999px !important;
        margin: 2px 2px 2px 2px !important;
        padding: 4px 10px 4px 12px !important;
        font-size: 0.52rem !important;
        height: auto !important;
        min-height: 30px !important;
    }
    .ticker-item {
        padding: 5px 10px !important;
        font-size: 0.7rem !important;
    }
}

@media (max-width: 480px) {
    .news-tickers {
        padding: 0 10px !important;
    }
    .ticker-title {
        font-size: 0.48rem !important;
        padding: 4px 8px 4px 10px !important;
    }
    .ticker-item {
        font-size: 0.66rem !important;
        padding: 5px 8px !important;
    }
}

/* ---------------------------------------------------------------
   5. SECTION TITLE — on ajuste pour parfaitement matcher
   --------------------------------------------------------------- */
.page-wrapper .section-title:first-of-type {
    margin-top: 8px !important;
    margin-bottom: 18px !important;
}

/* ---------------------------------------------------------------
   6. TOPBAR LAYOUT — petits ajustements pour que tout tienne
   --------------------------------------------------------------- */
.topbar-inner {
    flex-wrap: nowrap;
    overflow: hidden; /* important pour que le nav puisse scroller */
}

@media (max-width: 768px) {
    .topbar-inner {
        padding: 8px 10px;
        gap: 8px;
        min-height: 56px;
    }
    .topbar-logo img {
        height: 36px;
    }
    .topbar-hamburger {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}


/* =====================================================================
   =========   HERO/DOUBLE : contenu compact au grand zoom   =========
   But : empecher les pills "A LA UNE", "MEMOIRE D'URNES", etc. de
   "monter" trop haut sur l'image quand le texte grandit.
   Strategie :
   - Reduire le `bottom` de la zone de contenu (colle plus au bas)
   - Compacter les espacements (margin, padding)
   - Plafonner la taille de police du titre en grand zoom
   - Renforcer le degrade sombre pour rester lisible si ca remonte
   ===================================================================== */

/* HERO : on colle le contenu au bas et on compacte */
.cover-hero-content {
    bottom: clamp(50px, 5vw, 70px) !important;   /* etait 70-100, on baisse */
    padding-left: clamp(16px, 2.2vw, 40px) !important;
    padding-right: clamp(16px, 2.2vw, 40px) !important;
    padding-bottom: 0 !important;
}

.cover-hero-meta {
    margin-bottom: clamp(8px, 1vw, 14px) !important; /* etait 12-20 */
    gap: 8px;
}

.cover-live,
.cover-tag {
    padding: 4px 11px !important;
    font-size: clamp(0.55rem, 0.7vw, 0.7rem) !important;
}

/* Titre HERO : plafond plus bas + line-height plus serre */
.cover-hero-title {
    font-size: clamp(1rem, 2.3vw, 2rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em !important;
}

/* Degrade renforce : zone sombre plus haute pour absorber le texte qui monte */
.cover-hero-gradient {
    background:
        linear-gradient(180deg,
            rgba(0,0,0,0) 5%,
            rgba(0,15,30,0.35) 35%,
            rgba(0,15,30,0.75) 65%,
            rgba(0,10,25,0.96) 100%),
        linear-gradient(90deg, rgba(0,10,25,0.45) 0%, rgba(0,10,25,0) 55%) !important;
}

/* =====================================================================
   DOUBLE (cartes secondaires) : meme principe, plus compact
   ===================================================================== */
.cover-overlay {
    padding: clamp(38px, 5vw, 60px) clamp(14px, 1.8vw, 22px) clamp(40px, 4.5vw, 55px) !important;
}
.cover-overlay .cover-tag {
    margin-bottom: 6px !important;
    padding: 3px 10px !important;
    font-size: clamp(0.52rem, 0.65vw, 0.65rem) !important;
}
.cover-title {
    font-size: clamp(0.85rem, 1.1vw, 1.15rem) !important;
    line-height: 1.2 !important;
}

/* Degrade renforce sur les double aussi */
.cover-double::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(0,0,0,0) 30%,
            rgba(0,10,25,0.55) 60%,
            rgba(0,10,25,0.96) 100%);
    pointer-events: none;
}

/* =====================================================================
   ZOOM ELEVE (≥120% via vw qui devient grand) : on serre encore plus
   On utilise une media query large pour les ecrans larges en zoom
   ===================================================================== */
@media (max-width: 1500px) {
    .cover-hero-title {
        font-size: clamp(0.95rem, 2.1vw, 1.7rem) !important;
    }
    .cover-hero-content {
        bottom: clamp(48px, 4.5vw, 60px) !important;
    }
}

@media (max-width: 1100px) {
    .cover-hero-title {
        font-size: clamp(0.9rem, 1.9vw, 1.5rem) !important;
    }
    .cover-hero-content {
        bottom: clamp(46px, 4vw, 55px) !important;
    }
}

/* Mobile : compact maximum */
@media (max-width: 768px) {
    .cover-hero-title {
        font-size: clamp(0.95rem, 4vw, 1.3rem) !important;
        line-height: 1.18 !important;
    }
    .cover-hero-content {
        bottom: 56px !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .cover-hero-meta {
        margin-bottom: 8px !important;
        gap: 6px;
    }
    .cover-live,
    .cover-tag {
        padding: 3px 9px !important;
        font-size: 0.55rem !important;
    }
    .cover-overlay {
        padding: 36px 14px 50px !important;
    }
    .cover-title {
        font-size: clamp(0.9rem, 3.4vw, 1.1rem) !important;
    }
}


/* =====================================================================
   =====   HERO MOBILE / ZOOM ELEVE — ANTI-OVERFLOW   =====
   Probleme : sur mobile a fort zoom, le hero (21/9) est trop court
   pour contenir [NEW + source watermark] en haut et [pills + titre]
   en bas. Le contenu deborde et part au top.
   Strategie : aspect-ratio plus genereux sur mobile + contraintes
   strictes sur les pills/source.
   ===================================================================== */

/* --------------------------------------------------------------
   META (pills) : ne JAMAIS wrapper, jamais deborder
   -------------------------------------------------------------- */
.cover-hero-meta {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    overflow: hidden;
    max-width: 100%;
    min-width: 0;
}

.cover-hero-meta .cover-live,
.cover-hero-meta .cover-tag {
    flex-shrink: 1;
    min-width: 0;
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cover-hero-meta .cover-live {
    flex-shrink: 0; /* on garde "A LA UNE" lisible */
}

/* --------------------------------------------------------------
   SOURCE WATERMARK : limite plus genereuse + font adapte au zoom
   -------------------------------------------------------------- */
.cover-hero .cover-source,
.cover-double .cover-source,
.cover-tile .cover-source {
    max-width: 55% !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .cover-hero .cover-source {
        max-width: 60% !important;
        font-size: 0.5rem !important;
        padding: 3px 8px !important;
        top: 10px !important;
        right: 10px !important;
    }
    .cover-double .cover-source,
    .cover-tile .cover-source {
        font-size: 0.5rem !important;
        max-width: 65% !important;
    }
}

/* --------------------------------------------------------------
   HERO ASPECT-RATIO ADAPTE — plus genereux a petits viewports
   -------------------------------------------------------------- */

/* Desktop large : 21/9 cinematique */
.cover-hero-media {
    aspect-ratio: 21 / 9;
}

/* Tablette / desktop intermediaire : 16/9 plus carre */
@media (max-width: 1100px) {
    .cover-hero-media {
        aspect-ratio: 16 / 9 !important;
    }
}

/* Mobile : 4/3 → laisse plus de place verticale pour le contenu */
@media (max-width: 768px) {
    .cover-hero-media {
        aspect-ratio: 4 / 3 !important;
    }
}

/* Petit mobile : ratio carre pour absorber les zooms eleves */
@media (max-width: 480px) {
    .cover-hero-media {
        aspect-ratio: 1 / 1 !important;
    }
}

/* --------------------------------------------------------------
   HERO CONTENT — ancre tres pres du bas, padding optimise
   -------------------------------------------------------------- */
@media (max-width: 768px) {
    .cover-hero-content {
        bottom: 48px !important;
        padding: 0 12px !important;
    }
    .cover-hero-meta {
        margin-bottom: 6px !important;
        gap: 6px !important;
    }
    .cover-hero-meta .cover-live,
    .cover-hero-meta .cover-tag {
        padding: 3px 8px !important;
        font-size: 0.5rem !important;
        letter-spacing: 0.04em !important;
    }
    .cover-hero-title {
        font-size: clamp(0.9rem, 3.6vw, 1.2rem) !important;
        line-height: 1.15 !important;
    }
}

@media (max-width: 480px) {
    .cover-hero-content {
        bottom: 46px !important;
    }
    .cover-hero-title {
        font-size: clamp(0.85rem, 3.2vw, 1.05rem) !important;
    }
    .cover-hero-meta .cover-live,
    .cover-hero-meta .cover-tag {
        padding: 3px 7px !important;
        font-size: 0.46rem !important;
    }
}

/* --------------------------------------------------------------
   NEW BADGE : taille adaptee aussi
   -------------------------------------------------------------- */
@media (max-width: 768px) {
    .cover-new {
        top: 10px !important;
        left: 10px !important;
        padding: 3px 9px !important;
        font-size: 0.55rem !important;
        letter-spacing: 0.06em !important;
    }
    .cover-hero .cover-new {
        font-size: 0.6rem !important;
        padding: 4px 12px !important;
    }
}

/* --------------------------------------------------------------
   DOUBLE / TILES : meme idees de compacification au mobile
   -------------------------------------------------------------- */
@media (max-width: 768px) {
    .cover-double .cover-media {
        aspect-ratio: 16 / 10;
    }
    .cover-overlay {
        padding: 30px 12px 44px !important;
    }
    .cover-overlay .cover-tag {
        padding: 3px 8px !important;
        font-size: 0.5rem !important;
        margin-bottom: 5px !important;
    }
    .cover-title {
        font-size: clamp(0.85rem, 3vw, 1.05rem) !important;
        line-height: 1.18 !important;
    }
}

@media (max-width: 480px) {
    .cover-double .cover-media {
        aspect-ratio: 4 / 3;
    }
}


/* =====================================================================
   =====  DRAWER HEADER : nom du site + label OUTILS  =====
   ===================================================================== */
.drawer-title-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.drawer-site-name {
    font-weight: 800;
    font-size: 0.74rem;
    color: var(--epoc-blue, #00507D);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.15;
    /* Tient sur 1 ou 2 lignes selon la largeur */
    word-wrap: break-word;
}

.drawer-section-label {
    font-weight: 700;
    font-size: 0.62rem;
    color: var(--epoc-orange, #e86c00);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

/* On annule l'ancien style drawer-title */
.drawer-title { display: none; }

/* Sur tres petit ecran : compact mais lisible */
@media (max-width: 480px) {
    .drawer-site-name {
        font-size: 0.66rem;
        letter-spacing: 0.04em;
    }
    .drawer-section-label {
        font-size: 0.58rem;
    }
}

/* =====================================================================
   =====  BIO-SOURCE : bottom-right web, top-right mobile  =====
   La photo a deja :
   - NEW badge en haut-gauche
   - bio-portrait-overlay en bas (avec le tag pays)
   On positionne Source en bas-droite (alongside le tag) sur desktop,
   et en haut-droite sur mobile (en symetrie du NEW).
   ===================================================================== */

/* ---- DESKTOP : bottom-right, au-dessus de l'overlay (visible sur image) ---- */
.bio-portrait .bio-source {
    position: absolute !important;
    bottom: 12px !important;
    right: 12px !important;
    top: auto !important;
    z-index: 3; /* au-dessus de l'overlay (z-index 2) */
    background: rgba(0, 0, 0, 0.55) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.95) !important;
    padding: 3px 9px !important;
    border-radius: 4px !important;
    font-size: 0.58rem !important;
    font-weight: 500 !important;
    font-style: italic !important;
    letter-spacing: 0.02em !important;
    line-height: 1.2 !important;
    max-width: 50% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Le tag pays (overlay) ne doit pas trop deborder pour laisser place au source */
.bio-portrait-overlay .bio-tag {
    max-width: 60%;
}

/* ---- MOBILE : top-right (symetrique avec le NEW en top-left) ---- */
@media (max-width: 768px) {
    .bio-portrait .bio-source {
        top: 10px !important;
        right: 10px !important;
        bottom: auto !important;
        max-width: 60% !important;
        font-size: 0.52rem !important;
        padding: 3px 8px !important;
    }
    /* En mobile on remet le tag à sa pleine largeur */
    .bio-portrait-overlay .bio-tag {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .bio-portrait .bio-source {
        font-size: 0.48rem !important;
        padding: 2px 7px !important;
        top: 8px !important;
        right: 8px !important;
        max-width: 65% !important;
    }
}


/* =====================================================================
   =====   ARTICLE PAGE (journal2.php) — Typo éditoriale  =====
   Fond blanc, layout coherent avec la home (cards/sidebar).
   ===================================================================== */

.article-page {
    background: #fff;
    border-radius: var(--radius-lg, 18px);
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 80, 125, 0.08));
    border: 1px solid rgba(0, 80, 125, 0.06);
    margin-bottom: clamp(24px, 3vw, 40px);
}

/* ---------------------------------------------------------------
   HEADER de l'article (au-dessus de la photo)
   --------------------------------------------------------------- */
.article-header {
    padding: clamp(20px, 2.5vw, 36px) clamp(18px, 2.5vw, 40px);
    border-bottom: 1px solid rgba(0, 80, 125, 0.05);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.article-flag-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #00507D, #185fa8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 80, 125, 0.2);
    flex-shrink: 0;
}
.article-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-tag {
    background: linear-gradient(135deg, #e86c00, #ff8c1a);
    color: #fff;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 3px 10px rgba(232, 108, 0, 0.3);
}

.article-date {
    color: rgba(0, 80, 125, 0.65);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-left: auto; /* pousse a droite quand espace */
    font-style: italic;
}

.article-title {
    font-size: clamp(1.4rem, 2.6vw, 2.4rem);
    font-weight: 800;
    color: var(--epoc-blue, #00507D);
    line-height: 1.15;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.article-intro {
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    color: rgba(0, 80, 125, 0.85);
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
    font-style: italic;
    padding-left: 14px;
    border-left: 3px solid var(--epoc-orange, #e86c00);
}

/* ---------------------------------------------------------------
   PHOTO (figure) + FILIGRANE Source
   --------------------------------------------------------------- */
.article-figure {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: #f0f4f7;
}

.article-photo {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: cover;
}

.article-source {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.95);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.02em;
    line-height: 1.2;
    max-width: 45%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ---------------------------------------------------------------
   CORPS de l'article (texte éditorial)
   --------------------------------------------------------------- */
.article-body {
    padding: clamp(24px, 3vw, 48px) clamp(18px, 2.5vw, 40px);
    font-size: clamp(0.95rem, 1.05vw, 1.08rem);
    line-height: 1.7;
    color: #2a3540;
    max-width: 75ch;
    margin: 0 auto;
}

.article-body p {
    margin: 0 0 1.2em;
}

.article-body h2 {
    color: var(--epoc-blue, #00507D);
    font-size: clamp(1.2rem, 1.6vw, 1.5rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 1.8em 0 0.6em;
    letter-spacing: -0.005em;
    position: relative;
    padding-left: 14px;
}
.article-body h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 4px;
    background: linear-gradient(180deg, var(--epoc-orange, #e86c00), #ff8c1a);
    border-radius: 4px;
}

.article-body h3 {
    color: var(--epoc-blue, #00507D);
    font-size: clamp(1.05rem, 1.3vw, 1.25rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 1.5em 0 0.5em;
}

.article-body h4 {
    color: var(--epoc-blue, #00507D);
    font-size: 1rem;
    font-weight: 700;
    margin: 1.3em 0 0.4em;
}

.article-body a {
    color: var(--epoc-orange, #e86c00);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.18s ease;
}
.article-body a:hover {
    color: #ff8c1a;
    text-decoration-thickness: 2px;
}

.article-body strong {
    color: var(--epoc-blue, #00507D);
    font-weight: 700;
}

.article-body em {
    color: #555;
}

.article-body ul,
.article-body ol {
    padding-left: 1.6em;
    margin: 0 0 1.2em;
}
.article-body li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}
.article-body ul li::marker {
    color: var(--epoc-orange, #e86c00);
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.2em auto;
    display: block;
    box-shadow: 0 4px 16px rgba(0, 80, 125, 0.1);
}

.article-body figure {
    margin: 1.5em 0;
}
.article-body figcaption {
    font-size: 0.85em;
    color: #888;
    font-style: italic;
    text-align: center;
    margin-top: 0.5em;
}

.article-body blockquote {
    border-left: 4px solid var(--epoc-orange, #e86c00);
    background: linear-gradient(90deg, rgba(232, 108, 0, 0.06), rgba(232, 108, 0, 0));
    padding: 16px 20px;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--epoc-blue, #00507D);
    border-radius: 0 8px 8px 0;
}
.article-body blockquote p:last-child {
    margin-bottom: 0;
}

.article-body hr {
    border: none;
    border-top: 1px solid rgba(0, 80, 125, 0.15);
    margin: 2em 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
}
.article-body th,
.article-body td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(0, 80, 125, 0.1);
    text-align: left;
}
.article-body th {
    background: rgba(0, 80, 125, 0.05);
    color: var(--epoc-blue, #00507D);
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Selection */
.article-body ::selection {
    background: rgba(232, 108, 0, 0.25);
    color: var(--epoc-blue, #00507D);
}

/* ---------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------- */
@media (max-width: 768px) {
    .article-header {
        padding: 18px 16px;
    }
    .article-meta {
        gap: 10px;
        margin-bottom: 12px;
    }
    .article-flag-wrap {
        width: 32px;
        height: 32px;
    }
    .article-tag {
        padding: 4px 11px;
        font-size: 0.62rem;
    }
    .article-date {
        font-size: 0.7rem;
        margin-left: 0;
        width: 100%; /* sur sa propre ligne en mobile */
        margin-top: 4px;
    }
    .article-title {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
    }
    .article-intro {
        font-size: 0.92rem;
        padding-left: 10px;
    }
    .article-source {
        top: 10px;
        right: 10px;
        font-size: 0.6rem;
        padding: 4px 10px;
        max-width: 65%;
    }
    .article-photo {
        max-height: 400px;
    }
    .article-body {
        padding: 20px 16px;
        font-size: 0.96rem;
        line-height: 1.65;
    }
    .article-body h2 {
        font-size: 1.15rem;
        margin: 1.4em 0 0.5em;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.25rem;
    }
    .article-intro {
        font-size: 0.88rem;
    }
    .article-source {
        font-size: 0.55rem;
        padding: 3px 8px;
        max-width: 70%;
    }
}

/* Animation d'entree */
.article-page {
    animation: articleFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes articleFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .article-page { animation: none; }
}


/* =====================================================================
   =====  JOURNAL POLISH : sidebar align + transparence article  =====
   ===================================================================== */

/* ---------------------------------------------------------------
   1. Sur la page article (journal2), pas de section title → sidebar
   doit etre alignee avec le HAUT de l'article (pas 56px de margin).
   --------------------------------------------------------------- */
.page-wrapper-article .sidebar-blocks {
    margin-top: 0 !important;
}

/* ---------------------------------------------------------------
   2. Transparence subtile sur la carte article + effet "frosted"
   Le fond reste majoritairement blanc mais laisse transparaitre la
   nuance grise tres legere du body, pour un rendu moins "stark white".
   --------------------------------------------------------------- */
.article-page {
    background: rgba(255, 255, 255, 0.88) !important;
    -webkit-backdrop-filter: blur(12px) saturate(110%);
    backdrop-filter: blur(12px) saturate(110%);
    /* Bordure tres legere pour conserver la definition */
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow:
        0 8px 32px rgba(0, 80, 125, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.4) inset !important;
}

/* Le header de l'article : un fond legerement plus opaque pour la
   lisibilite du titre + meta */
.article-header {
    background: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(0, 80, 125, 0.07) !important;
}

/* La figure (photo) : on enleve le fond pour qu'on voie l'image directement */
.article-figure {
    background: transparent !important;
}

/* Le corps de l'article : fond legerement plus opaque pour la lisibilite du texte */
.article-body {
    background: rgba(255, 255, 255, 0.55);
}

/* ---------------------------------------------------------------
   3. Body : leger gradient pour que la transparence se voie un peu
   --------------------------------------------------------------- */
body {
    background:
        linear-gradient(135deg, #f0f4f8 0%, #f7f9fc 50%, #eef2f7 100%) !important;
    background-attachment: fixed;
}

/* ---------------------------------------------------------------
   4. Petits ajustements pour que l'effet reste lisible
   --------------------------------------------------------------- */
.page-wrapper-article .article-page {
    margin-bottom: 30px;
}

/* prefer-reduced-transparency : on retire le blur pour les utilisateurs
   qui ont configure leur OS contre les effets de transparence */
@media (prefers-reduced-transparency: reduce) {
    .article-page {
        background: #fff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .article-header,
    .article-body {
        background: transparent;
    }
}


/* =====================================================================
   =====   ARTICLE : justification du texte + alignement photo  =====
   ===================================================================== */

/* ---------------------------------------------------------------
   1. TEXTE JUSTIFIE avec cesures pour eviter les gros trous
   --------------------------------------------------------------- */
.article-body {
    text-align: justify !important;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    /* eviter les "rivieres" de blanc trop visibles */
    word-spacing: normal;
}

.article-body p,
.article-body li {
    text-align: justify;
}

/* Ne PAS justifier les titres / blockquotes / pre */
.article-body h2,
.article-body h3,
.article-body h4,
.article-body blockquote,
.article-body pre,
.article-body figcaption,
.article-body th,
.article-body td {
    text-align: left;
    hyphens: manual;
}

/* ---------------------------------------------------------------
   2. PHOTO ALIGNEE :
   - bord gauche = tiret orange du chapeau (= padding-left du header)
   - bord droit  = derniere position de la date (= padding-right du header)
   On donne donc a la figure le MEME padding horizontal que .article-header
   --------------------------------------------------------------- */
.article-figure {
    padding: 0 clamp(18px, 2.5vw, 40px) !important;
    margin: 0 !important;
    background: transparent !important;
    overflow: visible !important; /* permet aux coins arrondis de respirer */
}

.article-photo {
    width: 100% !important;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    display: block;
    border-radius: 12px; /* coins arrondis vu que la photo n'est plus edge-to-edge */
    box-shadow: 0 8px 24px rgba(0, 80, 125, 0.12);
}

/* Le filigrane source : repositionne par rapport a la photo (padding du figure) */
.article-source {
    /* On l'ancre par rapport a la photo et non a la figure */
    top: 14px !important;
    right: calc(clamp(18px, 2.5vw, 40px) + 14px) !important;
}

/* Une marge entre le header et la photo + entre la photo et le corps */
.article-figure {
    margin-bottom: clamp(24px, 3vw, 36px) !important;
    margin-top: clamp(20px, 2.5vw, 32px) !important;
}

/* ---------------------------------------------------------------
   3. Le corps de l'article aussi suit le meme alignement horizontal
   pour la coherence (le texte demarre au meme X que la photo)
   --------------------------------------------------------------- */
.article-body {
    padding-left: clamp(18px, 2.5vw, 40px) !important;
    padding-right: clamp(18px, 2.5vw, 40px) !important;
    /* La largeur max de lecture reste 75ch, centree dans cet espace */
}

/* ---------------------------------------------------------------
   4. Mobile : on reduit le padding pour ne pas trop comprimer
   --------------------------------------------------------------- */
@media (max-width: 768px) {
    .article-figure {
        padding: 0 16px !important;
    }
    .article-body {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .article-source {
        right: calc(16px + 10px) !important;
        top: 12px !important;
    }
}

@media (max-width: 480px) {
    .article-figure {
        padding: 0 12px !important;
    }
    .article-body {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .article-source {
        right: calc(12px + 8px) !important;
    }
    /* sur tres petit ecran, on peut desactiver la justification
       pour eviter les espaces trop genants */
    .article-body {
        text-align: left !important;
    }
    .article-body p,
    .article-body li {
        text-align: left !important;
    }
}


/* =====================================================================
   =====   PAYS16 — Blocs ÉLECTIONS + RÉGIONS dans le main content  =====
   ===================================================================== */

/* Carte commune blanche transparente cohérente avec le reste */
.pays-block-card {
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(12px) saturate(110%);
    backdrop-filter: blur(12px) saturate(110%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg, 18px);
    box-shadow: 0 8px 32px rgba(0, 80, 125, 0.08);
    padding: clamp(18px, 2.2vw, 28px);
    margin-bottom: clamp(20px, 2.5vw, 32px);
}

/* Header du bloc avec icône + titre + compteur */
.pays-block-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    font-size: clamp(0.95rem, 1.3vw, 1.2rem);
    color: var(--epoc-blue, #00507D);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    flex-wrap: wrap;
}

.pays-block-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e86c00, #ff8c1a);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(232, 108, 0, 0.35);
    flex-shrink: 0;
}
.pays-block-icon-blue {
    background: linear-gradient(135deg, #00507D, #185fa8);
    box-shadow: 0 4px 12px rgba(0, 80, 125, 0.35);
}

.pays-block-count {
    color: rgba(0, 80, 125, 0.5);
    font-weight: 600;
    font-size: 0.85em;
    margin-left: auto;
    background: rgba(0, 80, 125, 0.06);
    padding: 3px 10px;
    border-radius: 999px;
}

/* =====================================================================
   ÉLECTIONS — Grid de cartes cliquables
   ===================================================================== */
.elections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.election-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(232, 108, 0, 0.06), rgba(232, 108, 0, 0.13));
    border: 1px solid rgba(232, 108, 0, 0.22);
    border-radius: 12px;
    color: var(--epoc-blue, #00507D);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.18s ease;
    position: relative;
    overflow: hidden;
}
.election-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(232, 108, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.18s ease;
}
.election-card:hover {
    transform: translateY(-2px);
    border-color: rgba(232, 108, 0, 0.5);
    box-shadow: 0 8px 20px rgba(232, 108, 0, 0.18);
    color: var(--epoc-orange, #e86c00);
}
.election-card:hover::before { opacity: 1; }

.election-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e86c00, #ff8c1a);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 3px 10px rgba(232, 108, 0, 0.3);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.18s ease;
}
.election-card:hover .election-card-icon {
    transform: scale(1.06) rotate(-3deg);
}

.election-card-title {
    flex: 1;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    /* word-wrap si tres long type d'election */
    word-wrap: break-word;
}

.election-card-arrow {
    color: rgba(232, 108, 0, 0.55);
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: transform 0.18s ease, color 0.18s ease;
    position: relative;
    z-index: 1;
}
.election-card:hover .election-card-arrow {
    transform: translateX(3px);
    color: var(--epoc-orange, #e86c00);
}

/* =====================================================================
   RÉGIONS / ÉTATS / PROVINCES — details/summary avec grille pills
   ===================================================================== */
.regions-details {
    margin: 0;
}

.regions-details summary {
    cursor: pointer;
    padding: 10px 16px;
    background: rgba(0, 80, 125, 0.05);
    border-radius: 10px;
    color: var(--epoc-blue, #00507D);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    list-style: none;
    transition: background 0.18s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.regions-details summary::-webkit-details-marker { display: none; }
.regions-details summary::marker { content: ""; }

.regions-summary-chevron {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--epoc-orange, #e86c00);
    font-size: 0.75em;
}
.regions-details[open] .regions-summary-chevron {
    transform: rotate(180deg);
}

.regions-details summary:hover {
    background: rgba(0, 80, 125, 0.09);
}

/* Grille de pills pour les regions */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    margin-top: 14px;
    /* Animation d'apparition douce */
    animation: regionsReveal 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes regionsReveal {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.regions-details[open] .regions-grid { animation-play-state: running; }

.region-pill {
    display: block;
    padding: 9px 12px;
    background: rgba(0, 80, 125, 0.05);
    border: 1px solid rgba(0, 80, 125, 0.1);
    border-radius: 9px;
    color: var(--epoc-blue, #00507D);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.18s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.region-pill:hover {
    background: linear-gradient(135deg, #e86c00, #ff8c1a);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 108, 0, 0.25);
}

/* =====================================================================
   page-wrapper-pays : alignements specifiques
   ===================================================================== */
.page-wrapper-pays .sidebar-blocks {
    /* haut aligne avec le haut du country-header-block */
    margin-top: 0 !important;
}

/* Animations fade-in-up (compat avec script existant) */
.fade-in-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .fade-in-up { opacity: 1 !important; transform: none !important; transition: none !important; }
    .regions-grid { animation: none !important; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

/* Tablette */
@media (max-width: 1100px) {
    .elections-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* Mobile */
@media (max-width: 768px) {
    .pays-block-card {
        padding: 16px;
    }
    .pays-block-title {
        font-size: 0.88rem;
        gap: 10px;
        margin-bottom: 14px;
    }
    .pays-block-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    .pays-block-count {
        font-size: 0.78em;
        padding: 2px 8px;
    }

    .elections-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .election-card {
        padding: 11px 12px;
        font-size: 0.78rem;
        gap: 10px;
    }
    .election-card-icon {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
    .election-card-arrow { display: none; } /* on gagne de la place */

    .regions-details summary {
        padding: 9px 14px;
        font-size: 0.78rem;
    }
    .regions-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 6px;
    }
    .region-pill {
        padding: 7px 10px;
        font-size: 0.76rem;
    }
}

/* Petit mobile */
@media (max-width: 480px) {
    .elections-grid { grid-template-columns: 1fr; }
    .regions-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
    .region-pill { font-size: 0.72rem; padding: 7px 8px; }
}

/* =====================================================================
   Annule le bandeau N&B floute herite de squelette.css / pays16.css
   (les selecteurs sont declares plus haut dans le head inline aussi)
   ===================================================================== */
.main-container::before,
.main-container::after {
    display: none !important;
    content: none !important;
    background: none !important;
}


/* =====================================================================
   =====   PAYS16 FIX — Annule pays16.css conflits avec topbar layout  =====
   ===================================================================== */

/* ---------------------------------------------------------------
   SIDEBAR-BLOCKS : pays16.css le rend position:fixed.
   On le remet dans le flux grid (colonne 2) systematiquement.
   --------------------------------------------------------------- */
.page-wrapper .sidebar-blocks,
.page-wrapper-pays .sidebar-blocks,
.page-wrapper-article .sidebar-blocks {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    max-height: none !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-column: 2 !important;
    z-index: auto !important;
}

/* ---------------------------------------------------------------
   MAIN-CONTAINER : on annule l'ancien fond bandeau N&B floute
   meme s'il existe (etait dans squelette/pays16)
   --------------------------------------------------------------- */
.main-container::before,
.main-container::after {
    content: none !important;
    display: none !important;
    background: none !important;
    filter: none !important;
}

/* ---------------------------------------------------------------
   MAIN-CONTENT-AREA (utilise dans certaines pages anciennes) :
   on neutralise le glassmorphism sombre + max-width 950 fixe.
   Pour les pages modernisees (topbar), tout doit etre fluide.
   --------------------------------------------------------------- */
.page-wrapper .main-content-area,
.page-wrapper-pays .main-content-area {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ---------------------------------------------------------------
   PAGE-CONTENT (wrapper hérité de squelette.css/pays16) :
   on le rend transparent et fluide aussi
   --------------------------------------------------------------- */
.page-wrapper .page-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ---------------------------------------------------------------
   COUNTRY HEADER : on s'assure qu'il prend toute la place
   --------------------------------------------------------------- */
.page-wrapper-pays .country-header-block {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 clamp(20px, 2.5vw, 32px) 0 !important;
}

.page-wrapper-pays .unified-info-block {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 clamp(20px, 2.5vw, 32px) 0 !important;
}

/* ---------------------------------------------------------------
   BODY : fond blanc / gradient subtil (cohérence avec home/journal)
   --------------------------------------------------------------- */
body {
    background: linear-gradient(135deg, #f0f4f8 0%, #f7f9fc 50%, #eef2f7 100%) !important;
    background-attachment: fixed !important;
    color: #2a3540;
}

/* ---------------------------------------------------------------
   FORCE le grid sur .content meme si pays16.css le re-decla.
   --------------------------------------------------------------- */
.page-wrapper > .content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 320px !important;
    grid-gap: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

.page-wrapper-pays .main-content {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
}

/* ---------------------------------------------------------------
   Responsive : sidebar passe sous le contenu sur tablette
   --------------------------------------------------------------- */
@media (max-width: 1100px) {
    .page-wrapper > .content {
        grid-template-columns: 1fr !important;
        grid-gap: 24px !important;
    }
    .page-wrapper .sidebar-blocks,
    .page-wrapper-pays .sidebar-blocks {
        grid-column: 1 !important;
        margin-top: 8px !important;
    }
}


/* =====================================================================
   =====   PAYS16 : Cadre exécutif/géo en glassmorphism avec bandeau pays  =====
   Le fond du cadre = bandeau pays (image N&B) recouvert d'un calque
   gris semi-transparent + blur, pour donner l'effet "vu a travers".
   ===================================================================== */

.page-wrapper-pays .unified-info-block {
    /* L'image de fond est injectee en inline-style (sty.bg-image)
       avec un linear-gradient sombre par-dessus.
       Ici on definit tout le reste : taille, position, glassmorphism. */
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;

    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);

    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: var(--radius-lg, 18px) !important;
    box-shadow:
        0 12px 36px rgba(0, 20, 40, 0.25),
        0 1px 0 rgba(255, 255, 255, 0.15) inset !important;

    padding: clamp(20px, 2.5vw, 36px) !important;
    margin: 0 0 clamp(20px, 2.5vw, 32px) 0 !important;
    color: #fff !important;
    position: relative;
    overflow: hidden;
}

/* Titres internes du cadre : blanc sur fond sombre */
.page-wrapper-pays .unified-info-block .inner-section-title {
    color: #fff !important;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 18px;
    padding-left: 14px;
    position: relative;
}
.page-wrapper-pays .unified-info-block .inner-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 4px;
    background: linear-gradient(180deg, #e86c00, #ff8c1a);
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(232, 108, 0, 0.5);
}
/* Espace entre les sections internes */
.page-wrapper-pays .unified-info-block .inner-section-title:not(:first-child) {
    margin-top: clamp(24px, 3vw, 36px);
}

/* Texte de presentation (geographie/histoire) : lisible sur fond sombre */
.page-wrapper-pays .unified-info-block .inner-description-content {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(0.92rem, 1.05vw, 1.02rem);
    line-height: 1.65;
}
.page-wrapper-pays .unified-info-block .inner-description-content p {
    margin: 0 0 1em;
    text-align: justify;
    hyphens: auto;
}
.page-wrapper-pays .unified-info-block .inner-description-content strong {
    color: #ffb066;
    font-weight: 700;
}

/* Mobile : padding reduit */
@media (max-width: 768px) {
    .page-wrapper-pays .unified-info-block {
        padding: 18px !important;
    }
    .page-wrapper-pays .unified-info-block .inner-description-content {
        text-align: left;
    }
}

/* =====================================================================
   LEADERS-LIST sur fond sombre : on adapte les leader-cards
   (les couleurs originales du leader-card-h restent dans pays16.css)
   ===================================================================== */
.page-wrapper-pays .unified-info-block .leaders-list {
    /* Compatible avec ce qui est defini dans pays16.css */
    margin-bottom: 0;
}


/* =====================================================================
   =====   SWAP : glassmorphism sur country-header, unified-info en blanc  =====
   ===================================================================== */

/* ---------------------------------------------------------------
   COUNTRY-HEADER-BLOCK : Glassmorphism avec bandeau pays en fond
   --------------------------------------------------------------- */
.page-wrapper-pays .country-header-block {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;

    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);

    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: var(--radius-lg, 18px) !important;
    box-shadow:
        0 12px 36px rgba(0, 20, 40, 0.25),
        0 1px 0 rgba(255, 255, 255, 0.15) inset !important;

    padding: clamp(20px, 2.5vw, 36px) !important;
    margin: 0 0 clamp(20px, 2.5vw, 32px) 0 !important;
    color: #fff !important;
    position: relative;
    overflow: hidden;
}

/* Le titre du pays + drapeau dans le header */
.page-wrapper-pays .country-header-block .header-container {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.8vw, 24px);
    margin-bottom: clamp(18px, 2vw, 28px);
}
.page-wrapper-pays .country-header-block .header-container img {
    width: clamp(48px, 6vw, 78px);
    height: auto;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}
.page-wrapper-pays .country-header-block .header-container h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.4rem, 2.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Quick facts : les 6 cartes sur fond sombre */
.page-wrapper-pays .country-header-block .quick-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: clamp(10px, 1.2vw, 16px);
}
.page-wrapper-pays .country-header-block .qf-card {
    background: rgba(255, 255, 255, 0.14);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.18s ease, transform 0.18s ease;
}
.page-wrapper-pays .country-header-block .qf-card:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}
.page-wrapper-pays .country-header-block .qf-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e86c00, #ff8c1a);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(232, 108, 0, 0.4);
}
.page-wrapper-pays .country-header-block .qf-data { flex: 1; min-width: 0; }
.page-wrapper-pays .country-header-block .qf-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    margin-bottom: 2px;
}
.page-wrapper-pays .country-header-block .qf-val {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ---------------------------------------------------------------
   UNIFIED-INFO-BLOCK : retour au fond BLANC propre
   --------------------------------------------------------------- */
.page-wrapper-pays .unified-info-block {
    background: rgba(255, 255, 255, 0.92) !important;
    -webkit-backdrop-filter: blur(8px) saturate(110%);
    backdrop-filter: blur(8px) saturate(110%);
    border: 1px solid rgba(0, 80, 125, 0.06) !important;
    border-radius: var(--radius-lg, 18px) !important;
    box-shadow: 0 8px 32px rgba(0, 80, 125, 0.08) !important;
    padding: clamp(20px, 2.5vw, 36px) !important;
    margin: 0 0 clamp(20px, 2.5vw, 32px) 0 !important;
    color: #2a3540 !important;
}

/* Titres internes : bleu EPOC avec barre orange */
.page-wrapper-pays .unified-info-block .inner-section-title {
    color: var(--epoc-blue, #00507D) !important;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 18px;
    padding-left: 14px;
    position: relative;
}
.page-wrapper-pays .unified-info-block .inner-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 4px;
    background: linear-gradient(180deg, #e86c00, #ff8c1a);
    border-radius: 4px;
}
.page-wrapper-pays .unified-info-block .inner-section-title:not(:first-child) {
    margin-top: clamp(24px, 3vw, 36px);
}

/* Texte de présentation sur fond blanc */
.page-wrapper-pays .unified-info-block .inner-description-content {
    color: #2a3540;
    font-size: clamp(0.92rem, 1.05vw, 1.02rem);
    line-height: 1.65;
}
.page-wrapper-pays .unified-info-block .inner-description-content p {
    margin: 0 0 1em;
    text-align: justify;
    hyphens: auto;
}
.page-wrapper-pays .unified-info-block .inner-description-content strong {
    color: var(--epoc-blue, #00507D);
    font-weight: 700;
}

/* Mobile */
@media (max-width: 768px) {
    .page-wrapper-pays .country-header-block,
    .page-wrapper-pays .unified-info-block {
        padding: 18px !important;
    }
    .page-wrapper-pays .country-header-block .quick-facts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .page-wrapper-pays .country-header-block .qf-card {
        padding: 10px 12px;
        gap: 10px;
    }
    .page-wrapper-pays .country-header-block .qf-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    .page-wrapper-pays .country-header-block .qf-val {
        font-size: 0.85rem;
    }
    .page-wrapper-pays .unified-info-block .inner-description-content p {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .page-wrapper-pays .country-header-block .quick-facts-grid {
        grid-template-columns: 1fr;
    }
}
