:root {
    --primary-color: #0077b6;
    --secondary-color: #90e0ef;
    --accent-color: #48cae4;
    --text-color: #333;
    --light-bg: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 90px; /* un peu plus si le menu burger prend plus de place */
    }
}

/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
@media screen and (max-width: 768px) {
    header {
        padding: 0;
    }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo span {
    color: var(--secondary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    /* background: linear-gradient(var(--primary-color), rgba(255, 255, 255, 0.1)), url('/Images/bleu-ondule-eau-fond-piscine.jpg'); */
    position: relative;
    background-image: url('Images/bleu-ondule-eau-fond-piscine.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 4rem;
    overflow: hidden; /* pour que le ::before reste contenu */
}

/* couche semi-transparente par-dessus l'image */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* noir semi-transparent */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #005a8c;
}

/* Services Section */
.services {
    padding: 5rem 2rem;
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 350px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-image {
    height: 30px;
    background-size: cover;
    /*height: 200px;
    background-repeat: no-repeat;
    background-size: contain;*/

    background-color: #ddd;
    background-position: center;
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.1rem;
    color: var(--primary-color);
}

.service-content p {
    text-align: justify;
}

/* About Section */
.about {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image {
    flex: 1;
    background-color: #ddd;
    height: 400px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
}

/* Gallery Section */
.gallery {
    padding: 5rem 2rem;
    background-color: var(--light-bg);
}

/* Le conteneur global : un groupe par ligne */
.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  /* Chaque groupe (titre + 3 images) */
  .gallery-group {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* Le texte centré au-dessus */
  .gallery-group-text {
    text-align: left;
    font-size: 1.4rem;
    /* font-weight: bold; */
    color: var(--primary-color);
    margin-bottom: 0.5rem;
  }
  
  /* Les 3 images côte à côte */
  .gallery-images {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
  }
  
  /* Chaque image */
  .gallery-item {
    flex: 1 1 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
    border-radius: 8px;
    overflow: hidden;
    background-color: #ddd;
    height: 250px;
  }
  
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
  }
  
  .gallery-item:hover img {
    transform: scale(1.1);
  }
  
  /* --- Responsive --- */
  @media screen and (max-width: 768px) {
    .gallery-images {
      flex-direction: column;
      gap: 1rem;
    }
  
    .gallery-item {
      max-width: 100%;
      height: 200px;
    }
  
    .gallery-group-text {
      text-align: center;
    }
  }

/* Testimonials Section */
.testimonials {
    padding: 5rem 2rem;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slide {
    text-align: center;
    padding: 2rem;
    display: none;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-content {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 20px 20px 0;
    border-style: solid;
    border-color: white transparent transparent;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
    background-color: #ddd;
}

.author-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.author-info p {
    color: #666;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    background-color: var(--light-bg);
}

.contact-container {
    display: flex;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.contact-form {
    flex: 1;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .about-container {
        flex-direction: column;
    }
    
    .about-image {
        width: 100%;
    }
    
    .contact-container {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    /* voir pour mieux affiche le logo
    .logo {
        font-size: 0.9rem;
        font-weight: normal;
        letter-spacing: 1px;
    }*/

    nav ul {
        position: fixed;
        top: 60px;
        left: -100%;
        background-color: var(--primary-color);
        width: 100%;
        flex-direction: column;
        padding: 2rem 0;
        transition: left 0.3s;
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        display: block;
        padding: 1rem 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .services-container {
        flex-direction: column;
        align-items: center;
    }
}
