/* ============================================================
   HEADER MOBILE CUSTOM (Logo agrandi et harmonisé)
   ============================================================ */

.header-mobile-custom {
  display: flex;
  align-items: center; 
  width: 100%;
  padding: 18px 0; /* Légèrement augmenté pour accompagner la taille du logo */
  box-sizing: border-box;
  
}

/* --- ZONE LOGO (Ajustée à ~30%) --- */
.zone-logo-mob {
  flex: 0 0 30%; /* Fixe la zone à 30% pour donner plus de place au logo */
  padding-left: 15px;  /* Réduit pour gagner de l'espace image */
  padding-right: 15px; /* Espace équilibré avant la ligne */
  display: flex;
  justify-content: center; 
  align-items: center;
}

.img-logo-mob {
  width: 100%;      /* Utilise toute la place disponible dans les 30% */
  max-width: 90px;  /* Limite de sécurité pour ne pas devenir géant sur tablette */
  height: auto;
  display: block;
}

/* --- ZONE TEXTE (Ajustée à ~70%) --- */
.zone-texte-mob {
  flex: 0 0 70%; 
  padding-left: 20px; /* Ajusté pour une harmonie visuelle avec la ligne */
  position: relative; 
  display: flex;
  align-items: center;
}

/* Ligne verticale de séparation */
.zone-texte-mob::before {
  content: "";
  position: absolute;
  left: 0; 
  top: 5%;    /* Ligne un peu plus longue (90% de hauteur) */
  bottom: 5%; 
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 1) 12%,
    rgba(255, 255, 255, 1) 88%,
    transparent 100%
  );
}

/* Style du texte H1 */
.titre-h1-mobil {
  font-family: 'arial', sans-serif;
  font-size: 14px !important;
  color: #ffffff !important;
  text-align: left;
  line-height: 1.5; 
  margin: 0 !important;
  font-weight: normal;
  letter-spacing: 0.3px; /* Légère aération pour le standing */
}

/* --- ADAPTATION ÉCRANS TRÈS PETITS (iPhone SE, etc.) --- */
@media (max-width: 380px) {
  .zone-logo-mob { flex: 0 0 32%; padding-left: 10px; padding-right: 10px; }
  .zone-texte-mob { flex: 0 0 68%; padding-left: 15px; }
  .titre-h1-mobil { font-size: 12px !important; line-height: 1.4; }
}

/* ============================================================
   ANTI-FLASH COULEUR HEADER MOBILE (UNIQUEMENT ACCUEIL) - Garde couleur #016576
   ============================================================ */

@media (max-width: 768px) {
  /* 1. Applique le calque de couleur UNIQUEMENT si le body a la classe .home */
  body.home::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px; /* Hauteur de votre header mobile */
    background-color: #016576 !important;
    z-index: 1; /* Sous le logo mais au-dessus du blanc du site */
  }

  /* 2. Force la couleur sur le wrapper et les éléments du widget TCK sur l'accueil */
  body.home #wrapper3, 
  body.home div[id*="wrapper3-sticky-wrapper"], 
  body.home .tck-fixed-placeholder {
    background-color: #016576 !important;
    position: relative;
    z-index: 2;
  }

  /* 3. Force la couleur du contenu interne sur l'accueil */
  body.home .header-mobile-custom {
    background-color: #016576 !important;
    z-index: 10;
  }
}

/* ============================================================
   LARGEUR MENU MAXIMALE
   ============================================================ */
#block-menu{
max-width: 1200px;
margin: 0 auto;
}

#block-titre{
max-width: 1200px;
margin: 0 auto;
    font-family: "Times New Roman", Times, serif;
  font-size: 26px;
  line-height: 24px;
  color: #fff;
  text-align: center;
 font-weight: normal;
}


#block-position
{
max-width: 1200px;
margin: 0 auto;
  padding-bottom : 10px;
 font-family: "Times New Roman", Times, serif;
 font-weight: normal; font-size: 12px; color : #FFFFFF; 
}

