/*
Theme Name: custom-shortcodes-style
Description: Style for custom shortcodes on Zinfos974
Author: Sungie & Adler
Version: 1.2
*/
/*GU*/
.latest-post {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.latest-post a {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 1em;
}

.latest-post img {
  width: 100% !important;
  object-fit: cover !important;
  display: block !important;
  max-height: 482px;
}

.GU-post-title {
  /* font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif !important; */
  font-weight: 700 !important;
  font-size: 1.6em !important;
  line-height: 1.2em !important;
  text-align: left !important;
}
/*PU1*/
.latest-posts-grid.two-columns-pu1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 2 colonnes de taille égale */
  gap: 1em 2em;
}

p.post-main-category-pu1 {
  color: #ffffff;
  border-radius: 0.8em 0 2.3em 0;
  font-size: 13px;
  width: 9em;
  line-height: 1;
  padding: 0.4em 0 !important;
  text-align: center;
  z-index: 2;
  position: relative;
  top: 0;
  right: 0;
}

/* Individual post item */
.latest-post-item-pu1 {
  display: grid;
  align-items: start;
  grid-template-columns: 1fr;
}

.latest-post-item-pu1 a {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  gap: 0.3em;
}
/* Thumbnail as background image */
.post-thumbnail-pu1 {
  width: 100%;
  height: 140px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  grid-row: 1/3;
}

/* Post title */
.post-title-pu1 {
  font-size: 1.3em;
  text-align: left;
  /* font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif !important; */
  font-weight: 700 !important;
  line-height: 1.2em !important;
}
.post-main-category-pu1 {
  font-size: 1em;
  color: #666;
}
/*PU2*/
.latest-posts-grid-pu2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
}

.latest-post-item-pu2 {
  display: grid;
  grid-template-columns: 1fr;
}

a.post-link-pu2 {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  align-content: stretch;
}

.post-link-u2 {
  display: block;
  font-size: 1.2em;
  text-decoration: none;
  color: #000; /* Couleur du texte */
  margin-bottom: 5px;
}

.post-main-category-pu2 {
  color: #ffffff;
  border-radius: 0.8em 0 2.3em 0;
  font-size: 13px;
  width: 9em;
  line-height: 1;
  padding: 0.4em 0 !important;
  text-align: center;
  z-index: 2;
  grid-row: inherit;
  margin-bottom: 0.5em;
}

.post-link-pu2:hover {
  text-decoration: underline; /* Soulignement au survol */
}

.post-arrow-pu2 {
  display: none;
}

.post-title-pu2 {
  /* font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif !important; */
  font-weight: 600 !important;
  font-size: 1.3em !important;
  line-height: 1em !important;
}

.post-excerpt-pu2 {
  margin-top: 10px;
  color: #555; /* Couleur plus claire pour l'excerpt */
  font-family: "Lato", Helvetica, Arial, Lucida, sans-serif;
  line-height: 1.2em;
}

.post-thumbnail-pu2 {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 0.5em;
    margin-bottom: 10px;
}

/*Liste faits divers*/
/* Conteneur principal pour la liste des faits divers */
.faits-divers-container {
  /* background-color: rgb(249, 249, 249); */
  border-radius: 8px;
  /* box-shadow: 0 0 5px 1px rgba(0, 0, 0, .4); */
}

/* Premier article (grand format) */
.faits-divers-item,
.natio-inter-item {
  display: grid;
  grid-template-columns: 2fr 1fr;
  margin-bottom: 10px;
}

/* Arrière-plan avec image du premier article */
.faits-divers-background {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Arrière-plan en cas d'absence d'image */
.faits-divers-no-image {
  background-color: red;
  width: 100%;
  height: 300px;
}

/* Contenu texte (titre, extrait, date) pour le premier article */
.faits-divers-content {
  position: relative;
  z-index: 2;
  background-color: white;
  padding: 2em;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Titre du premier article */
.faits-divers-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: bold;
  color: #333;
}

/* Style du lien du titre (sans soulignement) */
.faits-divers-title a {
  text-decoration: none;
  color: #333;
}

/* Effet au survol sur le lien du titre */
.faits-divers-title a:hover {
  text-decoration: underline;
}

/* Extrait du premier article */
.faits-divers-excerpt {
  font-size: 1em;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.1em;
}

/* Date du premier article */
.faits-divers-date {
  font-size: 0.9em;
  color: #999;
}

/* Conteneur pour les petits articles */
.faits-divers-small-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em 2em;
  align-items: center;
}

