/* =======================
   Variables et Style Global
   ======================== */

:root {
    --bleu-saphir: #0d2a4f; /* Bleu de la Top-Bar */
    --or-brosse: #c9a96e;   /* Couleur "Or" pour les accents */
    --blanc-creme: #fdfaf5; /* Fond de la Nav Principale */
    --blanc: #ffffff;
    --texte-gris: #555;
    /* Couleur de fond (utilisée en fallback) */
    --bleu-ardoise-hero: #4a5f7f; 
    
    --nav-height: 90px; /* Hauteur de la Nav Principale */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--texte-gris);
    line-height: 1.6;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =======================
   Header (Barres de Nav)
   ======================== */

.header {
    position: fixed; /* Reste fixe en haut */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--blanc-creme);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* --- Top Bar --- */
.top-bar {
    background: var(--bleu-saphir);
    color: var(--blanc);
    padding: 10px 0;
    font-size: 0.8rem;
    font-weight: 500;
}
.top-bar-item { opacity: 0.8; }
.top-bar-urgence {
    color: var(--or-brosse); /* Accent "Or" pour l'urgence */
    font-weight: 700;
    opacity: 1;
}

/* --- Main Nav (Style Solide) --- */
.main-nav {
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

.main-nav .container {
    width: 100%; 
}

.logo img {
    height: 40px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center; /* Aligne les liens et le bouton */
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--bleu-saphir); 
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    /* padding-bottom: 5px; */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--or-brosse);
    transition: width 0.3s ease-out;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Le li qui contient le bouton CTA */
.nav-cta-item {
    padding: 0;
    margin: 0;
}

/* --- Style du Bouton CTA (Or) --- */
.cta-button {
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    background: var(--or-brosse);
    color: var(--bleu-saphir);
    border: 2px solid var(--or-brosse);
    display: inline-block; 
}

.cta-button:hover {
    background: #b89862; 
    border-color: #b89862;
    transform: scale(1.05);
}

/* --- Bouton Hamburger --- */
.menu-toggle {
    display: none; /* Caché sur PC */
    background: none;
    border: none;
    color: var(--bleu-saphir);
    font-size: 1.5rem;
    cursor: pointer;
}

.menu-toggle .icon-times {
    display: none; /* L'icône 'X' est cachée par défaut */
}

/* Style de l'icône 'X' quand le menu est actif */
.menu-toggle.active .icon-bars {
    display: none;
}
.menu-toggle.active .icon-times {
    display: block;
}


/* =======================
   Hero Section
   ======================== */

.hero {
    position: relative; 
    height: 100vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; 
    color: var(--blanc-creme); /* Le texte reste blanc/crème */

    background-image: url('/images/hero-background.png'); 
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 2; /* Se place entre l'image de fond et le texte */
}
/* --- Contenu Héro (Mise à jour z-index) --- */
.hero-content {
    position: relative;
    z-index: 3; 
    color: var(--blanc-creme);
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem; 
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* Pour l'animation GSAP */
.hero-title span {
    display: inline-block;
    opacity: 0; 
    transform: translateY(30px);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0; 
    transform: translateY(30px);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0; 
    transform: translateY(30px);
}

/* Bouton principal "Or" */
.hero-buttons .cta-button.primary {
    background: var(--or-brosse);
    color: var(--bleu-saphir);
    border-color: var(--or-brosse);
}
.hero-buttons .cta-button.primary:hover {
    background: #b89862;
    border-color: #b89862;
}

/* Bouton secondaire (transparent) */
.hero-buttons .cta-button.secondary {
    background: transparent;
    color: var(--blanc-creme);
    border-color: var(--blanc-creme);
}

.hero-buttons .cta-button.secondary:hover {
    background: var(--blanc-creme);
    color: var(--bleu-ardoise-hero); 
    transform: scale(1.05);
}

/* =======================
   Styles de Section Généraux
   ======================== */

main section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--bleu-saphir);
    margin-bottom: 40px;
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.text-light {
    color: var(--blanc-creme);
}

.container.two-columns {
    display: flex;
    gap: 40px;
    align-items: center;
}

.two-columns .column-image,
.two-columns .column-text {
    flex: 1; /* 50% de largeur chacune */
}

.two-columns .column-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.container.column-full {
     flex-direction: column;
}

/* =======================
   Section 2 : Présentation
   ======================== */
.section-presentation {
    background: var(--blanc-creme);
}

