
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(to right, #1a4d8f, #3b70b5);
    color: white;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.header-buttons a {
    display: inline-block;
    margin: 10px;
    padding: 15px 25px;
    font-size: 18px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
}

.header-buttons .btn {
    background-color: #0d2f6f;
}

.header-buttons .whatsapp {
    background-color: #25D366;
}

/* Sections */
section {
    padding: 50px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Services */
#services h2,
#horaires h2,
#contact h2 {
    text-align: center;
    color: #1a4d8f;
    margin-bottom: 30px;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.service-item {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    text-align: center;
}

/* Horaires */
#horaires ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

#horaires li {
    font-size: 18px;
    margin: 10px 0;
}

/* Map */
.map {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

/* Responsive */
@media(max-width: 600px){
    header h1 {
        font-size: 2em;
    }
    .header-buttons a {
        font-size: 16px;
        padding: 12px 20px;
    }
}
.banner {
    background-image: url("banner.jpg");
    background-size: cover;
    background-position: center;
    height: 280px;
    position: relative;
    display: flex;
    filter: brightness(1.1);
    align-items: center;
}

.banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.15);
}

.banner-content {
  position: relative;
  max-width: 500px;
  margin-left: 60px;
  color: #1f3b64;
  text-align: left;
}

.banner-content h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.banner-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #3a4a5e;
}

.banner-logo {
  width: 60px;
  margin-bottom: 10px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.gallery img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.faq-item {
    background-color: #f1f1f1;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.faq-item h3 {
    margin-bottom: 10px;
    color: #1a4d8f;
}

.service-link {
    display: inline-block;
    margin-top: 10px;
    color: #1a4d8f;
    font-weight: bold;
    text-decoration: none;
}

.service-link:hover {
    text-decoration: underline;
}

#service {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
}

.service-item h3 {
    color: #1a4d8f;
    margin-bottom: 10px;
}

.service-item p {
    color: #444;
    line-height: 1.6;
}

.service-link {
    display: inline-block;
    margin-top: 15px;
    color: #1a4d8f;
    font-weight: bold;
    text-decoration: none;
}

.service-link:hover {
    text-decoration: underline;
}

/* ===== STYLE GLOBAL DES PAGES DETAIL ===== */

body {
    background-color: #f2f6fb;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333;
}

/* Conteneur principal */
.page-detail {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

/* Titre principal */
.page-detail h1 {
    font-size: 32px;
    color: #1a4d8f;
    margin-bottom: 25px;
    border-left: 6px solid #1a4d8f;
    padding-left: 15px;
}

/* Titres secondaires */
.page-detail h2 {
    font-size: 24px;
    color: #0d3b66;
    margin-top: 35px;
    margin-bottom: 15px;
}

.page-detail h3 {
    font-size: 20px;
    color: #145da0;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* Paragraphes */
.page-detail p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #444;
}

/* Listes */
.page-detail ul {
    margin: 15px 0 25px 20px;
    padding: 0;
}

.page-detail ul li {
    margin-bottom: 10px;
    padding-left: 10px;
    list-style: none;
    position: relative;
}

.page-detail ul li::before {
    content: "✔";
    position: absolute;
    left: -20px;
    color: #1a4d8f;
    font-weight: bold;
}

/* Séparation visuelle douce */
.page-detail hr {
    border: none;
    height: 1px;
    background: #e0e6ef;
    margin: 40px 0;
}

/* Responsive (mobile) */
@media (max-width: 768px) {
    .page-detail {
        margin: 30px 15px;
        padding: 25px;
    }

    .page-detail h1 {
        font-size: 26px;
    }

    .page-detail h2 {
        font-size: 20px;
    }
}

/* ===========================
   Section Services
=========================== */
.services {
    background-color: #e6f0ff; /* Fond bleu doux pour la section */
    padding: 60px 20px;
    text-align: center;
}

/* Titre de la section */
.services h2 {
    font-size: 32px;
    color: #1f3d7a; /* bleu foncé pour le titre */
    margin-bottom: 50px;
    font-family: 'Poppins', sans-serif;
}

/* Grille des cartes */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

/* Responsive pour tablette */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive pour mobile */
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Cartes */
.service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

/* Hover sur les cartes */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Icones */
.service-card .icon {
    font-size: 45px;
    margin-bottom: 20px;
    color: #1f3d7a; /* même bleu que le titre */
}

/* Titre de la carte */
.service-card h3 {
    font-size: 20px;
    color: #1f3d7a;
    margin-bottom: 12px;
}

/* Description */
.service-card p {
    font-size: 15px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Bouton */
.service-card .btn {
    display: inline-block;
    padding: 10px 22px;
    background-color: #1f3d7a;
    color: white;
    border-radius: 25px;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.service-card .btn:hover {
    background-color: #0f5fd4;
}

/* ===== Horaires & Nous Trouver ===== */

.info-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
}

.info-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-align: center;
}

.info-card h2 {
  color: #1f4fa3;
  font-size: 24px;
  margin-bottom: 15px;
}

.info-card p {
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

.info-card .closed {
  color: #b00020;
  margin-top: 10px;
  font-weight: bold;
}

/* Google Map */
.map-container {
  margin-top: 15px;
  border-radius: 15px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 250px;
  border: none;
}

/* Desktop : 2 colonnes */
@media (min-width: 768px) {
  .info-section {
    grid-template-columns: 1fr 1fr;
  }
}

/* Bouton Itinéraire */
.btn-itineraire {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #1f4fa3, #2f7cff);
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn-itineraire:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(47,124,255,0.4);
}

/* ===== Footer Réseaux Sociaux ===== */

.footer {
  background: linear-gradient(135deg, #1a4d8f);
  color: white;
  text-align: center;
  padding: 25px 20px;   /* ↓ réduit l’espace */
}

/* Texte copyright */
.footer .copyright {
  font-size: 14px;
  margin-bottom: 12px; /* ↓ espace contrôlé */
}

/* Texte "Suivez-nous" */
.footer .follow-text {
  font-size: 16px;
  margin-bottom: 10px; /* ↓ petit espace */
}

/* Réseaux */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 5px;     /* ↓ presque collé */
}

/* ===== Bouton À propos du médecin Responsive ===== */
.btn-apropos {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, #1a4d8f, #3b7cd6); /* Dégradé bleu moderne */
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(26, 77, 143, 0.3); /* Ombre douce */
    transition: all 0.4s ease;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.btn-apropos:hover {
    background: linear-gradient(135deg, #3b7cd6, #1a4d8f); /* Inverse le dégradé */
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(26, 77, 143, 0.4);
}

.btn-container {
    text-align: center; /* Centrer le bouton sur toutes les tailles */
    margin: 20px 0;
    padding: 0 10px;
}

/* Ajustement mobile */
@media (max-width: 600px) {
    .btn-apropos {
        font-size: 16px;
        padding: 12px 24px;
    }
}