/*
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%;
}

/* TYPO sur le contenu uniquement (pas header/footer) */
body.page #main-content,
body.page #main-content *,
body.single #main-content,
body.single #main-content *{
  font-family: 'Poppins', sans-serif !important;
}



/* =========================
   SWIPER (carrousel)
   ========================= */
.cdla-swiper .swiper-pagination-bullet-active{
  background: #69C5D7 !important;
}
.cdla-swiper .swiper-pagination-bullet{
  opacity: 1;
}
.cdla-swiper .swiper-slide{
  aspect-ratio: 16 / 9;
  height: auto !important;
}

.cdla-swiper .swiper-slide img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

/* =========================
   TABS (texte lisible)
   ========================= */
.et_pb_tabs .et_pb_tab_content,
.et_pb_tabs .et_pb_tab_content li,
.et_pb_tabs .et_pb_tab_content p{
  color:#000 !important;
  font-family:'Poppins', sans-serif;
  font-size:16px;
}
.et_pb_tabs .et_pb_tab_content strong{
  font-weight:700;
  color:#000;
}
.et_pb_tabs .et_pb_tab_content li{
  margin-bottom: 8px;
}

/* Ligne Marque / Modèle / Version */
.cdla-mmV-line{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin: 10px 0 18px;
  font-size:16px;
  line-height:1.3;
  color:#000;
}
.cdla-mmV-line .cdla-modele,
.cdla-mmV-line .cdla-version{
  font-weight:700;
}

/* Caractéristiques – 3 colonnes */
.cdla-carac-grid{
  display:flex;
  flex-wrap:wrap;
  gap:24px;
}
.cdla-carac-grid > .cdla-carac-list{
  flex: 1 1 calc(33.333% - 24px);
  min-width: 220px;
}
.cdla-carac-list{
  margin:0;
  padding-left:18px;
  list-style:disc;
}
.cdla-carac-list li{
  color:#000;
  font-size:15px;
  margin-bottom:8px;
}
.cdla-carac-list li strong{
  font-weight:700;
}

/* Responsive */
@media (max-width:980px){
  .cdla-carac-grid > .cdla-carac-list{ flex:1 1 calc(50% - 24px); }
}
@media (max-width:767px){
  .cdla-carac-grid > .cdla-carac-list{ flex:1 1 100%; }
}


/* =========================
   ÉQUIPEMENTS (SANS GRID)
   ========================= */

.cdla-equip-grid{
  display:flex;
  flex-wrap:wrap;
  gap:30px;
  margin-top:20px;
}

.cdla-equip-col{
  width: calc(25% - 22.5px);
}

@media (max-width: 980px){
  .cdla-equip-col{ width: calc(50% - 15px); }
}
@media (max-width: 767px){
  .cdla-equip-col{ width: 100%; }
}

/* Ligne CO2 */
/* ===========================
   CO2 – Ligne complète
=========================== */
.cdla-co2{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* valeur numérique */
.cdla-co2-value{
  font-weight: 400;
}

/* ===========================
   CO2 – Badge rond (FORCÉ)
=========================== */
.cdla-co2-badge{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;

  border-radius: 50% !important; /* ROND */
  font-weight: 800 !important;
  font-size: 13px !important;
  line-height: 1 !important;

  cursor: help !important;
  position: relative !important;
  text-align: center !important;
  vertical-align: middle !important;

  border: 1px solid rgba(0,0,0,.15) !important;
}

/* ===========================
   CO2 – Couleurs A → G
=========================== */
.cdla-co2-a{ background:#17b35b !important; color:#111 !important; }
.cdla-co2-b{ background:#8be04e !important; color:#111 !important; }
.cdla-co2-c{ background:#cfe94a !important; color:#111 !important; }
.cdla-co2-d{ background:#ffe24a !important; color:#111 !important; }
.cdla-co2-e{ background:#ffbf3a !important; color:#111 !important; }
.cdla-co2-f{ background:#ff7b3a !important; color:#111 !important; }
.cdla-co2-g{ background:#ff3b30 !important; color:#fff !important; }

/* ===========================
   CO2 – Tooltip
=========================== */
.cdla-co2-badge::after{
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;

  background: rgba(0,0,0,.88);
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;

  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 9999;
}

.cdla-co2-badge::before{
  content:"";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: rgba(0,0,0,.88);

  opacity: 0;
  transition: opacity .15s ease;
  z-index: 9999;
}

.cdla-co2-badge:hover::after,
.cdla-co2-badge:hover::before{
  opacity: 1;
}




/* Intitulés en gras */
.cdla-carac-grid .cdla-label{
  font-weight: 700 !important;
}

/* Valeurs en normal (même si Divi force le gras sur tout le module) */
.cdla-carac-grid .cdla-value,
.cdla-carac-grid .cdla-value *{
  font-weight: 400 !important;
}


/* ============================
   CDLA — RESPIRATION TABLETTE (iPad)
   ============================ */

/* TABLETTE PORTRAIT + PAYSAGE */
@media (min-width: 768px) and (max-width: 1200px){

  /* Espace global autour du bloc filtres */
  .cdla-filters-wrap{
    margin: 40px auto 50px;
    padding: 0 40px; /* air gauche / droite */
  }

  /* Espace entre la barre "Filtres de recherche" et les champs */
  .cdla-filters-panel{
    margin-top: 36px;
  }

  /* Filtres : plus d'air entre les champs */
  .cdla-filtres{
    gap: 28px 26px; /* vertical | horizontal */
    margin-bottom: 40px;
  }

  /* Chaque champ respire mieux */
  .cdla-filtres label{
    margin-bottom: 6px;
  }

  /* Boutons mieux détachés */
  .cdla-filtres button[type="submit"]{
    margin-top: 10px;
  }

  .cdla-filtres a{
    margin-top: 10px;
  }

  /* Espace avant les résultats */
  .cdla-results-grid{
    margin-top: 60px;
  }
}


