/* =========================================
   RESET & VARIABLES
========================================= */
:root {
    --primary-color: #0066CC;   /* Bleu dominant (boutons, titres) */
    --secondary-color: #E6007E; /* Rose fuchsia (boutons, accents) */
    --text-dark: #222222;
    --text-body: #555555;
    --bg-light: #F4F9FF; /* Bleu très clair/blanc de fond */
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --font-main: 'Outfit', sans-serif;
    
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 102, 204, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-body);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   UTILITIES & LAYOUT
========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-3 { margin-top: 1rem; }
.d-block { display: block; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.mr-2 { margin-right: 0.5rem; }
.m-0 { margin: 0; }
.bg-light { background-color: #F8FAFC !important; }
.text-sm { font-size: 0.875rem; }

.subtitle {
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: inline-block;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.section-header h2 span {
    color: var(--primary-color);
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #cc006d;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 126, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.btn-light:hover {
    background-color: #f1f5f9;
}

.btn-full {
    width: 100%;
}

/* =========================================
   HEADER & NAV
========================================= */
.site-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 60px; /* Taille optimale pour le header */
    width: auto;
    display: block;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--secondary-color);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    padding: 80px 0 0 0;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    padding-right: 50px;
    padding-bottom: 60px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.hero-text h1 span {
    color: var(--primary-color);
}

.hero-text h1 span:last-of-type {
    color: var(--secondary-color); /* Optionnel, pour colorer un autre mot */
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    /* Simulation de l'image de l'infirmière/docteur fushia en fond */
    height: 500px;
    background-color: #e2e8f0;
    border-radius: 30px 30px 0 0;
    background-image: url('../img/hero_doctor.jpg');
    background-size: cover;
    background-position: center top;
}

.shortcuts-bar {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.02);
    position: relative;
    z-index: 10;
}

.shortcuts-bar .container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.shortcut {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shortcut:hover {
    color: var(--primary-color);
}

/* =========================================
   SERVICES
========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-img {
    height: 200px;
    background-color: #cbd5e1;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.service-content p {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.service-content ul {
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.service-content ul li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Centrer les deux derniers s'ils sont 5 (2ème ligne de la grille 3x3) */
.service-card:nth-child(4) { grid-column: auto; }
.service-card:nth-child(5) { grid-column: auto; }

/* =========================================
   EQUIPE
========================================= */
.team-container {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
}

.team-image-col {
    flex: 1;
}

.team-photo {
    height: 400px;
    background-color: #cbd5e1;
    background-size: cover;
    background-position: center;
}

.team-text-col {
    flex: 1;
}

.team-text-col h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.check-list li::before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.portraits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.portrait-card {
    text-align: center;
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-md);
}

.portrait-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #cbd5e1;
    margin: 0 auto 15px auto;
    background-size: cover;
    background-position: center;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.portrait-card h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.portrait-card p {
    font-size: 0.9rem;
    color: var(--text-body);
}

/* =========================================
   FORMULAIRE RDV
========================================= */
.appointment-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.appointment-box {
    background-color: var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
}

.appointment-header h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 30px;
    margin-top: 5px;
}

.appointment-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--white);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-control {
    padding: 12px 15px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-size: 1rem;
    width: 100%;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.horaires-info {
    margin-top: 5px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.alert {
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    text-align: center;
    transition: opacity 0.5s;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.btn-submit {
    width: 100%;
    font-size: 1.1rem;
    padding: 15px;
    display: block;
    text-align: center;
}

/* =========================================
   TEMOIGNAGES CAROUSEL
========================================= */
.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto 30px auto;
    display: flex;
    align-items: center;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    margin: 0 20px;
    border-radius: var(--radius-md);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    list-style: none;
    padding: 0;
    margin: 0;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 20px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.patient-info {
    color: var(--secondary-color);
    font-size: 1rem;
}

/* Boutons de navigation du carousel */
.carousel-btn {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.carousel-indicator {
    border: 0;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    background: #cbd5e1;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-indicator.current-indicator {
    background: var(--secondary-color);
    transform: scale(1.2);
}

/* =========================================
   GALERIE
========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 102, 204, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.icon-zoom {
    color: var(--white);
    font-size: 2rem;
    font-style: normal;
    font-weight: bold;
}

/* =========================================
   CONTACT INFOS
========================================= */
.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.icon-contact {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-card h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* =========================================
   FACEBOOK SECTION
========================================= */
.fb-container {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

.fb-iframe-container {
    max-width: 100%;
    /* On définit une largeur max pour éviter le dépassement sur mobile */
}

.fb-iframe-container iframe {
    max-width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* =========================================
   FAQ
========================================= */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.faq-item p {
    color: rgba(255,255,255,0.9);
}

/* =========================================
   WIDGET WHATSAPP
========================================= */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: var(--transition);
}

.whatsapp-widget svg {
    width: 35px;
    height: 35px;
}

.whatsapp-widget:hover {
    background-color: #1EBE55;
    transform: scale(1.1) translateY(-5px);
    color: white;
}

/* =========================================
   FOOTER
========================================= */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px 0;
}

.logo-img-footer {
    height: 70px;
    width: auto;
    filter: brightness(0) invert(1); /* Mettre le logo en blanc sur fond bleu s'il est en couleur */
    display: block;
}

.footer-top {
    display: flex;
    gap: 20px;
}

.footer-links a, .footer-legal a {
    color: rgba(255,255,255,0.8);
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.footer-legal {
    display: flex;
    gap: 15px;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .team-container { flex-direction: column; }
    .portraits-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content { flex-direction: column; text-align: center; }
    .hero-text { padding-right: 0; }
    .hero-buttons { justify-content: center; }
    .hero-image { width: 100%; height: 350px; margin-top: 30px; }
    .contact-details-grid { grid-template-columns: repeat(1, 1fr); }
    .footer-top { flex-direction: column; gap: 20px; }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow-md);
        padding: 20px;
    }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 15px; text-align: center; }
    .mobile-toggle { display: flex; }
    .header-actions { display: none; }
    
    .hero-text h1 { font-size: 2.5rem; }
    .services-grid { grid-template-columns: 1fr; }
    .portraits-grid { grid-template-columns: 1fr; }
    .appointment-form .form-row { flex-direction: column; gap: 15px; }
    .appointment-box { padding: 30px 20px; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .carousel-btn { width: 35px; height: 35px; font-size: 1rem; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
