/* ========================================
   SITE WEB MÉDICAL - STYLES GÉNÉRAUX
   ======================================== */

/* Import modular CSS files */
@import url('hero.css');

/* ========================================
   1. RESET & CONFIGURATION DE BASE
   ======================================== */

/* Reset global : supprime les marges et paddings par défaut */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Inclut padding et border dans la taille */
  font-family: var(--font-family-primary);
}

/* Scroll fluide pour toute la page */
html {
  scroll-behavior: smooth;
}

/* ========================================
   TYPOGRAPHY & SPACING
   ======================================== */

/* Enhanced typography and spacing */
body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.025em;
}

p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.content-section {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

/* ========================================
   2. VARIABLES CSS (THÈMES CLAIR/SOMBRE)
   ======================================== */

/* Variables pour le thème CLAIR (par défaut) */
:root {
  /* Couleurs de fond dégradé */
  --background-gradient-start: #f1f5f9;
  --background-gradient-end: #e2e8f0;
  
  /* Couleurs de texte */
  --text-color-primary: #0f172a;
  
  /* Navigation */
  --navigation-background: rgba(255, 255, 255, 0.92);
  --navigation-border: rgba(148, 163, 184, 0.15);
  --navigation-text: #0f172a;
  
  /* Cartes et sections */
  --card-background: rgba(255, 255, 255, 0.85);
  --card-text: #0f172a;
  --card-border: rgba(148, 163, 184, 0.2);
  --card-background-hover: rgba(255, 255, 255, 0.95);
  
  /* Section hero/bannière */
  --hero-background: #0f172a;
  --hero-overlay: rgba(15, 23, 42, 0.2);
  
  /* Couleurs d'accent (boutons, liens) */
  --accent-color: #0ea5e9;
  --accent-color-hover: #0284c7;
  
  /* Transitions communes */
  --transition-fast: 0.25s ease;
  --transition-normal: 0.3s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s ease;
  
  /* Espacements communs */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Ombres communes */
  --shadow-light: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 15px 35px rgba(14, 165, 233, 0.15);
  
  /* ========================================
     TYPOGRAPHY SCALE - LOGICAL HIERARCHY
     ======================================== */
  
  /* Police principale : Jura pour un look médical professionnel */
  --font-family-primary: 'Jura', sans-serif;
  
  /* Typography scale (1.25 ratio - major third) */
  --font-size-xs: 0.8rem;    /* 12.8px - Small labels, captions */
  --font-size-sm: 0.9rem;    /* 14.4px - Body text, descriptions */
  --font-size-base: 1rem;    /* 16px - Base text */
  --font-size-md: 1.1rem;    /* 17.6px - Large body text */
  --font-size-lg: 1.25rem;   /* 20px - Subheadings */
  --font-size-xl: 1.5rem;    /* 24px - Section titles */
  --font-size-2xl: 2rem;     /* 32px - Page titles */
  --font-size-3xl: 2.5rem;   /* 40px - Hero titles */
  --font-size-4xl: 3rem;     /* 48px - Large hero titles */
  --font-size-5xl: 4rem;     /* 64px - Extra large titles */
  
  /* Responsive typography scale */
  --font-size-hero-title: clamp(2.5rem, 6vw, 4rem);
  --font-size-hero-subtitle: clamp(1.25rem, 3vw, 2rem);
  --font-size-section-title: clamp(1.5rem, 3.5vw, 2.5rem);
  --font-size-card-title: clamp(1.1rem, 2.5vw, 1.5rem);
  --font-size-body: clamp(0.9rem, 2vw, 1.1rem);
  --font-size-small: clamp(0.8rem, 1.8vw, 0.9rem);
  --font-size-nav: clamp(0.8rem, 1.4vw, 0.9rem);
  --font-size-button: clamp(0.9rem, 1.6vw, 1.1rem);
}
/* ========================================
   3. STYLES DE BASE DU BODY
   ======================================== */

body {
  font-family: var(--font-family-primary);
  background: linear-gradient(135deg, var(--background-gradient-start) 0%, var(--background-gradient-end) 100%);
  color: var(--text-color-primary);
  line-height: 1.6;
  transition: var(--transition-slow);
  padding-top: 70px;
}

/* Images : responsive par défaut */
img {
  max-width: 100%;
  display: block;
}


/* ========================================
   4.3 CONTRÔLES DE NAVIGATION
   ======================================== */

/* Utility classes for common patterns */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.navigation-controls {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.2vw, 1rem);
  justify-self: end;
  height: 100%;
  min-height: clamp(36px, 6vh, 42px);
  margin-right: clamp(1rem, 2vw, 2rem);
}
/* Bouton CTA navbar */
.appointment-button {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-hover) 100%);
  color: #ffffff;
  font-size: var(--font-size-button);
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.25);
  border: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  height: clamp(36px, 6vh, 42px);
  padding: 0 clamp(20px, 3.5vw, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  margin: 0;
  vertical-align: middle;
  font-family: inherit;
  align-self: center;
}

