/* --- VARIABLES & GLOBAL STYLES --- */
:root {
    --primary-color: #20B2AA; /* Vert-bleu du logo */
    --secondary-color: #333333; /* Gris foncé du texte "Lotus" */
    --accent-color: #4CAF50; /* Une couleur d'accent vert plus vif si nécessaire */
    --dark-color: #333333; /* Texte principal, tiré du logo */
    --light-color: #FFFFFF;
    --gray-background: #F8F9FA; /* Fond clair pour les sections */
    --text-color: #555555; /* Texte courant */
    --font-family: 'Poppins', sans-serif;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--dark-color);
    font-weight: 600;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color); /* Changement au gris du logo */
    color: var(--light-color);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-color);
    border: 2px solid #eee;
}

.btn-secondary:hover {
    background-color: var(--primary-color); /* Changement au vert-bleu du logo */
    border-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-3px);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-color);
}

/* --- PRELOADER --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}
.preloader img {
    width: 150px;
    animation: pulse 1.5s infinite ease-in-out;
}
.preloader.fade-out {
    opacity: 0;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* --- HEADER & NAVIGATION --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(255, 255, 255, 255);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.nav-logo img {
    width: 100px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 600;
    padding: 5px 0;
    text-transform: uppercase;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-button {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 10px 22px;
    border-radius: 50px;
    text-transform: uppercase;
}
.nav-button:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.nav-toggle {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-color);
}

/* --- HERO SECTION --- */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
    background-color: var(--gray-background);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    max-width: 550px;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* --- SERVICES SECTION --- */
