@font-face {
  font-family: 'Geometos Soft Regular';
  src: url('iCiel Thin.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
body {
    font-family: Geometos Soft Regular, sans-serif;
    background-color: #ffffff;
    color: #333;
}

html {
  scroll-behavior: smooth; /* animation fluide */
}

/* --- Généralités / Références --- */
#contact  {
  scroll-margin-top: 100px; /* ajuste la valeur selon la hauteur de ton header */
}
#section-contacte 
{
scroll-margin-top: 100px; 
}
section.bg-light {
    background-color: #f8f9fa !important;
}
section.bg-dark {
    background-color: #1D1F2A !important;
    color: #F8F9FA;
}
h1 {
    color: #f8f9fa;
}
.btn-primary {
    background-color: #1D1F2A;
    border: none;
}
.btn-primary:hover {
    background-color: #1D1F2A;
}
.section-padding {
    padding: 15px 5px;
}
.partners img {
    max-height: 60px;
    margin: 1px;
}


/* --- Navbar & Bouton d'appel Fixe --- */
.navbar {
    background-color: #ffffff !important;
    position: fixed;
    width: 100%;
    z-index: 1030; /* Assure que la nav est au-dessus du formulaire */
}
.navbar .nav-link {
    color: #1D1F2A !important;
}
.navbar .nav-link.active,
.navbar .nav-link:hover {
    color: #1D1F2A !important;
}
.navbar .btn-primary {
    background-color: #1D1F2A;
    border: none;
}
.navbar-toggler
{
    color: #1D1F2A ;
    background-color: #fff;
}
#fixed-call-button {
    /* Maintient le bouton visible même en défilement */
    position: fixed; 
    /* Positionnement en bas à droite */
    bottom: 20px; 
    right: 20px; 
    /* Assure que le bouton est toujours au-dessus des autres éléments */
    z-index: 1000; 
    background-color: #1D1F2A;
    color: #F8F9FA;
    /* Définit la taille pour le rendre rond (avec la classe Bootstrap .rounded-circle) */
    width: auto; /* Ajustez la taille selon vos besoins */
    height: 60px; 
    opacity: 0.8;
    /* Centre l'icône/le texte à l'intérieur */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Ajustement de la taille de l'icône/texte */
    font-size: 24px; 
    text-decoration: none; /* Enlève le soulignement par défaut des liens */
}
/* @media (min-width: 1200px) { 
    #fixed-call-button {
        display: none !important;
    }
} */


/* --- Section HERO & Formulaire --- */
.hero-section {
    background-image: url('img/hero.jpg');
    margin-top: 0px;
    background-size: cover;
    background-position: center;
    height: auto ;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 8px #1D1F2A;
    padding-top: 60px;
}
.overlay-box {
    padding: 0px;
    border-radius: 12px;
    display: inline-block;
    color: #1D1F2A; /* Couleur du texte */
}
.hero-section .btn-light {
    background-color: #1D1F2A;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 25px;
}

/* Styles du formulaire */
.form-overlay {
    max-width: 500px;
    margin: 30px auto;
    padding: 25px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    overflow-x: hidden;     /* masque tout dépassement horizontal */
}
.form-title {
    letter-spacing: 2px;
    margin-bottom: 20px;
}
.form-overlay h4 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #1D1F2A;
    text-align: center;
}
/* group input */
.form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.form-group.full {
    flex-direction: column;
}

/* Styles des champs */
input, select, textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box; /* 👈 AJOUTÉ/CORRIGÉ : Pour que padding/bordure n'ajoute pas de largeur */
}

textarea {
    resize: none;
    height: 80px;
}
select {
    background: #F8F9FA;
    appearance: none; /* enlève le style par défaut */
}

select:focus {
    outline: none;
    border-color: #1D1F2A;
    box-shadow: 0 0 5px #1D1F2A;
}

/* Correction du sélecteur personnalisé */
.custom-select-wrapper {
    position: relative; 
}
.custom-select-wrapper select {
    -webkit-appearance: none; 
    -moz-appearance: none;
    appearance: none;
    padding-right: 30px; 
}
.custom-select-wrapper::after {
    content: "\F282"; 
    position: absolute;
    top: 50%; 
    right: 12px; 
    transform: translateY(-50%); 
    pointer-events: none; 
    font-family: "bootstrap-icons" !important; 
    font-size: 1rem;
    color: #495057; 
}

/* Correction du texte long dans le select */
.custom-select-wrapper option {
    white-space: normal; /* Permet au texte de l'option de revenir à la ligne dans la liste déroulante (si supporté par le navigateur) */
}


/* Styles du checkbox */
.checkbox {
    font-size: 14px;
}
.form-group.checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 8px; 
}
.inline-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;        
    overflow-wrap: anywhere;
    word-break: break-word;
}
.form-group.checkbox label span,
.inline-checkbox span {
    flex: 1 1 auto;
    min-width: 0;           
    white-space: normal;    
}

/* Styles du bouton de soumission */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: #1D1F2A;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.btn-submit:hover {
    background: #1D1F2A;
}
.btn-submit[disabled]{
    opacity: .6;
    cursor: not-allowed;
}

