/*TITRE ET SOUS-TITRE DU SITE*/
/* Masquer le titre automatique du site */
.mh-header-title {
    display: none;
}

/* Style du sous-titre */
.mh-header-tagline {
    font-size: 25px;
    font-weight: normal;
    text-align: left;
    margin-top: 10px;
	color: black;
}

/*Sous-titre mobile responsive*/
@media screen and (max-width: 768px) {
    .mh-header-tagline {
        font-size: 14px;
        display: block;
        width: 100%;
        text-align: left;
        margin-top: 5px;
    }
}

/**ALIGNEMENT**/
/* Centrer les images et leurs légendes dans les articles */
.single-post .post img,
.single-post .entry-content img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Centrer les légendes des images */
.single-post .post figcaption,
.single-post .entry-content figcaption {
    text-align: center;
    margin-top: 3px; 
}

/* Justifier le texte dans tout le site */
body,
.single-post .entry-content,
.page .entry-content,
.post .post-content,
.entry-content p {
    text-align: justify;
}

    /* Aligner à gauche les titres */
.single-post .entry-header,
.page .entry-header {
    text-align: left; 
}

/*Alignement à gauche pour les listes à puces*/
body,
.entry-content li {
		text-align: left;
}

/* Aligner le copyright (footer) à gauche */
.mh-copyright {
    text-align: left !important;
}

/**FIL D'ARIANE ET FONCTIONNALITÉS**/
/* Masquer le fil d’Ariane automatique */
.mh-post-nav {
    display: none;
}

/*Ajustement du News Ticker*/
.mh-header-ticker {
    width: 120%; 
}

.mh-ticker-content {
    white-space: nowrap; 
    overflow: visible; 
}

/*look du badge FR EN*/
.featured-image-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #ffffff;
    font-weight: bold;
    font-size: 0.8em;
    padding: 5px 10px;
    border-radius: 2px;
    z-index: 10;
    text-transform: uppercase;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