/* Petit article (mise en page en grille) */
.faits-divers-small {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  margin-top: 10px;
  align-items: start;
  padding-bottom: 10px;
}

/* Lien cliquable sur l'article */
.faits-divers-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Titre du petit article */
.post-title-small {
  /* font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif !important; */
  font-weight: 600 !important;
  font-size: 1.3em !important;
  line-height: 1em !important;
}

/* Extrait du petit article */
.post-excerpt-faits-divers-small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1em;
  color: #555;
  line-height: 1.2em;
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  font-family: "Lato", Helvetica, Arial, Lucida, sans-serif;
}

/* Arrière-plan des miniatures des petits articles */
.post-thumbnail-small {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
}

/* Effet au survol des miniatures */
.post-thumbnail-small:hover {
  filter: brightness(0.99) blur(0px);
  transform: scale(1.02);
  transition: all 0.3s ease-in-out;
}

/*Liste natio et inter*/
/* Container principal */

.natio-inter-background {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.natio-inter-content {
  position: relative;
  z-index: 2;
  background-color: white;
  padding: 2em;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.natio-inter-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: bold;
  color: #333;
}

.natio-inter-excerpt {
  font-size: 1em;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.1em;
}

.natio-inter-date {
  font-size: 0.9em;
  color: #999;
}

/* Liste articles en plus petits : 2 natio à gauche, 2 inter à droite */
.natio-inter-small-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Deux colonnes pour natio et inter */
  gap: 20px;
  grid-template-rows: auto;
}

.natio-small,
.inter-small {
  display: grid;
  gap: 20px;
}

.natio-small > h2,
.inter-small > h2 {
  border: solid 1px;
  border-radius: 0.3em;
  width: 8em;
  padding: 0.2em;
  font-size: 1.1em;
  text-align: center;
}

.natio-small-item,
.inter-small-item {
  display: grid;
  grid-template-rows: 1.3fr 1fr;
  padding-bottom: 1em;
  border-bottom: solid 1px #ccc;
}

.natio-small-item a,
.inter-small-item a {
  text-decoration: none;
  color: inherit; /* Couleur du texte */
  display: block;
}

.natio-small-item a:hover,
.inter-small-item a:hover {
  text-decoration: underline;
}
.more-articles-link-natiointer {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  color: #0073aa;
  text-decoration: none;
}

.more-articles-link-natiointer:hover {
  color: #005177;
  text-decoration: underline;
}

.post-excerpt-small {
  font-size: 1em;
  color: #555;
  line-height: 1.2em;
  margin-top: 10px;
  font-family: "Lato", Helvetica, Arial, Lucida, sans-serif;
}

.natio-inter-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
/*courrier des lecteurs*/
/* Conteneur principal avec une grille de 2 colonnes */
.courrier-des-lecteurs-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Deux colonnes */
  gap: 1em 3em;
  margin-top: 1em;
}

/* Style pour chaque article */
.courrier-des-lecteurs-item {
  padding-bottom: 0.4em;
  border-bottom: 1px solid #e2e0e0;
}

/* Lien de l'article avec la flèche */
.courrier-des-lecteurs-link {
  display: block;
  font-size: 1.2em;
  text-decoration: none;
  color: #000; /* Couleur du texte */
  font-weight: bold;
}

/* Style pour la flèche avant le titre */
.courrier-des-lecteurs-arrow {
  margin-right: 5px;
  display: none;
  font-weight: bold;
}

/* Style pour le titre */
.courrier-des-lecteurs-title {
  /* font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif !important; */
  font-weight: 600 !important;
  font-size: 1.1em !important;
  line-height: 1em !important;
}



/*Selection de la Redac*/
.sr-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 10px;
  text-align: left;
}

.sr-title a {
  text-decoration: none;
  color: #000;
}

.sr-block-title.title-perso h2{
    font-size:1.3em;
}

.sr-flexbox {
  display: flex;
}

