/*
Theme Name:   Astra Enfant
Theme URI:    https://votresite.com
Description:  Thème enfant d'Astra pour modifications personnelles
Author:       Votre nom
Author URI:   https://votresite.com
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  astra-child
*/


/* ============================================
        HEADER - MENU PRINICPAL 
   ============================================ */
/* En-tête principal */
#masthead {
    background-color: #1E4F8C !important;
    margin-top: -4em;
}

#ast-mobile-header{
margin-top: 5em;
}

.ast-primary-header-bar {
background-color: #1E4F8C!important;
}

/* Tous les sous-menus (pas seulement l'ID) */
.sub-menu,
#sub-menu {
    background-color: #1E4F8C !important;
}

/* Liens des sous-menus */
.sub-menu a,
#sub-menu a {
    color: #ffffff !important;  /* Texte blanc pour lisibilité */
}

.sub-menu a:hover,
#sub-menu a:hover {
    background-color: #0d3b66 !important;  /* Couleur plus foncée au survol */
}

/* Menu desktop */
#primary-site-navigation-desktop {
  margin-top: 14em !important;
  width: 66em !important;
}

.ast-builder-button-wrap {
    margin-left: -5em!important;
}

.site-header-primary-section-left {
    margin-left: -11em !important;
}

/* Bloc Media & Text */
.wp-block-media-text.alignwide.has-media-on-the-right.is-stacked-on-mobile.is-vertically-aligned-center {
    padding-top: 9em;
}

/* Version mobile responsive */
@media (max-width: 768px) {
    #primary-site-navigation-desktop {
        margin-top: 2em;  /* Moins de marge sur mobile */
    }
    
    .wp-block-media-text.alignwide.has-media-on-the-right.is-stacked-on-mobile.is-vertically-aligned-center {
        padding-top: 3em;  /* Ajustement mobile */
    }
}

#ast-hf-menu-1-mobile{
background-color: #1E4F8C !important;
}

#ast-hf-menu-1{
margin-bottom: 2em!important;
}


.menu-link{
color: white !important;
}

.ast-menu-toggle{
    color:white!important;
}

.ast-menu-toggle{
top: -0.5em!important;
}

.ast-custom-button{
  font-size: 0.8em!important;
  width:12em!important;
  margin-left: -15em!important;
}


/* Cibler uniquement le 3ème sous-menu (celui de "Nos domaines d'activités") */
#menu-item-16 > .sub-menu {
    width: auto !important;
    min-width: 280px !important;
    max-width: 400px !important;
}

/* Ne plus forcer la couleur ici, elle sera gérée par les classes de type */
#menu-item-16 > .sub-menu .menu-link {
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
}

/* Texte sur plusieurs lignes */
#menu-item-16 > .sub-menu .menu-link {
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
}

/* definir taille des sous menus principal qui s'adaptent au texte dans le header  */
/* Réinitialiser la largeur des sous-menus et l'adapter au texte */
.sub-menu {
    width: auto !important;          /* Annule le width: 40% */
    min-width: 200px !important;     /* Largeur minimale pour éviter un menu trop serré */
    max-width: 340px !important;     /* Largeur maximale pour éviter un menu trop large */
    white-space: nowrap !important;  /* Empêche le texte de passer à la ligne */
}

/* Pour les sous-menus de niveau 2 (sous-sous-menus) */
.sub-menu .sub-menu {
    min-width: 200px !important;
    max-width: 300px !important;
}



/* ============================================
   AJUSTEMENT HEADER POUR 1280x720 (720p)
   ============================================ */

@media screen and (min-width: 1270px) and (max-width: 1300px) and (min-height: 700px) and (max-height: 740px) {
    
    /* Conteneur principal du header - réduire le padding */
    .site-primary-header-wrap  {
        padding-left: 12em !important;  /* Réduit de 10em à 3em */
    }
}

#primary-site-navigation-desktop {
margin-left: -3em!important;

}


@media screen and (min-width: 1280px) {

   .site-primary-header-wrap  {
        padding-left: 12em !important;  /* Réduit de 10em à 3em */
    }


}

li[id*="menu-item"] {
  padding-bottom: 0.5em;
}



/* ============================================
   STYLES SPÉCIFIQUES 1440x900
   ============================================ */

