/* Elargissement des sous-menus pour texte large */
#header .header-nav-main nav > ul > li.dropdown .dropdown-menu li a {
	padding: 6px 35px 6px 18px;
}

/* Pour que le Slide accueil colle au menu */
.pt-4, .py-4 {
	padding-top: 0rem !important;
}

.page-header.page-header-modern.page-header-background.page-header-background-md {
	padding: 240px 0;
}
/* Réduire la hauteur des bandes bleues avec textes et icones */
.featured-boxes-full .featured-box-full {
	padding: 30px;
}
/* Liens primary au survol (rouge logo) */
a.text-primary:focus, a.text-primary:hover {
	color: #c1121f !important;
}
/* création lead avec taille de Font spécifique aux pages choix pièces de rechange et services */
.lead-2 {
	font-size: 14px;
}
/* rapprocher les icônes des textes en accueil dans les 4 rectangles sous le slide */
.featured-boxes-full .featured-box-full .icons, .featured-boxes-full .featured-box-full [class*="fa-"] {
	font-size: 3.9em;
	margin-bottom: 1px;
}
.videoWrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    height: 0;
}
.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* Masquer les élements sur version mobile */
      @media (max-width: 767px) {
        .hidden-mobile {
          display: none;
        }
      }
/* Masquer les élements sur version desktop */
      @media (min-width: 767px) {
        .image-fixed {
          display: none;
        }
      }	  
/* positionner bouton appel téléphone fixe flottant collant en bas de page*/	  
.image-fixed {width:60px;position:fixed;bottom:0px;left:15px;z-index:10000;}

/* Réduction des espaces entre balises h2 et texte en dessous*/
h2 {
  margin: 0 0 5px 0;
}

/* Design boutons partage réseaux sociaux */
.share-btn { 
    padding: 10px 20px;
    margin: 5px;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    }
    .facebook { background-color: #3B5998; }
    .x { background-color: #000000; }
    .linkedin { background-color: #0077B5; }
    .pinterest { background-color: #BD081C; }
	.visit-counter { background-color: #555555; }

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.main-image, .hover-image {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.hover-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.image-container:hover .main-image {
    opacity: 0;
}

.image-container:hover .hover-image {
    opacity: 1;
}

.item {
    position: relative;
}

  /* Forcer le pseudo-élément de .thumb-info-wrapper à rester derrière */
  .thumb-info.thumb-info-lighten .thumb-info-wrapper::after {
    background: rgba(23, 23, 23, 0.25);
    z-index: 0;
  }
  /* Positionnement du conteneur pour l'overlay */
  .thumb-info-wrapper {
    position: relative;
  }
  /* Voile gris qui apparaît au survol */
  .hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 128, 128, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1;
  }
  .thumb-info-wrapper:hover .hover-overlay {
    opacity: 1;
  }
  /* Texte overlay positionné au centre, au-dessus du voile */
  .hover-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    font-size: 24px; /* Taille de police agrandie */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    z-index: 2;
  }
  .thumb-info-wrapper:hover .hover-text {
    opacity: 1;
  }
  
  /* Bouton flottant devis IA */
/* ────────── Bouton IA — mobile + desktop ────────── */

/* 1) Toujours visible et positionné */
#mobile-floating-button {
  position: fixed;
  z-index: 9999;
  bottom: 20px;
  left: 20px;        /* à gauche par défaut */
  display: block;    /* forcer l’affichage partout */
}

/* 2) Style de l’anchor pour afficher l’image */
#mobile-floating-button a {
  display: block;
  width: 110px;    /* taille bureau */
  height: 110px;
  background: url('/devis-ia/mini-ia.png') no-repeat center center;
  background-size: contain;
  cursor: pointer;
  animation: float 3s ease-in-out infinite;
  transition: transform 0.2s ease;
}

/* 3) Version mobile : plus petit et à droite */
@media screen and (max-width: 768px) {
  #mobile-floating-button {
    bottom: 1px;
    right: 20px;  /* repasse à droite */
    left: auto;
  }
  #mobile-floating-button a {
    width: 90px;   /* taille mobile */
    height: 90px;
  }
}

/* 4) Hover / active (communs) */
#mobile-floating-button a:hover {
  transform: translateY(-2px);
}
#mobile-floating-button a:active {
  transform: translateY(0);
}

/* 5) Animation flottement */
@keyframes float {
  0%   { transform: translateY(0);   }
  50%  { transform: translateY(-5px); }
  100% { transform: translateY(0);   }
}
/* === HERO 1920x350 === */
.cm-hero { position: relative; }
.cm-hero .cm-hero-carousel { width: 100%; }
.cm-hero-slide{
  position: relative; width: 100%;
  height: 350px; /* fixe la hauteur demandée */
  background-size: cover; background-position: center;
}
.cm-hero-overlay{
  position: absolute; inset: 0;
  display:flex; flex-direction:column; justify-content:center;
  padding: 24px 5vw;
  color:#fff; text-shadow:0 2px 12px rgba(0,0,0,.35);
  background: linear-gradient(0deg, rgba(0,0,0,.25), rgba(0,0,0,.1));
}
.cm-hero-overlay h1{ margin:0 0 .25em; font-weight:800; font-size: clamp(20px, 3.5vw, 36px); }
.cm-hero-overlay p { margin:0; font-size: clamp(14px, 2vw, 18px); }

