/* ========================= Section slider ========================= */
.slider {
    transition: transform 1s ease-in-out;
}

.slide {
    height: 80vh; /* Ajuste automatiquement la hauteur */
    width: 100%; /* Largeur de 100% de la fenêtre */
    background-size: cover; /* Remplit tout en gardant une bonne proportion */
    background-position: center;
    background-repeat: no-repeat;
    display: flex; /* 🔹 Flexbox */
    justify-content: center; /* Centrage horizontal */
    align-items: center;     /* Centrage vertical */
    color: #ffffff; /* var(--slider-textColor) */
    text-align: center;
    overflow: hidden;
    position: relative;
}

.slide::before {
    content: "";
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    background: rgba(0, 0, 0, 0.35); /* couche semi-transparente noire */
    z-index: 1;
}

/* Le contenu doit être au-dessus de cette couche */
.slide .content {
    position: relative;
    z-index: 2;
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrage vertical */
    align-items: center;     /* Centrage horizontal */
    max-width: 100%;
    width: 100%;
    height: 100%; /* Prendre toute la hauteur du parent */
}

/* 📌 TITRE */
.slide h2 {
    font-size: 4vw;
    margin-bottom: 0.5%;
    font-weight: bolder;
    text-shadow: 2px 2px 5px rgb(0, 0, 0);
}

/* 📌 SOUS-TITRE */
.slide p {
    font-size: 2vw;
    margin-bottom: 0.5%;
    font-weight: bolder;
    text-shadow: 2px 2px 5px rgb(0, 0, 0);
    margin-bottom: 4%;
}

/* 📌 BOUTON */
.btn-slider {
    background-color: #4db8ff; /* var(--slider-buttonBackgroundColor) */
    color: #ffffff;            /* var(--slider-buttonTextColor) */
    padding: 1% 3%;
    font-size: 1.5vw;
    border-radius: 5px;
    text-decoration: none;
}

.btn-slider:hover {
    background-color: #3399cc;
}

