/*
Theme Name: Cabinet Mauverney V8
Author: Gemini Partner
Description: Thème V8 - Version Corrigée & Unifiée (Full CSS)
Version: 8.0
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    /* PALETTE DE COULEURS */
    --cyan-logo: #1aaecb;       /* Bleu clair du logo */
    --dark-blue: #0f4c5c;       /* Bleu foncé texte */
    --text-main: #2c3e50;       /* Gris foncé lecture */
    --light-bg: #f0f4f8;        /* Fond global */
    
    /* PARAMETRES EFFET VERRE (GLASSMORPHISM) */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.9);
    --glass-shadow: 0 10px 40px -10px rgba(31, 38, 135, 0.15); /* Ombre plus douce V8 */
    
    --urgent: #d90429;          /* Rouge urgence */
}

/* --- RESET & BASES --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    background-color: var(--light-bg); 
    /* Fond global amélioré V8 */
    background-image: radial-gradient(circle at 10% 20%, rgb(248, 251, 255) 0%, rgb(225, 235, 250) 90%);
    background-attachment: fixed;
    color: var(--text-main); 
    font-family: 'Montserrat', sans-serif; 
    line-height: 1.6; 
}

a { text-decoration: none; transition: 0.3s; color: inherit; }
ul { list-style: none; }

/* --- HEADER & NAVIGATION --- */
header { 
    background: rgba(255, 255, 255, 0.95); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.logo img { 
    height: 80px; 
    width: auto; 
    display: block; 
    transition: transform 0.3s ease;
}
.logo img:hover { transform: scale(1.02); } /* Petit effet V8 */

/* Menu Desktop */
.nav-menu { display: flex; gap: 30px; align-items: center; }
.nav-menu a { 
    color: var(--dark-blue); 
    font-weight: 600; 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--cyan-logo);
    transition: width 0.3s;
}
.nav-menu a:hover { color: var(--cyan-logo); }
.nav-menu a:hover::after { width: 100%; }

/* Menu Mobile (Hamburger) */
.menu-toggle { 
    display: none; 
    background: none; 
    border: none; 
    font-size: 2rem; 
    cursor: pointer; 
    color: var(--dark-blue); 
    padding: 5px;
}

@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        text-align: center;
        gap: 20px;
        border-top: 1px solid #eee;
    }
    .nav-menu.active { display: flex; }
    .logo img { height: 60px; }
}

/* --- HERO SECTION --- */
.hero {
    /* Dégradé V8 plus subtil */
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #eef6fa 100%);
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.hero h1 { 
    color: var(--dark-blue); 
    font-size: 2.8rem; 
    font-weight: 800;
    margin-bottom: 20px; 
    line-height: 1.2;
    text-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.hero-subtitle { 
    font-size: 1.3rem; 
    color: #555; 
    margin-bottom: 40px; 
    font-weight: 500; 
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* BOUTON PRINCIPAL */
.btn-main { 
    background: linear-gradient(45deg, var(--cyan-logo), #159ab5); 
    color: white !important; 
    padding: 18px 45px; 
    border-radius: 50px; 
    font-weight: 700; 
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 25px rgba(26, 174, 203, 0.3); 
    display: inline-block; 
    cursor: pointer; 
    border: none; 
    font-size: 1rem; 
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-main:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 15px 35px rgba(26, 174, 203, 0.4); 
}

/* --- FLASH ALERT (FÊTES) --- */
.flash-alert {
    background: linear-gradient(135deg, #ff4b1f 0%, #ff9068 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(255, 75, 31, 0.25);
    margin-bottom: 60px;
    border: 2px solid rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Effet brillance */
.flash-alert::before {
    content: '';
    position: absolute;
    top: 0; left: -50%;
    width: 100%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
    animation: shine 3s infinite;
}

.flash-content { position: relative; z-index: 2; }

.flash-alert h3 {
    color: white !important;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.flash-alert p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 500;
    color: #fff !important;
}

.flash-numbers {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.num-box {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.num-vital { background: white; color: #d90429; }
@keyframes shine { 0% { left: -50%; } 100% { left: 150%; } }

/* --- CONTENU & CARTES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.main-content { padding-bottom: 80px; margin-top: -40px; position: relative; z-index: 10; }

.section-title { text-align: center; margin: 60px 0 40px; }
.section-title h2 { color: var(--dark-blue); font-size: 2rem; margin-bottom: 10px; font-weight: 700; }
.section-title p { color: #666; font-size: 1.1rem; }

/* STYLE UNIFIÉ DES CARTES */
.doctor-card, .booking-card, .form-wrapper, .alert-box {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);         
    -webkit-backdrop-filter: blur(12px); 
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-bottom: 30px;
    display: flex; 
    flex-direction: column;
    position: relative;
}

.doctor-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; }

/* Détails Intérieurs des Cartes */
.speciality-block { margin-bottom: 60px; }
.speciality-header { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; border-bottom: 2px solid rgba(26, 174, 203, 0.2); padding-bottom: 10px; }
.speciality-header h3 { color: var(--cyan-logo); font-size: 1.6rem; margin: 0; font-weight: 700; }
.spec-icon { font-size: 2rem; }

.doc-header { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.doctor-card h4 { color: var(--dark-blue); font-size: 1.2rem; font-weight: 700; margin-bottom: 5px; }
.doc-role { background-color: rgba(26, 174, 203, 0.1); color: var(--dark-blue); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; display: inline-block; }

.doc-body p { font-size: 0.95rem; color: #555; margin-bottom: 10px; }
.doc-highlight { margin-top: 15px; background: rgba(76, 175, 80, 0.1); color: #2e7d32; padding: 12px; border-radius: 10px; font-size: 0.9rem; font-weight: 600; border-left: 4px solid #4caf50; }

/* Formulaires */
.form-wrapper { max-width: 700px; margin: 40px auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--dark-blue); }

.form-control { 
    background: rgba(255,255,255,0.8); 
    border: 1px solid #ddd; 
    border-radius: 12px; 
    padding: 15px; 
    width: 100%; 
    font-size: 1rem;
    font-family: inherit;
    transition: 0.3s;
}
.form-control:focus { outline: none; border-color: var(--cyan-logo); background: #fff; box-shadow: 0 0 0 4px rgba(26, 174, 203, 0.1); }

/* --- FOOTER & HORAIRES --- */
footer { 
    background: #2b2d42; 
    color: #fff; 
    padding: 80px 0 40px; 
    margin-top: 80px; 
    border-top: 5px solid var(--cyan-logo);
}

.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 50px; }

.footer-col h4 { 
    color: var(--cyan-logo); 
    margin-bottom: 25px; 
    font-size: 1.1rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    font-weight: 700;
}

.footer-col p { margin-bottom: 12px; color: #ced4da; font-size: 0.95rem; }

/* Design Horaires V8 */
.schedule-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-row {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.schedule-row:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.day-name {
    display: block;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 5px;
    opacity: 0.9;
}

.day-hours {
    display: block;
    color: var(--cyan-logo);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Bouton Map */
.map-link {
    color: var(--cyan-logo);
    text-decoration: none;
    font-weight: bold;
    border: 1px solid var(--cyan-logo);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    transition: 0.3s;
}
.map-link:hover { background: var(--cyan-logo); color: white; }