#block-position a {
 color: #ffffff;
}

#block-position .active > a {
 color: #ffffff !important;

}


/* ============================================================
   MOBILE : EMPILEMENT IMAGE ET NAVIGATION
   ============================================================ */

@media (max-width: 768px) {
  /* On force le conteneur à passer en mode colonne */
  .content-page .wf-columns-layout-3-2 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center; /* Centre les éléments horizontalement */
  }

  /* On s'assure que la colonne de l'image prend toute la largeur */
  .content-page .wf-columns-layout-3-2 .wf-column:nth-child(1) {
    width: 100% !important;
  }

  /* On ajoute l'espace (padding) au-dessus de la navigation */
  .content-page .wf-columns-layout-3-2 .wf-column:nth-child(2) {
    width: 100% !important;
    padding-top: 30px !important; /* Ajustez la valeur selon vos besoins */
  }

  /* On rend l'image responsive pour qu'elle ne dépasse pas */
  .content-page .wf-columns-layout-3-2 .wf-column img {
    width: 100% !important;
    height: auto !important;
    max-width: 600px; /* Garde la taille d'origine au max */
  }
}




/* ============================================================
   1. STRUCTURE ET GRILLE GLOBALE (LAYOUT)
   ============================================================ */

#block-top-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;              /* Espacement horizontal et vertical */
  justify-content: center; /* Modules centrés horizontalement */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Base commune à tous les modules (Média, Blancs et Mixtes) */
.module-item {
  width: 373px;
  height: 470px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column; /* Aligne le contenu et le bouton verticalement */
}

/* ============================================================
   2. MODULES AVEC FOND (1, 3, 5, 7 - Image ou Vidéo)
   ============================================================ */

.module-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Positionnement des textes sur les fonds */
.module-bg .text-top {
  position: absolute;
  top: 100px;
  left: 120px;
  right: 10px;
  font-size: 38px;
  line-height: 42px;
  color: #fff;
   /* Ombre prononcée et profonde */
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8); 
  z-index: 2;
}

.module-bg .text-bottom {
  position: absolute;
  bottom: 40px;
  left: 80px;
  right: 10px;
  font-size: 22px;
  line-height: 26px;
  color: #fff;
}

/* Spécificités pour les vidéos de fond */
.video-bg {
  position: relative;
  overflow: hidden;
}

.video-bg .bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.video-bg .text-top,
.video-bg .text-bottom {
  z-index: 2;
}

/* ============================================================
   3. MODULES BLANCS ET MIXTES (Zone de texte + Bouton)
   ============================================================ */

/* Conteneur de texte pour modules blancs (2, 4, 6, 8) */
.module-white .white-content {
  background: #fff;
  width: 100%;
  height: 330px;
  padding: 25px;
  box-sizing: border-box;
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 20px;
  color: #333;
}