.appointment-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.8s ease;
  z-index: 1;
}

.appointment-button:hover::before {
  left: 100%;
}

.appointment-button:hover {
  background: linear-gradient(135deg, var(--accent-color-hover) 0%, var(--accent-color) 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.4);
  color: #ffffff;
}
















/* ========================================
   5. SECTION HERO/BANNIÈRE
   ======================================== */
/* Hero styles moved to index.css */

/* ========================================
   5.1 CARROUSEL D'IMAGES - OPTIMISÉ
   ======================================== */
/* Carousel styles moved to index.css */

/* ========================================
   5.2 CONTENU TEXTUEL DU HERO
   ======================================== */
/* Hero content styles moved to index.css */

/* ========================================
   6. SECTIONS DE CONTENU GÉNÉRALES
   ======================================== */

.content-section {
  background: var(--card-background);
  color: var(--card-text);
  margin: clamp(1.5rem, 4vw, 3rem) auto;
  max-width: min(1200px, 90vw);
  border-radius: clamp(12px, 1.5vw, 18px);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.08);
  border: 1px solid var(--card-border);
  transition: background 0.6s ease, color 0.6s ease;
}

/* Section titles */
.section-title {
  text-align: center;
  font-size: var(--font-size-section-title);
  font-family: var(--font-family-primary);
  margin-bottom: clamp(1.5rem, 3vw, 40px);
  color: var(--card-text);
}

.section-title-wbg {
  text-align: center;
  font-size: var(--font-size-section-title);
  font-family: var(--font-family-primary);
  margin-bottom: clamp(1.5rem, 3vw, 40px);
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* Descriptions des sections - TEXTE JUSTIFIÉ */
.section-description {
  text-align: justify;
  font-size: var(--font-size-body);
  color: var(--card-text);
  opacity: 0.8;
  max-width: min(600px, 90vw);
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7; /* Améliore la lisibilité */
}

/* Text alignment and doctor descriptions */
p {
  text-align: justify;
  line-height: 1.6;
}

.doctor-description {
  text-align: justify;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--card-text);
}

/* ========================================
   7. SECTION CENTRES MÉDICAUX
   ======================================== */
/* Centers styles moved to centers.css */

/* ========================================
   8. SECTION SERVICES MÉDICAUX
   ======================================== */

.services-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(1rem, 2vw, 20px);
  margin-bottom: 40px;
}

/* Unified buttons grid for pathologies list */
.pathologies-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.5vw, 0.8rem);
  align-items: stretch;
}

@media (max-width: 992px) {
  .pathologies-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 576px) {
  .pathologies-grid { grid-template-columns: 1fr; }
}

.btn-pathology {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-color-primary);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-pathology:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  background: #fff;
}

/* ========================================
   HOME CARD GRID (Pathologies & Treatments)
   ======================================== */
.home-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  justify-items: stretch;
  padding: 0.5rem 0;
  max-width: 1400px;
  margin: 0 auto;
}

.home-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-height: 80px;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  color: var(--text-color-primary);
  text-decoration: none;
  background-size: initial;
  background-position: initial;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0;
}

.home-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.home-card:hover::before {
  opacity: 1;
}

.home-card::after { display: none; }

.home-card-title {
  position: relative;
  z-index: 2;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.1px;
  color: var(--text-color-primary);
  line-height: 1.3;
  text-shadow: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-width: 100%;
}