.key-points {
    list-style: none;
    margin-top: 20px;
}

.key-points li {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--bleu-saphir);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.key-points li i {
    color: var(--or-brosse);
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

/* =======================
   Section 3 : Les Soins
   ======================== */
.section-services {
    background: var(--blanc); /* Fond blanc simple */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Grille à 3 colonnes */
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--blanc-creme);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--or-brosse);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--bleu-saphir);
    margin-bottom: 10px;
}

/* =======================
   Section 4 : Plateau Technique
   ======================== */
.section-technique {
    background: var(--bleu-ardoise-hero); /* Fond bleu foncé */
}

.section-technique p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 40px;
}

.video-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 8px;
    overflow: hidden;
    height: 550px;
}

.video-container video {
    width: 100%;
    height: 100%;
    display: block;
}

/* =======================
   Section 5 : Le Docteur
   ======================== */
.section-doctor {
    background: var(--blanc-creme);
}

/* Style pour le bouton "En savoir plus" */
.cta-button.secondary {
     background: transparent;
     color: var(--bleu-saphir);
     border: 2px solid var(--or-brosse);
}

.cta-button.secondary:hover {
     background: var(--or-brosse);
     color: var(--bleu-saphir);
     transform: scale(1.05);
}

.section-doctor .column-text a {
    margin-top: 20px;
}

/* =======================
   Section 6 : Témoignages
   ======================== */
.section-testimonials {
    background: var(--bleu-saphir); /* Fond bleu saphir */
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-icon {
    font-size: 3rem;
    color: var(--or-brosse);
    opacity: 0.5;
}

.testimonial-text {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--blanc-creme);
    margin: 20px 0;
}

.testimonial-author {
    font-size: 1rem;
    font-weight: 700;
    color: var(--or-brosse);
}

/* =======================
   Section 7 : CTA Final
   ======================== */
.section-cta {
    background: var(--blanc-creme);
    border-top: 1px solid #eee;
}

.section-cta p {
     max-width: 600px;
     margin: 0 auto 30px;
     font-size: 1.1rem;
}

.cta-phone {
    margin-top: 20px;
    font-size: 1.2rem;
    margin-top: 1rem !important;
    color: var(--texte-gris);
}

.cta-phone strong {
    color: var(--bleu-saphir);
}

/* =======================
   Section 8 : Footer
   ======================== */
.footer-main {
    background: var(--bleu-saphir);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 60px;
}

.footer-main .container {
    align-items: flex-start; /* Aligne les colonnes en haut */
    gap: 40px;
}

.footer-column {
    flex: 1;
}

.footer-column:first-child {
    flex: 1.5; /* Plus d'espace pour la colonne logo */
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-column h4 {
    color: var(--blanc-creme);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-column p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-column ul a:hover {
    color: var(--or-brosse);
}

.text-gold {
    color: var(--or-brosse);
    font-weight: 700;
}

.footer-bottom {
    background: #000;
    color: #aaa;
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
}

.footer-bottom strong {
    color: var(--or-brosse);
}

/* =======================
   Section 6 : Ce que disent nos patients
   (Renommage de .section-testimonials)
   ======================== */
.section-feedback {
    background: var(--bleu-saphir); /* Fond bleu saphir */
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-icon {
    font-size: 3rem;
    color: var(--or-brosse);
    opacity: 0.5;
}

.testimonial-text {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--blanc-creme);
    margin: 20px 0;
}

.testimonial-author {
    font-size: 1rem;
    font-weight: 700;
    color: var(--or-brosse);
}

/* =======================
   Section 7 : Trouvez-nous (Map)
   ======================== */
.section-map {
    background: var(--blanc);
    padding-bottom: 0; /* La carte est collée en bas de la section */
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden; /* Pour les coins arrondis */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* =======================
   Section 8 : Contactez-nous (Form)
   ======================== */
.section-contact {
    background: var(--blanc-creme);
}

/* Style pour la liste d'infos à gauche */
.contact-info li {
    font-size: 1rem; /* Police plus petite que les key-points */
    color: var(--texte-gris);
}
.contact-info li strong {
    color: var(--bleu-saphir);
}
.contact-info li i {
    font-size: 1rem;
}

/* Style pour le formulaire à droite */
.column-form {
    flex: .9;
}
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: var(--bleu-saphir);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--or-brosse);
    box-shadow: 0 0 5px rgba(201,169,110,0.5);
}

.form-group button {
    width: 100%;
    cursor: pointer;
}
/* Style pour les messages de réponse du formulaire */
.response-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: 500;
    display: none; /* Caché par défaut */
}

