/****************************************************
 * ARTICLE.CSS – Mise en page des articles
 * Structure :
 *   .juju-article-title   => bloc titre (fond blanc + barre violette + image)
 *   .juju-article         => bloc contenu de l’article
 ****************************************************/


/* ========== BLOC TITRE (.juju-article-title) ========== */
/* Cadre haut uniquement pour le titre */
.et_pb_module.et_pb_post_title.juju-article-title {
  border: 1px solid #ddd !important;
  border-bottom: none !important;      /* pas de bordure en bas → fusion */
  border-radius: 6px 6px 0 0 !important; /* coins arrondis haut uniquement */
  background: #fff;
  margin-bottom: 0 !important;          /* colle au bloc contenu */
}
/* Carte blanche + barre violette */
.juju-article-title {
  position: relative;
  background: #fff;
  padding: 20px 24px 20px 35px;   /* espace interne (gauche = place pour la barre) */
  margin: 20px auto;
  max-width: 80%;
  display: flex;                  /* pour placer texte + image côte à côte */
  align-items: flex-start;
  gap: 24px;                      /* espace entre texte et vignette */
  overflow: visible;
  z-index: 3;                     /* toujours au-dessus du contenu */
}

/* Barre violette à gauche */
.juju-article-title::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 15px;
  bottom: 15px;
  width: 6px;
  background-color: #800080;
  border-radius: 3px;
  z-index: 1;
}

/* Titre (fond noir) */
.juju-article-title .entry-title {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 30px;
  font-weight: bold;
  line-height: 1.2;
  margin: 0 0 15px 0;
  position: relative;
  z-index: 2;
}

/* Désactiver le lien sur le titre */
.juju-article-title .entry-title a {
  pointer-events: none;
  color: inherit;
  text-decoration: none;
  cursor: default;
}

/* Meta (date + catégorie) */
.juju-article-title .et_pb_title_meta_container {
  margin-top: 10px;
  font-size: 14px;
  font-weight: bold;
  color: #800080;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

/* Date en violet simple */
.juju-article-title .et_pb_title_meta_container .published {
  color: #800080;
  margin: 0;
  padding: 0;
}

/* Catégorie = badge violet */
.juju-article-title .et_pb_title_meta_container a {
  display: inline-block;
  padding: 4px 8px;
  border: 2px solid #800080;
  border-radius: 4px;
  color: #800080 !important;
  text-decoration: none;
}
.juju-article-title .et_pb_title_meta_container a:hover {
  background-color: #800080;
  color: #fff !important;
}

/* Colonne texte = titre au-dessus + meta dessous */
.juju-article-title .et_pb_title_container {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Colonne image (vignette) */
.juju-article-title .et_pb_title_featured_container {
  flex: 0 0 280px;
  max-width: 280px;
  position: relative;
  z-index: 4; /* image au-dessus */
}
.juju-article-title .et_pb_title_featured_container img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}


/* ========== BLOC CONTENU (.juju-article) ========== */
  /* Cadre bas uniquement pour le contenu */
.et_pb_module.et_pb_post_content.juju-article {
  border: 1px solid #ddd !important;
  border-top: none !important;          /* pas de bordure en haut → fusion */
  border-radius: 0 0 6px 6px !important; /* coins arrondis bas uniquement */
  background: #fff;
  margin-top: 0 !important;             /* colle sous le titre */
  padding: 20px 32px !important;
}
/* ===== DESKTOP (≥981px) : mise au propre du contenu ===== */
@media (min-width: 981px) {

  /* 1) Largeur et espacement cohérents */
  .juju-article {
    max-width: 90% !important;     /* élargit la carte contenu */
    margin: 32px auto 48px !important;  /* espace sous le titre (plus de marge négative) */
    padding: 0 32px 32px 35px !important; /* même retrait gauche que le bloc titre */
    box-sizing: border-box;
    clear: both;                    /* démarre sous le bloc titre + image */
  }

  /* (option) si tu veux que le TITRE ait la même largeur visuelle */
  /* .juju-article-title { max-width: 90% !important; } */

  /* 2) Neutraliser les contraintes internes selon les articles
        (éditeur classique varie entre .entry-content / .post-content / .et_pb_post_content) */
  .juju-article .entry-content,
  .juju-article .post-content,
  .juju-article .et_pb_post_content {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }
  .juju-article .entry-content > *:first-child,
  .juju-article .post-content > *:first-child,
  .juju-article .et_pb_post_content > *:first-child {
    margin-top: 0 !important;       /* pas de “trou” avant le 1er paragraphe */
  }

  /* 3) Typo & médias du corps */
  .juju-article .entry-content p,
  .juju-article .post-content p,
  .juju-article .et_pb_post_content p {
    line-height: 1.7;
    margin: 0 0 1.1em;
  }

  /* Images insérées dans le corps */
  .juju-article .entry-content img,
  .juju-article .post-content img,
  .juju-article .et_pb_post_content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 16px auto;              /* centrées par défaut */
    border-radius: 6px;
  }
  /* Alignements classiques de l’éditeur TinyMCE */
  .juju-article .alignleft  { float: left;  margin: 0 20px 12px 0; }
  .juju-article .alignright { float: right; margin: 0 0 12px 20px; }
  .juju-article .aligncenter{ display:block; margin-left:auto; margin-right:auto; float:none; }

  /* Iframes (YouTube…) responsives en largeur du cadre */
  .juju-article iframe {
    max-width: 100%;
    display: block;
    margin: 16px auto;
  }

  /* Liens dans le corps */
  .juju-article .entry-content a,
  .juju-article .post-content a,
  .juju-article .et_pb_post_content a {
    color: #800080;
    text-decoration: underline;
  }
  .juju-article .entry-content a:hover,
  .juju-article .post-content a:hover,
  .juju-article .et_pb_post_content a:hover {
    color: #5a005a;
    text-decoration: none;
  }
}

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