.home-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.98);
}

.home-card:hover .home-card-title {
  color: var(--accent-color);
  font-weight: 700;
}

.service-card {
  /* Apparence */
  background: #ffffff;
  color: #222222;
  border-radius: clamp(8px, 1vw, 12px);
  padding: clamp(1.5rem, 3vw, 30px);
  
  /* Dimensions carrées adaptatives */
  width: clamp(160px, 20vw, 200px);
  height: clamp(160px, 20vw, 200px);
  
  /* Centrage du contenu */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  
  /* Ombre et transition */
  box-shadow: var(--shadow-light);
  transition: var(--transition-fast);
}

/* Effet au survol */
.service-card:hover {
  transform: translateY(-5px); /* Légère élévation */
  box-shadow: var(--shadow-medium);
}

/* Icônes des services */
.service-icon {
  width: 100%;
  height: 35vh;
  margin-bottom: 0;
  color: var(--accent-color);
  object-fit: cover;
  border-radius: 12px;
}

/* Noms des services */
.service-name {
  font-size: var(--font-size-small);
  margin: 0;
  font-weight: 500;
  text-align: left;
}

/* Carte service spéciale (toutes les chirurgies) */
.service-card--highlight {
  background: var(--accent-color);
  color: #ffffff;
  width: clamp(200px, 25vw, 320px);
  height: auto;
  min-height: clamp(80px, 10vw, 100px);
  padding: clamp(1rem, 2vw, 20px);
}

.service-card--highlight .service-name {
  font-size: var(--font-size-body);
  font-weight: 600;
  text-align: left;
}

/* ========================================
   9. SECTION DOCTEUR PRINCIPAL - ENHANCED
   ======================================== */

.doctor-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  border-radius: 20px;
  margin: clamp(2rem, 5vw, 4rem) auto;
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.1);
  position: relative;
  overflow: hidden;
}

.doctor-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color) 0%, #10b981 50%, var(--accent-color) 100%);
}

.doctor-title {
  font-size: var(--font-size-section-title);
  font-weight: 700;
  color: var(--text-color-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.doctor-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

.doctor-description {
  font-size: var(--font-size-body);
  line-height: 1.7;
  color: var(--text-color-primary);
  text-align: justify;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.doctor-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  width: 100%;
  max-width: 900px;
  align-items: center;
  padding: 2rem;
}

/* Base styles for doctor information */
.doctor-information {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  text-align: center;
  padding: 1rem;
}

/* Doctor description enhanced styling */
.doctor-description {
  font-size: var(--font-size-lg);
  line-height: 1.7;
  color: var(--card-text);
  margin-bottom: 1rem;
  text-align: justify;
  max-width: 100%;
}

/* Titre de la section docteur - centré au-dessus */
.doctor-section-title {
  text-align: center;
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: var(--card-text);
  margin-bottom: 2rem;
  width: 100%;
}

/* Container pour le contenu horizontal (texte + photo) */
.doctor-content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  width: 100%;
  align-items: center;
}

/* Doctor section title specific styling */
.doctor-information .section-title {
  margin-bottom: 1.5rem;
  color: var(--card-text);
  font-size: var(--font-size-2xl);
  font-weight: 600;
  text-align: center;
  width: 100%;
}

/* Sur desktop, le titre reste centré mais le contenu est à gauche */
@media (min-width: 900px) {
  .doctor-information .section-title {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .doctor-information .doctor-description {
    text-align: justify;
  }
  
  .doctor-information .doctor-appointment-button {
    text-align: left;
  }
}

/* Sur les grands écrans : layout horizontal */
@media (min-width: 900px) {
  .doctor-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    gap: calc(var(--spacing-xl) * 2);
    max-width: 1200px;
    margin: 0 auto;
    min-height: 400px; /* Assure une hauteur minimale pour le centrage */
  }
  
  .doctor-information {
    flex: 1;
    padding-right: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 600px;
    align-items: flex-start;
    order: 1; /* Force le texte à gauche */
  }
  
  .doctor-profile-card {
    flex-shrink: 0;
    width: 350px;
    margin-left: 0;
    align-self: center;
    order: 2; /* Force la photo à droite */
  }
}

/* Carte photo du docteur */
.doctor-profile-card {
  background: var(--card-background);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
  width: 100%;
  max-width: 350px;
  border: 1px solid var(--card-border);
  position: relative;
  margin: 0 auto;
}

/* Photo du docteur */
.doctor-photo {
  width: 100%;
  height: 380px;
  border-radius: 20px 20px 0 0;
  object-fit: cover;
  object-position: center center; /* Centrage vertical et horizontal */
  display: block;
  transition: transform 0.3s ease;
}

.doctor-photo:hover {
  transform: scale(1.02);
}

/* Statistiques du docteur */
.doctor-statistics {
  background: var(--accent-color);
  border-radius: 0 0 20px 20px;
  padding: 20px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  min-height: 80px;
}

.statistic-number {
  font-size: var(--font-size-3xl);
  font-weight: bold;
  color: #ffffff;
  line-height: 1;
}

.statistic-label {
  font-size: var(--font-size-sm);
  color: #ffffff;
  margin-top: 5px;
  text-align: center;
}
/* ========================================
   11. SECTION CONTACT
   ======================================== */

.contact-container {
  width: 100%;
  padding: var(--spacing-lg);
}

.contact-grid {
  display: grid;
  /* Grille adaptative pour les infos */
  grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 40vw, 400px), 1fr));
  gap: clamp(2rem, 5vw, 3rem);
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
}