/* Conteneur pour modules mixtes (9 & 10) */
.module-mixed .white-content-mixed {
  background: #fff;
  width: 100%;
  height: 330px;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

/* Zone Image modules mixtes (2/3 de 330px) */
.module-mixed .mixed-top {
  position: relative;
  height: 220px;
  width: 100%;
  flex-shrink: 0;
}

.module-mixed .mixed-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Titre H2 sur l'image mixte */
.module-mixed .mixed-top .text-top {
  position: absolute;
  top: 50px;
  left: 30px;
  right: 20px;
  font-size: 34px;
  line-height: 36px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Zone Texte modules mixtes (1/3 de 330px) */
.module-mixed .mixed-bottom {
  height: 110px;
  padding: 15px 25px;
  box-sizing: border-box;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  line-height: 18px;
  color: #333;
  display: flex;
  align-items: center;
}

/* ZONE BASSE POUR LE BOUTON (Commun aux modules 2,4,6,8,9,10) */
.white-footer {
  width: 100%;
  height: 40px;
  margin-top: 40px;
  display: flex;
  justify-content: center; /* Centre le bouton horizontalement */
  align-items: center;     /* Centre le bouton verticalement */
}

/* ============================================================
   4. LE BOUTON SPECIAL (btn-wtr)
   ============================================================ */

.btn-wtr {
  --btn-bg-initial: #016576;    
  --btn-text-initial: #ffffff;  
  --btn-bg-hover: #CAF6F4;      
  --btn-text-hover: #000000;   
  --bubble-outline-color: #ffffff; 
  
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
  width: 200px;
  height: 40px;
  text-decoration: none !important;
  background-color: var(--btn-bg-initial) !important;
  border: 1px solid #000000 !important;
  border-radius: 4px;
  cursor: pointer;
  z-index: 0;
  overflow: hidden;
  font-family: 'arial', sans-serif;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--btn-text-initial) !important;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.btn-wtr:hover {
  background-color: var(--btn-bg-hover) !important;
  color: var(--btn-text-hover) !important;
}

.btn-text { position: relative; z-index: 5; transition: color 0.4s ease; }

.btn-wtr .right {
  position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: 3; pointer-events: none;
}

.btn-wtr .right::after {
  content: attr(data-text); display: flex; align-items: center; justify-content: center;
  position: absolute; width: 100%; height: 100%; top: 0; left: 0;
  background-color: var(--btn-bg-hover) !important; color: var(--btn-text-hover) !important;
  transition: transform .5s cubic-bezier(0.19, 1, 0.22, 1); transform: translate(0, 100%); 
}

.btn-wtr:hover .right::after { transform: translate(0, 0); }

.btn-wtr::before {
  content: ''; pointer-events: none; opacity: .8; position: absolute; width: 100%; height: 300%; top: 0; left: 0; z-index: 2;
  background:
    radial-gradient(circle at 20% 35%, transparent 0, transparent 2px, var(--bubble-outline-color) 2.5px, var(--bubble-outline-color) 3.5px, transparent 4px),
    radial-gradient(circle at 75% 44%, transparent 0, transparent 2px, var(--bubble-outline-color) 2.5px, var(--bubble-outline-color) 3.5px, transparent 4px),
    radial-gradient(circle at 46% 52%, transparent 0, transparent 4px, var(--bubble-outline-color) 4.5px, var(--bubble-outline-color) 5.5px, transparent 6px);
  animation: bubbles-wtr 4s linear infinite both;
}

@keyframes bubbles-wtr { from { transform: translate(0, 0); } to { transform: translate(0, -66.66%); } }

/* ============================================================
   5. RESPONSIVE (MOBILE)
   ============================================================ */

@media (max-width: 768px) {
  #block-top-modules {
    flex-direction: column;
    gap: 30px;
    align-items: center;
    width: 100%;
    padding: 0;
  }

  .module-item {
    width: calc(100% - 16px) !important; 
    max-width: 373px; 
    height: auto; 
    min-height: 470px;
  }

  .module-bg .text-top { font-size: 34px; top: 60px; left: 20px; }
  .module-bg .text-bottom { font-size: 22px; bottom: 30px; left: 20px; }

  .module-white .white-content, 
  .module-mixed .white-content-mixed {
    height: auto;
    min-height: 250px; /* Réduit pour éviter que la zone soit trop grande */
  }

  .module-mixed .mixed-top .text-top { font-size: 24px; top: 30px; left: 20px; }

  /* Ajustement pour faire descendre les boutons */
  .white-footer { 
    margin-top: 50px;    /* Augmenté pour faire descendre le bouton */
    margin-bottom: 30px; /* Espace sous le bouton avant le module suivant */
  }
  
  .btn-wtr { width: 220px !important; }
}


/* ============================================================
   4. TITRES ET TEXTES GÉNÉRAUX
   ============================================================ */

.titre-module {
  font-family: "Times New Roman", Times, serif;
  font-size: 26px;
  line-height: 28px;
  color: #fff;
  text-align: c  font-family: "Times New Roman", Times, serif;
  font-size: 22px;
  line-height: 24px;
  color: #fff;
  text-align: center;
  padding: 5px 25px 40px 25px;
  margin: 0;
  font-weight: normal;enter;
  padding: 15px 25px;
  margin: 0;
  font-weight: normal;
  position: absolute;
  z-index: 2;
}

.titre-h1 {
  font-family: "Times New Roman", Times, serif;
  font-size: 22px;
  line-height: 24px;
  color: #fff;
  text-align: center;
  padding: 5px 25px 40px 25px;
  margin: 0;
  font-weight: normal;
  box-sizing: border-box;
}

#block-menu
{
 font-family: "Times New Roman", Times, serif;
 font-weight: normal;
}


/* ============================================================
   5. LE BOUTON SPECIAL (btn-wtr) - EFFET BULLES & REMPLISSAGE
   ============================================================ */

.btn-wtr {
  /* Variables de couleurs */
  --btn-bg-initial: #016576;    
  --btn-text-initial: #ffffff;  
  --btn-bg-hover: #CAF6F4;      
  --btn-text-hover: #000000;   
  --bubble-outline-color: #ffffff; 
  
  /* Structure et Centrage (Force le centrage parfait) */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
  width: 200px;
  height: 40px;
  padding: 0 !important;   /* Crucial pour le centrage horizontal */
  text-indent: 0 !important;
  text-decoration: none !important;
  
  /* Style visuel */
  background-color: var(--btn-bg-initial) !important;
  border: 1px solid #000000 !important;
  border-radius: 4px;
  cursor: pointer;
  z-index: 0;
  overflow: hidden;
  
  /* Typographie */
  font-family: 'arial', sans-serif;
  font-weight: normal;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--btn-text-initial) !important;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* État Hover global */
.btn-wtr:hover {
  background-color: var(--btn-bg-hover) !important;
  color: var(--btn-text-hover) !important;
}

/* Texte principal (Couche supérieure) */
.btn-text {
  position: relative;
  z-index: 5; 
  transition: color 0.4s ease;
  margin: 0 !important;
}

/* Effet de remplissage Liquide (Couche intermédiaire) */
.btn-wtr .right {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 3;
  pointer-events: none;
}

.btn-wtr .right::after {
  content: attr(data-text);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: var(--btn-bg-hover) !important; 
  color: var(--btn-text-hover) !important;
  transition: transform .5s cubic-bezier(0.19, 1, 0.22, 1);
  transform: translate(0, 100%); 
}

.btn-wtr:hover .right::after {
  transform: translate(0, 0);
}

/* Animation des Bulles blanches (Couche de fond) */
.btn-wtr::before {
  content: '';
  pointer-events: none;
  opacity: .8;
  background:
    radial-gradient(circle at 20% 35%, transparent 0, transparent 2px, var(--bubble-outline-color) 2.5px, var(--bubble-outline-color) 3.5px, transparent 4px),
    radial-gradient(circle at 75% 44%, transparent 0, transparent 2px, var(--bubble-outline-color) 2.5px, var(--bubble-outline-color) 3.5px, transparent 4px),
    radial-gradient(circle at 46% 52%, transparent 0, transparent 4px, var(--bubble-outline-color) 4.5px, var(--bubble-outline-color) 5.5px, transparent 6px);

  width: 100%;
  height: 300%;
  top: 0;
  left: 0;
  position: absolute;
  z-index: 2;
  animation: bubbles-wtr 4s linear infinite both;
}

@keyframes bubbles-wtr {
  from { transform: translate(0, 0); }
  to { transform: translate(0, -66.66%); }
}

.btn-wtr:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(202, 246, 244, 0.5);
}

