/* --- INITIALISATION ET ELEMENTS GENERAUX --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    background-color: #f8fafc;
    color: #334155;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}

/* --- GRID ET STRUCTURES RÉUTILISABLES --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px auto;
}

/* --- SECTION A : TOP BAR --- */
.top-bar {
    background-color: #0f172a;
    color: #ffffff;
    padding: 10px 0;
    font-size: 14px;
}
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.social-icons a {
    margin-right: 15px;
    transition: color 0.3s;
}
.social-icons a:hover {
    color: #38bdf8;
}
.lang-link {
    background-color: #334155;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
}
/* --- STYLE DE LA TOP BAR ET DES ICÔNES --- */
.top-bar {
    background-color: #1a252f; /* Couleur de fond foncée (médicale/professionnelle) */
    color: #ffffff;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between; /* Aligne les icônes à gauche, le mail au milieu, la langue à droite */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Style spécifique des blocs d'icônes */
.social-icons {
    display: flex;
    gap: 15px; /* Espace de 15px entre chaque icône */
}

.social-icons a {
    color: #ffffff; /* Couleur de base des icônes (blanche) */
    font-size: 16px; /* Taille de l'icône */
    transition: color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

/* Effet au survol des icônes (changement de couleur) */
.social-icons a:hover {
    color: #3498db; /* Couleur bleu médical au survol */
    transform: scale(1.1); /* Léger agrandissement dynamique */
}

/* Optionnel : Style pour le lien e-mail et la langue dans la top bar */
.top-bar-contact a, .lang-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar-contact a:hover, .lang-link:hover {
    color: #3498db;
}

.top-bar-contact i {
    margin-right: 5px; /* Espace entre la mini-icône enveloppe et l'adresse email */
}


/* --- SECTION B : BARRE DE NAVIGATION & HEADER --- */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.logo-img {
    height: 50px;
}
.nav-menu {
    display: flex;
    align-items: center;
}
.nav-menu > li {
    margin-left: 20px;
    position: relative;
}
.nav-menu > li > a {
    font-weight: 600;
    color: #475569;
    padding: 10px 0;
    transition: color 0.3s;
}
.nav-menu > li > a:hover {
    color: #0284c7;
}

/* Menu Déroulant (Dropdown) */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    min-width: 150px;
    padding: 10px 0;
}
.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #334155;
    transition: background 0.3s;
}
.dropdown-menu li a:hover {
    background-color: #f1f5f9;
    color: #0284c7;
}
.dropdown:hover .dropdown-menu {
    display: block;
}

/* --- ACCUEIL HERO BANNER --- */
.hero-section {
    background: linear-gradient(rgba(2, 132, 199, 0.7), rgba(15, 23, 42, 0.8)), url('hero-bg.jpg') center/cover no-repeat;
    height: 350px;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}
.hero-overlay {
    width: 100%;
}
.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* --- SECTION C & E : BLOCS ET CARTES --- */
.card-space, .service-promo-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}
.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.btn-space, .btn-service {
    display: block;
    text-align: center;
    padding: 15px;
    background-color: #0284c7;
    color: white;
    font-weight: bold;
    transition: background 0.3s;
}
.btn-space:hover, .btn-service:hover {
    background-color: #0369a1;
}
.news-block {
    padding: 25px;
    background-color: #ffffff;
}
.news-block h3 {
    margin-bottom: 15px;
    color: #0f172a;
}
.view-more {
    margin-top: auto;
    color: #0284c7;
    font-weight: bold;
    text-align: right;
}

/* --- SECTION D : SPECIALITES --- */
.specialities-section {
    background-color: #f1f5f9;
    padding: 60px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #0f172a;
}
.specialities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.speciality-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}
.speciality-card:hover {
    transform: translateY(-5px);
}
.sp-icon {
    font-size: 2.5rem;
    color: #0284c7;
    margin-bottom: 15px;
}
.speciality-card h3 {
    margin-bottom: 10px;
    color: #1e293b;
}
.speciality-card p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 15px;
    height: 60px;
}
.sp-link {
    color: #0284c7;
    font-weight: 600;
    font-size: 14px;
}

/* --- FORMULAIRE DE RENDEZ-VOUS --- */
.appointment-form-block {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.appointment-form-block h3 {
    margin-bottom: 20px;
    color: #0f172a;
}
.form-group {
    margin-bottom: 15px;
}
.form-group input[type="tel"],
.form-group input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    outline: none;
}
.inline-radios label {
    margin-right: 15px;
    cursor: pointer;
}
.file-label {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
    color: #475569;
}
.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #22c55e;
    color: white;
    border: none;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-submit:hover {
    background-color: #16a34a;
}
.alert-success { color: #16a34a; margin-bottom: 15px; font-weight: 600;}
.alert-danger { color: #dc2626; margin-bottom: 15px; font-weight: 600;}

/* --- SECTION F : FOOTER --- */
.main-footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 50px 0 0 0;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 40px;
}
.footer-col h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}
.loc-link {
    color: #38bdf8;
}
.footer-bottom {
    border-top: 1px solid #334155;
    padding: 20px 0;
}
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}
.footer-socials a {
    margin-left: 15px;
    font-size: 18px;
}

/* --- RESPONSIVE ADAPTATION (MOBILE & TABLETTE) --- */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
}
@media (max-width: 576px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .nav-menu > li {
        margin-left: 10px;
        margin-right: 10px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