.contact-subtitle {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-md);
  color: var(--card-text);
  padding: var(--spacing-sm);
}

/* ========================================
   11.1 INFORMATIONS DE CONTACT
   ======================================== */

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--background-gradient-start);
  border-radius: clamp(6px, 0.8vw, 8px);
  border: 1px solid var(--card-border);
  text-align: center;
}

.contact-icon {
  color: var(--accent-color);
  flex-shrink: 0;
  width: clamp(20px, 3vw, 24px);
  height: clamp(20px, 3vw, 24px);
}

/* Email link styling - looks like normal text but is clickable */
.contact-email-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  flex: 1;
}

.contact-email-link:hover {
  color: var(--accent-color);
}

/* Phone link styling - looks like normal text but is clickable */
.contact-phone-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  flex: 1;
}

.contact-phone-link:hover {
  color: var(--accent-color);
}

/* General contact text styling to prevent overflow */
.contact-text {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  flex: 1;
  line-height: 1.4;
}

/* ========================================
   11.2 CONTACT - MOBILE CENTRÉ
   ======================================== */

/* Centrage mobile pour le sous-titre de contact */
@media (max-width: 768px) {
  .contact-subtitle {
    text-align: center;
  }
}

/* Exceptions au texte justifié */
.center-text {
  text-align: center !important;
}

.left-text {
  text-align: left !important;
}

/* Heading alignment */
h1, h2, h3, h4, h5, h6 {
  text-align: center;
}

.doctor-information h2 {
  text-align: left;
}


/* ========================================
   BUTTON SYSTEM
   ======================================== */

/* Common button styles */
.btn-base,
.appointment-button,
.doctor-appointment-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-family-primary);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: none;
  border-radius: 50px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  line-height: 1;
}

/* Shimmer effect */
.appointment-button::before,
.doctor-appointment-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.8s ease;
  z-index: 1;
}

.appointment-button:hover::before,
.doctor-appointment-button:hover::before {
  left: 100%;
}

/* CTA buttons */
.doctor-appointment-button {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-hover) 100%);
  color: #ffffff;
  padding: 18px 48px;
  font-size: var(--font-size-md);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.25);
  margin-top: 1.5rem;
  font-weight: 600;
  text-align: center;
  align-self: center;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: fit-content;
}

.doctor-appointment-button:hover {
  background: linear-gradient(135deg, var(--accent-color-hover) 0%, var(--accent-color) 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.4);
  color: #ffffff;
}

















/* ========================================
   OPERATIONS - SIMPLIFIED
   ======================================== */

.operations-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.operation-item {
  background: var(--card-background);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.operation-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.operation-header {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-hover));
  color: white;
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.operation-title {
  margin: 0;
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: white;
}