/* ============================================================
   STYLE PAGE CONTENUS ET ANCHORS
   ============================================================ */

.content-page {
    line-height: 1.6;
}

/* Navigation par ancres : Mise en forme verticale */
.content-page .anchor-nav {
    
    padding: 10px;
    border-left: 2px solid #016576;
    margin: 30px 0;
    display: flex;
    flex-direction: column; /* Force l'alignement vertical */
    gap: 10px; /* Espace entre les liens */
}

.content-page .anchor-nav a {
    display: block; /* Prend toute la largeur pour être cliquable facilement */
    color: #016576;
    text-decoration: none;
    
    font-size: 16px;
    transition: 0.3s ease;
}

.content-page .anchor-nav a:hover {
    color: #0b3c5d;
    padding-left: 5px; /* Petit effet de décalage au survol */
}

/* Gestion de l'arrêt du scroll pour les titres */
.content-page section[id] {
    scroll-margin-top: 120px; /* Sécurité pour le menu fixe */
    padding-bottom: 20px;
}

/* Séparateurs et listes */
.content-page hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 40px 0;
}

/* ============================================================
   SECTION LIENS DE PIED DE PAGE (footer-links)
   ============================================================ */

.footer-links {
    list-style-type: none !important; /* Force la suppression des puces Joomla */
    padding: 0 !important;
    margin: 50px 0 20px 0;
    border-top: 1px solid #eee; /* Petite ligne de séparation discrète */
    padding-top: 30px !important;
}