@media screen and (min-width: 1400px) and (max-width: 1480px) and (min-height: 880px) and (max-height: 920px) {
    
    /* Menu principal */
  /*  #primary-site-navigation-desktop {
        margin-top: 14em !important;
        width: 65em !important;
        margin-right: 16em !important;
    }
    
    /* Bouton personnalisé - positionnement */
    .ast-builder-button-wrap {
        margin-left: -16em !important;
    }
    
    /* Section gauche du header */
    .site-header-primary-section-left {
        margin-left: -4em !important;
    }
    
    /* Bouton - padding et style */
    .ast-header-button-1[data-section*="section-hb-button-"] .ast-builder-button-wrap .ast-custom-button {
        padding-top: 1em;
        padding-bottom: 1em;
        padding-left: 3em;
        padding-right: 3em;
    }
    
    /* Forcer le bouton sur une ligne */
    .ast-builder-button-wrap .ast-custom-button-link {
        white-space: nowrap !important;   /* Empêche le retour à la ligne */
        width: auto !important;            /* Largeur automatique */
        display: inline-block !important;
    }
    
    .ast-builder-button-wrap .ast-custom-button {
        white-space: nowrap !important;   /* Empêche le retour à la ligne */
        overflow: visible !important;     /* Évite que le texte soit caché */
        text-overflow: clip !important;   /* Pas de coupure de texte */
        font-size: 14px !important;       /* Taille lisible */
        line-height: 1.4 !important;      /* Hauteur de ligne normale */
        width: auto !important;           /* Largeur automatique */
    }
    
    /*  Supprimer les styles inline qui cassent l'affichage */
    .ast-builder-button-wrap .ast-custom-button-link {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}








/* ============================================
   Gerer affichage sur la meme ligne entre le logo et l'adresse dans le footer
   ============================================ */

/* Aligner logo et adresse sur la même ligne */
.site-footer-below-section-1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Ajuster la largeur du logo */
.site-footer-below-section-1 .ast-footer-html-1 {
    flex: 0 0 auto;
}

.site-footer-below-section-1 .ast-footer-html-1 img {
    max-width: 120px !important;
    margin: 0 !important;
    display: inline-block !important;
}

/* Ajuster l'adresse */
.site-footer-below-section-1 .ast-footer-copyright {
    flex: 1;
    text-align: left;
}

/* Version mobile : empiler sur petit écran */
@media (max-width: 768px) {
    .site-footer-below-section-1 {
        flex-direction: column;
        text-align: center;
    }
    
    .site-footer-below-section-1 .ast-footer-copyright {
        text-align: center;
    }
}

[data-section="section-fb-html-1"] {
    padding-right: 2em !important;
    padding-left: 2em !important;
}
/* ============================================
   ================ PAGE ACCEUIL ==============
   ============================================ */

/* ============================================
   Gerer affichage des cercles jaunes avec compteur et lien LinkedIn 
   ============================================ */
/* Conteneur flexbox - pleine largeur sans décalage */
.elementor .e-d3d9604 {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 40px 20px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around !important;
    align-items: center !important;
    gap: 0 !important;
    margin-top: -8em;
}

/* Chaque item occupe un espace égal */
.elementor .e-d3d9604 > .elementor-widget,
.elementor .e-d3d9604 > .elementor-element,
.elementor .e-d3d9604 > div {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    text-align: center !important;
}

/* Cercle jaune sur chaque counter */
.elementor .e-d3d9604 .elementor-counter {
    background-color: #efc837 !important;
    border-radius: 50% !important;
    width: 170px !important;
    height: 170px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    padding: 20px !important;
}

/* Chiffre en bleu gras */
.elementor .e-d3d9604 .elementor-counter-number {
      color:black!important;
    font-size: 36px !important;
    font-weight: 800 !important;
    display: block !important;
}

/* Titre en bleu */
.elementor .e-d3d9604 .elementor-counter-title {
    color:black !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 6px !important;
    order: -1 !important;
}

/* Bouton LinkedIn - même cercle jaune */
.elementor .e-d3d9604 [data-id="8be7d03"] {
    flex: 1 1 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.elementor .e-d3d9604 [data-id="8be7d03"] .e-button-base {
    background-color: #efc837 !important;
    border-radius: 50% !important;
    width: 170px !important;
    height: 170px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #1e4f8c !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-align: center !important;
    text-decoration: none !important;
    padding: 20px !important;
    line-height: 1.3 !important;
}

.elementor .e-d3d9604 [data-id="8be7d03"] .e-button-base:hover {
    background-color: #d4a800 !important;
    transform: translateY(-3px) !important;
}

.elementor-counter-title{
    color:black!important;
}

.e-e407e0d-5ac53a0 {
    color:black!important;
}

#e407e0d{
    color:black!important;
}

/* Texte du bouton LinkedIn en noir */
.elementor .e-d3d9604 [data-id="8be7d03"] .e-button-base {
    color: #000000 !important;
}

/* Icône LinkedIn avant le texte via pseudo-élément */
.elementor .e-d3d9604 [data-id="8be7d03"] .e-button-base::before {
    content: "";
    display: block;
    width: 32px;
    height: 32px;
    margin: 0 auto 8px auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23000000' d='M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}


/* Bouton LinkedIn en colonne : icône au-dessus, texte en dessous */
.elementor .e-d3d9604 [data-id="8be7d03"] .e-button-base {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #000000 !important;
    gap: 8px !important;
}

/* Icône LinkedIn au-dessus */
.elementor .e-d3d9604 [data-id="8be7d03"] .e-button-base::before {
    content: "" !important;
    display: block !important;
    width: 36px !important;
    height: 36px !important;
    margin: 0 auto !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23000000' d='M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: center !important;
    flex-shrink: 0 !important;
}

.elementor-widget-hfe-basic-posts .hfe-post-title a{
    color: black;
}


.elementor-widget-hfe-basic-posts .hfe-read-more {
  color: #1E4F8C!important;
}


.elementor-element-9aeaf48{
    padding-top: 2.5em!important;
}
/* Mobile : cercles en colonne */
@media (max-width: 767px) {
    .elementor .e-d3d9604 {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        padding: 30px 20px !important;
    }

    .elementor .e-d3d9604 > .elementor-widget,
    .elementor .e-d3d9604 > .elementor-element,
    .elementor .e-d3d9604 > div {
        flex: 0 0 auto !important;
        width: auto !important;
    }

    .elementor .e-d3d9604 .elementor-counter {
        width: 160px !important;
        height: 160px !important;
    }

    .elementor .e-d3d9604 [data-id="8be7d03"] .e-button-base {
        width: 160px !important;
        height: 160px !important;
    }
}

/* ============================================================
   COMPTEURS ET CERCLE LINKEDIN - VERSION FINALE
   ============================================================ */

/* ---- 1. Conteneur principal (les 4 colonnes) ---- */
.elementor .e-d3d9604 {
    width: 100% !important;
    margin: 0 !important;
    padding: 40px 20px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around !important;
    align-items: stretch !important;   /* ← clé : toutes les colonnes ont la même hauteur */
    gap: 0 !important;
}

/* ---- 2. Chaque colonne (3 compteurs + 1 colonne LinkedIn) ---- */
.elementor .e-d3d9604 > .elementor-widget,
.elementor .e-d3d9604 > .elementor-element,
.elementor .e-d3d9604 > div {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;  /* ← aligne tout en haut */
}

/* ---- 3. Les 3 compteurs (cercles jaunes) ---- */
.elementor .e-d3d9604 .elementor-counter {
    background-color: #efc837 !important;
    border-radius: 50% !important;
    width: 170px !important;
    height: 170px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    padding: 20px !important;
    flex-shrink: 0 !important;
}

/* Chiffre dans le cercle */
.elementor .e-d3d9604 .elementor-counter-number {
    color: #000000 !important;
    font-size: 36px !important;
    font-weight: 800 !important;
}

/* Titre sous le cercle */
.elementor .e-d3d9604 .elementor-counter-title {
    color: #000000 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-top: 10px !important;
}

/* ---- 4. Colonne LinkedIn (cercle + bouton) ---- */
.elementor .e-d3d9604 [data-id="8be7d03"] {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;  /* ← aligné en haut comme les autres */
    gap: 12px !important;
    flex: 1 1 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* ---- 5. Cercle LinkedIn (le <a>) ---- */
.elementor .e-d3d9604 [data-id="8be7d03"] > a.e-button-base {
    background-color: #efc837 !important;
    border-radius: 50% !important;
    width: 170px !important;
    height: 170px !important;
    min-height: 170px !important;
    max-height: 170px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-align: center !important;
    text-decoration: none !important;
    padding: 20px !important;
    line-height: 1.3 !important;
    flex-shrink: 0 !important;
    border: none !important;
    margin-top: 4em;
}

/* Icône LinkedIn (via pseudo-élément) */
.elementor .e-d3d9604 [data-id="8be7d03"] > a.e-button-base::before {
    content: "" !important;
    display: block !important;
    width: 36px !important;
    height: 36px !important;
    /*margin: 0 auto 8px auto !important;*/
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23000000' d='M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    background-position: center !important;
    flex-shrink: 0 !important;
      order: 1 !important;  /* Icône en premier (en haut) */
    margin-bottom: 8px !important;
}

/* ---- 6. Bouton "Nous suivre" (le deuxième <a>) ---- */
.elementor .e-d3d9604 [data-id="8be7d03"] > a.e-button-base:last-child {
    background-color: #1E4F8C !important;
    color: #ffffff !important;
    padding: 8px 20px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    text-align: center !important;
    cursor: pointer !important;
    width: auto !important;
    min-width: 110px !important;
    max-width: 140px !important;
    line-height: 1.2 !important;
    flex-shrink: 0 !important;
    margin-top: 0 !important;
    height: auto !important;
    box-shadow: none !important;
    border-radius: 50px !important;
     order: 2 !important; 
}



/* Icône "pouce levé" sur le bouton "Nous suivre" */
.elementor .e-d3d9604 [data-id="8be7d03"] > a.e-button-base:last-child::before {
    content: "\f164" !important;   /* pouce levé */
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    display: inline-block !important;
    color: #ffffff !important;
    margin: 0 !important;
    background: none !important;
    width: auto !important;
    height: auto !important;
}

/* Effet au survol du bouton "Nous suivre" */
.elementor .e-d3d9604 [data-id="8be7d03"] > a.e-button-base:last-child:hover {
    background-color: #0d3b66 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(30, 79, 140, 0.3) !important;
}

/* ---- 7. Version mobile ---- */
@media (max-width: 768px) {
    .elementor .e-d3d9604 {
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
        padding: 30px 20px !important;
    }

    .elementor .e-d3d9604 > .elementor-widget,
    .elementor .e-d3d9604 > .elementor-element,
    .elementor .e-d3d9604 > div {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 280px !important;
    }

    .elementor .e-d3d9604 .elementor-counter,
    .elementor .e-d3d9604 [data-id="8be7d03"] > a.e-button-base {
        width: 140px !important;
        height: 140px !important;
        min-height: 140px !important;
        max-height: 140px !important;
    }

    .elementor .e-d3d9604 [data-id="8be7d03"] > a.e-button-base:last-child {
        padding: 6px 16px !important;
        font-size: 11px !important;
        min-width: 90px !important;
        max-width: 120px !important;
    }
}


/* == chevron carrousel partenaires ========================================= */
.eicon-chevron-left::before {
  color: #1E4F8C;
}

.eicon-chevron-right::before {
  color: #1E4F8C;
}


ul[class="flex-direction-nav"]{
    display:none!important;
}


.img-etablissement-protected {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 450px !important;
    object-fit: cover !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Empêche Swiper de redimensionner les images hors carrousel */
/* .etablissement-col-droite .swiper-slide img,
.etablissement-col-droite .swiper-wrapper img {
    display: none !important;
} */


/* correctif bug affichage carrousel partenaire dans les pages single etablissement */
/* Correction bug image carrousel Elementor */

/*.single-etablissement .elementor-image-carousel-wrapper img,
.single-etablissement .swiper-slide img,
.single-etablissement .elementor-widget-image-carousel img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 150px !important; /* adapte selon ta hauteur souhaitée 
}


.single-etablissement .elementor-image-carousel-wrapper {
    overflow: hidden !important;
}

.single-etablissement .swiper-wrapper {
    align-items: center;
}*/

/* ============================================
   BOUTON "NOUS SUIVRE" - UNIQUEMENT
   ============================================ */

/* Le bouton "Nous suivre" - style classique */
.elementor .e-d3d9604 [data-id="8be7d03"] a.e-button-base:last-child {
    background-color: #1E4F8C !important;
    color: #ffffff !important;
    padding: 6px 16px !important;
    border-radius: 6px !important;  /* Angles arrondis classiques */
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    width: auto !important;
    min-width: 90px !important;
    max-width: 130px !important;
    line-height: 1.2 !important;
    flex-shrink: 0 !important;
    margin-top: 0 !important;
    height: auto !important;
    box-shadow: none !important;
}

/* Icône "pouce levé" */
.elementor .e-d3d9604 [data-id="8be7d03"] a.e-button-base:last-child::before {
    content: "\f164" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    display: inline-block !important;
    color: #ffffff !important;
    margin: 0 !important;
    background: none !important;
    width: auto !important;
    height: auto !important;
    background-image: none !important;  /* Supprime l'image héritée */
}

/* Effet au survol */
.elementor .e-d3d9604 [data-id="8be7d03"] a.e-button-base:last-child:hover {
    background-color: #0d3b66 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(30, 79, 140, 0.3) !important;
}

/* Version mobile */
@media (max-width: 768px) {
    .elementor .e-d3d9604 [data-id="8be7d03"] a.e-button-base:last-child {
        padding: 5px 12px !important;
        font-size: 10px !important;
        min-width: 70px !important;
        max-width: 100px !important;
        border-radius: 4px !important;
    }
    
    .elementor .e-d3d9604 [data-id="8be7d03"] a.e-button-base:last-child::before {
        font-size: 10px !important;
    }
}

/* ============================================
   BOUTON "NOUS SUIVRE" - HAUTEUR RÉDUITE
   ============================================ */

/* Le bouton "Nous suivre" - version ultra-compacte */
.elementor .e-d3d9604 [data-id="8be7d03"] a.e-button-base:last-child {
    background-color: #1E4F8C !important;
    color: #ffffff !important;
    padding: 4px 14px !important;  /* Réduit encore */
    border-radius: 4px !important;  /* Angles arrondis */
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 11px !important;  /* Plus petit */
    display: inline-block !important;  /* Changé de inline-flex à inline-block */
    text-align: center !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    width: auto !important;
    min-width: 80px !important;
    max-width: 120px !important;
    line-height: 1.2 !important;
    flex-shrink: 0 !important;
    margin-top: 0 !important;
    height: auto !important;
    max-height: 32px !important;  /* Force une hauteur maximale */
    box-shadow: none !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    min-height: 0 !important;  /* Annule toute hauteur minimale héritée */
}

/* Icône "pouce levé" - plus petit */
.elementor .e-d3d9604 [data-id="8be7d03"] a.e-button-base:last-child::before {
    content: "\f164" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 400 !important;
    font-size: 11px !important;
    display: inline-block !important;
    color: #ffffff !important;
    margin-right: 4px !important;
    margin-left: 0 !important;
    background: none !important;
    width: auto !important;
    height: auto !important;
    background-image: none !important;
    line-height: 1 !important;
}

/* Effet au survol */
.elementor .e-d3d9604 [data-id="8be7d03"] a.e-button-base:last-child:hover {
    background-color: #0d3b66 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(30, 79, 140, 0.3) !important;
}

/* Version mobile */
@media (max-width: 768px) {
    .elementor .e-d3d9604 [data-id="8be7d03"] a.e-button-base:last-child {
        padding: 3px 10px !important;
        font-size: 10px !important;
        min-width: 60px !important;
        max-width: 90px !important;
        max-height: 26px !important;
        border-radius: 3px !important;
        margin-left: 1em!important;

    }
    
    .elementor .e-d3d9604 [data-id="8be7d03"] a.e-button-base:last-child::before {
        font-size: 9px !important;

    }

      .elementor .e-d3d9604 .elementor-counter, .elementor .e-d3d9604 [data-id="8be7d03"] > a.e-button-base {
        margin-top: 1em!important;
        margin-right: -1em!important;
        margin-bottom: 0.5em!important;
  }
}

/* ============================================
   FORCER LA MÊME TAILLE POUR TOUTES LES IMAGES DES ARTICLES AFFICHES A L'ACCEUIL
   ============================================ */

/* Conteneur des images */
.hfe-post-image {
    width: 100% !important;
    height: 200px !important;  /* Ajustez cette valeur selon vos besoins */
    overflow: hidden !important;
    position: relative !important;
}

/* Les images elles-mêmes */
.hfe-post-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;  /* Recadre l'image pour remplir l'espace */
    display: block !important;
}

/* Pour les cartes d'articles */
.hfe-post-card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Le contenu de la carte */
.hfe-post-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Le bouton "Lire la suite" en bas de la carte */
.hfe-read-more {
    margin-top: auto !important;
}


.ast-single-post .entry-content a, .ast-comment-content a:not(.ast-comment-edit-reply-wrap a) {
  text-decoration: none!important;
  color:#1E4F8C!important;
}




/* ============================================
   BOUTON "Soutiens les PEP 62" - STYLE ARRONDI
   ============================================ */

/* Le bouton */
.elementor [data-id="925efe5"] .e-button-base {
    background-color: #efc837 !important;  /* Fond jaune */
    color: #000000 !important;              /* Texte noir */
    padding: 12px 30px !important;          /* Espace intérieur */
    border-radius: 50px !important;         /* Angles très arrondis */
    border: 2px solid #000000 !important;   /* ✅ Bordure noire */
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    text-align: center !important;
    box-shadow: 0 2px 10px rgba(239, 200, 55, 0.3) !important;
    min-width: 150px !important;
    max-height: 48px !important;
    min-height: 44px !important;
}

/* Effet au survol */
.elementor [data-id="925efe5"] .e-button-base:hover {
    background-color: #d4a800 !important;   /* Jaune plus foncé */
    border-color: #1E4F8C !important;        /* ✅ Bordure bleue au survol */
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(239, 200, 55, 0.4) !important;
}

.elementor-widget-hfe-basic-posts .hfe-post-meta{
    color:black!important;
    display:none!important;
}

.elementor-widget-hfe-basic-posts .hfe-post-excerpt {
  color: #363535!important;
}

/* ============================================
   UNIFORMISER LES LOGOS DANS LE CARROUSEL
   ============================================ */

/* Conteneur de chaque slide */
.elementor-image-carousel .swiper-slide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 150px !important;  /* Hauteur fixe pour tous les logos */
}

/* Conteneur de l'image */
.elementor-image-carousel .swiper-slide .swiper-slide-inner {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Les images elles-mêmes */
.elementor-image-carousel .swiper-slide img {
    width: auto !important;
    height: 100% !important;  /* Prend toute la hauteur du conteneur */
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;  /* Adapte l'image sans la déformer */
    object-position: center !important;
}

.metaslider.ms-theme-databold .flexslider .flex-control-nav {


display:none;
}
/* =========================================================================================================*/
/* ===================================== FIN PAGE ACCEUIL ==================================================*/
/* =========================================================================================================*/


/* ========================================================================
   ================  PAGES ETABLISSEMENT- TYPE ETABLISSEMENT ==============
   ======================================================================== */


/* =============================== ENTETE HEADER EN FONCTION DU TYPE D'ETABLISSEMENT ======================*/
body.type-sessad .site-header { background-color: #D8B4FE; } /* violet clair */
body.type-cmpp .site-header   { background-color: #D1D5DB; } /* gris clair */
body.type-camsp .site-header  { background-color: #A7F3D0; } /* vert pomme clair */

/* Masquer le nom de l'auteur sur les pages d'archive établissement */
.etablissements-grid .ast-author,
.etablissements-grid .author,
.etablissements-grid .posted-by {
    display: none !important;
}










/* ========================================================================
   ================  PAGES TYPE ETABLISSEMENT ==============
   ======================================================================== */


/* =============================== ENTETE HEADER EN FONCTION DU TYPE D'ETABLISSEMENT ======================*/
body.type-sessad .site-header { background-color: #D8B4FE; } /* violet clair */
body.type-cmpp .site-header   { background-color: #D1D5DB; } /* gris clair */
body.type-camsp .site-header  { background-color: #A7F3D0; } /* vert pomme clair */

/* Masquer le nom de l'auteur sur les pages d'archive établissement */
.etablissements-grid .ast-author,
.etablissements-grid .author,
.etablissements-grid .posted-by {
    display: none !important;
}










/* Styles pour les cartes établissements */
.etablissements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.etablissement-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.etablissement-card:hover {
    transform: translateY(-5px);
}

.etablissement-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.etablissement-card h2 {
    padding: 15px 20px 5px;
    font-size: 1.2rem;
    margin: 0;
}

.etablissement-extrait {
    padding: 0 20px;
    margin: 0 0 15px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
}

.btn-decouvrir {
    display: inline-block;
    margin: 0 20px 20px;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: background 0.3s ease;
}

.btn-decouvrir:hover {
    background: #005a87;
    color: #fff;
}

/* Styles pour les documents */
.documents-liste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.document-card {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e0e0e0;
}

.document-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.document-icon {
    width: 100%;
    max-width: 200px;
    margin: 0 auto 15px;
}

.document-apercu {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.document-apercu-pdf {
    width: 100%;
    height: 150px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border-radius: 5px;
}

.document-info h3 {
    margin: 0 0 5px;
    font-size: 1rem;
}

.document-nom {
    font-size: 0.8rem;
    color: #666;
    margin: 0 0 10px;
    word-break: break-all;
}

.btn-doc {
    display: inline-block;
    padding: 8px 16px;
    background: #0073aa;
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn-doc:hover {
    background: #005a87;
    color: #fff;
}



/* ========================================================================
   ================  ETABLISSEMENT ========================================
   ======================================================================== */

   /* Header selon le type d'établissement */
body.type-sessad .ast-primary-header-bar {
    background-color: #826397 !important;
}

body.type-cmpp .ast-primary-header-bar {
    background-color: #93959c !important;
}

body.type-camsp .ast-primary-header-bar {
    background-color: #7dc1b8 !important;
}

/* Styles pour les cartes établissements */
.etablissements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.etablissement-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.etablissement-card:hover {
    transform: translateY(-5px);
}

.etablissement-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.etablissement-card h2 {
    padding: 15px 20px 5px;
    font-size: 1.2rem;
    margin: 0;
}

.btn-decouvrir {
background: #1E4F8C!important;
}

@media (max-width: 768px) {
    h1{
        font-size: 2em!important;
    }



}

/* ========================================================================
   PAGE DÉTAIL ÉTABLISSEMENT - 2 COLONNES
   ======================================================================== */

.etablissement-titre {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 30px 0 25px;
}

/* Layout 2 colonnes */
.etablissement-layout {
 display: flex !important;
    flex-direction: row !important;
    gap: 50px !important;
    align-items: flex-start !important;
}

/* Colonne gauche (2/3) */
.etablissement-col-gauche {
    flex: 0 0 65%;
    max-width: 65%;
}

/* Colonne droite (1/3) */
.etablissement-col-droite {
    flex: 0 0 30%;
    max-width: 30%;
}

/* ===== IMAGE ===== */
.etablissement-image-principale img {
    width: 100%;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}

/* ===== INFOS PRATIQUES ===== */
.etablissement-infos-pratiques {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.etablissement-infos-pratiques p {
    margin: 0 0 15px;
    font-size: 0.95rem;
    color: #1E4F8C;
    line-height: 1.6;
}

.etablissement-infos-pratiques p:last-child {
    margin-bottom: 0;
}




.etablissement-infos-pratiques strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 2px;
}

/* ===== PRÉSENTATION ===== */
.etablissement-presentation h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 15px;
}

.presentation-contenu {
    line-height: 1.8;
    color: #333;
}

/* ===== ACTUALITÉS ===== */
.etablissement-actualites h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 40px 0 20px;
}

.actualites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.article-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.article-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.article-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.article-card h3 {
    font-size: 1rem;
    margin: 0 0 8px;
    font-weight: 600;
}

.article-card p {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 10px;
    line-height: 1.5;
}

.btn-voir-plus {
    display: inline-block;
    color: #1E4F8C;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-voir-plus:hover {
    text-decoration: underline;
}

.actualites-voir-toutes {
    text-align: right;
    margin-top: 15px;
}

.btn-voir-toutes {
    color: #1E4F8C;
    text-decoration: none;
    font-weight: 600;
}

.btn-voir-toutes:hover {
    text-decoration: underline;
}

/* ===== DOCUMENTS ===== */
.etablissement-telechargements h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 40px 0 20px;
}

.documents-liste {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.document-card {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1 1 200px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.document-card:hover {
    border-color: #1E4F8C;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.document-card.document-empty {
    flex: 1 1 100%;
    justify-content: center;
    color: #999;
}

.document-icone {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
}

.document-icone img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.document-apercu-pdf {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: 1px solid #dee2e6;
}

.document-info {
    flex: 1;
}

.document-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: #212529;
}

.document-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-doc {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-telecharger {
    background: #1E4F8C;
    color: #fff !important;
}

.btn-telecharger:hover {
    background: #163a66;
}

.btn-visualiser {
    background: #6c757d;
    color: #fff !important;
}

.btn-visualiser:hover {
    background: #5a6268;
}

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

@media (max-width: 992px) {
    .etablissement-layout {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
    }
    
    .etablissement-col-gauche,
    .etablissement-col-droite {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
  .etablissement-col-gauche,
    .etablissement-col-droite {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .etablissement-image-principale img {
        max-height: 300px !important;
        object-fit: cover !important;
    }

     .etablissement-presentation{
    padding-left: 1em!important;
    padding-right: 1em !important;
    padding-top: 1em!important;
    padding-bottom : 1em !important;
    margin-bottom: -2em!important;
    }

     .etablissement-actualites{
    padding-left: 1em!important;
    padding-right: 1em!important;
    }

     .etablissement-telechargements{
    padding-left: 1em!important;
    padding-right: 1em!important;
    }

}

@media (max-width: 768px) {
    .actualites-grid {
        grid-template-columns: 1fr;
    }
    
    .documents-liste {
        flex-direction: column;
    }
    
    .document-card {
        flex: 1 1 auto;
    }

    .etablissement-presentation{
    padding-left: 1em!important;
    padding-right: 1em !important;
    padding-top: 1em!important;
    padding-bottom : 1em !important;
    margin-bottom: -2em!important;
    }

    .etablissement-actualites{
    padding-left: 1em!important;
    padding-right: 1em!important;
    }

    .etablissement-telechargements{
    padding-left: 1em!important;
    padding-right: 1em!important;
    }
}


.etablissement-infos-pratiques > p:nth-child(1) > strong:nth-child(1){
    color: #464949;
}


.etablissement-infos-pratiques > p:nth-child(2) > strong:nth-child(1){
    color: #464949;  
}


.etablissement-infos-pratiques > p:nth-child(3) > strong:nth-child(1){
      color: #464949;  
}

/* ============================================
   HEADER COLORÉ SELON LE TYPE D'ÉTABLISSEMENT
   ============================================ */

/* SESSAD - Violet #826397 */
body.type-sessad .ast-primary-header-bar,
body.type-sessad #masthead,
body.type-sessad .ast-main-header-wrap,
body.type-sessad .main-header-bar,
body.type-sessad .sub-menu,
body.type-sessad #sub-menu,
body.type-sessad #menu-item-16 > .sub-menu,
body.type-sessad #menu-item-16 > .sub-menu .menu-item,
body.type-sessad #menu-item-16 > .sub-menu .menu-link,
body.type-sessad .main-header-menu .sub-menu,
body.type-sessad #ast-hf-menu-1-mobile,
body.type-sessad .ast-mobile-header-content {
    background-color: #826397 !important;
}
body.type-sessad .sub-menu a:hover,
body.type-sessad #sub-menu a:hover,
body.type-sessad #menu-item-16 > .sub-menu .menu-link:hover {
    background-color: #6a527a !important;
}

/* CMPP - Gris #93959c */
body.type-cmpp .ast-primary-header-bar,
body.type-cmpp #masthead,
body.type-cmpp .ast-main-header-wrap,
body.type-cmpp .main-header-bar,
body.type-cmpp .sub-menu,
body.type-cmpp #sub-menu,
body.type-cmpp #menu-item-16 > .sub-menu,
body.type-cmpp #menu-item-16 > .sub-menu .menu-item,
body.type-cmpp #menu-item-16 > .sub-menu .menu-link,
body.type-cmpp .main-header-menu .sub-menu,
body.type-cmpp #ast-hf-menu-1-mobile,
body.type-cmpp .ast-mobile-header-content {
    background-color: #93959c !important;
}
body.type-cmpp .sub-menu a:hover,
body.type-cmpp #sub-menu a:hover,
body.type-cmpp #menu-item-16 > .sub-menu .menu-link:hover {
    background-color: #7a7c82 !important;
}

/* CAMSP - Vert #7dc1b8 */
body.type-camsp .ast-primary-header-bar,
body.type-camsp #masthead,
body.type-camsp .ast-main-header-wrap,
body.type-camsp .main-header-bar,
body.type-camsp .sub-menu,
body.type-camsp #sub-menu,
body.type-camsp #menu-item-16 > .sub-menu,
body.type-camsp #menu-item-16 > .sub-menu .menu-item,
body.type-camsp #menu-item-16 > .sub-menu .menu-link,
body.type-camsp .main-header-menu .sub-menu,
body.type-camsp #ast-hf-menu-1-mobile,
body.type-camsp .ast-mobile-header-content {
    background-color: #7dc1b8 !important;
}
body.type-camsp .sub-menu a:hover,
body.type-camsp #sub-menu a:hover,
body.type-camsp #menu-item-16 > .sub-menu .menu-link:hover {
    background-color: #5fa89e !important;
}


/* Conteneur principal — autoriser le débordement */
#metaslider-id-716,
#metaslider_container_716,
#metaslider_716 {
   height: 125px !important;        
    max-height: 125px !important;   
    overflow: visible !important;
}

/* Viewport — coupe les images */
#metaslider_716 .flex-viewport {
      height: 125px !important;       
    max-height: 125px !important;   
    overflow: visible !important;
}

/* Chaque slide */
#metaslider_716 .slides li {
     height: 125px !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: white !important;
    overflow: visible !important;
}

/* Les images — toutes au même cadre */
#metaslider_716 .slides li img.msDefaultImage {
   width: 140px !important;       
    height: 90px !important;       
    max-width: 140px !important;   
    max-height: 90px !important;    
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
    background: white !important;
    padding: 15px !important;
}

.metaslider.ms-theme-databold .flexslider .flex-direction-nav li a{
    background-color:#1E4F8C!important;
}

/*MAsquer le bouton play/pause du slider partenaire*/
.flexslider .flex-pauseplay .flex-pause {
background: none!important;

}

#metaslider-id-716 .flexslider .flex-pauseplay a::before {
display: none!important;
}


#metaslider-id-716{
   background-color: white !important; 
}


/* MECS - Rose/Magenta #E5005B */
body.type-mecs .ast-primary-header-bar,
body.type-mecs #masthead,
body.type-mecs .ast-main-header-wrap,
body.type-mecs .main-header-bar,
body.type-mecs .sub-menu,
body.type-mecs #sub-menu,
body.type-mecs #menu-item-16 > .sub-menu,
body.type-mecs #menu-item-16 > .sub-menu .menu-item,
body.type-mecs #menu-item-16 > .sub-menu .menu-link,
body.type-mecs .main-header-menu .sub-menu,
body.type-mecs #ast-hf-menu-1-mobile,
body.type-mecs .ast-mobile-header-content {
    background-color: #E5005B !important;
}
body.type-mecs .sub-menu a:hover,
body.type-mecs #sub-menu a:hover,
body.type-mecs #menu-item-16 > .sub-menu .menu-link:hover {
    background-color: #b80048 !important;
}

/* EMAS - Bleu foncé #144986 */
body.type-emas .ast-primary-header-bar,
body.type-emas #masthead,
body.type-emas .ast-main-header-wrap,
body.type-emas .main-header-bar,
body.type-emas .sub-menu,
body.type-emas #sub-menu,
body.type-emas #menu-item-16 > .sub-menu,
body.type-emas #menu-item-16 > .sub-menu .menu-item,
body.type-emas #menu-item-16 > .sub-menu .menu-link,
body.type-emas .main-header-menu .sub-menu,
body.type-emas #ast-hf-menu-1-mobile,
body.type-emas .ast-mobile-header-content {
    background-color: #144986 !important;
}
body.type-emas .sub-menu a:hover,
body.type-emas #sub-menu a:hover,
body.type-emas #menu-item-16 > .sub-menu .menu-link:hover {
    background-color: #0e3563 !important;
}