.toggle-icon {
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.operation-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
  background: var(--card-background);
}

.operation-content.show {
  max-height: 500px;
  padding: 1.5rem;
}

/* ========================================
   PAGES D'OPÉRATIONS
   ======================================== */
/* Styles déplacés vers assets/css/operations.css */




/* ========================================
   SECTION SERVICES MÉDICAUX - ENHANCED
   ======================================== */

.services-section {
  border-radius: 20px !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12) !important;
  margin: clamp(2rem, 5vw, 4rem) auto !important;
  position: relative;
  overflow: hidden;
}

.services-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981 0%, var(--accent-color) 50%, #10b981 100%);
  z-index: 3;
}

/* ========================================
   SECTION SERVICES MÉDICAUX - STYLES CONSOLIDÉS
   ======================================== */

/* Styles principaux de la section */
#medical-services {
  position: relative;
  background-image: url('assets/images/douleur épaule.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin: clamp(1.5rem, 4vw, 3rem) auto;
  max-width: min(1200px, 90vw);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: background 0.6s ease, color 0.6s ease;
}

#medical-services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1;
}

#medical-services > * {
  position: relative;
  z-index: 2;
}

/* Description et titre */
#medical-services .section-description {
  color: #fff !important;
  text-align: center;
  font-size: var(--font-size-lg);
  line-height: 1.7;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#medical-services .service-hero {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

#medical-services .service-hero h2 {
  color: #fff;
  font-size: var(--font-size-2xl);
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin: 0;
}

/* Liste des opérations */
#medical-services .operations-list h3 {
  color: #fff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

#medical-services .section-title-wbg {
  color: #fff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#medical-services .operation-item {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#medical-services .operation-header {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-hover));
}

#medical-services .operation-content {
  background: rgba(255, 255, 255, 0.98);
}
/* Boutons */
#medical-services .btn-primary {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

#medical-services .btn-primary:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

/* Media queries */
@media (max-width: 768px) {
  #medical-services {
    background-attachment: scroll;
  }
  
  #medical-services .section-description {
    font-size: var(--font-size-base);
  }
}

/* ========================================
   SECTION CENTRES MÉDICAUX - ENHANCED
   ======================================== */

.centers-section {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-radius: 20px;
  margin: clamp(2rem, 5vw, 4rem) auto;
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.1);
  position: relative;
  overflow: hidden;
}

.centers-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981 0%, var(--accent-color) 50%, #10b981 100%);
}

.centers-title {
  font-size: var(--font-size-section-title);
  font-weight: 700;
  color: var(--text-color-primary);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.centers-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #10b981;
  border-radius: 2px;
}

/* Centers section specific overrides */
.centers-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.centers-section .centers-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 0 auto;
  padding: 2rem 0;
  flex-wrap: wrap;
  max-width: 800px;
  width: 100%;
}

/* ========================================
   CARTES DES CENTRES HOSPITALIERS - STYLES CONSOLIDÉS
   ======================================== */