.footer-links li {
    margin-bottom: 15px;
    display: flex;          /* Aligne flèche et texte sur la même ligne */
    align-items: flex-start; /* Aligne au sommet pour les textes longs */
    gap: 8px;              /* Espace entre la flèche et le texte */
    line-height: 1.5;
}

/* Réglage précis de la flèche pour qu'elle soit centrée avec la 1ère ligne */
.footer-links .bullet {
    color: #016576;         /* Votre bleu habituel */
    font-weight: bold;
    display: inline-block;
    flex-shrink: 0;         /* Empêche la flèche de s'écraser sur mobile */
    font-size: 14px;
 
}

.footer-links li a {
    color: #444;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: #016576;         /* Le texte devient bleu au survol */
    text-decoration: underline; /* Souligne uniquement le texte, pas la flèche */
}

/* ============================================================
   STYLE SLIDER SWIPER (Design Épuré & Sharp)
   ============================================================ */

.slider-container {
    max-width: 600px;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
}

/* On force le comportement horizontal dès le départ */
.swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
}

.swiper {
    width: 100%;
    padding-bottom: 50px !important; /* Espace pour la description + onglets */
}

.swiper-slide {
    height: auto !important;
}

/* Image : Taille fixe 500x375 sans arrondis */
.swiper-slide img {
    width: 100%;
    height: 450px !important; /* Hauteur forcée */
    object-fit: cover;
    border-radius: 0 !important;
    display: block;
}

/* Description petite police sous l'image */
.slide-description {
   font-family: Arial, sans-serif;
    font-size: 11px;
    color: #444;
    margin-top: 10px;
    text-align: center; /* <--- CHANGEMENT ICI : de left à center */
    line-height: 1.4;
    padding: 0 20px;    /* Augmenté pour éviter que le texte ne touche les bords */
}

/* --- FLÈCHES (Fond noir transparent, Flèche blanche, Sharp) --- */
.swiper-button-next, 
.swiper-button-prev {
    background-color: rgba(0, 0, 0, 0.3) !important; /* NOIR TRANSPARENT */
    color: #ffffff !important;                      /* FLÈCHE BLANCHE */
    width: 40px;
    height: 40px;
    top: 187px !important;                           /* Milieu de l'image (375/2) */
    border-radius: 0 !important;                     /* PAS D'ARRONDI (Sharp) */
    transition: background 0.3s;
}

.swiper-button-next:hover, 
.swiper-button-prev:hover {
    background-color: rgba(213, 250, 247, 0.6) !important; /* Plus sombre au survol */
}

