/*
Theme Name: Audition Daure
Description: Thème sur mesure pour le laboratoire d'audioprothèse Valentine DAURE.
Author: Audition Daure
Version: 1.0
Text Domain: audition-daure
*/

/* Variables de couleurs */
:root {
    --primary: #1e3a8a;
    --secondary: #00b4d8;
    --secondary-hover: #0096b4;
    --accent: #e0f7fa;
    --text-dark: #1f2937;
    --text-light: #4b5563;
    --white: #ffffff;
    --gold: #f59e0b; /* Couleur pour les étoiles */
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
body { color: var(--text-dark); line-height: 1.6; background-color: #f9fafb; scroll-behavior: smooth; overflow-x: hidden; }

/* Styles pour l'en-tête (Gauche / Centre / Droite) */
header { 
    background: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    border-bottom: 3px solid var(--secondary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Regroupement à gauche (Hippocampe + Menu) */
.header-left {
    display: flex;
    align-items: center;
    gap: 3rem; /* Espace généreux pour décaler les catégories du logo image */
}

.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 70px; width: auto; object-fit: contain; }

/* Les 4 catégories regroupées ergonomiquement */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}
.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}
.main-nav a:hover { color: var(--secondary); }

/* Le conteneur central */
.header-center-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

/* Le texte "AUDITION DAURE" centré */
.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
}

/* Le bouton à droite */
.btn-rdv-nav {
    background: var(--primary);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    transition: background 0.3s;
    font-size: 0.95rem;
    font-weight: bold;
    text-decoration: none;
}
.btn-rdv-nav:hover { background: var(--secondary); color: var(--white); }

/* Sections standards */
section { padding: 5rem 5%; }
h2 { text-align: center; font-size: 2.2rem; color: var(--primary); margin-bottom: 3.5rem; position: relative; }
h2::after { content: ''; width: 60px; height: 3px; background: var(--secondary); display: block; margin: 10px auto 0; border-radius: 2px; }

/* Section 1 : Accueil */
.hero { background: linear-gradient(rgba(224, 247, 250, 0.92), rgba(224, 247, 250, 0.92)), url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=1920&q=80') center/cover; text-align: center; padding: 7rem 5%; border-bottom: 4px solid var(--secondary); }
.hero h1 { font-size: 2.8rem; color: var(--primary); margin-bottom: 1.5rem; line-height: 1.2; }
.hero p { font-size: 1.25rem; color: var(--text-light); max-width: 800px; margin: 0 auto 2.5rem; }
.hero .btn-hero { background: var(--secondary); color: var(--white); padding: 1rem 2.5rem; text-decoration: none; font-size: 1.1rem; border-radius: 30px; font-weight: bold; display: inline-block; box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3); transition: transform 0.3s, background 0.3s; }
.hero .btn-hero:hover { transform: translateY(-3px); background: var(--secondary-hover); }

/* Section 2 : Nos services */
.services { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2.5rem; max-width: 1200px; margin: 0 auto; }
.service-card { background: #f8fafc; padding: 2.5rem; border-radius: 12px; text-align: center; border-bottom: 4px solid var(--secondary); transition: transform 0.3s; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.service-card h3 { color: var(--primary); margin-bottom: 1rem; font-size: 1.3rem; }

/* Section 3 : L'Équipe */
.equipe { background: #f1f5f9; text-align: center; }
.equipe-container { max-width: 800px; margin: 0 auto; background: var(--white); padding: 3rem; border-radius: 15px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); text-align: left; border-left: 6px solid var(--secondary); }
.equipe-container h3 { font-size: 1.8rem; color: var(--primary); margin-bottom: 0.5rem; }
.equipe-container h4 { color: var(--secondary); margin-bottom: 1.5rem; font-weight: 500; }

/* Section Avis Patients (Bandeau défilant) */
.avis-patients { background-color: var(--accent); overflow: hidden; padding: 4rem 0; }
.avis-header { text-align: center; margin-bottom: 2.5rem; padding: 0 5%; }
.avis-header h2 { margin-bottom: 1rem; }
.moyenne { font-size: 1.8rem; color: var(--gold); font-weight: bold; margin-bottom: 0.5rem; }
.moyenne-texte { color: var(--primary); font-size: 1.1rem; font-weight: 500; }

.slider-container { width: 100%; overflow: hidden; position: relative; }
.slider-track { display: flex; width: calc(350px * 10); animation: scroll 30s linear infinite; gap: 2rem; padding: 1rem; }
.slider-track:hover { animation-play-state: paused; }

.avis-card { background: var(--white); min-width: 320px; max-width: 320px; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 4px solid var(--secondary); }
.avis-card .stars { color: var(--gold); font-size: 1.2rem; margin-bottom: 1rem; }
.avis-card p { font-style: italic; color: var(--text-light); font-size: 0.95rem; line-height: 1.5; margin-bottom: 1rem; }
.avis-card .patient-name { font-weight: bold; color: var(--primary); text-align: right; }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-350px * 5 - 2rem * 5)); }
}