/* UEEA - Rose clair #E6B9C9 */
body.type-ueea .ast-primary-header-bar,
body.type-ueea #masthead,
body.type-ueea .ast-main-header-wrap,
body.type-ueea .main-header-bar,
body.type-ueea .sub-menu,
body.type-ueea #sub-menu,
body.type-ueea #menu-item-16 > .sub-menu,
body.type-ueea #menu-item-16 > .sub-menu .menu-item,
body.type-ueea #menu-item-16 > .sub-menu .menu-link,
body.type-ueea .main-header-menu .sub-menu,
body.type-ueea #ast-hf-menu-1-mobile,
body.type-ueea .ast-mobile-header-content {
    background-color: #E6B9C9 !important;
}
body.type-ueea .sub-menu a:hover,
body.type-ueea #sub-menu a:hover,
body.type-ueea #menu-item-16 > .sub-menu .menu-link:hover {
    background-color: #d59aae !important;
}

/* UEMA - Bleu moyen #35599B */
body.type-uema .ast-primary-header-bar,
body.type-uema #masthead,
body.type-uema .ast-main-header-wrap,
body.type-uema .main-header-bar,
body.type-uema .sub-menu,
body.type-uema #sub-menu,
body.type-uema #menu-item-16 > .sub-menu,
body.type-uema #menu-item-16 > .sub-menu .menu-item,
body.type-uema #menu-item-16 > .sub-menu .menu-link,
body.type-uema .main-header-menu .sub-menu,
body.type-uema #ast-hf-menu-1-mobile,
body.type-uema .ast-mobile-header-content {
    background-color: #35599B !important;
}
body.type-uema .sub-menu a:hover,
body.type-uema #sub-menu a:hover,
body.type-uema #menu-item-16 > .sub-menu .menu-link:hover {
    background-color: #294677 !important;
}