/* Tablette et mobile : empile texte + image */
@media (max-width: 980px) {
  .juju-article-title { 
    flex-direction: column; 
    gap: 12px;
    max-width: 90%;
    width: 90%;
    margin: 40px auto; 
    padding: 18px 18px 20px 26px;
    box-sizing: border-box;
  }
  .juju-article-title::before {
    left: 10px; top: 12px; bottom: 12px; width: 5px;
  }
  .juju-article-title .entry-title {
    font-size: 22px;
    margin-bottom: 10px;
  }
  .juju-article-title .et_pb_title_meta_container {
    font-size: 13px;
    gap: 6px;
  }
  .juju-article-title .et_pb_title_featured_container {
    align-self: center;
    margin-top: 10px;
    max-width: 240px;
    width: 80%;
  }
  .juju-article {
    max-width: 90%;
    margin: 10px auto 24px;
    padding: 0 16px 20px 28px;
  }
}

/* Téléphone étroit */
@media (max-width: 767px) {
  .juju-article-title { max-width: 92%; }
  .juju-article { max-width: 95%; }

  /* réduire encore l’espace sous le bloc titre + image */
  .juju-article-title { margin-bottom:0px !important; }
  .juju-article-title .et_pb_title_featured_container { margin-bottom: 0px !important; }
  .juju-article { margin-top: 0 !important; }

  /* option : décaler le texte pour l’aligner au titre */
  .juju-article {
    margin-left: -20px !important;   /* ajuste selon ton rendu */
    margin-right: 0 !important;
  }
  .juju-article .entry-content { padding-left: 0 !important; }
}
/* === ton CSS complet précédent ici === */


