/*
Theme Name: Divi Child Theme
Description: Theme enfant de Divi
Author: 
Author URI: 
Template: Divi
Version: 1.2
*/


/* 
** CENTRER DU CONTENU VERTICALEMENT 
** Voir tuto : https://www.divi-community.fr/snippets-divi/centrer-du-contenu-verticalement
*/

.dc-centrer-verticalement {
	display: flex;
	flex-direction: column;
	justify-content: center;
  	display: -webkit-box;
	display: -webkit-flex;
	display: -moz-box;
	display: -ms-flexbox;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-webkit-flex-direction: column;
	 -moz-box-orient: vertical;
	 -moz-box-direction: normal;
	  -ms-flex-direction: column;
	-webkit-box-pack: center;
	-webkit-justify-content: center;
	-moz-box-pack: center;
	-ms-flex-pack: center;
}


/*
** INVERSER LE SENS DES COLONNES SUR MOBILE
** Voir tuto : https://www.divi-community.fr/snippets-divi/inverser-ordre-des-colonnes-sur-mobile
*/

@media only screen and (max-width : 980px) {
	.dc-inverser-colonnes--section .dc-inverser-colonnes--ligne {
		display: -webkit-flex;
		display: -ms-flex;
		display: flex;
		-webkit-flex-direction: column-reverse;
		-ms-flex-direction: column-reverse;
		flex-direction: column-reverse;
	}
}


/*
** MENU MOBILE : en pleine largeur et le hamburger devient une croix pour fermer
*/

.et_mobile_menu {
	margin-left: -30px;
	padding: 5%;
	width: calc( 100% + 60px);
}

.mobile_nav.opened .mobile_menu_bar:before {
	content: "\4d";
}


/* 
** AUGMENTER LA LARGEUR CHAMP RÉSULTAT CAPTCHA 
** Parfois, suivant la taille du texte, certains chiffres du résultat sont masqués
*/
.et_pb_contact_right p input {
	max-width: 50px;
}


/*
** METTRE EXPOSANTS ET INDICES À LA BONNE TAILLE
** Généralement, ils sont bien trop gros…
*/
sup, sub {
    font-size: 70%;
}

/*Styles pour le Glossaire CPT*/
.glossaire-nav a.lettre-active {
    color: #002B7F;
    padding: 6px 12px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
}
.glossaire-nav a.lettre-active:hover {
    background: #002B7F;
    color: white;
}
.glossaire-nav span.lettre-inactive {
    color: #ccc;
    padding: 6px 12px;
}
.glossaire-separateur {
    font-size: 22px;
    font-weight: 700;
    color: #002B7F;
    border-bottom: 1px solid #002B7F;
    padding-bottom: 8px;
    margin: 30px 0 15px 0;
}

/*PUCES DIVI MODIFIÉES*/
/*-------------Style des listes à puces-------------*/
.et_pb_text ul li,
.et_pb_blurb ul li,
.terme-glossaire ul li {
    list-style-type: none;
    padding-left: 1.8em;
    position: relative;
    margin-bottom: 10px;
}

.et_pb_text ul li::before,
.et_pb_blurb ul li::before,
.terme-glossaire ul li::before {
    font-family: 'ETmodules';
    content: "\24";
    font-size: 120%;
    color: #002B7F;
    position: absolute;
    left: 0;
    top: 2px;
}

/*correction des items du mega menu pour que defense (qui n'a pas d'enfant) soit en capital aussi */
.df-normal-menu-wrap .df-menu-wrap .df-mega-menu .sub-menu > .col > li.menu-item > a {
    text-transform: uppercase !important;
    font-weight: bold !important;
    font-size:13px;
    color:#000f6e;
}

/*module plan de site*/
.solsi-sitemap-col {
    max-width: 100%;
}

.solsi-sitemap-title {
    color: #0a1f6e; /* votre bleu de marque, ajustez si besoin */
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #0a1f6e;
}

