/* =========================================
   FICHIER : style.css
   Contient tout le design du site JB Habitat
   ========================================= */

/* J'ai ajouté 'html' et la ligne 'overscroll' ici 👇 */
html, body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  overscroll-behavior-y: none; /* Bloque le rebond en haut et en bas */
}

/* === HEADER (EN-TÊTE) === */
.header-fixed-container {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.4s ease-in-out;
  width: 100%;
}

.header-fixed-container.hide {
  transform: translateY(-130%);
}

.top-banner {
  background-color: #161852;
  color: white;
  font-size: 14px;
  font-weight: bold;
  height: 35px;
  display: flex;
  justify-content: center;
  gap: 90px;
  align-items: center;
}

/* --- LE CONTENEUR DU HEADER --- */
.top-header {
    display: flex;
    justify-content: space-between; /* Logo à gauche, Menu à droite */
    align-items: center;            /* Centre tout verticalement */
    padding: 0 40px;                /* Marge sur les côtés */
    background-color: white;
    height: 90px;                   /* Hauteur du bandeau blanc */
    position: relative;
    z-index: 1000;
}

/* --- LE LOGO UNIQUE (Classique) --- */
.logo {
    position: static;    /* IMPORTANT : On annule le mode "flottant/absolu" */
    margin: 0;           /* Pas de marges bizarres */
    margin-left: 40px;
    /* Taille */
    height: 80px;        /* S'adapte à la hauteur du header (laisse 10px de marge haut/bas) */
    width: auto;         /* Largeur automatique pour ne pas déformer */
    
    /* On nettoie le style "Rond/Médaillon" */
    border-radius: 0;
    border: none;
    background-color: transparent;
    object-fit: contain;
}

/* === NAVIGATION === */
.main-nav {
  display: flex;
  align-items: center;
  flex-grow: 1; 
  height: 100%;
  
  /* IMPORTANT : On pousse le menu vers la droite pour éviter le logo */
  margin-left: 200px; 
}

.menu-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

/* Positionnement des liens au centre */
.center-links {
  display: flex;
  gap: 40px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
  height: 100%;
}

/* === SÉPARATEURS VERTICAUX (Gauche, Droite et Milieu) === */

/* 1. On prépare le terrain */
.center-links > * {
  position: relative;
}

/* 2. LES BARRES À DROITE (Pour TOUS les éléments, y compris Entreprise) */
/* J'ai enlevé le ":not(:last-child)" pour que le dernier en ait une aussi */
.center-links > *::after {
  content: "";       
  position: absolute;
  right: -21px;      /* Au milieu de l'espace de droite */
  top: 50%;          
  transform: translateY(-50%); 
  width: 2px;        
  height: 18px;      
  background-color: #161852; 
  pointer-events: none; /* Intouchable */
}

/* 3. LA BARRE À GAUCHE (Seulement pour le premier : Accueil) */
.center-links > *:first-child::before {
  content: "";       
  position: absolute;
  left: -21px;       /* Au milieu de l'espace de gauche */
  top: 50%;          
  transform: translateY(-50%); 
  width: 2px;        
  height: 18px;      
  background-color: #161852; 
  pointer-events: none; /* Intouchable */
}

/* Style des liens */
.menu-links a, 
.dropdown > a {
  text-decoration: none;
  color: #161852;
  font-weight: bold;
  font-size: 17px;
  transition: color 0.3s;
  white-space: nowrap;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%; /* Prend toute la hauteur pour l'effet incrusté */
  padding: 0 10px; /* Ajout d'un peu d'espace cliquable */
}

.menu-links a:hover {
  color: #f88a09;
}

/* Classe pour colorier le lien de la page actuelle */
.menu-links a.active-link,
.dropdown > a.active-link {
  color: #f88a09;
}

.contact-link {
  margin-left: auto;
  margin-right: 20px;
}

/* === LE BOUTON DÉROULANT (Correction Espacement) === */
.dropdown {
  position: relative;
  height: 100%;       
  display: flex;
  align-items: center; 
  
  /* C'EST ICI LA CORRECTION : */
  padding: 0;  /* On met 0 ! Car le lien <a> à l'intérieur a déjà ses 10px. */
  
  cursor: pointer;
  transition: background-color 0.3s;
}

.dropdown > a {
   padding: 0 10px; /* Ajustement du padding */
}

/* La petite flèche */
.nav-arrow {
  display: none !important; 
}

.dropdown:hover .nav-arrow {
  transform: rotate(90deg); /* Rotation complète vers le haut c'est plus joli */
  color: #f88a09;
}