/* ===== TABLETTE & MOBILE : aligner VRAIMENT le texte à gauche ===== */
@media (max-width: 980px) {
  /* Bloc TITRE : même gutter à gauche + carte centrée */
  .et_pb_section .et_pb_row .et_pb_column
  .et_pb_module.et_pb_post_title.juju-article-title {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 92% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .et_pb_section .et_pb_row .et_pb_column
  .et_pb_module.et_pb_post_title.juju-article-title::before {
    left: 6px !important; /* recadre la barre violette avec le nouveau gutter */
  }

  /* Bloc CONTENU : même gutter et aucun décalage parasite */
  .et_pb_section .et_pb_row .et_pb_column
  .et_pb_module.et_pb_post_content.juju-article {
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 92% !important;
    margin: 10px auto 24px !important; /* colle sous le titre */
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Neutralise marges/paddings qui repoussent le texte */
  .et_pb_section .et_pb_row .et_pb_column
  .et_pb_module.et_pb_post_content.juju-article .et_pb_post_content {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  .et_pb_section .et_pb_row .et_pb_column
  .et_pb_module.et_pb_post_content.juju-article .et_pb_post_content > *:first-child {
    margin-top: 0 !important;
  }

  /* Supprime toute marge négative/shift restant */
  .et_pb_module.et_pb_post_content.juju-article,
  .et_pb_module.et_pb_post_content.juju-article .entry-content {
    margin-left: 0 !important;
    transform: none !important;
  }
}

/* Téléphone étroit : même logique, un poil plus serré */
@media (max-width: 767px) {
  .et_pb_section .et_pb_row .et_pb_column
  .et_pb_module.et_pb_post_title.juju-article-title,
  .et_pb_section .et_pb_row .et_pb_column
  .et_pb_module.et_pb_post_content.juju-article {
    max-width: 95% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .et_pb_section .et_pb_row .et_pb_column
  .et_pb_module.et_pb_post_title.juju-article-title::before {
    left: 5px !important;
  }
}
/* ===== TABLETTE : réduire aussi l'espace sous le bloc titre ===== */
@media (min-width: 768px) and (max-width: 980px) {
  .et_pb_module.et_pb_post_title.juju-article-title {
    margin-bottom: 0px !important;   /* réduit l'espace sous le titre */
  }

  .et_pb_module.et_pb_post_title.juju-article-title .et_pb_title_featured_container {
    margin-bottom: 6px !important;   /* réduit l'espace sous l'image */
  }

  .et_pb_module.et_pb_post_content.juju-article {
    margin-top: 0 !important;        /* colle le texte sous l’image */
  }
}

@media (min-width: 981px) {
  .juju-article {
    max-width: 90% !important;
    margin: 32px auto 48px !important;
    padding: 0 32px 32px 90px !important; /* ← augmenté le padding-left */
    box-sizing: border-box;
    clear: both !important;
  }
}


/* Vidéos YouTube intégrées dans les articles (uniquement desktop ≥981px) */
/* Vidéos YouTube responsives et centrées */
.juju-article .fluid-width-video-wrapper,
.juju-article .et_pb_video_box {
  width: 100% !important;      /* mobile = plein écran */
  margin: 20px auto;
  aspect-ratio: 16 / 9;
  height: auto !important;
  padding: 0 !important;
  position: relative;
}

.juju-article .fluid-width-video-wrapper iframe,
.juju-article .et_pb_video_box iframe {
  width: 100% !important;
  height: 100% !important;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 8px;
}

/* Tablette */
@media (min-width: 768px) and (max-width: 980px) {
  .juju-article .fluid-width-video-wrapper,
  .juju-article .et_pb_video_box {
    width: 75% !important;
    max-width: 700px;
  }
}

/* Desktop */
@media (min-width: 981px) {
  .juju-article .fluid-width-video-wrapper,
  .juju-article .et_pb_video_box {
    width: 50% !important;
    max-width: 700px;
  }
}


/* ================================
   SECTION : Zoom de police (pluginzoom)
   ================================ */

/* Zoom police : boutons */
  /* Container des métas en flex */
  .et_pb_title_meta_container {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  /* Zoom calé à droite */
  .article-zoom {
    margin-left: auto; /* pousse le bloc zoom à droite */
  }
  
  .article-zoom #font-resizer {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .article-zoom #font-resizer button {
    background: #fff;
    border: 2px solid #000;
    color: #000;
    font-weight: bold;
    padding: 3px 10px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
  }
  
  .article-zoom #font-resizer button:hover {
    background: #000;
    color: #fff;
  }
  
  /* Séparateur "/" */
  .article-zoom #font-resizer .separator {
    font-weight: bold;
    font-size: 16px;
    color: #000;
  }

   
   .article-zoom #font-resizer {
     display: flex;
     align-items: center;
     gap: 6px;
   }
   
   .article-zoom #font-resizer button {
     background: #fff;
     border: 2px solid #000;
     color: #000;
     font-weight: bold;
     padding: 3px 10px;
     font-size: 14px;
     cursor: pointer;
     border-radius: 4px;
     transition: all 0.2s ease;
   }
   
   .article-zoom #font-resizer button:hover {
     background: #000;
     color: #fff;
   }
   
   /* Séparateur "/" (non cliquable, sans bordure) */
   .article-zoom #font-resizer .separator {
     font-weight: bold;
     font-size: 16px;
     color: #000;
   }
   
   /* Encadré autour du contenu de l’article (même style que .juju-article-title) */
   /* Un seul encadré autour de tout l’article */
   /* Encadré uniquement autour du bloc titre */
   .juju-article-title {
     border: 1px solid #ddd;
     border-radius: 6px;
     padding: 24px 24px 20px 35px;
     margin: 20px auto 20px;   /* espace dessous */
     max-width: 90%;
     background: #fff;
     box-sizing: border-box;
   }
   
  /* Bloc contenu : encadré serré, collé au texte */
  .juju-article {
    border: 1px solid #ddd;             /* même style que le titre */
    border-radius: 6px;                 /* coins arrondis */
    background: #fff;
    margin: 20px auto 40px;             /* espace au-dessus et au-dessous */
    padding: 20px 28px;                 /* espace interne équilibré */
    max-width: 90%;
    box-sizing: border-box;
    line-height: 1.6;
  }
  
  /* Supprimer le vide avant le 1er élément */
  .juju-article .entry-content > *:first-child,
  .juju-article .post-content > *:first-child,
  .juju-article .et_pb_post_content > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  
  
  
  
  
  /* Supprimer le cadre autour du bloc titre */
  .juju-article-title {
    border: none !important;         /* plus de bordure ici */
    border-radius: 6px 6px 0 0;      /* coins arrondis uniquement en haut */
    margin: 0 auto;                  /* pas d’espace avec le bloc contenu */
    padding: 24px 24px 20px 35px;    /* garde le padding interne */
    max-width: 90%;
    background: #fff;
    box-sizing: border-box;
  }
  
  /* Étendre le cadre autour du contenu */
  .juju-article {
    border: 1px solid #ddd;          /* cadre principal */
    border-radius: 0 0 6px 6px;      /* coins arrondis uniquement en bas */
    background: #fff;
    margin: 0 auto 40px;             /* colle au titre en haut, espace en bas */
    padding: 20px 28px;
    max-width: 90%;
    box-sizing: border-box;
    line-height: 1.6;
  }
  
  /* Bloc titre */
  .juju-article-title {
    max-width: 90% !important;
    margin: 20px auto 0 !important;   /* centré, sans décalage */
    padding: 24px 32px 20px 32px !important; /* padding homogène */
    box-sizing: border-box;
  }
  
  /* Bloc contenu */
  .juju-article {
    max-width: 90% !important;
    margin: 0 auto 40px !important;   /* colle juste sous le titre */
    padding: 20px 32px !important;    /* même padding horizontal */
    box-sizing: border-box;
  }
  
  /* Forcer l'alignement parfait des cadres titre + contenu */
  .et_pb_module.et_pb_post_title.juju-article-title,
  .et_pb_module.et_pb_post_content.juju-article {
    max-width: 90% !important;
    width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
  
  /* Même padding horizontal */
  .et_pb_module.et_pb_post_title.juju-article-title {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }
  
  .et_pb_module.et_pb_post_content.juju-article {
    padding-left: 32px !important;
    padding-right: 32px !important;
    margin-top: 0 !important;   /* colle directement sous le titre */
  }


  
