/*
Theme Name: Electro Cable
Description: Thème enfant personnalisé
Author: Electro-Cable
Author URI: https://electro-cable.fr
Template: Divi
Version: 1.5
Date de mise à jour : 25 juillet 2025
*/

/* --- Importation du CSS parent --- */
@import url("../Divi/style.css");

/* Corps du site */
body { 
  font-weight: 400; 
}

/* --- Header --- */

#top-header, #top-header a {
  color: #fff !important;
}

.et-fixed-header #logo {
  content: url(img/logo-epure.png);
  min-height: 40px;
}

#top-header.et-fixed-header div.container.clearfix {
  display: none;
}

.et-fixed-header {
  top: 0px !important;
  background: transparent;
}

.et-fixed-header div.logo_container {
  max-height: 50px;
}

#top-header a {
  font-size: 16px !important;
  line-height: 20px;
}

#et-info-phone:hover { 
  opacity: 0.7; 
  transition: all 0.4s ease-in-out; 
}

/* --- CORRECTION : Empêcher les images de passer derrière le menu principal --- */
#main-header {
  position: relative;
  z-index: 99999 !important;
  background-color: #ffffff !important;
}

#main-header.et-fixed-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99999 !important;
  background-color: #ffffff !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

/* Assurer que le contenu ne passe pas au-dessus */
.et_pb_section {
  position: relative;
  z-index: 1;
}

/* --- Footer --- */

footer a.icon, .et-social-google-plus a.icon.et_pb_with_border {
  background: #fff !important;
  color: #17366d !important;
  border-radius: 100px !important;
  margin-right: 10px;
}

.gros-titre-footer:after {
  content: "";
  display: block;
  margin-top: 15px;
  margin-bottom: 10px;
  width: 50px;
  border-bottom: 3px solid #FFF;
}

#footer-info {
  text-align: center;
  width: 100%;
  line-height: normal;
}

/* --- Menu --- */

#top-menu li ul { 
  width: 320px; 
  padding: 12px 0; 
}

#top-menu li ul li a:hover {
  color: #008bd2;
}

#top-menu li.sous-menu-1 {
  padding-left: 32px; 
  width: 320px !important;
}

#top-menu li.sous-menu-1 a {
  border-left: 5px solid #4CAF50;
  width: 278px;
}

/* --- Formulaires et Boutons --- */

#contact-form-electro {
  border-radius: 20px;
  margin-top: 30px;
}

#contact-form-electro .input {
  background: #fff;
}

#contact-form-electro div.et_contact_bottom_container {
  margin-top: 0px !important;
}

/* --- Bloc de message de confirmation --- */

#merci-message {
  background-color: #f0f8ff; 
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  font-family: Arial, sans-serif;
}

#merci-message h2 {
  color: #002b64; 
  font-size: 32px;
  font-weight: bold;
}

#merci-message p {
  color: #333;
  font-size: 18px;
}

#merci-message .et_pb_promo_button {
  background-color: #007bff;
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 16px;
  text-decoration: none;
}

#merci-message .et_pb_promo_button:hover {
  background-color: #0056b3;
}

/* --- Styles supplémentaires pour la structure --- */