/* === LE CONTENU DU MENU (Ajusté aux séparateurs) === */
.dropdown-content {
  display: flex;
  flex-direction: column;
  
  position: absolute;
  top: 100%;
  
  /* C'EST ICI LA GÉOMÉTRIE : */
  /* On tire le menu jusqu'aux barres de séparation (-21px) */
  left: -21px;  
  right: -21px; 
  
  /* On dit "auto" pour que la largeur se calcule toute seule entre la gauche et la droite */
  width: auto;       
  
  box-sizing: border-box; 
  background-color: #343434;
  
  /* Arrondi en bas seulement */
  border-radius: 0 0 5px 5px; 
  
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  padding: 0;
  z-index: 1001;
  border-top: 3px solid #f88a09;
  
  /* Animation (inchangée) */
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease-in-out;
}

/* On ajuste aussi les liens à l'intérieur pour qu'ils ne soient pas trop serrés */
.dropdown-content a {
  padding: 15px 10px; /* On réduit un peu le padding gauche/droite (10px au lieu de 20px) */
  font-size: 13px;    /* On réduit légèrement la police pour que "Certifications" rentre */
  text-align: center; /* Optionnel : Centre le texte pour faire joli dans la colonne */
  
  white-space: nowrap; /* EMPÊCHE le texte de passer à la ligne */
  overflow: hidden;    /* Cache ce qui dépasse si le mot est vraiment trop long */
  text-overflow: ellipsis; /* Ajoute "..." si c'est trop long */
  background-color: #696969 !important;
  /* Le reste ne change pas */
  display: block !important;
  color: white !important;
  font-weight: normal;
  border-bottom: 1px solid #555555;
  transition: all 0.2s ease;
  height: auto !important;
}