.services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    border: 1px solid #eee;
    overflow: hidden;
    transition: var(--transition);
}
.padding-40{
    padding: 20px;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-card-icon {
    width: 100%;
    object-fit: cover;
}

.service-card-title {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card-text {
    margin-bottom: 20px;
    font-size: 15px;
}

.service-card-link {
    font-weight: 600;
    display: inline-block;
    position: relative;
    color: var(--primary-color); /* Assurer que le lien est de couleur primaire */
}
.service-card-link::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}
.service-card-link:hover::after {
    margin-left: 10px;
    color: var(--secondary-color); /* Changer la couleur au survol */
}

/* --- ABOUT SECTION --- */
.about {
    padding: 80px 0;
    background-color: var(--gray-background);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-images {
    flex: 1;
    position: relative;
    height: 450px;
}

.about-img-1 {
    width: 70%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: absolute;
    top: 0;
    left: 0;
}

.about-img-2 {
    width: 60%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: absolute;
    bottom: -60px;
    right: 0;
    border: 5px solid var(--light-color);
}

.about-text {
    flex: 1;
}

.about-mission {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 20px 0;
}

.about-text p {
    margin-bottom: 30px;
}

/* --- CONTACT SECTION --- */
.contact {
    padding: 80px 0;
}

.contact-wrapper {
    display: flex;
    gap: 60px;
    background-color: var(--light-color);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-info {
    flex-basis: 40%;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
}
.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--text-color);
}
.contact-link i {
    font-size: 20px;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

.contact-form {
    flex-basis: 60%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group-full {
    grid-column: 1 / -1;
}
.contact-form label {
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 600;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 16px;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(32, 178, 170, 0.2); /* Utilise la couleur primaire du logo */
}
.contact-form button {
    grid-column: 1 / -1;
    justify-self: start;
    border: none;
    cursor: pointer;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--secondary-color); /* Utilise le gris foncé du logo pour le footer */
    color: #ccc;
    padding: 30px 0;
    text-align: center;
}
a.nav-logo {
    height: 100%;
    display: flex;
    align-items: center;
}
/* --- LOCATION & MAP SECTION --- */
.location {
    padding: 80px 0;
    background-color: var(--gray-background);
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    margin-top: 40px;
    border-radius: var(--border-radius);
    overflow: hidden; /* Ensures the map corners are rounded */
    box-shadow: var(--box-shadow);
}

.google-map {
    width: 100%;
    height: 100%;
    border: none;
    /* Modern effect: map is grayscale until you hover */
    filter: grayscale(1);
    transition: var(--transition);
}

.map-wrapper:hover .google-map {
    filter: grayscale(0);
}

.location-info-card {
    position: absolute;
    top: 50%;
    left: 80px;
    transform: translateY(-50%);
    background: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    max-width: 350px;
    z-index: 10;
}

.location-info-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
}
.location-info-card p {
    margin-bottom: 20px;
}
/* --- BEFORE/AFTER GALLERY SECTION (PRO VERSION) --- */
.gallery {
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.image-comparison-container {
    position: relative;
    --position: 50%; /* Position initiale du slider */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.image-container {
    max-width: 100%;
    display: block;
    aspect-ratio: 16 / 10; /* Donne une proportion fixe aux images */
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.image-before {
    /* C'est la magie : on coupe l'image "avant" en fonction de la variable --position */
    clip-path: inset(0 calc(100% - var(--position)) 0 0);
}

/* Le slider fonctionnel (mais invisible) */
.slider {
    position: absolute;
    inset: 0;
    cursor: col-resize;
    opacity: 0; /* On le cache, mais il reste utilisable */
    width: 100%;
    height: 100%;
    margin: 0;
}

/* Les éléments visuels du slider */
.slider-line {
    position: absolute;
    inset: 0;
    width: 3px;
    background: var(--light-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    left: var(--position);
    transform: translateX(-50%);
    pointer-events: none; /* Pour pouvoir cliquer à travers */
}

.slider-button {
    position: absolute;
    background-color: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50%;
    left: var(--position);
    transform: translate(-50%, -50%);
    pointer-events: none; /* Pour pouvoir cliquer à travers */
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
/* --- ✅ NOUVEAUX STYLES POUR LES SECTIONS DE CONFIANCE --- */

/* --- Section Témoignages --- */
.testimonials {
    background-color: var(--gray-background);
    padding: 80px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-top: 4px solid var(--primary-color);
}

.testimonial-card .stars {
    color: #FFC107; /* Jaune doré pour les étoiles */
    font-size: 20px;
    margin-bottom: 15px;
}

.testimonial-card blockquote {
    font-style: italic;
    margin-bottom: 15px;
    border: none;
    padding: 0;
}

.testimonial-card cite {
    font-weight: 600;
    color: var(--dark-color);
}


/* --- Section Équipe --- */
.team {
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
}

.team-member-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.team-member-card img {
    width: 100%;
    max-width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 5px solid var(--light-color);
}

.team-member-card h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.team-member-card p {
    color: var(--primary-color);
    font-weight: 600;
}

/* --- Section Galerie Clinique --- */
.clinic-gallery {
    padding: 80px 0;
    background-color: var(--gray-background);
}

.clinic-photo img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* --- ✅ STYLES POUR LE HEADER QUI CHANGE AU DÉFILEMENT --- */
.header.scrolled {
    background-color: var(--light-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
/* --- ✅ STYLES POUR LE TÉMOIGNAGE VIDÉO PROFESSIONNEL --- */

/* Style de la carte vidéo */
.testimonial-card.video-testimonial {
    padding: 0;
    overflow: hidden;
    margin-bottom: 2rem;
}
.video-poster {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Ratio 16:9 pour la vidéo */
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.video-poster .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(32, 178, 170, 0.9); /* Couleur primaire semi-transparente */
    color: var(--light-color);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--light-color);
    font-size: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.video-poster:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary-color);
}

.video-testimonial blockquote,
.video-testimonial cite {
    padding: 0 30px;
}
.video-testimonial blockquote {
    padding-top: 30px;
}
.video-testimonial cite {
    padding-bottom: 30px;
    display: block;
}


/* La magie de la modale (lightbox) */
.video-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(8px);
}

.video-lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 20%;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.video-lightbox.show .lightbox-content {
    transform: scale(1);
}

.lightbox-content video {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
}
/* --- ✅ FOOTER PROFESSIONNEL AMÉLIORÉ --- */

.footer {
    background-color: var(--secondary-color);
    color: #ccc;
    padding: 60px 0 20px 0;
    line-height: 1.8;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column .footer-logo {
    width: 140px;
    margin-bottom: 20px;
}

.footer-column  {
    text-align: left;
}
.footer-column h3 {
    color: var(--light-color);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

/* Petite ligne de décoration sous les titres */
.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column p {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column i {
    color: var(--primary-color);
    /* margin-right: 10px; */
    width: 20px;
    text-align: center;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    border-radius: 50%;
    margin-right: 10px;
    font-size: 16px;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
}

.footer-bottom a {
    font-weight: 600;
}