/*
 Theme Name:   IEDM
 Theme URI:    https://iedm.asso.fr
 Description:  Thème enfant Divi pour IEDM
 Author:       M Taqarort
 Author URI:   https://iedm.asso.fr
 Template:     Divi
 Version:      1.0.0
*/

/* =========================
   CSS personnalisé IEDM
   ========================= */

/* =========================
   TEXTE GLOBAL
========================= */
body {
  color: #4d4d4d;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
}

/* Paragraphes */
p {
  margin-bottom: 1rem;
}

/* =========================
   TITRES
========================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Oswald', sans-serif !important;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.2;
}

/* H1 */
h1 {
  font-size: 50px;
  text-transform: uppercase;
  text-align: left;
}

/* H2 */
h2 {
  font-size: 32px;
  color: #000 !important;
  margin-top: 30px;
}

/* H3 */
h3 {
  font-size: 23px;
  color: #79c046 !important;
}

@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
}

/* =========================
   BOUTONS (Divi + Woo)
========================= */
.et_pb_button,
button,
input[type="submit"],
input[type="button"] {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


/* =========== Header ==============*/
.menu-user-vertical ul {
    display: flex;
    flex-direction: column;
}

.menu-user-vertical ul li {
    margin-bottom: 10px;
}
.menu-red{
    color: #ff3b30;
}
.divi-cart-only {
    position: relative;
    display: inline-block;
    color: #fff; 
    text-decoration: none;
}

/* Icône panier */
.divi-cart-only::before {
    font-family: 'ETmodules';
    content: "\e07a"; 
    font-size: 28px; 
    color: #ffffff;
}

/* Compteur */
.divi-cart-only .count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #ff3b30;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 50%;
}

 /* =========== Blog iedm ==============*/

.blogsiedm {
  
  border-radius: 8px;
  text-align: left;
  position: relative;
  padding: 0px 25px 25px 25px;
  background-color:#ffffff ;
  margin-top: 50px;
}
/* Paragraphe blocs iedm */
.blogsiedm p {
   margin-bottom: 0;
    font-weight: 400;
    font-style: normal;
    font-size: 15px;
    line-height: 160%;
    letter-spacing: 0;
}
/* Titres blocs iedm */
.blogsiedm h4 {
  display: inline-block;
  border-radius: 0px;
  margin-top: 0 !important;
  margin-bottom: 1rem;
  line-height: 1.2;
  padding: 20px 30px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  text-transform: none;
  font-size: 24px;
  font-family: 'Oswald';
}

.blogsiedm h2 {
  font-size: 20px;
  text-transform: none;	
  font-family: 'Montserrat' !important;;
}

.blogsiedm h4:after , .blogsiedm h2:after {
  background: none !important;
  content: none !important;
}

.blogsiedm ul li {
	background:none;
    list-style: disc;
	padding-left: 5px;
}
/* ===  bloc "bwhb" === */	
.blogsiedm.bwhbh2 h4 ,.blogsiedm.bwhbh3 h4{
  background-color: #0073aa;
  color :#ffffff !important;
}