/*MENUS*/
/* Étendre les onglets du menu principal sur toute la largeur */
.mh-main-nav .menu {
    display: flex;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Chaque élément du menu prend une part égale */
.mh-main-nav .menu li {
    flex: 1; 
    text-align: center;
    list-style: none;
}

/*CATALOGUE*/
/* Masquer le .catalogue-filtres-wrapper par défaut sur mobile */
@media (max-width: 952px) {
    .catalogue-filtres-wrapper {
        display: none; /* Cacher par défaut */
    }

    .catalogue-filtres-wrapper.active {
        display: block; /* Afficher si actif */
    }

    .toggle-filtres {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}

/* Masquer le bouton de bascule des filtres sur grand écran */
@media (min-width: 953px) {
    .toggle-filtres {
        display: none; /* Ne pas afficher le bouton sur les écrans larges */
    }
}

/* Max-width 464px */
@media (max-width: 464px) {
    .catalogue-filtres-wrapper {
        padding-bottom: 160px !important; /* Applique un padding de 160px pour les petits écrans */
    }
}

/* Entre 465px et 500px */
@media (min-width: 465px) and (max-width: 500px) {
    .catalogue-filtres-wrapper {
        padding-bottom: 110px !important; /* Applique un padding de 80px entre 426px et 456px */
    }
}

/* Entre 500px et 900px */
@media (min-width: 500px) and (max-width: 953px) {
    .catalogue-filtres-wrapper {
        padding-bottom: 60px !important; /* Applique un padding de 40px entre 457px et 768px */
    }
}

/* Min-width 769px */
@media (min-width: 953px) {
    .catalogue-filtres-wrapper {
        padding-bottom: 10px !important; /* Applique un padding de 20px pour les écrans plus larges */
    }
}

@media (max-width: 464px) {
    .catalogue-search-bar .catalogue-btn {
    height: 100%;
    padding: 0 12px;
    font-size: 0.9rem;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: #ff595a;
    color: #fff;
    border: none;
    cursor: pointer;
}
	
	/* Barre de recherche */
.catalogue-search-bar input[type="text"] {
    flex: 100%;
    height: 40%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    width: 100%;
}
}

/*CONTRIBUTEUR·TRICES*/
.contribution-wrapper {
    text-align: center; 
}

.contribution-type {
    display: inline-block;
    color: #979797; 
    font-style: italic;
    padding-top: 4px;
		padding-bottom: 0px;
    font-size: 0.9em;
}

.contribution-type:last-child {
    margin-right: 0; /* Supprime l'espace après le dernier élément */
}

/*DOSSIERS*/
/* Positionner le badge EN FR sur les images des dossiers sur la page Dossiers et sur les images des articles enfants */
.article-thumbnail {
    position: relative; 
}

.article-enfant-thumbnail {
	position: relative;
}


/* Style des individus catégories*/
.category-terms {
    font-size: 16px; /* Plus petit que le titre */
    font-weight: 600; /* Gras */
    color: #ff595a; /* Couleur personnalisée */
    margin-bottom: 7px; /* Un peu d'espace sous les termes */
	margin-top: 7px; /* Un peu d'espace sous les termes */
}

/* Styliser chaque terme individuel */
.category-term {
    text-decoration: none; /* Enlever le soulignement des liens */
    color: #ff595a; /* Assurer que la couleur est bien appliquée aux liens */
    font-weight: bold; /* Gras */
}

.category-term:hover {
    color: #d53e47; /* Couleur au survol, optionnel */
}

/* Conteneur des catégories */
.catalogue-category {
    text-align: left; /* Alignement à gauche */
}

/* Styliser chaque terme individuel */
.category-term {
    color: #ff595a; /* Couleur */
    font-weight: bold; /* Gras */
}

.margin-indent {
  margin-left: 30px; /* Retrait du paragraphe entier */
}

/*Changement articles enfants*/
/* Badge état (À paraître / Draft) + meta + désactivation des liens */
.badge-state{
  display:inline-block;
  margin-bottom:5px;
  padding:6px 10px;
  font-weight:700;
  font-size:.85rem;
  color:#fff;
  background:#ff595a;
  border-radius:4px;
}
.meta-line{ margin:6px 0 0; font-size:.85rem; color:#444; }
.article-enfant-item.is-disabled a{
  pointer-events:none;
  cursor:default;
  color:inherit;
  text-decoration:none;
}

/* Bouton rouge – ombre par défaut + hover */
.wp-block-button__link.has-vivid-red-background-color {
  background-color: #ff595a !important;
  color: #fff !important;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);                 /* ombre légère */
  transition: background .2s ease, color .2s ease,
              transform .2s ease, box-shadow .2s ease;   /* transitions lisses */
  will-change: transform;
}

.wp-block-button__link.has-vivid-red-background-color:hover,
.wp-block-button__link.has-vivid-red-background-color:focus {
  background-color: #2a2a2a !important;
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-1px);                            /* petit lift */
  box-shadow: 0 6px 16px rgba(0,0,0,.22);                 /* ombre + profonde */
  animation: btn-bounce .35s ease-out;                    /* rebond discret */
}

/* Focus accessible (clavier) sans soulignement */
.wp-block-button__link.has-vivid-red-background-color:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255,89,90,.35), 0 6px 16px rgba(0,0,0,.22);
}

/* Spécifique au shortcode Équipe */
.corresp-wrap--equipe .corresp-name {
  padding-top: 6px;
  color: #ff595a;
}

/*Menu secondaire Bottin des organismes*/
/* ====== MENU DU BOTTIN LITTÉRAIRE ====== */