/* Section Prendre rendez-vous */
.contact { background: #f1f5f9; }
.contact-intro { text-align: center; max-width: 750px; margin: 0 auto 3rem; font-size: 1.1rem; color: var(--text-light); }
.centres-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; max-width: 1000px; margin: 0 auto; }
.centre-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 2px solid var(--secondary); /* La fameuse bordure turquoise pour toutes les cartes */
}
.centre-card h3 { color: var(--primary); margin-bottom: 1.2rem; font-size: 1.4rem; }
.centre-card p { margin-bottom: 0.8rem; }
.doctolib-btn { display: inline-block; margin-top: 1.5rem; background: #047857; color: white; padding: 0.8rem 2rem; border-radius: 8px; text-decoration: none; font-weight: bold; transition: background 0.3s; }
.doctolib-btn:hover { background: #065f46; }

/* Pied de page */
footer {
    background: var(--white);
    color: var(--text-dark);
    text-align: center;
    padding: 2rem;
    border-top: 3px solid var(--secondary);
}
footer a { color: var(--secondary); text-decoration: none; transition: color 0.3s; }
footer a:hover { color: var(--primary); }

/* ========================================= */
/* Design Premium du module de dépistage */
/* ========================================= */
.depistage-section {
    background-color: #f8fafc;
}

.quiz-container {
    max-width: 750px;
    margin: 0 auto;
    background: var(--white);
    padding: 3.5rem 4rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 180, 216, 0.15);
    text-align: center;
    position: relative;
}

/* Barre de progression */
.progress-bar-container {
    width: 100%;
    background-color: #e2e8f0;
    height: 8px;
    border-radius: 10px;
    margin-bottom: 2.5rem;
    overflow: hidden;
    display: none;
}
.progress-bar {
    height: 100%;
    background-color: var(--secondary);
    width: 0%;
    transition: width 0.5s ease-in-out;
}

#question-text {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-options {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Boutons arrondis type pilule */
.btn-quiz {
    background: var(--white);
    color: var(--primary);
    border: 2px solid #e2e8f0;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    flex: 1;
    min-width: 140px;
}

.btn-quiz:hover {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.2);
}

.btn-start {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
}

.btn-start:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.quiz-result h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.quiz-result p { font-size: 1.15rem; color: var(--text-dark); line-height: 1.6; }

.btn-quiz-reset {
    background: none;
    border: none;
    color: var(--text-light);
    text-decoration: underline;
    margin-top: 2rem;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s;
}
.btn-quiz-reset:hover { color: var(--primary); }

/* Animation de transition */
.fade-in {
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Version Mobile */
@media (max-width: 768px) {
    .quiz-container { padding: 2.5rem 1.5rem; }
    .btn-quiz { width: 100%; }
}
/* ========================================= */
/* Images de fond pour les centres           */
/* ========================================= */

/* Centre de Tourbes */
.centre-tourbes {
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.95)), url('image_2.png') center/cover;
    background-repeat: no-repeat;
}

/* Centre de Béziers */
.centre-beziers {
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.95)), url('photo-beziers.jpg') center/cover;
    background-repeat: no-repeat;
}

}