.blogsiedm.bwhbh2.small, .blogsiedm.byhw.small,.blogsiedm.bbhw.small {
	width: 80%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.blogsiedm.bwhbh2 h2,.blogsiedm.bwhbh3 h3, .application h2 {
  color: #0073aa !important;
    font-size: 20px;
    text-transform: none;
    font-weight: 700;
    font-style: normal;
    line-height: 140%;
    letter-spacing: 0;
    margin: 0;
	font-family: 'Montserrat', sans-serif !important;
  	
}
.blogsiedm.bwhbh3 h2 {
  color: #424242 !important;
    text-transform: none;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700;
    font-style: normal;
    font-size: 28px;
    line-height: 120%;
    letter-spacing: 0;
    text-align: center;
    margin: 0;  
}

.blogsiedm.bwhbh2 h4, .blogsiedm.bwhbh3 h4 {
  color: #0073aa;
  font-weight:600;
}

.bwhbh2 table,
.bwhbh2 th,
.bwhbh2 td {
  border: none;
}

.bwhbh2 table th {
  background-color: #fff;
  color: #CB5245;          
  font-weight: 700;      
  padding: 10px;
  border: none;
}
.bwhbh2 .wp-block-table thead {
    border-bottom: 0px solid;
}
.bwhbh2 table td {
  padding: 10px;
  border: none;
}

.bwhbh2 table tr {
  border: none;
}

.bwhbh2 .link-eye {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  text-indent: -9999px;      
  overflow: hidden;
  background: url("img/oeil.png") center / contain no-repeat;
}

/*Tableau sur mobile */

@media (max-width: 768px) {

  /* On cache le header */
  .bwhbh2 .wp-block-table thead {
    display: none;
  }

  /* Transformation en blocs */
  .bwhbh2 .wp-block-table table,
  .bwhbh2 .wp-block-table tbody,
  .bwhbh2 .wp-block-table tr,
  .bwhbh2 .wp-block-table td {
    display: block;
    width: 100%;
  }

  /* Chaque ligne devient une carte */
  .bwhbh2 .wp-block-table tr {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 18px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.06);
  }

  /* Structure 2 colonnes (label / contenu) */
  .bwhbh2 .wp-block-table td {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    align-items: start;
    padding: 10px 0;
  }

  /* Empêche les coupures bizarres */
  .bwhbh2 .wp-block-table td {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  /* Style des labels */
  .bwhbh2 .wp-block-table td::before {
    font-weight: 700;
    color: #CB5245;
    line-height: 1.2;
  }

  /* Libellés par colonne */
  .bwhbh2 .wp-block-table td:nth-child(1)::before { content: "Année"; }
  .bwhbh2 .wp-block-table td:nth-child(2)::before { content: "Origine"; }
  .bwhbh2 .wp-block-table td:nth-child(3)::before { content: "Résultats clés / Impact"; }
  .bwhbh2 .wp-block-table td:nth-child(4)::before { content: "Lien"; }

}



/* Background transparent du bloc principal */
.blogsiedmapplication {
  background: transparent;
  margin-top: 30px;	
}

/* Container des 3 colonnes */
.application {
  gap: 30px; 
  margin-right: -25px;
  margin-left: -25px;	
}

/* Chaque colonne devient un bloc blanc */
.application .wp-block-column {
  background: #ffffff;
  padding: 30px 25px;
  border-radius: 12px; 
  box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
}

/* Centrer les images */
.application .wp-block-image {
  text-align: center;
}

.application .wp-block-image img {
  display: block;
  margin: 0 auto;
}


.blogsiedm.bwhb img {
  display: block;               
  margin: 1rem auto;           
  max-width: 100%;              
  height: auto;                 
  border-radius: 8px;           
}

.blogsiedm .wp-block-buttons {
  display: flex;
  justify-content: center; 
}

.blogsiedm .wp-block-button__link {
  font-size: 19px !important;
  padding: 20px 30px !important;
}

.blogsiedm.bwhb .wp-block-button__link {
  background-color: #0073aa; 
  color: #ffffff;
  display: block;        
  margin: 20px auto;     
  text-align: center;     
  width: fit-content;  
}

/* ===  bloc "bwhg" === */
.blogsiedm.bwhg h4 {
  background-color: #79c046;
  color :#ffffff !important;
}


.blogsiedm.bwhg h2 {
  color :#79c046 !important;
  font-size: 20px;
  text-transform: none;
}

.blogsiedm.bwhg img {
  display: block;
  margin: 0 auto;
  max-width: 500px !important;
  width: 100%;
  height: auto;
}

.blogsiedm.bwhg .wp-block-button__link {
  background-color: #79c046; 
  color: #ffffff;
  display: block;        
  margin: 20px auto;     
  text-align: center;     
  width: fit-content;  
}


/* bloc "bwhr" === */
.blogsiedm.bwhr h4 {
  background-color: #ae216d; 
  color :#ffffff !important;
}
.blogsiedm.bwhr h2 {
    color: #ae216d !important;
}

.blogsiedm.bwhr th {
  background-color: #ae216d; 
  color: #ffffff; 
  padding: 12px 15px;
  font-weight: 600;
  text-align: left;
}

.blogsiedm.bwhr .wp-block-button__link {
  background-color: #ae216d; 
  color: #ffffff;
  display: block;        
  margin: 20px auto;     
  text-align: center;     
  width: fit-content;     
}


/* ===  bloc "byhw" === */	

.blogsiedm.byhw {
    background-color: #FFD966; 
    background-image: url("https://iedm.asso.fr/wp-content/uploads/2025/12/filagrane-bandeaux.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover; 
}

.blogsiedm.byhw h4 {
  background-color: #ffffff;
  color :#000000 !important;
}
.blogsiedm.byhw h3,.blogsiedm.byhw p {
  color :#000000 !important;
}
.byhw img.alignleft { 
  margin-right: 1.5em; 
  margin-bottom: 0.5em; 
}

/* ===  bloc "bbhw" === */	

.blogsiedm.bbhw {
    background-color: #97B7CC; 
    background-image: url("https://iedm.asso.fr/wp-content/uploads/2025/12/filagrane-bandeaux.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover; 
}

.blogsiedm.bbhw h4 {
  background-color: #ffffff;
  color :#000000 !important;
}
.blogsiedm.bbhw,
.blogsiedm.bbhw p,
.blogsiedm.bbhw a,
.blogsiedm.bbhw ol,
.blogsiedm.bbhw li {
  color: #000 !important;
}

/* ===  bloc "brhw" === */	
.blogsiedm.brhw {
  background-color:#ae216d ;
}
.blogsiedm.brhw h4 {
  background-color: #ffffff;
  color :#000000 !important;
}
.blogsiedm.brhw,
.blogsiedm.brhw p,
.blogsiedm.brhw a,
.blogsiedm.brhw ol,
.blogsiedm.brhw li {
  color: #000 !important;
}

/* boutique */
/* ======================================================
   CARTES FORMATIONS – WooCommerce (Divi compatible)
   Images 16:9 (1200x675)
   ====================================================== */

/* ===== Carte globale ===== */
.woocommerce ul.products li.product .idem-formation-card{
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}

.woocommerce ul.products li.product .idem-formation-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.16);
}

/* ===== Bloc image produit (ratio 16:9) ===== */
.woocommerce ul.products li.product .idem-media{
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f4f4f4;
}

.woocommerce ul.products li.product .idem-media-link{
  display: block;
  width: 100%;
  height: 100%;
}

.woocommerce ul.products li.product .idem-media-link img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Photo intervenant (ronde, centrée bas image) ===== */
.woocommerce ul.products li.product .idem-intervenant{
  position: absolute;
  left: 50%;
  bottom: -32px;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 3;
}

.woocommerce ul.products li.product .idem-intervenant img{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

/* ===== Contenu carte ===== */
.woocommerce ul.products li.product .idem-body{
  padding: 40px 18px 18px; 
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ===== Ligne durée / prix ===== */
.woocommerce ul.products li.product .idem-meta-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 15px;
  color: #777;
}

.woocommerce ul.products li.product .idem-length{
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.woocommerce ul.products li.product .idem-price{
  white-space: nowrap;
  font-weight: 500;
}

/* ===== Animateur ===== */
.woocommerce ul.products li.product .idem-animateur{
  text-align: center;
  color: #c9c9c9;
  font-size: 16px;
  margin: 6px 0 14px;
  min-height: 22px;
}

/* ===== Description courte ===== */
.woocommerce ul.products li.product .idem-desc{
  color: #222;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;  
  overflow: hidden;
  min-height: auto;       
}

/* ===== Bouton ===== */
.woocommerce ul.products li.product .idem-cta{
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
}

.woocommerce ul.products li.product .idem-btn{
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid #79c143;
  color: #79c143;
  text-decoration: none;
  font-weight: 700;
  background: transparent;
  transition: all .15s ease;
}

.woocommerce ul.products li.product .idem-btn:hover{
  background: #79c143;
  color: #ffffff;
}


/* ===== Responsive ===== */
@media (max-width: 980px){
  .woocommerce ul.products li.product .idem-desc{
    min-height: auto;
  }
}

@media (max-width: 767px){
  .woocommerce ul.products li.product .idem-intervenant{
    width: 56px;
    height: 56px;
    bottom: -26px;
  }

  .woocommerce ul.products li.product .idem-intervenant img{
    width: 48px;
    height: 48px;
  }

  .woocommerce ul.products li.product .idem-body{
    padding: 32px 16px 16px;
  }
}
/*  photo intervenan=== */
.woocommerce ul.products li.product .idem-media{
  overflow: visible; 
}

/* recadrage 16:9 sur le lien (image) */
.woocommerce ul.products li.product .idem-media-link{
  overflow: hidden;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/* durée/prix/nom=== */
.woocommerce ul.products li.product .idem-intervenant{
  bottom: -24px; 
}

/* bloc texte sous l'image */
.woocommerce ul.products li.product .idem-body{
  padding-top: 32px; 
}


.woocommerce ul.products li.product .idem-meta-row{
  margin-bottom: 6px; 
}

/* ===== Variation des prix ===== */
.variations td.value span:after {
    display: none !important;
}
.woocommerce-variation-price {
    margin-bottom: 25px;
}
span.price {
    font-weight: 700;
    color: #ae216d !important;
    font-size: 26px !important;
}
a.reset_variations {
    display: none;
}

/* Page formation : programme, public, objetcifs, date */
.public h3,
.public strong {
  color: #0073aa !important;
}

.objectifs h3,
.objectifs strong {
  color: #79c046;
}

.programme h3,
.programme strong {
  color: #ae216d !important;
}

.date h3,
.date strong {
  color: #0073aa !important;
}


/* formulaires */
/* ======================================================
   formulaire divi – WooCommerce
   ====================================================== */

/* FORMULAIRES – Fond blanc + bordure */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
  background-color: #fff !important;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: none !important;
  color: #333;
}

/* Focus (quand on clique dedans) */
input:focus,
textarea:focus,
select:focus {
  border-color: #000;
  outline: none;
}

/* FORCE bordure sur TOUS les champs */
input,
textarea,
select {
  border: 1px solid #ccc !important;
  border-top: 1px solid #ccc !important;
  border-right: 1px solid #ccc !important;
  border-bottom: 1px solid #ccc !important;
  border-left: 1px solid #ccc !important;

  background-color: #fff !important;
  box-shadow: none !important;
}

/* ======================================================
   composants divi
   ====================================================== */
/* onglet */
.et_pb_tabs_controls {
    display: flex;
    justify-content: center;
    
}
ul.et_pb_tabs_controls {
    background-color: transparent;
}

/* ==============================
   FOOTER – MENUS VISIBLES EN MOBILE
   ============================== */

@media (max-width: 980px) {

  /* Afficher le menu "desktop" */
  .footer-custom .et_pb_menu__menu {
    display: block !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* Cacher complètement le menu mobile (hamburger) */
  .footer-custom .et_mobile_nav_menu {
    display: none !important;
  }

  /* Mise en forme des liens */
  .footer-custom .et-menu {
    display: flex;
    flex-direction: column;
  }

  .footer-custom .et-menu li {
    padding: 6px 0;
  }
}
@media (max-width: 767px) {

  /* Forcer le conteneur du menu à pleine largeur */
  .footer-custom .et_pb_menu__wrap {
    justify-content: flex-start !important;
    width: 100% !important;
  }

  /* Forcer le menu interne à occuper toute la largeur */
  .footer-custom .et_pb_menu__menu {
    width: 100% !important;
  }

  /* Annuler tout alignement hérité */
  .footer-custom nav.et-menu-nav {
    width: 100% !important;
  }

  .footer-custom ul.et-menu {
    width: 100% !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
  }
}