.dropdown-content a:last-child {
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

/* === EFFET AU SURVOL (Texte qui grossit seul) === */
.dropdown-content a:hover {
  background-color: #f88a09 !important; 
  color: white !important;
  
  /* C'EST ICI LE CHANGEMENT : */
  /* On n'utilise plus transform: scale(1.1); car ça grossit la boîte. */
  /* On augmente la taille du texte directement. */
  
  font-size: 14.5px; /* On passe de 14px à 15.5px */
  
  /* Optionnel : tu peux ajouter un léger gras pour renforcer l'effet */
  /* font-weight: 600; */
  
  border-bottom: 1px solid #f88a09; /* On garde la bordure normale */
}

/* === L'ACTION (Au survol) === */
.dropdown:hover .dropdown-content {
  /* État au survol (Visible) */
  opacity: 1;               /* Totalement visible */
  visibility: visible;      /* Cliquable */
  transform: translateY(0); /* Revient à sa place (collé au header) */
}

/* === ASTUCE COULEUR PERSISTANTE === */

/* Quand on survole le BLOC PARENT (.dropdown), 
   on force le lien À L'INTÉRIEUR (> a) à devenir orange.
   Comme le sous-menu fait partie du bloc parent, ça reste orange ! */

.dropdown:hover > a {
  color: #f88a09 !important; /* On force l'orange */
}

/* === LA FLÈCHE ANIMÉE (Corrigée) === */

/* 1. La forme de la flèche (cachée par défaut) */
.dropdown > a::after {
  content: "";
  position: absolute;
  
  /* POSITIONNEMENT HAUTEUR */
  /* On la remonte de 15px pour qu'elle ne touche pas le bord blanc */
  bottom: 15px;      
  
  /* CENTRAGE HORIZONTAL */
  left: 50%;         
  
  /* DESSIN DU TRIANGLE */
  width: 0; 
  height: 0; 
  border-left: 6px solid transparent;  /* Un peu plus petite (6px au lieu de 8px) pour être élégante */
  border-right: 6px solid transparent; 
  border-top: 6px solid #f88a09;       /* Couleur Orange */
  
  /* ÉTAT DE DÉPART DE L'ANIMATION */
  opacity: 0;          /* Invisible */
  
  /* L'astuce : on la place 10px plus haut au départ (-10px) */
  /* translateX(-50%) sert à la garder centrée horizontalement */
  transform: translateX(-50%) translateY(-10px); 
  
  /* MOTEUR DE L'ANIMATION */
  transition: all 0.3s ease-out; /* Doux et fluide */
  
  pointer-events: none; /* Ne gêne pas le clic */
}

/* 2. L'animation au survol */
.dropdown:hover > a::after {
  opacity: 1; /* Devient visible */
  
  /* Elle descend à sa position finale (0) */
  transform: translateX(-50%) translateY(0); 
}

.logo-fb {
  height: 40px;
  transition: transform 0.3s;
}

.logo-fb:hover {
  transform: scale(1.1);
}

/* === SECTIONS DE CONTENU === */
section {
  background-color: white;
  margin: 40px auto;
  padding: 40px;
  max-width: 1000px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

h2 { color: #161852; }
p { line-height: 1.6; color: #444; }

/* === NOUVEAU CARROUSEL (Méthode Fondu Enchaîné Synchronisé) === */

/* 1. Le cadre principal */
.mon-carrousel {
  position: relative;
  width: 100%;
  height: 75vh; 
  overflow: hidden;
  background-color: #333;
}

/* 2. Les diapositives (Méthode Empilement) */
.my-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; 
  z-index: 1;
  transition: opacity 1.5s ease-in-out;
}

.my-slide.active {
  opacity: 1; 
  z-index: 10;
}

.my-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* === REGLAGE PRÉCIS DU CADRAGE === */

/* IMAGE 1 : Réglage manuel */
.slides-container .my-slide:first-child img {
  object-fit: cover;
  /* 50% (Centre largeur) -- 25% (Un peu vers le haut) */
  object-position: 50% 25% !important; 
  transform: scale(1);
  transform-origin: center center;
}

/* IMAGE 2 : Réglage manuel */
.slides-container .my-slide:nth-child(2) img {
  object-fit: cover;
  /* 50% (Centre largeur) -- 70% (Plus vers le bas) */
  object-position: 50% 40% !important;
  transform: scale(1);
  transform-origin: center center;
}

/* IMAGE 3 : Réglage manuel */
.slides-container .my-slide:nth-child(3) img {
  object-fit: cover;
  /* 50% (Centre largeur) -- 50% (Pile au milieu) */
  object-position: 50% 50% !important; 
  transform: scale(1);
  transform-origin: center center
}

/* 4. Le Texte (Animation synchronisée entrée ET sortie) */
.texte-slide {
  position: absolute;
  bottom: 40px; left: 0;
  padding: 15px 40px 15px 60px;
  background-color: rgba(22, 24, 82, 0.9);
  color: white; font-size: 20px; font-weight: bold;
  border-top-right-radius: 5px; border-bottom-right-radius: 5px;
  z-index: 20;
  opacity: 0; 
  transform: translateX(-50px); 
  transition: all 1.5s ease-in-out;
}

.my-slide.active .texte-slide {
  opacity: 1; 
  transform: translateX(0); 
}

/* 5. Les Boutons Flèches */
.btn-prev, .btn-next {
  cursor: pointer; position: absolute; top: 50%;
  width: 50px; height: 50px; padding: 0;
  display: flex; justify-content: center; align-items: center;
  margin-top: -25px;
  color: white; font-weight: bold; font-size: 20px;
  border: none; background-color: #00000080;
  z-index: 30; transition: 0.3s; border-radius: 50%;
}
.btn-prev { left: 35px; }
.btn-next { right: 35px; }
.btn-prev:hover, .btn-next:hover {
  background-color: #161852e6; transform: scale(1.1);
}

/* === FOOTER (PIED DE PAGE) === */
footer {
  background-color: #161852;
  color: white;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

footer p {
  color: white !important; 
  margin: 0;
}

.footer-logo { max-height: 60px; }
.hidden-title { position: absolute; left: -9999px; }

footer a {
  color: white !important; 
  text-decoration: none;   
}

footer a:hover {
  color: #f88a09 !important;
  text-decoration: underline; 
}

/* Nouveau lien Mentions Légales */
.legal-link {
    font-size: 12px;
    margin-top: 15px;
    opacity: 0.8;
}
.legal-link a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dotted #fff;
}
.legal-link a:hover {
    color: #f88a09;
    border-bottom: 1px solid #f88a09;
}

/* === PAGE CONTACT === */
.contact-info-box {
  text-align: center;
  background-color: white;
  padding: 20px; 
  margin: 20px auto;
  margin-bottom: 60px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  max-width: 600px; 
}

.contact-info-box h1 {
  font-size: 22px;
  color: #161852;
  margin-bottom: 30px;
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: 70px;
  flex-wrap: wrap;
  font-size: 15px; 
  color: #444;
  margin-top: 40px;
}

.contact-details p {
  text-align: center;
  margin: 0;              
  line-height: 1.6;
}

.contact-details strong {
  color: #f88a09;
  font-size: 18px;
  display: block;          
  margin-bottom: 5px;
}

/* FORMULAIRE DE CONTACT */
.contact-form-container {
  max-width: 600px; 
  margin: 0 auto;
  margin-bottom: 60px;
  background-color: white;
  padding: 30px; 
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form-container h1 {
  text-align: center;
  color: #161852;
  margin-bottom: 30px;
  font-size: 22px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 14px; 
  margin-bottom: 8px;
  font-weight: bold;
  color: #161852;
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px; 
  box-sizing: border-box; 
  font-family: Arial, sans-serif;
}

.form-group textarea {
  resize: vertical; 
  height: 150px;
}

.form-group input:focus, 
.form-group textarea:focus {
  border-color: #f88a09;
  outline: none;
}

.form-group input:focus:invalid, 
.form-group textarea:focus:invalid {
  border-color: red;
  background-color: #fff0f0; 
}

.btn-submit {
  background-color: #f88a09;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s;
}

.btn-submit:hover {
  background-color: #d67606;
}

.msg-success {
  background-color: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: center;
}

.msg-error {
  background-color: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
  text-align: center;
}

/* === STYLE CASE A COCHER RGPD === */
.rgpd-container {
  display: flex;        
  align-items: flex-start; 
  gap: 15px;            
}

.rgpd-container input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 5px;      
  cursor: pointer;
  flex-shrink: 0;       
  accent-color: #f88a09; 
}

.rgpd-text {
  font-size: 12px;      
  font-weight: normal;  
  text-align: justify;  
  line-height: 1.4;     
}

/* === SECTION HORAIRES === */
.horaires-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;  
  font-size: 15px; 
}

.horaire-ligne {
  display: flex;
  justify-content: space-between; 
  width: 100%;
  max-width: 500px; 
  padding-bottom: 5px;
  border-bottom: 1px solid #eee; 
}

.jour {
  font-weight: bold; 
  color: #161852;
}

.heure {
  color: #444;
}

.heureferme {
  color: #f88a09;
  font-weight: bold; 
  text-transform: uppercase; 
}

/* === CARTE GOOGLE MAPS === */
.map-responsive {
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

.map-responsive iframe {
  width: 100%;       
  height: 500px;     
  display: block;
}

/* === SECTION PRÉSENTATION JB HABITAT === */

.presentation-jb {
    padding: 60px 20px;      /* Espace important en haut et bas */
    background-color: #ffffff;  /* Fond blanc propre */
    text-align: center;      /* On centre tout par défaut */
    box-shadow: none !important;  /* Supprime toute ombre forcée */
    border: none !important;      /* Supprime toute bordure grise */
    outline: none !important;     /* Supprime les contours */
}

/* On limite la largeur du texte pour qu'il soit agréable à lire */
.container-text {
    max-width: 900px;        /* Pas plus large que 900px */
    margin: 0 auto;          /* Centré au milieu de la page */
}

/* Le Titre H2 */
.presentation-jb h2 {
    color: #161852;          /* Bleu JB Habitat */
    font-size: 1.8rem;       /* Taille du texte */
    text-transform: uppercase; /* Force les MAJUSCULES */
    font-weight: 800;        /* Très gras */
    margin-bottom: 50px;     /* Espace sous le titre */
    letter-spacing: 1px;     /* Espacement entre les lettres */
}

/* Le petit trait orange */
.separator-line {
    width: 80px;             /* Longueur du trait */
    height: 4px;             /* Épaisseur du trait */
    background-color: #f88a09; /* Couleur Orange */
    margin: 0 auto 40px auto; /* Centré + marge en bas vers le texte */
    border-radius: 2px;      /* Bords du trait arrondis */
}

/* Le Texte */
.text-content p {
    font-size: 1.1rem;       /* Taille de lecture confortable */
    color: #444;             /* Gris foncé (plus doux que noir) */
    line-height: 1.8;        /* Espace entre les lignes */
    margin-bottom: 25px;     /* Espace entre les paragraphes */
    text-align: justify;     /* Texte justifié (bords droits) pour faire propre */
}

/* Pour centrer la dernière phrase d'accroche */
.text-content .final-question {
    text-align: center;      /* On centre la question */
    color: #161852;          /* En bleu */
    font-weight: bold;       /* En gras */
    font-size: 1.2rem;       /* Un peu plus gros */
    margin-top: 40px;
}

/* === LE BOUTON CONTACT === */
.btn-contact {
    display: inline-block;       /* Se comporte comme un bloc (pour la taille) */
    background-color: #161852;   /* Fond BLEU */
    color: white !important;     /* Texte BLANC (le !important force le blanc) */
    font-weight: 800;            /* Texte très gras */
    text-decoration: none;       /* Enlève le soulignement moche du lien */
    padding: 15px 35px;          /* Espace intérieur : 15px haut/bas, 35px gauche/droite */
    border-radius: 5px;          /* Coins légèrement arrondis */
    font-size: 1rem;             /* Taille du texte */
    transition: all 0.3s ease;   /* Animation fluide au survol */
    border: 2px solid #161852;   /* Bordure bleue (pour l'équilibre) */
}

/* Effet au survol de la souris */
.btn-contact:hover {
    background-color: #f88a09;   /* Devient ORANGE */
    border-color: #f88a09;       /* La bordure devient orange aussi */
    transform: translateY(-3px); /* Le bouton remonte un tout petit peu */
    cursor: pointer;
}

/* Conteneur pour centrer le bouton */
.button-container {
    text-align: center;          /* Centre le bouton */
    margin-top: 50px;            /* Espace entre la question et le bouton */
}

/* === SECTION GRILLE SERVICES === */
.services-grid-section {
    padding: 30px 20px;         /* Espace autour de la section */
    background-color: #ffffff;  /* Fond gris très léger pour détacher du bloc blanc du dessus */
    box-shadow: none !important;  /* Supprime toute ombre forcée */
    border: none !important;      /* Supprime toute bordure grise */
    outline: none !important;     /* Supprime les contours */
}

/* Le conteneur qui gère la grille de 4 colonnes */
.container-grid {
    max-width: 1100px;          /* Largeur max un peu plus grande que le texte */
    margin: 0 auto;             /* Centré */
    display: grid;              /* Active le mode Grille */
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes de taille égale */
    gap: 60px;                  /* Espace entre les cartes */
}

/* === LA CARTE (L'élément cliquable entier) === */
.service-card {
    display: flex;             /* Important pour que le lien entoure tout */
    text-decoration: none;      /* Enlève le soulignement des liens */
    background-color: #ffffff;    /* Fond de base */
    border-radius: 8px;         /* Coins arrondis */
    overflow: hidden;           /* Empêche l'image de dépasser des coins arrondis */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Légère ombre pour le relief */
    transition: transform 0.3s ease; /* Animation fluide pour le petit saut au survol */
    flex-direction: column; /* Met l'image au dessus du texte */
    height: 100%;           /* Force la carte à prendre toute la hauteur de la grille */
    
}

/* Petit effet de saut au survol de la carte entière */
.service-card:hover {
    transform: translateY(-5px); /* Remonte de 5 pixels */
}

/* === L'IMAGE === */
.card-image {
    height: 220px;              /* Hauteur fixe de la zone image */
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* L'image remplit la zone sans être déformée (elle sera coupée si besoin) */
    transition: transform 0.5s ease; /* Zoom lent au survol */
}

/* Zoom sur l'image au survol */
.service-card:hover .card-image img {
    transform: scale(1.05);
}

/* === LA PARTIE TEXTE (FOND BLANC QUI DEVIENT ORANGE) === */
.card-content {
    padding: 25px 20px;         /* Espace interne */
    text-align: center;         /* Texte centré */
    background-color: #161852;    /* Fond blanc par défaut */
    /* C'est ici que la magie du changement de couleur opère */
    transition: background-color 0.3s ease, color 0.3s ease;
    flex-grow: 1;  /* "Grandis pour remplir tout le vide !" */
}

/* --- Changement au survol --- */
/* Quand on survole la carte (.service-card:hover), le contenu (.card-content) change */
.service-card:hover .card-content {
    background-color: #f88a09; /* Le fond devient ORANGE */
}

/* === TYPOGRAPHIE DANS LA CARTE === */

/* Le Titre (ex: COUVERTURE) */
.card-content h3 {
    color: #ffffff;             /* Bleu par défaut */
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

/* Les mots-clés */
.keywords {
    color: #eaeaea;                /* Gris moyen par défaut */
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 20px;
    font-style: italic;
    transition: color 0.3s ease;
}

/* Le mot DÉCOUVRIR */
.discover-btn {
    display: inline-block;
    color: #f88a09;             /* Orange par défaut */
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

/* --- Changement de couleur du texte au survol --- */
/* Quand le fond devient orange, TOUS les textes deviennent BLANCS pour la lisibilité */
.service-card:hover h3,
.service-card:hover .keywords,
.service-card:hover .discover-btn {
    color: white !important;
}

/* =========================================
   PAGE SERVICES
   ========================================= */

/* 1. La Bannière du haut */
.page-banner {
    background-color: #161852; /* Orange JB */
    color: #ffffff;
    text-align: center;
    padding: 20px 20px;
    margin-top: 0 !important;
    margin-bottom: 50px;
}

.page-banner h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.page-banner p {
    color: #ffffff;      /* Blanc pur */
    opacity: 0.8;        /* Petite astuce : légère transparence pour différencier du titre */
    margin-top: 10px;
}

/* 2. Le Conteneur global */
.services-page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === CORRECTION ESPACEMENT FINAL === */
/* Enlève l'espace sous le dernier service (Menuiserie) pour qu'il se rapproche du bandeau */
.services-page-container .service-block:last-child {
    margin-bottom: 20px; /* On garde juste 30px d'air, ajustez selon votre goût */
}

/* 3. Les Blocs Services (Le Zig-Zag) */
.service-block {
    display: flex;          /* Met le texte et l'image côte à côte */
    align-items: center;    /* Centre verticalement */
    gap: 60px;              /* Espace entre texte et image */
    margin-bottom: 100px;   /* Espace entre chaque section */
    box-shadow: none !important;      /* Pas d'ombre */
    border: none !important;          /* Pas de trait de contour */
    background-color: transparent !important; /* Fond transparent */
    outline: none !important;         /* Pas de ligne de sélection */
}

/* Pour inverser l'ordre (Image à gauche) */
.service-block.reverse {
    flex-direction: row-reverse;
}

/* 4. Le Texte */
.service-text {
    flex: 1; /* Prend la moitié de la place */
}

.service-text h2 {
    color: #161852;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.service-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
    text-align: justify;
}

/* Liste à puces stylisée */
.service-text ul {
    list-style: none; /* Enlève les puces moches par défaut */
    padding-left: 0;
}

.service-text ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 1.05rem;
    color: #333;
}

/* Petite puce orange devant chaque élément de liste */
.service-text ul li::before {
    content: "✔";          /* Caractère coche */
    color: #f88a09;        /* Orange */
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Le petit trait orange sous le titre (aligné à gauche cette fois) */
.separator-line-left {
    width: 60px;
    height: 4px;
    background-color: #f88a09;
    margin-bottom: 25px;
    border-radius: 2px;
}

/* 5. L'Image */
.service-img {
    flex: 1; /* Prend l'autre moitié de la place */
}

.service-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* Belle ombre douce */
    transition: transform 0.3s ease;
}

.service-img img:hover {
    transform: scale(1.02); /* Petit zoom élégant au survol */
}

/* 6. Bannière CTA en bas */
/* === BANNIÈRE FINALE (CTA) === */
.final-cta-section {
    background-color: #161852;  /* Fond BLEU JB Habitat */
    color: white;               /* Texte BLANC */
    text-align: center;         /* Tout centré */
    padding: 30px 20px;         /* De l'espace en haut et en bas */
    margin-top: 10px;           /* Espace pour séparer du dernier bloc service */
}

.final-cta-section h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;  /* Titre en majuscules */
}

.final-cta-section p {
    font-size: 1.1rem;
    margin-bottom: 35px;
    line-height: 1.6;
    color: #e0e0e0;             /* Gris très clair pour le texte */
}

/* === LE BOUTON ORANGE SPÉCIAL === */
.btn-cta-orange {
    display: inline-block;
    background-color: #f88a09;  /* Fond ORANGE */
    color: white;               /* Texte BLANC */
    padding: 18px 40px;         /* Bouton assez gros */
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;  /* Animation fluide */
    border: 2px solid #f88a09;
}

/* Effet au survol du bouton */
.btn-cta-orange:hover {
    background-color: white;    /* Le fond devient BLANC */
    color: #f88a09;             /* Le texte devient ORANGE */
    transform: scale(1.05);     /* Le bouton grossit légèrement */
    cursor: pointer;
}

/* =========================================
   PAGE RÉALISATIONS (AVANT / APRÈS)
   ========================================= */

.realisations-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* --- LA CARTE DU CHANTIER --- */
.chantier-card {
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 60px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Légère ombre pour détacher du fond */
    border: 1px solid #eee;
}

/* Informations (Titre et lieu) */
.chantier-info h2 {
    color: #161852;
    font-size: 1.6rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.chantier-info .location {
    color: #f88a09; /* Orange */
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.chantier-info .details {
    color: #555;
    font-style: italic;
    margin-bottom: 25px;
}

/* --- GRILLE DES PHOTOS (CÔTE À CÔTE) --- */
.ba-grid {
    display: flex;
    gap: 20px; /* Espace entre les deux photos */
}

.ba-item {
    flex: 1; /* Chaque photo prend 50% de la largeur */
    position: relative; /* Important pour placer l'étiquette par dessus */
}

.ba-item img {
    width: 100%;
    height: 300px;        /* Force une hauteur identique */
    object-fit: cover;    /* Recadre l'image proprement sans l'écraser */
    border-radius: 5px;
    display: block;
}

/* --- LES ÉTIQUETTES (BADGES) --- */
.badge-avant, .badge-apres {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 0.8rem;
    color: white;
    border-radius: 3px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.badge-avant {
    background-color: #666; /* Gris pour l'avant */
}

.badge-apres {
    background-color: #f88a09; /* Orange JB pour l'après (Victoire !) */
}

/* =========================================
   PAGE RECRUTEMENT
   ========================================= */

.recrutement-container {
    max-width: 1100px;
    margin: 0 auto;
    
    
    /* MODIFICATION ICI */
    /* Avant : padding: 40px 20px; */
    padding: 0 20px;      /* On enlève le rembourrage du haut */
    
    /* Si tu trouves que ce n'est toujours pas assez collé, ajoute ça : */
    margin-top: -20px;    /* Ça force le bloc à remonter vers la bannière */
}

/* --- SECTION INTRO --- */
.recrutement-intro {
    display: flex;
    gap: 50px;
    margin-bottom: 0px;
    align-items: center;
    box-shadow: none;
}

.intro-text { flex: 1; }
.intro-text h2 { color: #161852; font-size: 1.8rem; margin-bottom: 15px; }
.intro-text p { margin-bottom: 15px; line-height: 1.6; color: #444; }

.intro-img { flex: 1; }
.intro-img img { width: 100%; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* =======================================================
   SECTION RECRUTEMENT & OFFRES (Code Complet Fusionné)
   ======================================================= */

.section-title {
    text-align: center;
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 60px;
    text-transform: uppercase;
}

/* === LE CONTENEUR BLEU === */
.jobs-section {
    background-color: #161852;  /* Fond Bleu JB */
    padding: 40px;              /* Espace intérieur */
    border-radius: 10px;        /* Coins arrondis */
    margin-bottom: 60px;        /* Espace sous le bloc */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    max-width: 800px;
    /* On ajoute margin: auto pour centrer le bloc bleu s'il est plus petit que la page */
    margin-left: auto;
    margin-right: auto;
}

.job-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px); 
    border-left: 5px solid #f88a09; /* Petite barre orange à gauche */
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.job-header h4 {
    font-size: 1.4rem;
    color: #161852;
    margin: 0;
}

/* Badges (CDI / Alternance) */
.badge-cdi, .badge-alternance {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    color: white;
}
.badge-cdi { background-color: #f88a09; }
.badge-alternance { background-color: #666; }

.job-location {
    color: #777;
    font-style: italic;
    margin-bottom: 15px;
}

.job-desc {
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* === NOUVEAUTÉS : BOUTONS ET DÉTAILS === */

/* Conteneur des boutons */
.job-actions {
    display: flex;
    align-items: center;
    gap: 15px; /* Espace entre les boutons */
    margin-top: 25px;
}

/* Nouveau bouton "TOUT VOIR" */
.btn-details {
    width: 220px;            /* LARGEUR du bouton*/
    text-align: center;      /* AJOUT : Centre le texte */
    background-color: transparent;
    border: 2px solid #161852;
    color: #161852;
    padding: 12px 0;         /* MODIF : On enlève le padding latéral, géré par flex */
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-details:hover {
    background-color: #161852;
    color: white;
}

/* Bouton "POSTULER" (Style Bouton Orange) */
.btn-job {
    width: 220px;            /* LARGEUR du bouton*/
    text-align: center;      /* AJOUT : Centre le texte */
    
    background-color: transparent; /* Animation : Fond transparent au début */
    color: #f88a09 !important;      /* Texte orange */
    border: 2px solid #f88a09;     /* Bordure orange */
    
    padding: 12px 0;         /* MODIF : Même hauteur que l'autre */
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-job:hover {
    background-color: #f88a09; /* Fond se remplit au survol */
    color: white !important;   /* Texte devient blanc */
}

/* === ZONE CACHÉE (DÉTAILS) === */
.job-details-hidden {
    margin-top: 25px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    animation: fadeIn 0.5s ease;
}

.job-details-hidden h5 {
    color: #f88a09;
    font-size: 1.1rem;
    margin-bottom: 10px;
    margin-top: 0;
}

.job-details-hidden ul {
    padding-left: 20px;
    margin-bottom: 25px;
}

.job-details-hidden li {
    margin-bottom: 8px;
    color: #555;
}

/* Grille Expérience / Permis / Salaire */
.detail-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.detail-grid div {
    flex: 1;
    min-width: 150px;
}

.detail-grid p {
    margin: 0;
    color: #333;
    font-weight: 500;
}

/* Animation d'ouverture */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- FORMULAIRE --- */
.application-form-section {
    background-color: #f9f9f9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px;
    border-radius: 8px;
    margin-top: 60px;
}

.form-box h3 {
    color: #161852;
    margin-bottom: 40px;
    margin-top: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

/* Le petit texte d'aide sous le bouton */
.form-help-text {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    font-style: italic;
}

.form-help-text strong {
    color: #161852; /* Le numéro en bleu pour qu'on le voie bien */
    font-style: normal;
}

.btn-submit-app {
    background-color: #161852;
    color: white;
    padding: 15px 30px;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.btn-submit-app:hover {
    background-color: #f88a09;
}

/* =========================================
   PAGE ATELIER
   ========================================= */

.atelier-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- SECTION 1 : INTRO (Texte + Photo) --- */
.atelier-intro {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    box-shadow: none;
}
/* On réutilise le style de Recrutement, mais au cas où : */
.atelier-intro .intro-text { flex: 1; }
.atelier-intro .intro-text h2 { color: #161852; margin-bottom: 15px; margin-top: 0; }
.atelier-intro .intro-text p { color: #444; line-height: 1.6; margin-bottom: 15px; }

.atelier-intro .intro-img { flex: 1; }
.atelier-intro .intro-img img {
    width: 100%;
    border-radius: 8px;
}

/* --- SECTION 2 : LES 3 PILIERS (Cartes Icones) --- */
.atelier-features {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 80px;
}

.feature-card {
    background-color: #f9f9f9;
    flex: 1;
    padding: 30px 20px;
    text-align: center;
    border-radius: 8px;
    border-bottom: 3px solid #f88a09; /* Souligné en orange */
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: #161852; /* Icone Bleu */
    margin-bottom: 20px;
}

.feature-card h3 {
    color: #161852;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* --- SECTION 3 : FOCUS ZINC (Texte + 1 Grande Photo) --- */
.zinc-section {
    background-color: #161852; /* Fond Bleu JB */
    color: white;
    padding: 50px;
    border-radius: 10px;
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.zinc-content { 
    flex: 1; 
}

.zinc-content h2 { 
    color: #fff; 
    margin-top: 0; 
    border-bottom: 2px solid #f88a09; 
    display: inline-block; 
    padding-bottom: 10px; 
    margin-bottom: 20px; 
}

.zinc-content p { 
    color: #e0e0e0; 
    line-height: 1.6; 
    margin-bottom: 15px; 
}

/* MODIFICATION ICI : On passe à une classe pour une photo unique */
.zinc-big-photo {
    flex: 1; /* Prend autant de place que le texte */
}

.zinc-big-photo img {
    width: 100%;        /* Prend toute la largeur du bloc */
    height: 400px;      /* BEAUCOUP PLUS HAUT (C'était 200px avant) */
    object-fit: cover;  /* L'image remplit sans déformer */
    border-radius: 5px;
    border: 3px solid #fff; /* Bordure blanche un peu plus épaisse */
    box-shadow: 0 10px 20px rgba(0,0,0,0.3); /* Ombre pour donner du relief */
}

/* =============================================
   MODALE COOKIES (CENTRALE) & BOUTON FLOTTANT
   ============================================= */

/* 1. L'arrière-plan grisé (Overlay) */
.cookie-overlay {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fond noir transparent */
    z-index: 10000; /* Tout devant */
    align-items: center;
    justify-content: center;
}

/* 2. La boîte blanche centrale */
.cookie-modal {
    background-color: white;
    width: 400px;
    max-width: 90%; /* Pour mobile */
    padding: 30px;
    border-radius: 20px; /* Bords bien arrondis */
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    animation: popupIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Petit effet de rebond */
}

.cookie-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.cookie-text {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* 3. Les Boutons de la modale */
.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-cookie-accept {
    background-color: #161852; /* Bleu Marine */
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-cookie-refuse {
    background-color: #f88a09; /* Orange */
    color: white;
    border: none;
    padding: 12px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-cookie-prefs {
    background-color: transparent;
    color: #666;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-cookie-accept:hover, .btn-cookie-refuse:hover {
    transform: scale(1.02);
}

/* 4. Le Cookie Flottant (Après acceptation) */
.cookie-floating-btn {
    display: none; /* Caché tant qu'on n'a pas accepté */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 9998;
    font-size: 25px;
    text-align: center;
    line-height: 50px; /* Centre l'emoji verticalement */
    transition: transform 0.3s;
}

.cookie-floating-btn:hover {
    transform: rotate(20deg) scale(1.1);
}

/* 5. Le Rectangle de gestion (Quand on clique sur le cookie flottant) */
.cookie-management-box {
    display: none;
    position: fixed;
    bottom: 80px; /* Juste au-dessus du bouton rond */
    right: 20px;
    width: 300px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999;
    font-size: 0.9rem;
    color: #333;
}

.btn-cookie-revoke {
    background-color: #d63031; /* Rouge pour retirer */
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 0.8rem;
    width: 100%;
}

@keyframes popupIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