/* Taille de l'icône de la flèche */
.swiper-button-next:after, 
.swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: bold;
}

/* --- ONGLET PAGINATION (Rectangulaires) --- */
.swiper-pagination {
    bottom: 15px !important; /* Augmentez ce chiffre pour remonter encore plus */
    display: flex;
    justify-content: center;
    gap: 5px;
}

.swiper-pagination-bullet {
    width: 20px; /* Forme rectangulaire */
    height: 5px;
    background: #016576 !important;
    border-radius: 0 !important; /* Pas d'arrondi */
    opacity: 0.3;
    transition: 0.3s;
    margin: 0 !important;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 40px; /* L'onglet s'allonge au clic */
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 550px) {
    .slider-container { width: 100%; padding: 0; }
    .swiper-slide img { height: 280px; }
    .swiper-button-next, .swiper-button-prev { top: 140px !important; }
}


/* ============================================================
   BEFORE / AFTER - VERSION CLIP-PATH (ANTI-ÉTIREMENT)
   ============================================================ */

.beforeafter-container {
    position: relative !important;
    width: 100%;
    max-width: 600px;
    margin: 30px auto;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
    border: 1px solid #ddd;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: #f4f4f4;
    /* Bloque les gestes parasites du navigateur sur mobile */
    touch-action: none; 
}

/* Les deux images occupent TOUJOURS 100% du bloc sans bouger */
.img-after, .img-before {
    display: block;
    width: 100% !important;
    height: auto !important;
    pointer-events: none;
}

.img-before {
    position: absolute !important;
    top: 0;
    left: 0;
    height: 100% !important;
    object-fit: cover;
    z-index: 2;
    /* État initial : on cache les 50% de droite */
    clip-path: inset(0 50% 0 0);
    -webkit-clip-path: inset(0 50% 0 0);
}

/* --- ÉTIQUETTES --- */

.label-after {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 15px;
    background: rgba(1, 101, 118, 0.8); /* Votre bleu */
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1; /* Derrière l'image de dessus */
    pointer-events: none;
}

.label-before {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 15px;
    background: rgba(1, 101, 118, 0.8);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3; /* Devant l'image de dessus */
    pointer-events: none;
}

/* --- BARRE DE SÉPARATION --- */

.beforeafter-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #ffffff;
    z-index: 10;
    left: 50%; /* Position initiale */
    margin-left: -1.5px;
    pointer-events: none;
}

/* Le bouton central directionnel */
.beforeafter-handle::after {
    content: "\276E \276F"; /* Icônes < > */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #016576;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    border: none;
}

/* --- ADAPTATION MOBILE --- */

@media (max-width: 600px) {
    .label-before, .label-after {
        font-size: 10px;
        padding: 5px 10px;
        top: 10px;
    }
    
    .beforeafter-handle::after {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }
}

/* ============================================================
   STYLE SECTION GARANTIE (ENCADRÉ)
   ============================================================ */
.box-garantie {
    background-color: #f0f7f8;
    padding: 50px 30px;
    border-radius: 8px;
    border: 1px solid #016576;
    margin-top: 50px;
}

.box-garantie h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    color: #016576;
    font-size: 28px;
    width: 100%;
}

.box-garantie-content {
    display: flex;
    flex-wrap: wrap; /* Permet l'empilement sur mobile */
    gap: 30px;
    align-items: center;
}

.box-garantie-image, 
.box-garantie-text {
    flex: 1 1 45%; /* 50% sur desktop */
    min-width: 300px;
}

.box-garantie-text p, 
.box-garantie-text li {
    font-size: 18px; /* Police agrandie pour remplir la zone */
    line-height: 1.6;
    color: #333;
}

/* --- MOBILE STACK --- */
@media (max-width: 768px) {
    .box-garantie {
        padding: 30px 15px;
    }
    .box-garantie h2 {
        font-size: 22px;
        margin-bottom: 25px;
    }
    .box-garantie-image, 
    .box-garantie-text {
        flex: 1 1 100%; /* Prend toute la largeur en mobile */
        padding-left: 0 !important;
    }
    .box-garantie-text p, 
    .box-garantie-text li {
        font-size: 16px;
    }
}