/* ============================================
   CORRECTION - ESPACE BLANC APRÈS LE FOOTER
   ============================================ */

/* 1. Forcer le footer à être tout en bas */
#colophon {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    position: relative !important;
}

/* 2. Supprimer les marges/paddings qui créent l'espace blanc */
.site-footer {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.ast-footer-overlay {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 3. Nettoyer les flottants */
.site-content {
    overflow: hidden !important;
    clear: both !important;
}

/* 4. Supprimer les espaces supplémentaires des widgets footer */
.footer-widget-area {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 5. S'assurer que le body n'a pas de marge en bas */
body {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

/* 6. Le conteneur principal doit prendre toute la hauteur */
#page {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

/* 7. Le contenu pousse le footer en bas */
#content {
    flex: 1 0 auto !important;
}

/* 8. Supprimer les paddings du footer qui créent du vide */
.ast-footer-copyright {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 9. Nettoyer les derniers éléments du footer */
.site-footer-below-section-1 {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 10. Supprimer la marge du dernier élément du footer */
.site-footer-below-section-1 > *:last-child {
    margin-bottom: 0 !important;
}












/* ============================================
   OFFRES D'EMPLOI
   ============================================ */

.offres-emploi-page {
    padding: 40px 0;
}

/* Formulaire recherche */
.offres-recherche {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 35px;
    align-items: center;
}

.offres-recherche input,
.offres-recherche select {
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.95rem;
    flex: 1;
    min-width: 180px;
}

.offres-recherche button {
    padding: 10px 25px;
    background: #1E4F8C;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.offres-recherche button:hover {
    background: #163a66;
}

.offres-recherche a {
    color: #666;
    font-size: 0.9rem;
    text-decoration: underline;
}

/* Grille des offres */
.offres-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.offre-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.offre-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    border-color: #1E4F8C;
}

.offre-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.offre-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #212529;
}

.offre-badge {
    background: #1E4F8C;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.offre-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #666;
}

.btn-voir-offre {
    display: inline-block;
    color: #1E4F8C;
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
}

.btn-voir-offre:hover {
    text-decoration: underline;
}

/* Pagination */
.offres-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.offres-pagination .page-numbers {
    padding: 8px 14px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #1E4F8C;
    text-decoration: none;
}

.offres-pagination .page-numbers.current {
    background: #1E4F8C;
    color: white;
    border-color: #1E4F8C;
}

/* Page détail offre */
.single-offre-emploi {
    padding: 40px 0;
}

.offre-retour {
    display: inline-block;
    color: #666;
    text-decoration: none;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.offre-retour:hover {
    color: #1E4F8C;
}

.offre-detail-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e9ecef;
}

.offre-detail-header h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.offre-detail-contenu {
    line-height: 1.9;
    color: #333;
    margin-bottom: 40px;
}

.offre-fichier {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
}

.btn-telecharger-offre {
    display: inline-block;
    background: #1E4F8C;
    color: white !important;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
}

.btn-telecharger-offre:hover {
    background: #163a66;
}

/* Mobile */
@media (max-width: 768px) {
    .offres-recherche {
        flex-direction: column;
    }
    .offres-recherche input,
    .offres-recherche select,
    .offres-recherche button {
        width: 100%;
    }
    .offres-grid {
        grid-template-columns: 1fr;
    }
    .offre-detail-header h1 {
        font-size: 1.5rem;
    }
}





/* Contact de candidature — mise en valeur */
.offre-contact {
    background: #f0f5fb;
    border-left: 4px solid #1E4F8C;
    border-radius: 8px;
    padding: 25px !important;
    margin-top: 30px;
}

.offre-contact h2 {
    color: #1E4F8C;
}

/* Sections offre détail */
.offre-section {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.offre-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #212529;
}

.offre-section-contenu {
    line-height: 1.9;
    color: #333;
}

.offre-section-contenu ul {
    padding-left: 20px;
    margin: 10px 0;
}

.offre-section-contenu li {
    margin-bottom: 6px;
}

.offre-meta span {
    cursor: help;
    display: inline-block;
}

.offre-meta span:hover {
    opacity: 0.85;
}


/* ============================================
   FICHIER JOINT - PETIT FORMAT
   ============================================ */

.offre-fichier-offre {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-top: 20px;
    max-width: 400px;
    transition: all 0.3s ease;
}

.offre-fichier-offre:hover {
    background: #f0f5fb;
    border-color: #1E4F8C;
}

.offre-fichier-offre-icon {
    flex-shrink: 0;
    font-size: 28px;
    line-height: 1;
    width: 40px;
    text-align: center;
}

.offre-fichier-offre-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.fichier-nom {
    font-weight: 600;
    color: #212529;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fichier-ext {
    background: #e9ecef;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
}

.fichier-lien {
    color: #1E4F8C;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background: rgba(30, 79, 140, 0.08);
}

.fichier-lien:hover {
    background: #1E4F8C;
    color: #ffffff;
    text-decoration: none;
}

/* Version mobile */
@media (max-width: 768px) {
    .offre-fichier-offre {
        max-width: 100%;
        padding: 10px 15px;
        flex-wrap: wrap;
    }
    
    .offre-fichier-offre-info {
        font-size: 0.8rem;
        gap: 8px;
    }
    
    .fichier-nom {
        max-width: 120px;
        font-size: 0.8rem;
    }
    
    .fichier-lien {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
}









/* ============================================
   FICHIER JOINT - AVEC APERÇU IMAGE AMÉLIORÉ
   ============================================ */

.offre-fichier-offre {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    margin-top: 20px;
    max-width: 500px;
    transition: all 0.3s ease;
}

.offre-fichier-offre:hover {
    background: #f0f5fb;
    border-color: #1E4F8C;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Conteneur de l'icône/aperçu */
.offre-fichier-offre-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e9ecef;
    padding: 8px;
}

/* Aperçu de l'image - Version améliorée */
.fichier-image-preview {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
    cursor: pointer;
    object-fit: contain;
}

.fichier-image-preview:hover {
    transform: scale(1.08);
}

/* Icônes pour les autres fichiers */
.fichier-icon {
    font-size: 36px;
    line-height: 1;
}

/* Informations du fichier */
.offre-fichier-offre-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    flex: 1;
}

.fichier-nom {
    font-weight: 600;
    color: #212529;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fichier-ext {
    background: #e9ecef;
    padding: 2px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
}

.fichier-lien {
    color: #1E4F8C;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(30, 79, 140, 0.08);
    margin-left: auto;
    white-space: nowrap;
}

.fichier-lien:hover {
    background: #1E4F8C;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 79, 140, 0.3);
}

/* Version mobile */
@media (max-width: 768px) {
    .offre-fichier-offre {
        max-width: 100%;
        padding: 12px 15px;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .offre-fichier-offre-icon {
        width: 70px;
        height: 70px;
    }
    
    .fichier-icon {
        font-size: 28px;
    }
    
    .offre-fichier-offre-info {
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .fichier-nom {
        max-width: 120px;
        font-size: 0.8rem;
    }
    
    .fichier-lien {
        font-size: 0.75rem;
        padding: 4px 12px;
        margin-left: 0;
    }
}







/* ============================================
   PAGE ORGANISATION - PHOTOS
   ============================================ */




.organisation-page .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.organisation-groupe {
    margin-bottom: 40px;
}

.membres-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 20px;
}

.membre-card {
    width: 110px;
    text-align: center;
}

.membre-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.membre-nom {
    font-weight: 600;
    font-size: 13px;
    margin: 0;
}

.membre-fonction {
    font-size: 12px;
    color: #555;
    margin: 2px 0 0;
}