/* Bulle de succès (fade in/out) */
.success-bubble {
    opacity: 0;
    pointer-events: none;
    position: fixed;
    bottom: 30px;
    right: 20px;
    background: rgba(0,128,0,0.95);
    color: #fff;
    padding: 12px 18px;
    border-radius: 28px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    transform: translateY(10px);
    transition: opacity 300ms ease, transform 300ms ease;
    z-index: 9999;
}
.success-bubble.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}


/* --- STATS / INFOS CONTACT --- */
.stats-box {
    background: #DCDDDE;
    padding: 5px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.stats-box h2 {
    font-size: 25px
}

.section-contacte {
    background-color: #1D1F2A;
    border-radius: 12px;
    margin: 0px;
}
.contacte-info {
    text-align: center;
    margin-bottom: 1px;
}
.contacte-icon {
    font-size: 2em; /* Taille des icônes */
    color: #F8F9FA; /* Couleur orange/saumon des icônes */
    margin-bottom: 5px;
}
.contacte-text {
    font-size: 1.1em;
    color: #f8f9fa; /* Une couleur verte claire pour le texte */
    margin-bottom: 0;
}


/* --- Slider de Travaux / Certifications --- */
.slider {
    /* Cache l'excès */
    overflow: hidden; 
    width: 100%;
    margin-top: -2vh;
}
.slide-track {
    display: flex;
    animation: scroll 15s linear infinite; 
    will-change: transform; 
    width: 2100px; /* Doit être la somme des largeurs + duplications */
}
.slide {
    flex: 0 0 auto;
    width: 200px; 
    margin-right: 10px;
}
.slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 25px;
}
@keyframes scroll {
    0% { 
        transform: translate3d(0, 0, 0); 
    }
    100% { 
        transform: translate3d(-50%, 0, 0); 
    }
}
.logo-certif {
    max-height: 100px;   /* taille uniforme */
    width: auto;         /* garde les proportions */
    max-width: 200px;
    object-fit: contain; /* évite les déformations */
    display: block;
    margin: 0 auto;      /* centre l’image dans sa colonne */
    padding: 10px;
}
/* --- Carousel Logos Partenaires --- */
.logo-carousel-container {
    overflow: hidden; 
    width: 100%;
}
.logo-carousel-track {
    display: flex; 
    width: max-content; 
    animation: scroll 10s linear infinite; 
    will-change: transform; 
}
.partner-logo-item {
    flex-shrink: 0; 
    padding: 0 15px; 
    width: 150px; 
}
.partner-logo {
    max-height: 50px; 
    width: auto;
}


/* --- Cartes Services --- */
.card-img-top {
    height: 250px;         
    object-fit: cover;     
    border-top-left-radius: 0.5rem;  
    border-top-right-radius: 0.5rem;
}
.service-card {
    padding: 0px;
    background-color: #DCDDDE;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: -5px;
}
.service-card h5 {
    font-size: 20px;
    color: #1D1F2A;
}
.service-card p {
    line-height: 1.5;
}
.service-card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
}
.service-card .icon {
    font-size: 3rem;
    color: #007bff; 
    margin-bottom: 0px;
}


/* --- Section Vidéos --- */
.video-card {
    position: relative;
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
    z-index: 1;
}
.play-button:hover {
    background-color: #fff;
}
.video-card img {
    border-radius: 15px;
    display: block;
    width: 100%;
    height: auto;
    border-color: #1D1F2A;
}
.play-button {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100px;
    height: 100px;
    background-color: #f8f9fa;
    border-radius:  10px 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #1D1F2A;
    overflow: hidden;
}
.play-button .play-icon {
    position: absolute;
    font-size: 35px;
    z-index: 2;
    color: #1D1F2A;
}
.text-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); 
    animation: spin 12s linear infinite; 
}
@keyframes spin {
    from { transform: rotate(-90deg); }
    to { transform: rotate(270deg); }
}


/* --- FAQ / Accordéon --- */
.accordion-item {
    border: none; 
}
.accordion-button {
    background-color: #fff; 
    color: #1D1F2A; 
    font-weight: bold;
    border-radius: 8px !important; 
    margin-bottom: 5px;
    border: 1px solid #1D1F2A;
}
.accordion-button:focus {
    border: 1px solid #1D1F2A;
    box-shadow: 0 0 0 0rem #1D1F2A !important; 
}
.accordion-button:not(.collapsed) {
    background-color: #fff; 
    color: #1D1F2A;
    border: 1px solid #1D1F2A;
    box-shadow: 0 0 0 0rem #1D1F2A !important;
}
.accordion-body {
    background-color: #fff; 
    color: #495057; 
    padding: 20px;
    border-radius: 0 0 8px 8px; 
    border-top: 0px solid #1D1F2A; 
}


