/*
Theme Name: Divi Community Child Theme
Description: Theme enfant de Divi par Divi Community
Author: Julien - WebMate
Author URI: https://www.divi-community.fr
Template: Divi
Version: 1.1
*/

/*
  ____ _____     _____      ____ ___  __  __ __  __ _   _ _   _ ___ _______   __
 |  _ \_ _\ \   / /_ _|    / ___/ _ \|  \/  |  \/  | | | | \ | |_ _|_   _\ \ / /
 | | | | | \ \ / / | |    | |  | | | | |\/| | |\/| | | | |  \| || |  | |  \ V /
 | |_| | |  \ V /  | |    | |__| |_| | |  | | |  | | |_| | |\  || |  | |   | |
 |____/___|  \_/  |___|    \____\___/|_|  |_|_|  |_|\___/|_| \_|___| |_|   |_|

*/


/* 
** 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%;
}

/* --- ACCESSIBILITY FIXES --- */

/* Fix: Global Navigation Contrast (Audit recommended #1d59a2 to meet 4.5:1 ratio) */
#top-menu li > a, 
.et_mobile_menu li > a {
    color: #1d59a2 !important; 
}

/* Fix: Team Members Plugin Job Title Contrast (AAA Level requires absolute black) */
.tmm_plugin_f .tmm_job,
.tmm_job {
    color: #111111 !important;
}

/* Fix: Agendas & Minutes Table Content Contrast (FriendlyCaptcha Level AAA requires pure black against custom bgcolor) */
.et_pb_section table,
.et_pb_section table p,
.et_pb_section table span,
.et_pb_section table td,
.et_pb_section table th,
.et_pb_section table strong,
.et_pb_section table b {
    color: #111111 !important;
}

/* Fix: Active Menu Item Contrast (FriendlyCaptcha Level AA) */
#top-menu li.current-menu-item > a, 
.et_mobile_menu li.current-menu-item > a {
    color: #1d59a2 !important;
}

/* Fix: Top Header Contact Info Contrast (FriendlyCaptcha Level AAA) 
   Darkens the default light blue background to pass strict AAA rating */
#top-header {
    background-color: #16406f !important; 
}

/* --- FRIENDLYCAPTCHA WCAG 3.0 LEVEL AAA STRICT OVERRIDES --- */
/* The scanner uses a brutal 7:1 contrast ratio threshold (much higher than the legal 4.5:1 AA standard) */

/* 1 & 2. Ultra-Dark Top Header */
#et-info-phone, #et-info-email { color: #ffffff !important; }

/* Force the entire header background to be Ultra-Dark Navy to guarantee 7:1 ratio against white text */
#main-header, .et_nav_text_color_light #main-header {
    background-color: #16406f !important; 
}

/* 3 to 10. Force all Menu text and background to pass 7:1 locally on the a-node */
#top-menu li > a, 
.et_mobile_menu li > a, 
#top-menu li.current-menu-item > a, 
.et_mobile_menu li.current-menu-item > a,
ul[id^="menu-"] li a,
ul#menu-main-menu li a,
.select_page {
    color: #ffffff !important; 
    background-color: #16406f !important;
}

/* 11, 12, 13. Ultra-Dark Anchor Text inside Strong tags */
strong > a, p > a > strong, span > a > strong {
    color: #16406f !important;
}

/* 14, 15, 16. Ultra-Dark Divi Buttons */
.et_pb_button_0, .et_pb_button_1, .et_pb_button_2, .et_pb_button {
    color: #16406f !important;
}

/* 17. Ultra-Dark Footer */
#footer-info { 
    color: #ffffff !important; 
    background-color: #16406f !important; 
    padding: 10px;
}