.sr-thumbnail {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.sr-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media screen and (min-width: 768px) {
    .sr-flexbox > a {
        flex: 1 1 calc(33.333% - 20px);
        display: flex;                  
    }
    
    .sr-flexbox:has(> :nth-child(1):last-child) .sr-item{
        align-items:flex-start;
        flex-wrap:nowrap;
        gap:30px;
    }
    
    .sr-flexbox:has(> :nth-child(1):last-child) .sr-item div{
        flex: 1;
        font-size:1.3em;
    }
    
    .sr-flexbox:has(> :nth-child(1):last-child) .sr-item p{
        display:block;
    }
    
    .sr-flexbox .sr-text p {
        display:none;
    }
    
    .sr-item {
      display:flex;
      flex-wrap: wrap;
      padding: 10px;
    }
}
@media screen and (max-width: 768px) {
    .sr-flexbox {
        padding:5px;
      flex-wrap:wrap;
    }
    
    .sr-flexbox > a {
        padding:5px;
        flex: 1 1 calc(50% - 20px);
        display: flex;                  
    }
    .sr-flexbox .sr-text p {
        display:none;
    }
    
    .sr-flexbox:has(> :nth-child(3):last-child)  > :first-child {
        flex: 0 0 100%;   /* no grow, no shrink, basis 100% */
    }
    
    .sr-flexbox:has(> :nth-child(1):last-child) {
        max-height:10%;
    }
    
    .sr-flexbox:has(> :nth-child(3):last-child) > :not(:first-child) {
      flex: 1 1 50%;  
    }
}



/*Choix de la redac*/
/* Conteneur principal */
.choix-redaction-container {
  display: block;
  margin-top: 20px;
  text-align: center;
}

/* Conteneur de l'article */
.choix-redaction-item {
  display: block;
  margin-bottom: 20px;
  padding: 10px;
}

/* Conteneur de l'image */
.choix-redaction-thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

/* Titre de l'article */
.choix-redaction-title {
  font-size: 1.2em !important;
  font-weight: bold;
  margin-top: 10px;
  text-align: left;
}

.choix-redaction-title a {
  text-decoration: none;
  color: #000;
}
/*liste communiques*/
/* Conteneur principal avec deux colonnes */
.communique-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Deux colonnes */
  gap: 20px; /* Espace entre les colonnes */
  margin-top: 20px; /* Espacement au-dessus du conteneur */
}

/* Chaque article dans la catégorie "communique" */
.communique-item {
  /* margin-bottom: 30px; */
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1.6em auto;
  gap: 0.4em;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1em;
}

.communique-item h2 {
  /* font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif !important; */
  font-weight: 600 !important;
  font-size: 1.3em !important;
  line-height: 1em !important;
  display: inline;
}
/* Titre de l'article avec flèche */
.communique-title {
  display: block;
  font-weight: bold;
  color: #000;
  line-height: 1.1em;
  font-family: "Lato", Helvetica, Arial, Lucida, sans-serif !important;
}

.communique-arrow {
  margin-right: 5px;
  display: inline-block;
}

/* Date de l'article */
.communique-date {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 10px;
}

/* Extrait de l'article */
.communique-excerpt {
  font-size: 0.9em;
  color: #555;
  line-height: 1.1em;
  font-family: "Lato", Helvetica, Arial, Lucida, sans-serif !important;
}
/*Liste partenaires*/
.pp-partners-grid {
  display: grid;
  margin-top: 1em;
}

.pp-partners-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em 2em;
}
.pp-partners-divider {
  border: none;
  border-top: 1px solid #ddd;
  width: 100%;
}
.pp-partner-item {
  display: grid;
  grid-template-rows: 1fr 0.6fr;
  justify-content: center;
  align-items: start;
  gap: 1em;
}

.pp-partner-left {
  flex: 1;
  margin-right: 15px;
}

.pp-partner-right {
  display: grid;
  grid-template-rows: 1fr 0.6fr;
}