/* ============================================================
   CTA DEVIS DESIGN 
   ============================================================ */

/* Conteneur de centrage global */
.cta-page-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 60px auto;
    width: 100%;
}

/* Le bouton principal */
.btn-design-cta {
    position: relative;
    display: inline-block;
    width: 320px;
    height: 60px;
    line-height: 60px; /* Centre le texte verticalement */
    background-color: #016576; /* Votre bleu foncé */
    color: #ffffff !important;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid #016576;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    z-index: 1;
    cursor: pointer;
}

/* Effet de balayage au survol (Slide) */
.btn-design-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #CAF6F4; /* Votre bleu clair */
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    z-index: -1;
}

/* Comportement au survol */
.btn-design-cta:hover {
    color: #000000 !important;
    border-color: #016576;
}

.btn-design-cta:hover::before {
    width: 100%;
}

/* Petit texte sous le bouton */
.btn-cta-sub {
    margin-top: 20px;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    color: #333;
    font-weight: normal; /* Non italique comme demandé */
    text-transform: none;
}

/* --- ADAPTATION MOBILE --- */
@media (max-width: 768px) {
    .btn-design-cta {
        width: 280px;
        font-size: 12px;
        height: 55px;
        line-height: 55px;
    }
    .btn-cta-sub {
        font-size: 13px;
        padding: 0 20px;
    }
}


/* FORCE L'EMPILEMENT DES COLONNES SUR MOBILE */
@media (max-width: 768px) {
  .content-page .wf-columns {
    display: flex !important;
    flex-direction: column !important; /* Force la verticale */
  }
  .content-page .wf-column {
    width: 100% !important; /* Prend toute la largeur */
    padding-left: 0 !important; /* Supprime les décalages */
    margin-bottom: 20px; /* Espace entre les blocs empilés */
  }
}

/* --- Style des cartes d'erreurs --- */
.error-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-left: 5px solid #d9534f; /* Rouge discret pour signaler l'erreur */
    padding: 30px;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-radius: 4px;
}

.error-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border-left-color: #016576; /* Change vers votre bleu au survol */
}

.error-card h2 {
    color: #016576;
    font-size: 18px !important;
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.error-card ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.error-card li {
    font-size: 15px;
    margin-bottom: 8px;
}

/* --- Style des fiches de performance/info --- */
.info-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-left: 5px solid #016576; /* Votre bleu signature */
    padding: 30px;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 4px;
    box-sizing: border-box;
}

.info-card h2, .info-card h3 {
    color: #016576;
    margin-top: 0;
    margin-bottom: 15px;
}

.info-card ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.info-card li {
    font-size: 15px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.content-page .wf-column {
    box-sizing: border-box;
}


/* Style spécifique des avis clients */
.testimonial-card {
    border-left: 5px solid #FFD700 !important; /* Barre dorée pour les étoiles */
    background-color: #ffffff;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Espacement mobile */
@media (max-width: 768px) {
    .content-page .wf-column {
        padding-left: 0 !important;
        margin-bottom: 20px;
    }
}

/* --- BANDEAU D'ALERTE POUR LES SPAMS (SÉCURITÉ ROUGE) --- */
.alert-spam {
    background: #ffffff; /* Fond blanc pur */
    border: 1px solid #e0e0e0; /* Bordure grise très fine */
    border-left: 5px solid #d9534f; /* Accent rouge (couleur de sécurité) */
    padding: 20px;
    margin: 30px 0;
    text-align: left;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Légère ombre pour le relief */
}

.alert-spam strong {
    color: #d9534f; /* Titre en rouge */
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 5px;
}

.alert-spam p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #333; /* Texte sombre pour une lisibilité maximale */
}