.dc-centrer-verticalement {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- Sections spécifiques --- */

.hero-accueil h1 {
  margin-bottom: 30px;
}

.hero-accueil ul, .ul-rouges ul, .ul-rouges2 ul {
  list-style-type: none;
  padding-left: 20px;
  margin-bottom: 10px;
}

/* --- Personnalisation des puces de liste --- */

.puce ul { 
  list-style-type: none; 
  padding: 0;
}

.puce ul li:before {
  font-family: 'ETmodules';
  content: "\e04e";
  font-size: 20px;
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
}

.puce-bleu ul li:before { color: #17366d; }
.puce-rouge ul li:before { color: #d74139; }
.puce-blanc ul li:before { color: #FFF; }

/* --- Tableaux --- */

.table-vmc table {
  width: 100%;
  border-collapse: collapse;
}

.table-vmc th,
.table-vmc td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

@media screen and (max-width: 768px) {
  .table-vmc table {
    font-size: 14px;
  }
}

/* --- Styles pour le titre H1 VMC --- */

.titre-vmc h1 {
  font-size: 48px !important;
  font-weight: 700 !important;
  line-height: 1.2em !important;
  margin-bottom: 20px;
}

@media screen and (max-width: 980px) {
  .titre-vmc h1 {
    font-size: 36px !important;
  }
}

@media screen and (max-width: 767px) {
  .titre-vmc h1 {
    font-size: 28px !important;
  }
}

/* --- Media Queries additionnelles --- */

/* Reset pour éviter les débordements - VERSION CIBLÉE */
@media screen and (max-width: 480px) {
  /* Reset général */
  * {
    box-sizing: border-box !important;
  }
  
  /* CIBLER SPÉCIFIQUEMENT les éléments problématiques au lieu de tout exclure */
  .et_pb_section,
  .et_pb_row,
  .et_pb_column,
  .et_pb_module:not([class*="slider"]):not([class*="carousel"]),
  .et_pb_text,
  .et_mobile_menu {
    max-width: 100% !important;
  }
  
  /* PROTECTION TOTALE des carrousels et images */
  .slick-slider,
  .slick-track,
  .slick-slide,
  .et_pb_slider,
  .dmach_carousel_container,
  .slick-slider *,
  .et_pb_slider *,
  .dmach_carousel_container * {
    max-width: none !important;
    width: auto !important;
  }
  
  body {
    font-size: 16px !important;
    line-height: 1.4 !important;
  }
  
  .et_mobile_menu {
    font-size: 18px !important;
  }
  
  #top-header a {
    font-size: 14px !important;
  }
}
/* --- Adaptation responsive header avec corrections alignement --- */

/* Desktop : taille standard 20px */
#top-header, 
#top-header a {
  font-size: 20px !important;
}

/* Tablette : taille adaptée 25px */
@media screen and (max-width: 980px) {
  #top-header, 
  #top-header a {
    font-size: 25px !important;
  }
}

/* Mobile : taille adaptée + corrections alignement */
@media screen and (max-width: 767px) {
  #top-header {
    text-align: center !important;
    padding: 5px 8px !important;
  }
  
  #top-header, 
  #top-header a {
    font-size: 14px !important; /* Plus petit pour éviter débordement */
  }
  
  #top-header a {
    display: inline-block !important;
    margin: 0 3px !important;
  }
}

/* --- CORRECTION MENU MOBILE SCROLLABLE --- */
.et_mobile_menu {
    max-height: 70vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
}

.et_mobile_menu ul {
    max-height: none !important;
    height: auto !important;
}

.et_mobile_menu li {
    flex-shrink: 0 !important;
}

/* --- Animation des bulles section H1 Divi --- */
.anim-bulles {
    position: relative;
    overflow: hidden;
}

.anim-bulles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='20' cy='20' r='2' fill='rgba(255,255,255,0.1)'/%3E%3Ccircle cx='80' cy='30' r='1.5' fill='rgba(255,255,255,0.1)'/%3E%3Ccircle cx='40' cy='70' r='1' fill='rgba(255,255,255,0.1)'/%3E%3Ccircle cx='60' cy='10' r='1.2' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='10' cy='50' r='1.8' fill='rgba(255,255,255,0.12)'/%3E%3Ccircle cx='90' cy='80' r='1' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E");
    animation: float 20s infinite linear;
    opacity: 0.6;
    z-index: 1;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

/* --- Fil d’Ariane élégant Electro-Cable (version recommandée) --- */

.electro-cable-breadcrumbs-wrapper {
    margin: 20px 0 30px;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 500;
    color: #17366d;
    font-family: inherit;
}

.electro-cable-breadcrumbs-wrapper a {
    color: #17366d;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.electro-cable-breadcrumbs-wrapper a:hover {
    color: #0c2146;
    text-decoration: underline;
}

.electro-cable-breadcrumbs-wrapper nav li {
    display: inline;
    margin-right: 5px;
}

.electro-cable-breadcrumbs-wrapper nav li::after {
    content: "›";
    margin: 0 8px;
    color: #666666;
}

.electro-cable-breadcrumbs-wrapper nav li:last-child::after {
    content: "";
}

.electro-cable-breadcrumbs-wrapper nav li:last-child {
    font-weight: 700;
    color: #008bd2;
}

@media screen and (max-width: 768px) {
    .electro-cable-breadcrumbs-wrapper {
        display: none;
    }
}