.pp-partner-image {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.pp-partner-title {
  font-size: 1.2em;
  margin: 0;
  font-weight: bold;
}

.pp-partner-title a {
  text-decoration: none;
  color: #333;
}

.pp-partner-title a:hover {
  color: #0073aa;
}

.pp-partner-date {
  font-size: 0.9em;
  color: #999;
  margin-top: 10px;
}
.custom-excerpt {
  font-family: "Montserrat", Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3em;
}

/*Articles rubrique sponsorisée*/

.sponsor-text {
  font-family: "Lato", Helvetica, Arial, sans-serif;
  font-size: 0.8em;
  font-weight: bold;
  color: #a8a8a8;
}

/* Barre horizontale pleine largeur pour la rubrique sponsorisée */
.sponsor-separator {
  border: none;
  height: 2px;
  background-color: #ededed;
  width: 100%;
  margin: 0;
  padding: 0;
}

.sponsor-header {
  text-align: left;
  width: 100%;
}

.custom-sponsor-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}

.row-sponsor-articles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.custom-sponsor-articles h3,
.custom-sponsor-articles p {
  line-height: 1.2;
  font-family: "Lato", Helvetica, Arial, Lucida, sans-serif;
}

.custom-sponsor-articles p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.single-sponsor-article {
  display: flex;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
}

.sponsor-article-left {
  flex: 1;
  padding-right: 20px;
}

.sponsor-article-right,
.dual-article-right {
  background-size: cover;
  background-position: center;
  width: 50%;
  height: 200px;
  border-radius: 8px;
}

.dual-sponsor-article {
  display: flex;
  align-items: flex-start;
  box-sizing: border-box;
}

.dual-article-left {
  flex: 1;
  padding-right: 15px;
}

.dual-article-right img {
  max-width: 150px; /* Limiter la taille des images */
  height: auto;
}
.sponsor-title {
  font-family: "Lato", Helvetica, Arial, Lucida, sans-serif !important;
  font-weight: 600 !important;
  font-size: 1.1em !important;
  line-height: 1.1em !important;
}
/* Cas 3 articles */
/* Styles toujours actifs pour 3 articles sponsorisés */
.three-column-sponsor-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.three-sponsor-article {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.three-sponsor-image {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
}


/* Cas 4 articles en grille (2 colonnes × 2 lignes) */
.grid-sponsor-articles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
/* Menu dossier */
.custom-menu {
  list-style: none;
  padding: 10px 0 !important; /* Ajustement pour ajouter de l'espace en haut et en bas */
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Aligne à gauche */
  background-color: #f9f9f9;
  font-size: 16px; /* Augmentation de la taille du texte */
}

.custom-menu li {
  margin: 0;
  padding: 0 10px; /* Augmentation de l'espacement horizontal */
  display: inline-flex; /* Pour s'assurer que l'alignement reste sur une seule ligne */
  align-items: center; /* Centre verticalement le texte */
  color: #000;
}

.custom-menu li::before {
  content: ">";
  padding-left: 10px;
  padding-right: 10px;
  color: #c00000; /* Rouge pour le séparateur */
}

.custom-menu li a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

.custom-menu li a:hover {
  color: #c00000;
}

/* En continu */
.en_continu_sidebar ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  height: 400px;
  overflow: scroll;
  scrollbar-width: none;
}

.en_continu_sidebar ul::-webkit-scrollbar {
  display: none;
}

.en_continu_sidebar ul li {
  list-style-type: none;
  line-height: 1.3;
  margin: 0 0 0.8em 0 !important;
  padding: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  border-bottom: 1px solid #efe2e1;
  gap: 0.3em;
}

.en_continu_sidebar ul li span {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 12px !important;
  padding-right: 10px;
  width: 46px;
}

.en_continu_sidebar ul li span em {
  font-style: normal;
  font-size: 0.8em;
  color: #777;
}

.en_continu_sidebar ul li a {
  font-family: "Roboto", sans-serif;
  font-size: 12px !important;
  font-weight: 500;
  padding-right: 10px;
  margin: auto 0;
}

/* Top 10 Styles V2 */

ul.top10_list {
  display: grid;
  grid-template-columns: 1fr;
  padding: 1em;
  gap: 0.5em 1em;
}

.top10_item {
  display: grid;
  grid-template-columns: auto 1fr;
  background-color: #f9f9f9;
  padding: 0.6em;
  border: 1px solid #ededed;
  border-radius: 5px;
  align-items: center;
}