.solsi-sitemap-title a {
    color: inherit;
    text-decoration: none;
}

.solsi-sitemap-title a:hover {
    text-decoration: underline;
}

.solsi-sitemap-list {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.solsi-sitemap-list li {
    border-bottom: 1px solid #e5e5e5;
    padding: 0;
}

.solsi-sitemap-list li:last-child {
    border-bottom: none;
}

.solsi-sitemap-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 4px;
    color: #333;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.solsi-sitemap-list li a::before {
    content: "→";
    color: #0a1f6e;
    font-size: 14px;
    flex-shrink: 0;
}

.solsi-sitemap-list li a:hover {
    color: #0a1f6e;
    padding-left: 8px;
}

/*CPT divi flash filtres, pour que les boutons soient alignes*/
.df-cpt-item.df-equal-height {
    display: flex !important;
    flex-direction: column;
}

.df-cpt-item.df-equal-height .df-cpt-outer-wrap {
    display: flex !important;
    flex-direction: column;
    flex: 1;
}

.df-cpt-item.df-equal-height .df-cpt-inner-wrap {
    display: flex !important;
    flex-direction: column;
    flex: 1;
}

.df-cpt-item.df-equal-height .df-cpt-button-wrap {
    margin-top: auto !important;
}
/* ==========================================================================
   PAGE DE RÉSULTATS DE RECHERCHE
   ========================================================================== */

/* Conteneur de chaque résultat */
.search .et_pb_post {
    position: relative;
    padding-bottom: 5px;
    margin-bottom: 5px;
    border-bottom: 1px solid #e5e5e5;
    transition: background-color .2s ease;
}

/* Supprime le trait sous le dernier résultat */
.search .et_pb_post:last-child {
    border-bottom: none;
}

/* Fond gris au survol de toute la ligne */
.search .et_pb_post:hover {
    background-color: #f7f8fa;
    cursor: pointer;
}


/* ==========================================================================
   TITRE DES RÉSULTATS
   ========================================================================== */

/* Espacement du titre */
.search .et_pb_post .entry-title {
    position: relative;
    margin-bottom: 15px;
    padding-left: 18px;
}

/* Barre verticale bleue à gauche du titre */
.search .et_pb_post .entry-title {
    border-left: 4px solid #000f6e;
}


/* ==========================================================================
   FORMULAIRE DE RECHERCHE
   ========================================================================== */

/* Bouton "Rechercher" */
.search .et_pb_search input.et_pb_searchsubmit {
    background: #000f6e !important;
    color: #fff !important;
    border: 1px solid #000f6e !important;
    transition: background-color .25s ease,
                border-color .25s ease;
}

/* Bouton au survol */
.search .et_pb_search input.et_pb_searchsubmit:hover {
    background: #F3A712 !important;
    border-color: #F3A712 !important;
    cursor: pointer;
}
/* ==========================================================================
   PUCES DANS LE CONTENU DES ACTUALITÉS
   Même apparence que les puces globales Divi
   ========================================================================== */

/* Supprime l'indentation et les puces natives de la liste */
.single-post .et_pb_post_content ul {
    list-style: none !important;
    padding-left: 0 !important;
}

/* Mise en forme de chaque élément de liste */
.single-post .et_pb_post_content ul > li {
    position: relative;
    list-style: none !important;
    padding-left: 1.8em !important;
    margin-bottom: 10px;
}

/* Supprime explicitement la puce native du navigateur */
.single-post .et_pb_post_content ul > li::marker {
    content: "";
}

/* Ajoute la même icône que tes puces globales */
.single-post .et_pb_post_content ul > li::before {
    content: "\24";
    font-family: "ETmodules" !important;
    font-size: 120%;
    font-weight: normal;
    color: #002B7F;
    position: absolute;
    left: 0;
    top: 2px;
    line-height: 1;
}