/* Étendre sur toute la largeur */
.mh-preheader .mh-header-bar-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Conteneur principal du menu */
.mh-header-nav-top {
    display: block;
    width: 100%;
    background-color: #f8f8f8; /* change si tu veux une autre couleur */
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

/* Liste principale des onglets (types d’organismes) */
.mh-header-nav-top ul.menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: nowrap; /* évite les retours à la ligne */
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Chaque onglet principal */
.mh-header-nav-top ul.menu > li {
    position: relative;
    white-space: nowrap;
}

/* Liens des onglets */
.mh-header-nav-top ul.menu > li > a {
    display: block;
    padding: 10px 15px;
    color: #222;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.mh-header-nav-top ul.menu > li > a:hover {
    color: #ff595a; /* couleur Discours/e */
}

/* Sous-menu déroulant (organismes) */
.mh-header-nav-top ul.sub-menu {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 280px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    display: none;
    z-index: 9999;
}

/* Chaque sous-onglet (organisme individuel) */
.mh-header-nav-top ul.sub-menu li {
    display: block;
    white-space: nowrap; /* garde tout sur une seule ligne */
}

.mh-header-nav-top ul.sub-menu li a {
    display: block;
    padding: 8px 14px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}

.mh-header-nav-top ul.sub-menu li a:hover {
    background-color: #ff595a;
    color: #fff;
}

/* Affichage du sous-menu au survol */
.mh-header-nav-top ul.menu > li:hover > ul.sub-menu {
    display: block;
}

/* Petits écrans : adapter */
@media (max-width: 768px) {
    .mh-header-nav-top ul.menu {
        flex-direction: column;
        align-items: flex-start;
    }

    .mh-header-nav-top ul.menu > li {
        width: 100%;
    }

    .mh-header-nav-top ul.sub-menu {
        position: static;
        display: none;
        width: 100%;
        border: none;
        background-color: #fafafa;
    }

    .mh-header-nav-top ul.menu > li:hover > ul.sub-menu {
        display: block;
    }
}

/* ====== SOUS-MENU CORRIGÉ ====== */

/* Sous-menu déroulant (organismes) */
.mh-header-nav-top ul.sub-menu {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 280px;
    background-color: #ff595a; /* fond rouge permanent */
    border: none;
    display: none;
    z-index: 9999;
    padding: 0;
    margin: 0;
}

/* Chaque sous-onglet (organisme individuel) */
.mh-header-nav-top ul.sub-menu li {
    display: block;
    width: 100%;
    white-space: nowrap;
}

/* Liens des sous-onglets */
.mh-header-nav-top ul.sub-menu li a {
    display: block;
    width: 89%;
    padding: 10px 16px;
    color: #fff; /* texte blanc permanent */
    background-color: transparent;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}

/* Survol du lien : fond légèrement plus foncé */
.mh-header-nav-top ul.sub-menu li a:hover {
    background-color: #ff595a; /* version plus foncée du rouge */
    color: #fff;
}

/* Affichage du sous-menu au survol */
.mh-header-nav-top ul.menu > li:hover > ul.sub-menu {
    display: block;
}

/*Menu principal : alignement des sous-onglets*/
/* Aligner à gauche UNIQUEMENT le texte des sous-onglets du menu principal */
.mh-main-nav-wrap nav.mh-main-nav #menu-francais-2025 .sub-menu a {
  text-align: left !important;
  display: block;           /* s'assure que le lien occupe toute la ligne */
  white-space: nowrap;      /* évite les retours à la ligne */
}

.mh-main-nav-wrap nav.mh-main-nav #menu-anglais-2025 .sub-menu a {
  text-align: left !important;
  display: block;           /* s'assure que le lien occupe toute la ligne */
  white-space: nowrap;      /* évite les retours à la ligne */
}

/* Si le sous-menu était “accroché” à droite, on le réaligne sous le parent */
.mh-main-nav-wrap nav.mh-main-nav #menu-francais-2025 .sub-menu {
  left: 0 !important;
  right: auto !important;
  /* aucun autre changement visuel */
}

.mh-main-nav-wrap nav.mh-main-nav #menu-anglais-2025 .sub-menu {
  left: 0 !important;
  right: auto !important;
  /* aucun autre changement visuel */
}

/* Variante mobile (slicknav) — texte des sous-onglets à gauche uniquement */
.mh-main-nav-wrap .slicknav_nav .sub-menu a {
  text-align: left !important;
  white-space: nowrap;
}

/* === Revue de presse / Press review : aligner à gauche SANS toucher .corresp-wrap === */

/* 1) SINGLE — cibler seulement les articles étiquetés */
.single-post article.post.tag-revue_presse .entry-content,
.single-post article.post.tag-press_review .entry-content,
.single-post article.post.tag-media_review .entry-content { 
  text-align: left !important;
}