.top10_rank {
  display: grid;
  background-color: #fdda53;
  color: #000000;
  font-weight: 800;
  font-size: 25px;
  text-align: center;
  padding: 0.5em;
  border-radius: 0.3em;
  align-items: center;
}

.top10_link {
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  color: #333;
  line-height: 1.1;
  padding-left: 10px;
}

.top10_item:first-child {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1em;
}

img.top10_thumbnail {
  width: 100%;
}

.top10_item:first-child .top10_rank {
  height: auto;
}

ul.top10_list {
  padding: 0;
}

/* SMALL */

.small {
  padding: 0 !important;
}

.small a.top10_link {
  font-size: 1em;
}

.small .top10_rank {
  height: inherit;
}

/* MEDIUM */

.medium {
  padding: 0.5em !important;
}

ul.top10_list.medium {
  grid-template-columns: 1fr 1fr;
}
.medium .top10_first_item {
  grid-column: span 2;
}
.medium .top10_item:last-child {
  grid-column: span 2;
}

/* LARGE */

.large {
  padding: 0.5em !important;
}

ul.top10_list.large {
  grid-template-columns: 1fr 1fr;
}

.large .top10:first-child {
  grid-column: span 2;
  grid-template-columns: 90px 250px 1fr;
}

.large .top10_item:last-child {
  grid-column: span 2;
}

.large img.top10_thumbnail {
  max-width: 250px;
}

.large .top10_item:first-child {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 1em;
  grid-column: span 2;
}
/* title rubrique */

.title-perso {
  border-radius: 0.8em 0 2.3em 0;
  width: 60%;
  line-height: 1;
  padding: 0.6em 1em !important;
  text-align: center;
  background-color: #bf0f00;
}

.title-perso h2 {
  font-weight: 700;
  font-size: 1.8em;
  padding: 0;
  color: white;
}

.bg-mayotte {
  background-color: #02980c;
}
.bg-nationinter {
  background-color: #2c3e50;
}
.bg-faitsdivers {
  background-color: #0c8ac9;
}
.bg-choixredaction {
  width: 100%;
}
.bg-courrierlecteur {
  background-color: #58d68d;
  width: 100%;
}
.bg-top10 {
  background-color: #fdda53;
}

/*Gazeti*/
/* Conteneur principal pour Gazeti */
.gazeti-articles-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
  margin-bottom: 20px;
}

/* Les trois articles suivants (petits articles) */
.gazeti-article-item {
  display: flex;
  flex-direction: column;
  align-items: start;
}

/* Images des petits articles */
.gazeti-article-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Titre des articles */
.gazeti-articles-grid1 .gazeti-article-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
  padding: 1em;
}

.gazeti-articles-grid2 .gazeti-article-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
  padding: 1em;
}