/* Bandeau sélecteur */
.cm-selector-wrap { position: relative; margin-top: -28px; z-index: 3; }
.cm-selector{
  background:#fff; border-radius:12px; padding:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}
@media (min-width:768px){ .cm-selector{ padding:16px; } }

/* Bandeau banc d'essai 2025 : espacement + centrage vertical */
section.section.bg-color-grey-scale-1.border-0.m-0[data-banc-dessai="2025"] {
    margin-top: 40px !important;      /* espace au-dessus du bandeau */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex;
    align-items: center;              /* centrage vertical du contenu */
}

section.section.bg-color-grey-scale-1.border-0.m-0[data-banc-dessai="2025"] > .container {
    width: 100%;
    min-height: 230px;                /* hauteur du bandeau à ajuster si besoin */
}

section[data-banc-dessai="2025"] .row {
    width: 100%;
    align-items: center;
}

/* Espace entre silo et FeaturedBoxes – réduit */
.cm-featured-offset { 
  margin-top: 1rem;
}

/* En mobile : on supprime le blanc */
@media (max-width: 991.98px) {
  .cm-featured-offset {
    margin-top: 0 !important;
  }
}

/* =========================================================
   TEXTE HERO — MODIF UNIQUEMENT ICI
   (plus gros mobile + look high-tech)
   ========================================================= */

/* Positionnement du texte dans l'image (inchangé) */
.cm-hero-text{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 0 24px;
  z-index: 15;
  pointer-events:none;
}

/* (Garde ta classe existante, même si non utilisée) */
.cm-hero-title{
  margin:0;
  color:#fff;
  font-weight:800;
  letter-spacing:-.02em;
  text-shadow: 0 10px 28px rgba(0,0,0,.65);
  line-height:1.08;
  font-size: clamp(28px, 4vw, 56px);
  max-width: 1100px;
}

/* ====== HERO : TEXTE + ROTATOR (UNIQUEMENT) ====== */

/* Conteneur texte (tu l’as déjà, je ne change pas sa logique) */
.cm-hero-text{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 0 24px;
  z-index: 15;
  pointer-events:none;
}

/* Titre : propre, compact, lisible */
.cm-hero-text h1{
  margin: 0;
  color:#fff;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-shadow: 0 10px 28px rgba(0,0,0,.65);
}

/* Modèle (rotator) : FINI la “capsule” moche
   On passe sur un accent tech subtil (underline glow) */
.cm-hero-model{
  display:inline-block;
  margin-left: .35em;
  padding: 0;                 /* <-- important : supprime l’effet badge */
  border: 0;                  /* <-- important */
  border-radius: 0;           /* <-- important */
  background: none;           /* <-- important */
  box-shadow: none;           /* <-- important */

  font-weight: 900;
  white-space: nowrap;
  position: relative;
  color: #fff;                /* safe partout */
  text-shadow:
    0 10px 28px rgba(0,0,0,.55),
    0 0 18px rgba(120,210,255,.18);
}

/* Accent “high-tech” discret : trait lumineux sous le modèle */
.cm-hero-model::after{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  bottom: -0.18em;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(120,210,255,0), rgba(120,210,255,.85), rgba(120,210,255,0));
  box-shadow: 0 0 14px rgba(120,210,255,.35);
  opacity: .9;
}

/* États fade (si ton JS les utilise) */
.cm-hero-model.is-out{
  opacity:0;
  transform: translateY(10px);
  filter: blur(1px);
  transition: opacity .35s ease, transform .35s ease, filter .35s ease;
}
.cm-hero-model.is-in{
  opacity:1;
  transform: translateY(0);
  filter: blur(0);
  transition: opacity .35s ease, transform .35s ease, filter .35s ease;
}

/* DESKTOP */
@media (min-width: 992px){
  .cm-hero-text h1{ font-size: 44px; }
  .cm-hero-model{ font-size: 50px; }
}

/* TABLETTE */
@media (max-width: 991px){
  .cm-hero-text h1{ font-size: 34px; }
  .cm-hero-model{ font-size: 40px; }
}

/* MOBILE : gros, centré, clean */
@media (max-width: 575px){
  .cm-hero-text{ padding: 0 16px; }
  .cm-hero-text h1{
    font-size: 30px;
    line-height: 1.15;
  }
  .cm-hero-model{
    display:block;        /* passe à la ligne */
    margin: 10px auto 0;  /* centre */
    font-size: 42px;      /* gros */
  }
  .cm-hero-model::after{
    left: 12%;
    right: 12%;           /* underline plus courte sur mobile */
  }
}