.call-button {
    color: #ffffff; 
    font-weight: bold;
    padding: 1% 4%;
    border-radius: 8px;
    font-size: 1.5vw;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.call-button:hover {
    transform: scale(1.05);
}

/* 🔹 Responsive : Tablettes */
@media screen and (max-width: 1100px) and (orientation: portrait) {
    .slide {
        max-height: 40vh;
    }
}

/* Media Queries pour ajuster les tailles en fonction de la taille de l'écran */
@media (max-width: 768px) {
    .slide {
        max-height: 35vh; /* Ajuste la hauteur pour les écrans moyens */
    }
    .slide h2{
        font-size: 7vw;
    }
    .slide p{
        font-size: 4vw;
    }
    .btn-slider {
        padding: 2% 5%;
        font-size: 3.5vw;
    }
}

@media (max-width: 480px) {
    .slide {
        max-height: 30vh; /* Ajuste la hauteur pour les petits écrans */
    }
}

@media screen and (max-width: 768px) and (orientation: landscape) {
    .slide {
        max-height: 80vh;
    }
}
@media (max-width: 280px) and (orientation: portrait) {
    .slide {
        max-height: 40vh;
    }    
}
/* ========================= Section services ========================= */
.full-service-banner {
    position: relative;
    background-color: #ffffff; /* var(--services-backgroundColor) */
    padding: 2vw 2vw;
    box-shadow: inset 0 -1px 0 #eee;
    display: flex;
    justify-content: center;
    border-bottom: 4px solid #4db8ff; /* var(--services-borderBottomColor) */
    border-top: 4px solid #3399cc;    /* var(--services-borderTopColor) */
    }
    
    .full-service-wrapper {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5vw; /* espace entre texte et bulle */
      max-width: 100%;
      flex-wrap: wrap;
      text-align: left;
    }
    
    .full-service-content {
      max-width: 900px;
      color: #000000; /* var(--services-textColor) */
      padding: 0;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      animation: fadeIn 1s ease-in-out;
    }
    
    .full-service-content h2 {
      font-size: 2.2em;
      margin-bottom: 1.5rem;
      color: #005580;  }
    
    .full-service-content p {
      font-size: 1.1em;
      line-height: 1.6;
      margin-bottom: 1.2rem;
    }
  
    
  
    .full-service-content strong {
      color: #005580;
      }
    
    .full-service-content ul {
      margin: 1rem 0;
      padding-left: 1.5rem;
    }
    
    .full-service-content ul li {
      position: relative;
      margin-bottom: 0.8rem;
      padding-left: 1rem;
    }
    
    
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    /* 🟢 BULLE RESPONSIVE */
    .bubble-image {
      width: clamp(200px, 25vw, 260px);
      height: clamp(200px, 25vw, 260px);
      border-radius: 50%;
      padding: 5px;
      background: #ffffff;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
      flex-shrink: 0;
    }
    .bubble-image {
      width: clamp(180px, 22vw, 260px); /* bulle réduite globalement */
      height: clamp(180px, 22vw, 260px);
    }
    
    .bubble-image img {
      border-radius: 50%;
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    
    /* 📱 Responsive */
    @media screen and (max-width: 900px) {
      .full-service-wrapper {
        flex-direction: column;
        text-align: center;
      }
    
      .bubble-image {
        margin: 40px 0 0;
      }
    
      .full-service-content {
        text-align: center;
      }
    }
    
    
    /* Media Query pour mobile */
  @media (max-width: 768px) {
      .full-service-content {
          flex-direction: column;
          padding: 40px 15px;
      }
  
      .full-service-content h2 {
          font-size: 1.8em;
      }
  
      .full-service-content p {
          font-size: 1em;
      }
  
      .full-service-content ul {
          margin: 0rem 0;
          padding-left: 2rem;
        }
        
        .full-service-content ul li {
          margin-bottom: 0.8rem;
          padding-left: 0rem;
        }
        
  }

/* ========================= Section avis ========================= */  
.avis {
    padding: 40px 20px;
    background-color: #0b1a2f;
    text-align: center;
    color: #ffffff;
    border-bottom: 4px solid #4db8ff;
    overflow: hidden;
}

.avis h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: bold;
    letter-spacing: 1px;
}

.avis-slider-wrapper {
    overflow: hidden;
    max-width: 1300px;
    margin: 0 auto;
}

.avis-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 0 10px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.avis-slider::-webkit-scrollbar {
    display: none;
}

.avis-item {
    flex: 0 0 calc((100% - 90px) / 4);
    background-color: #122b45;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 6px 12px rgba(77, 184, 255, 0.1);
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    text-align: left;
}

.avis-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(77, 184, 255, 0.2);
}

.avis-item .avis-auteur {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.avis-item .avis-message {
    font-style: italic;
    font-size: 1.1rem;
    color: #b3e0ff;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 6.5em;
    line-height: 1.3em;
    position: relative;
}

.avis-item .avis-note {
    color: #4db8ff;
    font-size: 1.3rem;
    margin: 10px 0;
}

.avis-meta {
    font-size: 0.85rem;
    color: #b3e0ff;
}

.btn-afficher-plus {
    background: none;
    border: none;
    color: #4db8ff;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 8px;
    padding: 0;
}
.avis-full-extended {
    font-size: 1rem;
    color: #b3e0ff;
}

/* Responsive mobile */
@media screen and (max-width: 768px) {
    .avis-slider {
        gap: 15px;
        padding: 0 10px;
    }

    .avis-item {
        flex: 0 0 90%;
        margin: 0 auto;
    }

    .avis-item .avis-message {
        font-size: 1rem;
    }   
}

/* ========================= Section Pourquoi nous faire confiance ? ========================= */
.why-choose-us {
    background-color: #f9f9f9;/* Couleur de fond */
    padding: 50px 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Ombre douce */
    text-align: center;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 1100px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

/* Contenu de la section */
.why-choose-us-content {
    max-width: 600px;
    margin-left: 50px;
    text-align: left;
}

/* Titre */
.why-choose-us h2 {
    font-size: 2.2em;
    color: #004080; /* Couleur du titre */
    margin-bottom: 20px;
}

/* Texte */
.why-choose-us p {
    font-size: 1.1em;
    color: #333;/* Couleur du texte */
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Mise en valeur du texte important */
.why-choose-us p strong {
    font-weight: bold;
    color: #004080;  /* Mise en valeur du texte important */
}

/* Style pour l'image */
.why-choose-us-image {
    max-width: 400px;
    flex-shrink: 0;
    position: relative;
}

.why-choose-us-image img {
    width: 100%;
    height: auto;
    border: 8px solid #004080; /* Encadrement vert autour de l'image */
    border-radius: 15px; /* Coins arrondis */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);/* Ombre autour de l'image */
    transform: rotate(-3deg); /* Inclinaison subtile de l'image */
}

/* Media Query pour mobile */
@media (max-width: 768px) {
    .why-choose-us {
        flex-direction: column;
        padding: 40px 15px;
    }

    .why-choose-us h2 {
        font-size: 1.8em;
    }

    .why-choose-us p {
        font-size: 1em;
    }

    .why-choose-us-content {
        margin-left: 0;
        text-align: center;
    }

    .why-choose-us-image {
        max-width: 80%;
        margin-top: 20px;
    }
}
/* ========================= Section Contact ========================= */
/* ===== Section Contact ===== */
.contact {
    padding: 60px 20px;
    background-color: #0b1a2f;
    color: #ffffff;
    text-align: center;
    border-bottom: 4px solid #4db8ff;
    border-top: 4px solid #4db8ff;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #b3e0ff;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #122b45;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(77, 184, 255, 0.1);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
    display: block;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #4db8ff;
    border-radius: 5px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4db8ff;
    outline: none;
}

.btn {
    background-color: #4db8ff;
    color: #ffffff;
    padding: 12px 24px;
    font-size: 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #3399cc;
}

.contact-options {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-options a {
    color: #b3e0ff; /* Tu peux définir cette var dans tes variables si besoin */
    text-decoration: none;
    font-weight: bold;
}

.contact-options a:hover {
    text-decoration: underline;
}

/**/

/* 🔹 Responsive : Tablettes (768px à 1024px) */
@media screen and (max-width: 1024px) {
    .contact-form {
        padding: 20px;
    }

    .contact h2 {
        font-size: 2rem;
    }

    .contact p {
        font-size: 1rem;
    }

    .btn {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* 🔹 Responsive : Mobiles (moins de 768px) */
@media screen and (max-width: 768px) {
    .contact h2 {
        font-size: 1.8rem;
    }

    .contact p {
        font-size: 1rem;
    }
    .contact-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
      }
    
      .contact-block p {
        margin-bottom: 8px;
      }
      
    .form-group input,
    .form-group textarea {
        font-size: 1rem;
    }

    .btn {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* ========================= Section Zones d'intervention ========================= */
.zones-intervention {
    padding: 60px 20px;
    background-color: #f9f9f9;
    color: #333;
}

.zones-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.zones-text {
    flex: 1;
    min-width: 300px;
    
}

.zones-text h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #004080;

}

.zones-text p {
    font-size: 1.1em;
    line-height: 1.6;
}

.zones-map {
    flex: 1;
    min-width: 300px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}


@media screen and (max-width: 768px) {
    .zones-text h2 {
    text-align: center;
}

    .zones-text, .zones-map {
        flex: none;
        width: 100%;
        max-width: 600px;
    }
    
}

/* ========================= Section À propos ========================= */
.about {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 20px;
    background-color: #0b1a2f;
    color: #ffffff;
    border-top: 4px solid #4db8ff; /* Bordure pour plus de dynamisme */
}

.about-content {
    width: 50%;
}

.about h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.about p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #b3e0ff;
    margin-bottom: 20px;
}

.about .btn {
    background-color: #4db8ff;
    color: #ffffff;
    padding: 12px 24px;
    font-size: 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.about .btn:hover {
    background-color: #3399cc;
}

.about-image {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 80%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(77, 184, 255, 0.1);
    border: 2px solid #b3e0ff;
}

/* 🔹 Responsive : Tablettes (768px à 1024px) */
@media screen and (max-width: 1024px) {
    .about {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        width: 100%;
        margin-bottom: 20px;
    }

    .about-image {
        width: 100%;
    }

    .about .btn {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .about-image img {
        max-height: 250px; /* Ajuste la taille de l'image */
    }
}

/* 🔹 Responsive : Mobiles (moins de 768px) */
@media screen and (max-width: 768px) {
    .about h2 {
        font-size: 2rem;
    }

    .about p {
        font-size: 1rem;
    }

    .about .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .about-image img {
        max-height: 200px; /* Réduit la taille de l'image sur mobile */
    }
}



/* Texte area général */
textarea {
    overflow-y: auto; /* scroll vertical s'il dépasse */
    resize: none; /* on désactive le resize manuel, sinon ça casse l'autoresize */
    min-height: calc(1.2em * 2); /* 2 lignes min (ajuste selon ta ligne) */
    max-height: calc(1.2em * 30); /* 30 lignes max */
    line-height: 1.2em;
}