.gazeti-articles-grid1 {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gazeti-articles-grid1 .gazeti-article-description {
  padding: 1em;
  line-height: 1.1;
  padding-bottom: 1em !important;
}

.gazeti-articles-grid2 .gazeti-article-item a {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Texte du petit article */
.gazeti-article-content {
  font-size: 0.9em;
  color: #666;
  line-height: 1.4em;
}

/*   1024    */

@media screen and (max-width: 1024px) {
  .gazeti-articles-container {
    grid-template-columns: 1fr;
  }

  .gazeti-articles-grid2 .gazeti-article-title {
    font-size: 1.2em;
    padding: 0;
  }

  .gazeti-articles-grid2 {
    display: grid;
    gap: 1em;
  }

  .gazeti-articles-grid2 .gazeti-article-item a {
    grid-template-columns: 1fr 3fr;
    gap: 1em;
  }

  .faits-divers-small-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }

  .latest-posts-grid.two-columns-pu1,
  .latest-posts-grid-pu2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (min-width: 1025px) {
  .faits-divers-small-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .pp-partner-item {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }

  .latest-post-item-pu1:last-child {
    grid-column: 1 / span 3;
  }

  .latest-post-item-pu1:last-child a {
    grid-template-columns: 2fr 1fr 3fr;
    grid-template-rows: 2fr 2fr;
    align-items: start;
    gap: 0 2em;
  }

  .latest-post-item-pu1:last-child .post-main-category-pu1 {
    grid-row: 1/2;
  }

  .latest-post-item-pu1:last-child .post-title-pu1 {
    grid-row: 2/2;
    grid-column-end: span 2;
  }

  .latest-post-item-pu1:last-child .post-thumbnail-pu1 {
    height: 140px;
  }
}

/*   768    */

@media screen and (max-width: 768px),
  screen and (max-width: 720px) and (min-device-pixel-ratio: 4) {
  .dual-sponsor-article {
    flex: 1; /* Deux articles côte à côte, avec un espace de 20px entre eux */
    display: flex;
    align-items: flex-start;
    box-sizing: border-box;
  }

  .row-sponsor-articles {
    flex-direction: column;
    align-items: flex-start;
  }

  .sponsor-article-right,
  .dual-article-right {
    width: 40%;
    height: 140px;
  }

  .faits-divers-item,
  .natio-inter-item {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
  }
  .faits-divers-background {
    width: 100%;
  }
  .faits-divers-content {
    width: 100%;
    height: auto;
    padding: 1em;
  }
  .faits-divers-small {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 150px 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
    padding-bottom: 10px;
    align-items: start;
  }
  .post-thumbnail-small {
    grid-column: 1/1;
    grid-row: 1/3;
  }
  .post-title-small {
    grid-row: 2 / 3;
    grid-column: 1 / 1;
  }

  .natio-small-item .post-title-small,
  .inter-small-item .post-title-small {
    grid-row: 1 / 3;
    grid-column: 1 / 1;
  }

  .post-excerpt-faits-divers-small {
    grid-row: 3 / 3;
    grid-column: 1/1;
    font-size: 14px;
  }

  .custom-menu {
    flex-wrap: wrap;
  }

  .pp-partner-item {
    grid-template-rows: 1fr;
    grid-template-columns: 1fr 2fr;
  }

  .bg-mayotte {
    width: 100%;
  }

  .latest-posts-grid.two-columns-pu1,
  .pp-partners-row {
    grid-template-columns: 1fr;
    gap: 2em;
  }
}

/*   425    */

@media screen and (max-width: 425px) {
  .natio-inter-content {
    padding: 1em;
  }

  .courrier-des-lecteurs-arrow {
    display: none;
  }

  .faits-divers-item,
  .natio-inter-item {
    grid-template-columns: 1fr;
    grid-template-rows: 0.8fr 1fr;
  }

  .faits-divers-small {
    grid-template-rows: 176px 1fr 1fr;
    gap: 0;
  }

  .post-thumbnail-small {
    height: 170px;
  }

  .faits-divers-small-container {
    grid-template-columns: 1fr;
  }

  .latest-posts-grid-pu2 {
    grid-template-columns: 1fr;
    gap: 1em;
  }

  a.post-link-pu2 {
    grid-template-rows: auto auto;
    grid-template-columns: 1fr 2fr;
    gap: 1em;
  }

  .post-thumbnail-pu2 {
    height: 100%;
    grid-row: span 2;
  }

  .courrier-des-lecteurs-container {
    grid-template-columns: 1fr;
  }

  .natio-inter-small-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2em;
    padding: 10px;
  }

  .communique-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .latest-post-item-pu1 a {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, auto);
    gap: 0.6em;
  }

  .latest-post-item-pu1 {
    display: grid;
    align-items: start;
    grid-template-columns: 1fr;
  }

  .post-title-pu1 {
    padding: 0;
    grid-row: inherit;
  }

  .post-thumbnail-pu1 {
    height: 190px;
    grid-row: inherit;
  }

  .custom-menu {
    flex-wrap: wrap;
  }

  p.post-main-category-pu1 {
    color: #ffffff;
    border-radius: 0.8em 0 2.3em 0;
    font-size: 13px;
    width: 9em;
    line-height: 1;
    padding: 0.4em 0 !important;
    text-align: center;
    z-index: 2;
    grid-row: inherit;
  }

  .post-excerpt-pu2 {
    font-size: 0.8em;
    display: none;
  }

  .post-title-pu2 {
    font-size: 1.1em !important;
  }
}
/*custom article from id*/
/* Conteneur principal */
.custom-article-container {
  display: block;
  margin-top: 20px;
  text-align: center;
}