.response-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.response-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}
/* =================================
   RÈGLES RESPONSIVES (Mobile & Tablette) - CORRIGÉES
   ================================= */

@media (max-width: 768px) {

    /* --- Correction de la Top-Bar --- */
    .top-bar .container {
        flex-direction: column; /* Empile les éléments */
        gap: 8px; 
        padding: 10px 15px; /* Ajoute un peu de padding horizontal */
        text-align: center; /* Centre le texte de chaque item */
    }
    .top-bar-item {
        font-size: 0.75rem; 
        width: 100%; /* S'assure qu'ils prennent toute la largeur */
    }

    /* --- Nav Principale : Logique du Menu Hamburger --- */
    .contact-info li {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        text-align: center;
    }
    .main-nav .container {
        /* Garde le logo à gauche et le hamburger à droite */
        justify-content: space-between; 
        padding-top: 15px;
        padding-bottom: 15px;
    }
    .footer-column p {
        justify-content: center;
    }
    /* Cache la liste de liens principale */
    .nav-links {
        display: none; 
        position: absolute;
        top: 100%; /* Se place juste sous le .header */
        left: 0;
        width: 100%;
        background: var(--blanc-creme);
        padding: 20px 0; /* Ajuste le padding vertical */
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 100; /* Doit être au-dessus du contenu */
        border-top: 1px solid #eee; /* Ajoute une petite séparation */
    }

    /* Quand le menu est activé par JS */
    .nav-links.active {
        display: flex;
        flex-direction: column; /* Empile les liens */
        align-items: center;
        gap: 25px; /* Espace les liens */
    }
    
    .nav-links li {
        width: 100%; /* Chaque item prend la largeur */
        text-align: center; /* Centre le texte des liens */
    }
    
    .nav-links a {
        font-size: 1.1rem; /* Liens plus gros */
        padding: 10px 0; /* Ajoute une zone cliquable */
        display: block; /* Permet au padding de fonctionner */
    }
    
    /* Style spécifique pour l'item du bouton CTA dans le menu mobile */
    .nav-links .nav-cta-item {
        width: 80%; /* Le bouton ne prend pas 100% */
        margin-top: 15px; /* Espace au-dessus du bouton */
    }

    .nav-links .cta-button {
        width: 100%; 
        text-align: center;
    }
    
    /* Affiche le bouton Hamburger */
    .menu-toggle {
        display: block; /* Rendre le bouton hamburger visible */
    }

    /* --- Correction de la Section Héro --- */
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    .hero-subtitle {
        font-size: 0.9rem; 
    }
    .hero-buttons {
        flex-direction: column; 
        gap: 15px;
        width: 90%;
        margin: 0 auto; 
    }
    
    /* --- Styles de Section Généraux (Mobile) --- */
    main section {
        padding: 60px 20px; 
    }
    
    .section-title {
        font-size: 1.8rem; /* Titres un peu plus petits */
    }

    .container.two-columns {
        flex-direction: column;
    }
    
    .two-columns .column-text {
        order: 2; 
    }
    .two-columns .column-image {
        order: 1;
        margin-bottom: 30px; /* Espace sous l'image */
    }
    
    /* --- Section 3: Soins (Mobile) --- */
    .services-grid {
        grid-template-columns: 1fr; 
    }

    /* --- Section 5: Docteur (Mobile) --- */
    .section-doctor .column-text {
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    
    .section-doctor .column-image {
        order: 1; 
        margin-bottom: 30px;
    }
    .section-doctor .column-text {
        order: 2;
    }

    /* --- Section 8: Contact (Mobile) --- */
    .section-contact .column-text {
        order: 1; 
        margin-bottom: 30px; /* Espace sous les infos */
    }
    .section-contact .column-form {
        order: 2; 
        width: 100%;
    }
    .top-bar-item.top-bar-hours {
        display: none;
    }
    .top-bar-item.top-bar-address {
        display: none;
    }
    .logo img {
        height: 28px;
    }
    /* --- Section 10: Footer (Mobile) --- */
    .footer-main .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-column {
        width: 100%;
        max-width: 350px;
        margin-bottom: 30px; /* Espace entre les colonnes */
    }
    .footer-column:last-child {
        margin-bottom: 0;
    }
}