/* Center card hover effects */
.center-card {
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.center-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Contenu de la carte */
.center-content {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.center-card:hover .center-content {
  filter: blur(3px);
  transform: scale(0.95);
}

/* Overlay d'adresse */
.center-address {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(20px);
}

.center-card:hover .center-address {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Typographie de l'adresse */
.center-address h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent-color);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.center-address p {
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.center-address p:last-child {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--accent-color);
}

/* Media queries pour les cartes */
@media (max-width: 768px) {
  .center-address {
    padding: 1.5rem;
  }
  
  .center-address h4 {
    font-size: var(--font-size-base);
  }
  
  .center-address p {
    font-size: var(--font-size-sm);
  }
  
/* Mobile responsive */
.centers-grid {
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin: 0 auto;
  padding: 1rem 0;
  max-width: 400px;
}

.center-card {
  width: 100%;
  max-width: 350px;
  height: 200px;
}

.services-grid {
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.service-card {
  width: 100%;
  max-width: 280px;
  height: auto;
  min-height: 120px;
  padding: 1.5rem;
}



/* ========================================
   SERVICES TABS STYLES
   ======================================== */

.services-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem 0;
  padding: 0 1rem;
  border-bottom: 2px solid var(--card-border);
  padding-bottom: 1rem;
  position: relative;
}

.services-tabs::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.tab-button {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-color-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 20px;
  font-size: var(--font-size-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  position: relative;
  min-width: 140px;
  text-align: center;
  white-space: nowrap;
}

.tab-button:hover {
  background: var(--card-background);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
}

.tab-button.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
  transform: translateY(-1px);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
  margin-top: 1rem;
  padding: 0 1rem;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Different card styles for pathologies vs interventions */
.pathology-card {
  border-left: 4px solid #10b981;
  background: rgba(255, 255, 255, 0.95);
  position: relative;
}

.pathology-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.intervention-card {
  border-left: 4px solid #3b82f6;
  background: rgba(255, 255, 255, 0.95);
  position: relative;
}

.intervention-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.pathology-card:hover {
  border-left-color: #059669;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
  background: rgba(255, 255, 255, 0.98);
}

.pathology-card:hover::before {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
}

.intervention-card:hover {
  border-left-color: #2563eb;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
  background: rgba(255, 255, 255, 0.98);
}

.intervention-card:hover::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, transparent 50%);
}

/* Section title with background enhancements */
.section-title-wbg {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: white !important;
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  padding-bottom: 1rem;
}

.section-title-wbg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

#pathologies-tab,
#interventions-tab {
  padding: 1rem 0;
}

/* ========================================
   CONTACT TABS STYLES
   ======================================== */

.contact-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
  border-bottom: 2px solid var(--card-border);
  padding-bottom: 1rem;
}

.contact-tab-button {
  background: transparent;
  border: 2px solid var(--card-border);
  color: var(--text-color-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-size: var(--font-size-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.contact-tab-button:hover {
  background: var(--card-background);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-2px);
}

.contact-tab-button.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.contact-tab-content {
  display: none;
}

.contact-tab-content.active {
  display: block;
}

/* ========================================
   SECTION CONTACT - ENHANCED
   ======================================== */

.contact-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
  border-radius: 20px;
  margin: clamp(2rem, 5vw, 4rem) auto;
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.1);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color) 0%, #3b82f6 50%, var(--accent-color) 100%);
}

.contact-title {
  font-size: var(--font-size-section-title);
  font-weight: 700;
  color: var(--text-color-primary);
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.contact-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-color);
  border-radius: 2px;
}

.contact-description {
  font-size: var(--font-size-body);
  line-height: 1.7;
  color: var(--text-color-primary);
  text-align: center;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   CONTACT IMPROVEMENTS
   ======================================== */

.contact-email-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.contact-email-location {
  font-size: var(--font-size-xs);
  color: var(--text-color-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-phone-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.contact-phone-location {
  font-size: var(--font-size-xs);
  color: var(--text-color-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-address-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.contact-address-location {
  font-size: var(--font-size-xs);
  color: var(--text-color-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tablet and desktop - ensure horizontal tabs */
@media (min-width: 769px) {
  .services-tabs {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
  
  .tab-button {
    min-width: 200px;
  }
  
  .contact-tabs {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
  
  .contact-tab-button {
    min-width: 220px;
  }
}

/* Mobile email fix - prevent wrapping */
@media (max-width: 768px) {
  .contact-email-link {
    word-break: break-word;
    max-width: 100%;
    font-size: var(--font-size-sm);
  }

  .contact-phone-link {
    word-break: break-word;
    max-width: 100%;
    font-size: var(--font-size-sm);
  }
  
  .services-tabs {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 2rem 0;
  }
  
  .tab-button {
    width: 100%;
    max-width: 250px;
    padding: 0.8rem 1.5rem;
    font-size: var(--font-size-md);
  }

  .home-card-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.25rem 0;
  }

  .home-card {
    height: 70px;
    padding: 0.75rem 1rem;
    margin: 0;
  }

  .home-card-title {
    font-size: var(--font-size-xs);
  }

  .tab-content {
    padding: 0 0.5rem;
  }

  #pathologies-tab,
  #interventions-tab {
    padding: 0.75rem 0;
  }
  
  .contact-tabs {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .contact-tab-button {
    width: 100%;
    max-width: 250px;
  }
}

}