/* Conteneur de l'article */
.custom-article-item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  margin-bottom: 20px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  text-align: left;
}

/* Conteneur de l'image */
.custom-article-thumbnail {
  text-align: center;
}

.custom-article-thumbnail img {
  max-width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 5px;
}

/* Titre de l'article */
.custom-article-title {
  font-size: 1.2em !important;
  font-weight: bold;
}

.custom-article-title a {
  text-decoration: none;
  color: #000;
  transition: color 0.3s ease;
}

.custom-article-title a:hover {
  color: #0073aa; /* Couleur au survol */
}

/* Excerpt de l'article */
.custom-article-excerpt {
  font-size: 1em;
  color: #555;
  line-height: 1.1;
  margin-top: 10px;
  -webkit-line-clamp: 4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media screen and (max-width: 425px) {
  .custom-article-item {
    grid-template-columns: 1fr;
  }

  .custom-article-item {
    gap: 0;
  }

  .custom-article-title {
    margin-top: 10px;
  }
  
}

/*module meteo shortcode*/
/* Variables CSS */
:root {
  --primary-color: rgba(12, 138, 200, 1);
  --text-color: #000;
  --secondary-text-color: #b3b3b3;
  --background-color: #f5f5f5;
  --card-background: #fff;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --font-title: "Barlow", sans-serif;
  --font-base: "Inter", sans-serif;
  --title-base: 600;
}

/* Reset de base */

/* Conteneur principal */
.mod-meteo {
  width: 100%;
  max-width: 828px;
  margin: 0 auto;
  /* padding: 20px; */
}

.mod-meteo-title {
  color: var(--primary-color);
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: var(--title-base);
}

/* Bloc météo principal */
.mod-meteo-bloc {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  background-color: var(--card-background);
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow-color);
  overflow: hidden;
}

.mod-meteo-bloc iframe {
  width: 100%;
  height: 100%;
  /* min-height: 320px; */
  border-radius: 8px 0 0 8px;
}

/* Liste des articles */
.mod-meteo-list {
  display: grid;
  flex-direction: column;
  grid-template-columns: 1fr;
  padding: 10px;
  gap: 20px;
  align-items: start;
  align-content: stretch;
}

/* Premier article */
.article {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  align-items: flex-start;
}

.article img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  aspect-ratio: 120 / 77;
}