/* --- Avis Google / Swiper --- */
.avis-google-card {
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.10);
    padding: 20px;
    color: #f8f9fa;
    text-align: center;
    transition: transform 0.3s ease;
}
.avis-google-card:hover {
    transform: translateY(-5px);
}
.avatar-client {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
}
.etoiles {
    color: #f8f9fa;
    font-size: 1.2rem;
    margin-top: 10px;
}
.logo-google-moderne {
    height: 30px;
    margin-top: 10px;
}
.mySwiper {
    padding-bottom: 50px; 
    position: relative;
}
.swiper-pagination {
    position: absolute;  
    bottom: 10px;        
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;  
}
.swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    margin: -10px 10px !important;
    background-color: rgba(255, 255, 255, 0.3) !important; 
    opacity: 1 !important;
}
.swiper-pagination-bullet-active {
    background-color: #f8f9fa !important; 
    opacity: 1 !important;
}


/* --- FOOTER --- */
footer {
    background-color: #1D1F2A;
    color: #F8F9FA;
    border-radius: 0px 0px 15px 15px;
}
.footer-section {
    background-color: #F8F9FA; 
    color: #1D1F2A; 
    padding: 20px 0; 
}
.footer-heading {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1D1F2A; 
    margin-bottom: 3px;
}
.list-unstyled {
    padding-left: 0;
    list-style: none; 
}
.footer-link {
    color: #1D1F2A; 
    text-decoration: none; 
    line-height: 2; 
    display: block; 
    transition: color 0.3s ease; 
}
.footer-link:hover {
    color: black; 
    text-decoration: underline; 
}


/* --- Responsive Mobile (Correction du formulaire incluse) --- */
@media (max-width: 768px) {
    .form-overlay {
        max-width: 100%;
        margin: 15px;
        padding: 15px;
    }

    /* 👇 CORRECTION DE BASE: Ces règles s'assurent que les champs s'empilent bien */
    .form-group {
        /* On retire flex-direction: row !important; pour que le .form-group.full puisse fonctionner correctement */
        flex-direction: column !important; 
        gap: 15px; /* Augmente l'espace pour une meilleure lisibilité */
    }

    /* On s'assure que les paires restent sur la même ligne si possible (Prénom/Nom, CP/Ville, Mail/Tel) */
    .hero-section .form-overlay .form-group:not(.full) {
        flex-direction: row; /* Rétablit l'affichage côte à côte pour les paires d'inputs */
    }

    /* Et on s'assure que chaque input prend sa part dans le row */
    .hero-section .form-overlay .form-group:not(.full) input,
    .hero-section .form-overlay .form-group:not(.full) select {
        flex: 1 1 0%; /* Distribution égale de l'espace */
    }
    
    /* Et on s'assure que les champs "full" prennent toute la largeur */
    .form-group.full input,
    .form-group.full select {
        width: 100% !important;
    }
    
    /* Correction spécifique des inputs pour la largeur */
    input, select {
        width: 100%;
    }
    
    /* Correction mobile pour la bulle de succès */
    .success-bubble {
        right: 12px;
        left: 12px;
        bottom: 18px;
        text-align: center;
    }
}

@media (max-width: 600px) { 
    .inline-checkbox {
        white-space: normal; 
        flex-shrink: 1; 
    }
}
/* --- Correction Spécifique du Checkbox sur Mobile (Problème de débordement du texte) --- */
@media (max-width: 768px) {
    /* 1. Assurez-vous que le conteneur du formulaire gère les débordements */
    .form-overlay {
        overflow-x: hidden !important; 
    }

    /* 2. Ciblez le conteneur du checkbox pour forcer l'alignement et le wrap */
    .form-group.full.checkbox {
        /* On remet en colonne juste pour cette ligne pour éviter un flex-row mal géré */
        flex-direction: column !important; 
        align-items: flex-start; /* Aligne tout au début */
    }

    /* 3. Ciblez le label qui contient l'input et le texte */
    .form-group.checkbox label {
        display: flex; /* Utilise flex pour aligner la case et le texte */
        align-items: flex-start;
        max-width: 100%; /* Limite à la largeur du parent */
        box-sizing: border-box;
        padding: 0;
        margin: 0;
    }

    /* 4. Le correctif crucial : le texte du checkbox doit pouvoir revenir à la ligne */
    .form-group.checkbox label span,
    .inline-checkbox span {
        /* Le texte est autorisé à prendre tout l'espace restant */
        flex: 1 1 0; 
        /* CECI EST ESSENTIEL : permet au texte de revenir à la ligne au lieu de déborder */
        white-space: normal !important; 
        word-break: break-word; /* Force la coupure si un mot est trop long (très rare) */
        overflow-wrap: break-word;
        min-width: 0; /* Empêche le contenu interne de forcer une largeur minimale qui déborde */
    }
    
    /* Règle générale pour les petits écrans */
    .form-group {
        flex-direction: column !important;
        gap: 10px; 
    }
    .hero-section .form-overlay .form-group:not(.full) {
        flex-direction: row; 
    }
    .hero-section .form-overlay .form-group:not(.full) input,
    .hero-section .form-overlay .form-group:not(.full) select {
        flex: 1 1 0%; 
    }
}