/* =========================================
   1. VARIABLES & FONDATIONS
   ========================================= */
:root {
    --dark: #0f172a;           /* Bleu-Noir clinique profond */
    --emerald: #22b14c;        /* Vert Marius Renard */
    --emerald-glow: rgba(34, 177, 76, 0.15);
    --neerpede-blue: #0056b3;  /* Bleu Neerpede */
    --neerpede-glow: rgba(0, 86, 179, 0.15);
    --grey-bg: #f8fafc;        /* Fond de section clair */
    --text-muted: #64748b;     /* Texte secondaire */
    --white: #ffffff;
    --radius-lg: 24px;         /* Arrondis premium */
    --radius-md: 16px;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { 
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Inter', 'Plus Jakarta Sans', sans-serif; 
    color: var(--dark); 
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* VERROUILLAGE ABSOLU : Coupe le scroll de l'arrière-plan quand le popup est actif */
html.modal-open, body.modal-open {
    overflow: hidden !important;
    height: 100% !important;
    width: 100% !important;
}

section { 
    scroll-margin-top: 100px; 
}

/* --- SYSTÈME D'ANIMATION (REVEAL) --- */
.reveal { 
    opacity: 0; 
    transform: translateY(40px); 
    transition: opacity 1s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); 
}
.reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}

/* =========================================
   2. NAVBAR PRINCIPALE (INTÉGRÉE AU HERO)
   ========================================= */
.main-header {
    background: transparent;
    padding: 25px 10%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 110;
}

.main-header .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-img { 
    height: 48px; 
    width: auto; 
    object-fit: contain; 
}

.nav-links { 
    display: flex; 
    gap: 35px; 
    list-style: none; 
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.page-renard .nav-links a:hover { color: var(--emerald); }
.page-neerpede .nav-links a:hover { color: var(--neerpede-blue); }

/* =========================================
   3. HERO SECTION (CLAIRE ET SANS FILTRE NOIR)
   ========================================= */
.hero-immersive {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    background: var(--white);
    overflow: hidden;
    padding-top: 100px;
}

.hero-bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.hero-bg-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: none !important;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 30%, rgba(255,255,255,0.6) 100%);
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    padding: 0 10%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-main-box { 
    max-width: 650px; 
}