.article a.article-content {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.article-title {
  color: var(--text-color);
  font-family: var(--font-title);
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 600;
}

.article-excerpt {
  font-size: 0.875rem;
  color: var(--text-color);
  margin: 0;
  margin-top: 1rem;
  line-height: 1.1;
  font-weight: normal;
}

/* Articles suivants */
.article-type-2 {
  display: flex;
  align-items: center; /* Centrage vertical */
  gap: 10px;
}

.article-type-2-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.article-type-2 a.article-type-2-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-type-2-title {
  font-family: var(--font-title);
  font-size: 1rem;
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
}

.article-type-2-chapo {
  font-size: 0.875rem;
  color: var(--text-color);
  margin: 0;
  line-height: 1.1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive Design */
@media (max-width: 600px) {
  .mod-meteo-bloc {
    grid-template-columns: 1fr;
  }

  .mod-meteo-bloc iframe {
    width: 100%;
    height: 250px;
  }

  .article {
    grid-template-columns: 1fr;
    align-items: center;
  }

  .article img {
    width: 100%;
  }

  .article-type-2 {
    flex-direction: row;
    align-items: center;
  }
}
/*Style pour encart alerte cyclonique*/
.alert-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-family: "Arial", sans-serif;
  margin: 0 0 10px 0;
}

.alert-container-rouge {
  background-color: #d32f2f;
}

.alert-container-pre-alerte {
  background-color: rgb(238, 238, 238);
}

.alert-container-orange {
  background-color: rgb(255, 184, 43);
}

.alert-container-violette {
  background-color: rgb(153, 43, 165);
}
.Alerte-violette{
    color: white
}
.alert-container-sauvegarde {
  background-color: rgb(95, 141, 211);
}

.alert-title {
  font-size: 18px;
  text-align: left;
  font-weight: bold;
  width: calc(50% - 20px);
  word-wrap: break-word; /* Allows long words to break */
  overflow-wrap: break-word; /* Ensures proper wrapping */
  white-space: normal; /* Allows text to wrap onto new lines */
}

.alert-box {
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  width: 50%;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.alert-box:hover {
  cursor: pointer;
}

.alert-container-pre-alerte .alert-box {
  background-color: #ffffff;
  color: #000000;
}

.alert-container-rouge .alert-box {
  background-color: #ffcdd2;
  color: #d32f2f;
}

.alert-container-orange .alert-box {
  background-color: #ffe0b2;
  color: #f57c00;
}

.alert-container-violette .alert-box {
  background-color: #e1bee7;
  color: #7b1fa2;
}

.alert-container-sauvegarde .alert-box {
  background-color: #bbdefb;
  color: #1976d2;
}

.alert-container-rouge .alert-box:hover {
  background-color: #ef9a9a;
}

.alert-container-pre-alerte .alert-box:hover {
  background-color: #eeeeee;
}

.alert-container-orange .alert-box:hover {
  background-color: #ffb74d;
}

.alert-container-violette .alert-box:hover {
  background-color: #ba68c8;
}

.alert-container-sauvegarde .alert-box:hover {
  background-color: #64b5f6;
}

@media only screen and (max-width: 425px) {
  .alert-title {
    font-size: 14px;
    width: 60%;
    line-height: 1;
    width: calc(50% - 20px);
    word-wrap: break-word; /* Allows long words to break */
    overflow-wrap: break-word; /* Ensures proper wrapping */
    white-space: normal; /* Allows text to wrap onto new lines */
  }
  .alert-box {
    font-size: 14px;
    width: 50%;
    line-height: 1;
  }
  .alert-suffix{
    display:none;
  }
}

.alert-text-black {
  color: black;
}

.alert-text-white {
  color: white;
}

/*Actu meteo 974 shortcode*/
/* Articles Actu Météo 974 */

.actumeteo-text {
  font-family: "Lato", Helvetica, Arial, sans-serif;
  font-size: 0.8em;
  font-weight: bold;
  color: #0073e6; /* Couleur spécifique pour Actu Météo */
}

/* Barre horizontale pleine largeur pour Actu Météo */
.actumeteo-separator {
  border: none;
  height: 2px;
  background-color: #cce7ff;
  width: 100%;
  margin: 0;
  padding: 0;
}

.actumeteo-header {
  text-align: left;
  width: 100%;
}

.custom-actumeteo-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 1em;
}

/* ACTUS METEO 974 */

.row-actumeteo-articles {
  display: flex;
  gap: 1em;
  max-width: 1200px;
  margin: 0 auto;
}

.custom-actumeteo-articles h3,
.custom-actumeteo-articles p {
  line-height: 1.2;
  font-family: "Lato", Helvetica, Arial, Lucida, sans-serif;
}

.custom-actumeteo-articles p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.single-actumeteo-article {
  display: flex;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
}

a.dual-actumeteo-article-link {
  flex: 1;
}

.actumeteo-article-left {
  flex: 1;
  padding-right: 20px;
}

.actumeteo-article-right,
.dual-actumeteo-right {
  background-size: cover;
  background-position: center;
  width: 50%;
  height: 10em;
  border-radius: 8px;
}

.dual-actumeteo-left p {
  display: none;
}

.dual-actumeteo-article {
  display: flex;
  align-items: flex-start;
  box-sizing: border-box;
}

.dual-actumeteo-left {
  flex: 1;
  padding-right: 15px;
}

.actumeteo-title {
  font-family: "Lato", Helvetica, Arial, Lucida, sans-serif !important;
  font-weight: 600 !important;
  font-size: 1.1em !important;
  line-height: 1.1em !important;
}

@media screen and (max-width: 1024px) {
  .row-actumeteo-articles {
    flex-direction: column;
  }
}

@media screen and (max-width: 375px) {
  .row-actumeteo-articles {
    flex-direction: column;
  }
  .actumeteo-article-right,
  .dual-actumeteo-right {
    width: 100%;
  }
  .dual-actumeteo-article {
    flex-direction: column;
  }
  .dual-actumeteo-right {
    height: 11em;
  }
}