/* Forcer les éléments que le thème met souvent en 'justify' */
.single-post article.post.tag-revue_presse .entry-content p,
.single-post article.post.tag-revue_presse .entry-content li,
.single-post article.post.tag-revue_presse .entry-content h1,
.single-post article.post.tag-revue_presse .entry-content h2,
.single-post article.post.tag-revue_presse .entry-content h3,
.single-post article.post.tag-revue_presse .entry-content h4,
.single-post article.post.tag-revue_presse .entry-content h5,
.single-post article.post.tag-revue_presse .entry-content h6,
.single-post article.post.tag-press_review .entry-content p,
.single-post article.post.tag-press_review .entry-content li,
.single-post article.post.tag-press_review .entry-content h1,
.single-post article.post.tag-press_review .entry-content h2,
.single-post article.post.tag-press_review .entry-content h3,
.single-post article.post.tag-press_review .entry-content h4,
.single-post article.post.tag-press_review .entry-content h5,
.single-post article.post.tag-press_review .entry-content h6,
.single-post article.post.tag-media_review .entry-content p,
.single-post article.post.tag-media_review .entry-content li,
.single-post article.post.tag-media_review .entry-content h1,
.single-post article.post.tag-media_review .entry-content h2,
.single-post article.post.tag-media_review .entry-content h3,
.single-post article.post.tag-media_review .entry-content h4,
.single-post article.post.tag-media_review .entry-content h5,
.single-post article.post.tag-media_review .entry-content h6 {
  text-align: left !important;
}


/* 3) ARCHIVES d’étiquette (listes) — sans .corresp-wrap ici */
.tag-revue_presse .mh-posts-list-content,
.tag-revue_presse .mh-excerpt,
.tag-revue_presse .mh-posts-grid-caption,
.tag-press_review .mh-posts-list-content,
.tag-press_review .mh-excerpt,
.tag-press_review .mh-posts-grid-caption,
.tag-media_review .mh-posts-list-content,
.tag-media_review .mh-excerpt,
.tag-media_review .mh-posts-grid-caption {
  text-align: left !important;
}


/* 2) NE PAS IMPACTER les blocs correspondants */
.single-post article.post.tag-revue_presse .entry-content .corresp-wrap,
.single-post article.post.tag-revue_presse .entry-content .corresp-wrap *,
.single-post article.post.tag-press_review .entry-content .corresp-wrap,
.single-post article.post.tag-press_review .entry-content .corresp-wrap *,
.single-post article.post.tag-media_review .entry-content .corresp-wrap,
.single-post article.post.tag-media_review .entry-content .corresp-wrap * {
  /* remettre l'alignement par défaut/local sans hériter du left parent */
  text-align: justify !important;
}

/*Aligner la date sous le tite  reveu de presse*/

@media (max-width: 768px) {
  /* Cacher la date sous l'image si elle y est déjà */
  .tag-revue_presse .mh-posts-list-thumb .mh-meta,
  .tag-media_review .mh-posts-list-thumb .mh-meta {
    display: none !important;
  }

  /* Afficher la date sous le titre */
  .tag-revue_presse .mh-meta.entry-meta,
  .tag-media_review .mh-meta.entry-meta {
    display: block;
    padding-left: 95px; /* ajuste ici selon la largeur souhaitée */
    margin-top: 0.25em;
    font-size: 0.9em;
    color: #666;
  }

  /* S’assurer que l’ordre visuel suit le titre */
  .tag-revue_presse .mh-meta.entry-meta,
  .tag-media_review .mh-meta.entry-meta {
    order: 3; /* utile si c’est en flex/grid */
  }
}

/* === Réduire l'espace au-dessus du shortcode Équipe === */
.corresp-wrap--equipe {
  margin-top: 0 !important;   
  padding-top: 0 !important; 
}

.corresp-wrap--equipe {
  margin-top: 12px; 
}

/*Test-projets boutons hover*/
/* Effet hover sur les boutons UNIQUEMENT pour la page /test-projets */
body.page-id-4522 .wp-block-button__link {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.page-id-4522 .wp-block-button__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 12px rgba(255,255,255,0.8), 0 0 24px rgba(255,255,255,0.6);
  text-decoration: none !important;
}

body.page-id-5942 .wp-block-button__link {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.page-id-5942 .wp-block-button__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 12px rgba(255,255,255,0.8), 0 0 24px rgba(255,255,255,0.6);
  text-decoration: none !important;
}