.badge-new {
    display: inline-block;
    padding: 7px 18px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--dark);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.hero-title-main {
    font-size: 4.5rem;
    font-weight: 200;
    color: var(--dark);
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.page-renard .hero-title-main span { font-weight: 800; color: var(--emerald); }
.page-neerpede .hero-title-main span { font-weight: 800; color: var(--neerpede-blue); }

.hero-contact-info { 
    margin: 25px 0 40px 0; 
}

.hero-contact-info p {
    color: var(--dark);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.page-renard .hero-contact-info i { color: var(--emerald); }
.page-neerpede .hero-contact-info i { color: var(--neerpede-blue); }

@keyframes glow-pulse-renard {
    0% { box-shadow: 0 0 0 0 var(--emerald-glow); }
    70% { box-shadow: 0 0 0 15px rgba(34, 177, 76, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 177, 76, 0); }
}
@keyframes glow-pulse-neerpede {
    0% { box-shadow: 0 0 0 0 var(--neerpede-glow); }
    70% { box-shadow: 0 0 0 15px rgba(0, 86, 179, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 86, 179, 0); }
}

.btn-primary-glow {
    display: inline-block;
    padding: 22px 40px;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.page-renard .btn-primary-glow { background: var(--emerald); animation: glow-pulse-renard 3s infinite; }
.page-neerpede .btn-primary-glow { background: var(--neerpede-blue); animation: glow-pulse-neerpede 3s infinite; }
.btn-primary-glow:hover { transform: translateY(-4px); opacity: 0.9; }

.hero-trust-tag { 
    display: none; 
}

.hero-floating-elements { 
    position: relative; 
    width: 320px; 
    height: 280px; 
}

.floating-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(15, 23, 42, 0.05);
    padding: 22px 28px;
    border-radius: var(--radius-md);
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}
.c1 { top: 20px; right: 0; }
.c2 { bottom: 20px; left: 0; }
.page-renard .floating-card i { color: var(--emerald); font-size: 1.5rem; }
.page-neerpede .floating-card i { color: var(--neerpede-blue); font-size: 1.5rem; }

/* =========================================
   4. STICKY SECONDARY NAVBAR
   ========================================= */
.secondary-nav {
    background: var(--white);
    border-bottom: 1px solid #edf2f7;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
.nav-container-secondary { display: flex; justify-content: center; gap: 45px; padding: 22px 0; }
.nav-container-secondary a { text-decoration: none; color: #475569; font-weight: 700; font-size: 0.85rem; letter-spacing: 1.5px; text-transform: uppercase; }
.page-renard .nav-container-secondary a:hover { color: var(--emerald); }
.page-neerpede .nav-container-secondary a:hover { color: var(--neerpede-blue); }

/* =========================================
   5. ENTÊTES DE SECTIONS
   ========================================= */
.section-header-pro { text-align: center; margin-bottom: 50px; }
.pre-title { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 2.5px; margin-bottom: 12px; text-transform: uppercase;}
.page-renard .pre-title { color: var(--emerald); }
.page-neerpede .pre-title { color: var(--neerpede-blue); }
.title-dark { font-size: 2.8rem; font-weight: 800; color: var(--dark); letter-spacing: -1px; }
.divider { width: 50px; height: 5px; margin: 20px auto; border-radius: 10px; }
.page-renard .divider { background: var(--emerald); }
.page-neerpede .divider { background: var(--neerpede-blue); }

/* =========================================
   6. GRILLE DE SERVICES (3 PAR LIGNE)
   ========================================= */
.expertise-section { 
    padding: 110px 10%; 
    background: var(--grey-bg); 
}

.service-clean-grid {
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    max-width: 1400px; 
    margin: 0 auto;
}

.service-card-clean {
    background: var(--white); 
    padding: 40px; 
    border-radius: var(--radius-md);
    border: 1px solid #f1f5f9; 
    transition: var(--transition-smooth);
    display: flex; 
    flex-direction: column; 
    height: 100%;
    cursor: pointer;
}

.service-card-clean h4 { font-size: 1.35rem; font-weight: 700; color: var(--dark); margin-bottom: 15px; }
.service-card-clean p { font-size: 1rem; color: var(--text-muted); line-height: 1.7; }

.service-icon-circle {
    width: 65px; height: 65px; background: #f1f5f9; border-radius: 18px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 30px; transition: var(--transition-smooth);
}
.service-icon-circle i { font-size: 1.6rem; }
.page-renard .service-icon-circle i { color: var(--emerald); }
.page-neerpede .service-icon-circle i { color: var(--neerpede-blue); }

.page-renard .service-card-clean:hover { transform: translateY(-10px); border-color: var(--emerald); box-shadow: 0 25px 50px rgba(34,177,76,0.06); }
.page-renard .service-card-clean:hover .service-icon-circle { background: var(--emerald); }
.page-renard .service-card-clean:hover .service-icon-circle i { color: var(--white); }

.page-neerpede .service-card-clean:hover { transform: translateY(-10px); border-color: var(--neerpede-blue); box-shadow: 0 25px 50px rgba(0,86,179,0.06); }
.page-neerpede .service-card-clean:hover .service-icon-circle { background: var(--neerpede-blue); }
.page-neerpede .service-card-clean:hover .service-icon-circle i { color: var(--white); }

/* =========================================
   7. SECTIONS MÉDECINS DIRECTES (2 PAR LIGNE HORIZONTAL)
   ========================================= */
.team-accordion-section { padding: 110px 10%; background: var(--white); }
.team-flat-container { max-width: 1400px; margin: 0 auto; }
.team-pole-group { margin-bottom: 80px; }

.pole-flat-title {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}
.pole-flat-title h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: 0.5px; color: var(--dark); text-transform: uppercase; }
.pole-flat-title i { font-size: 1.5rem; }
.page-renard .pole-flat-title i { color: var(--emerald); }
.page-neerpede .pole-flat-title i { color: var(--neerpede-blue); }

.doctor-grid-pro {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.doctor-card-mini {
    display: flex; gap: 25px; background: var(--white); padding: 28px; border-radius: var(--radius-lg); align-items: flex-start; transition: var(--transition-smooth); border: 1px solid #f8fafc; box-shadow: 0 10px 30px rgba(0,0,0,0.01); height: 100%;
}
.doctor-card-mini:hover { transform: translateY(-8px); box-shadow: 0 35px 70px rgba(15, 23, 42, 0.1); }
.doc-photo-mini { width: 140px; height: 175px; flex-shrink: 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.doc-photo-mini img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.doctor-card-mini:hover .doc-photo-mini img { transform: scale(1.06); }
.doc-details-mini { flex-grow: 1; }
.doc-main-info h4 { font-size: 1.35rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.doc-tag { display: inline-block; padding: 6px 14px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; border-radius: 8px; margin-bottom: 18px; }
.page-renard .doc-tag { background: rgba(34, 177, 76, 0.08); color: var(--emerald); }
.page-neerpede .doc-tag { background: rgba(0, 86, 179, 0.08); color: var(--neerpede-blue); }

.schedule-container { margin-bottom: 18px; padding-top: 15px; border-top: 1px solid #f1f5f9; }
.schedule-label { display: block; font-size: 0.65rem; font-weight: 900; color: #94a3b8; letter-spacing: 1.5px; margin-bottom: 8px; }
.schedule-text { font-size: 0.9rem; line-height: 1.6; color: #475569; }
.doc-remarque { font-size: 0.85rem; color: #64748b; background: #f8fafc; padding: 12px; border-radius: 10px; margin-top: 12px; }
.btn-rdv-mini { display: inline-block; padding: 14px 28px; background: var(--dark); color: var(--white); text-decoration: none; font-size: 0.85rem; font-weight: 700; border-radius: 12px; transition: 0.3s; }
.page-renard .btn-rdv-mini:hover { background: var(--emerald); transform: translateY(-2px); }
.page-neerpede .btn-rdv-mini:hover { background: var(--neerpede-blue); transform: translateY(-2px); }

/* =========================================
   8. À PROPOS DE NOUS (MOSAÏQUE PROPRE)
   ========================================= */
.about-modern {
    padding: 100px 10%;
    background: var(--white);
}

.about-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.about-image-mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 20px;
    position: relative;
}

.mosaic-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    position: relative;
}

.mosaic-item img { width: 100%; height: 100%; object-fit: cover; }
.item-large { grid-row: span 2; }

.mosaic-badge {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: var(--dark); color: var(--white);
    padding: 15px; text-align: center;
    display: flex; flex-direction: column; justify-content: center;
}

.badge-num { font-size: 1.8rem; font-weight: 800; color: var(--emerald); line-height: 1; }
.page-neerpede .badge-num { color: var(--neerpede-blue); }
.badge-txt { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: #94a3b8; margin-top: 2px; }

.about-text-box { display: flex; flex-direction: column; }
.about-lead { font-size: 1.15rem; color: #475569; margin: 25px 0; line-height: 1.8; }
.about-bullet-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 25px; padding: 0; }
.about-bullet-list li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; font-weight: 600; color: var(--dark); }
.about-bullet-list li span { line-height: 1.3; }

.bullet-icon {
    width: 28px; height: 28px; border-radius: 50%; background: rgba(34, 177, 76, 0.08);
    color: var(--emerald); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0;
}
.page-neerpede .bullet-icon { background: rgba(0, 86, 179, 0.08); color: var(--neerpede-blue); }

/* =========================================
   9. PROXIMITÉ (MAP FLUIDE ET BADGE WALKING)
   ========================================= */
.proximity-section {
    padding: 100px 10%;
    background: var(--grey-bg);
}

.proximity-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.proximity-text-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.proximity-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 20px 0 30px 0;
}

.proximity-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.proximity-time-badge i { font-size: 1.1rem; }
.page-renard .proximity-time-badge i { color: var(--emerald); }
.page-neerpede .proximity-time-badge i { color: var(--neerpede-blue); }

.proximity-map-frame {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.05);
}
.proximity-map-frame img {
    width: 100%; height: 100%; object-fit: cover; filter: none !important;
}

/* =========================================
   10. AVIS & MAP DE CONTACT DU BAS
   ========================================= */
.centre-avis { padding: 100px 10%; background: var(--grey-bg); border-top: 1px solid #edf2f7;}
.avis-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1400px; margin: 0 auto; }
.avis-card { background: var(--white); padding: 40px; border-radius: var(--radius-md); box-shadow: 0 10px 30px rgba(0,0,0,0.01); display: flex; flex-direction: column; justify-content: space-between; border: 1px solid #edf2f7; }
.stars { color: #ffc107; margin-bottom: 18px; font-size: 1.1rem; }
.avis-texte { font-size: 1rem; color: #475569; font-style: italic; margin-bottom: 25px; line-height: 1.7; }
.avis-auteur { font-size: 0.95rem; color: var(--dark); }

.map-section { background: var(--white); color: var(--dark); border-top: 1px solid #edf2f7; }
.map-info-container { display: grid; grid-template-columns: 1fr 1.5fr; }
.map-details { padding: 100px 12%; display: flex; flex-direction: column; justify-content: center; }
.map-details h3 { font-size: 2.4rem; font-weight: 800; margin-bottom: 50px; color: var(--dark); }
.access-item-pro { margin-bottom: 35px; }
.access-label { font-size: 0.7rem; font-weight: 900; color: #94a3b8; letter-spacing: 2px; margin-bottom: 8px; display: block; text-transform: uppercase;}
.map-iframe iframe { width: 100%; height: 100%; min-height: 550px; border: 0; filter: none !important; }

/* =========================================
   11. MODAL DES SERVICES (POPUP EXTENSIBLE & STICKY X)
   ========================================= */
.service-modal-overlay {
    position: fixed;
    top: 0; left: 0; 
    width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.service-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.service-modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    width: 95%;
    max-width: 850px; /* Largeur augmentée pour éviter les coupures */
    max-height: 80vh;
    overflow-y: auto; /* Seule cette zone interne peut défiler */
    position: relative;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.15);
}

/* LE BOUTON X AIMANTÉ AU SCROLL EN HAUT À DROITE */
.modal-close-btn {
    position: sticky;
    top: 0;
    float: right;
    background: #f1f5f9;
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--dark);
    transition: background 0.2s, transform 0.2s;
    z-index: 102;
    margin-top: -10px;
    margin-right: -10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.modal-close-btn:hover { background: #e2e8f0; transform: scale(1.05); }

.service-modal-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--dark);
    border-left: 4px solid var(--dark);
    padding-left: 15px;
    margin-top: 0;
}

.modal-doctors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    clear: both;
}

.modal-doctor-card {
    display: flex;
    gap: 20px;
    background: #f8fafc;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid #edf2f7;
    align-items: center;
}

.modal-doc-photo {
    width: 85px;
    height: 105px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}
.modal-doc-photo img { width: 100%; height: 100%; object-fit: cover; }
.modal-doc-info { flex-grow: 1; min-width: 0; }
.modal-doc-info h4 { font-size: 1.15rem; font-weight: 800; color: var(--dark); margin-bottom: 2px; }
.modal-doc-spec { font-size: 0.85rem; color: var(--text-muted); display: block; margin-bottom: 12px; }
.modal-doc-centres { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

/* BADGES DÉPLOYÉS EN ENTIER (SANS TRUNCATE) */
.center-badge {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    white-space: normal;
    line-height: 1.3;
}
.badge-renard { background: rgba(34, 177, 76, 0.1); color: var(--emerald); }
.badge-neerpede { background: rgba(0, 86, 179, 0.1); color: var(--neerpede-blue); }
.no-doc { grid-column: span 2; text-align: center; color: var(--text-muted); font-style: italic; padding: 10px 0; }


/* =========================================
   13. BOUTON D'APPEL FLOTTANT FIXE OUVERT (NUMÉRO TOUJOURS VISIBLE)
   ========================================= */
.floating-phone-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    
    /* On active directement l'écartement et les paddings du mode ouvert */
    gap: 12px;
    padding: 15px 25px 15px 20px;
    border-radius: 50px;
    z-index: 1500;
    cursor: pointer;
    
    /* Suppression des restrictions de largeur pour qu'il prenne sa taille naturelle de pilule */
    width: auto;
    max-width: none;
    overflow: visible; 
    
    /* Animation de transition uniquement pour l'apparition et le survol d'élévation */
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.3s ease, 
                opacity 0.4s ease, 
                visibility 0.4s ease;
    
    /* Géré par ton JavaScript (apparaît après le Hero) */
    opacity: 0;
    visibility: hidden;
}

/* --- EFFET DE SURVOL : LÉGÈRE ÉLÉVATION UNIQUEMENT --- */
.floating-phone-btn:hover {
    transform: translateY(-5px);
}

/* --- COULEURS ET THÈMES PERMANENTS --- */

/* Site Marius Renard : VERT PERMANENT AVEC NUMÉRO */
.page-renard .floating-phone-btn {
    background-color: #22b14c;
    box-shadow: 0 10px 25px rgba(34, 177, 76, 0.35);
}
.page-renard .floating-phone-btn:hover {
    background-color: #1e9640; /* Vert un poil plus sombre au survol */
    box-shadow: 0 12px 30px rgba(34, 177, 76, 0.5);
}

/* Site Neerpede : BLEU PERMANENT AVEC NUMÉRO */
.page-neerpede .floating-phone-btn {
    background-color: #0056b3;
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.35);
}
.page-neerpede .floating-phone-btn:hover {
    background-color: #004494; /* Bleu un poil plus sombre au survol */
    box-shadow: 0 12px 30px rgba(0, 86, 179, 0.5);
}

/* --- STRUCTURES INTERNES DE LA PILULE --- */
.phone-icon-box {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.phone-number-text {
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* Sécurité Mobile pour pas que la pilule prenne trop de place sur l'écran */
@media (max-width: 480px) {
    .floating-phone-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px 12px 15px;
        gap: 8px;
    }
    .phone-number-text {
        font-size: 0.85rem;
    }
}
/* --- SECTION ET GRILLE DES TESTS --- */
#tests-specifiques-section {
    background-color: #f8fafd;
    border-top: 1px solid #eef2f7;
}

.tests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto 0 auto;
    justify-content: center;
}

/* --- LES CARTES --- */
.test-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 30px;
    flex: 1;
    min-width: 300px;
    max-width: 480px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid #eef2f7;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

/* --- ÉLÉMENTS INTERNES --- */
.test-icon-box {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.test-card h3 {
    font-size: 1.4rem;
    color: #1a202c;
    margin-bottom: 8px;
    font-weight: 700;
}

.test-badge {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}

.test-card p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.test-card .btn-primary-glow {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    width: 100%;
}

/* --- ADAPTATION DES COULEURS SELON LE SITE (THÈMES) --- */

/* Thème Neerpede (Bleu) */
.page-neerpede .test-icon-box {
    background: rgba(0, 86, 179, 0.08);
    color: #0056b3;
}
.page-neerpede .test-badge {
    color: #0056b3;
}
.page-neerpede #tests-specifiques-section .divider {
    background-color: #0056b3;
}

/* Thème Marius Renard (Vert) */
.page-renard .test-icon-box {
    background: rgba(34, 177, 76, 0.08);
    color: #22b14c;
}
.page-renard .test-badge {
    color: #22b14c;
}
.page-renard #tests-specifiques-section .divider {
    background-color: #22b14c;
}
/* =========================================
   12. MEDIA QUERIES RESPONSIVE (SMARTPHONES EXCLUSIFS)
   ========================================= */

/* --- TABLETTES ET ÉCRANS INTERMÉDIAIRES --- */
@media (max-width: 1250px) {
    .hero-title-main { font-size: 3.5rem; }
    .service-clean-grid { grid-template-columns: repeat(2, 1fr); }
    .about-container, .proximity-container { grid-template-columns: 1fr; gap: 50px; text-align: center; }
    .proximity-text-box { align-items: center; }
    .hero-floating-elements { display: none; }
    .hero-content-wrapper { justify-content: center; }
    .hero-main-box { text-align: center; }
    .hero-btn-group { justify-content: center; }
}

@media (max-width: 1024px) {
    .avis-container { grid-template-columns: repeat(2, 1fr); }
    .doctor-grid-pro { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
}

/* --- ADAPTATION PORTRAIT SMARTPHONES ET PETITS TABLETTES --- */
@media (max-width: 768px) {
    .doctor-grid-pro, .service-clean-grid, .avis-container, .map-info-container, .modal-doctors-grid { 
        grid-template-columns: 1fr; 
    }
    .no-doc { grid-column: span 1; }
    .nav-links, .nav-container-secondary { display: none; }
    .main-header { position: relative; background: var(--white); padding: 15px 5%; }
    .hero-immersive { height: auto; padding: 60px 5% 80px 5%; }
    .hero-bg-image img { position: relative; height: 300px; border-radius: 20px; margin-bottom: 30px; }
    .hero-content-wrapper { flex-direction: column-reverse; padding: 0; }
    .hero-title-main { font-size: 2.8rem; }
    .about-image-mosaic { grid-template-columns: 1fr; grid-template-rows: auto; }
    .item-large, .mosaic-item { grid-row: auto; height: 220px; }
    .map-details { padding: 50px 8%; }
}

/* --- EXCLUSIF : OPTIMISATION SMARTPHONES CLASSIQUES --- */
@media (max-width: 480px) {
    .hero-title-main { 
        font-size: 2.2rem !important; 
        letter-spacing: -0.5px;
    }
    
    .hero-contact-info p {
        font-size: 1rem;
    }
    
    .btn-primary-glow {
        padding: 18px 30px;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }

    .title-dark {
        font-size: 1.8rem;
    }

    .service-card-clean, .doctor-card-mini, .modal-doctor-card {
        padding: 24px;
    }

    /* Évite la compression horizontale de la photo sur les écrans fins */
    .doctor-card-mini, .modal-doctor-card {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
    }

    .doc-photo-mini, .modal-doc-photo {
        width: 120px;
        height: 150px;
        margin-bottom: 12px;
    }

    .schedule-container {
        text-align: center;
    }

    .modal-doc-centres {
        justify-content: center;
    }

    .about-bullet-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .proximity-map-frame {
        height: 300px;
    }

    .service-modal-content {
        padding: 25px 20px;
        width: 92%;
    }
}

/* --- OPTIMISATION SMARTPHONES COMPACTS (iPhone SE) --- */
@media (max-width: 360px) {
    .hero-title-main {
        font-size: 1.9rem !important;
    }
    .title-dark {
        font-size: 1.6rem;
    }
}