/* ========================================
   ORTHOSCAPHE - SITE WEB MÉDICAL
   Dr. Stéphane Vasseur - Chirurgie Orthopédique
   ======================================== */

/* ========================================
   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;
}

/* ========================================
   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 {
  /* Police : Jura est moderne et professionnelle pour un site médical */
  font-family: var(--font-family-primary);
  
  /* Dégradé de fond utilisant les variables CSS */
  background: linear-gradient(135deg, var(--background-gradient-start) 0%, var(--background-gradient-end) 100%);
  
  /* Couleur de texte par défaut */
  color: var(--text-color-primary);
  
  /* Hauteur de ligne pour une meilleure lisibilité */
  line-height: 1.6;
  
  /* Transition fluide quand on change de thème */
  transition: var(--transition-slow);
  
  /* Espace en haut pour la navigation fixe */
  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-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--hero-background);
  border-radius: 16px;
  
  /* Hauteur adaptative selon la taille d'écran */
  min-height: clamp(60vh, 70vh, 75vh); /* Réduit pour éviter le chevauchement */
  
  padding: 0 2rem;
  margin-bottom: 2rem;
  
  /* Ombre portée élégante */
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.12);
  
  /* Centrage du contenu */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 25px;
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.hero-image.loaded {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-overlay);
  border-radius: 16px;
  z-index: 3; /* Au-dessus du carousel (z-index: 1) mais en dessous du texte (z-index: 5) */
}

/* ========================================
   5.1 CARROUSEL D'IMAGES - OPTIMISÉ
   ======================================== */

.image-carousel {
  position: absolute; /* Retour à absolute pour remplir la section hero */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); /* Fond dégradé élégant */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Indicateur de chargement */
.image-carousel::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid #e2e8f0;
  border-top: 3px solid #0ea5e9;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Images du carrousel */
.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.001); /* Très léger scale pour éviter les bords blancs */
  will-change: opacity, transform;
}

/* Image active (visible) */
.carousel-image--active {
  opacity: 1;
  transform: scale(1.001);
}

/* État de préchargement - dimensions stables */
.carousel-image {
  min-width: 100%;
  min-height: 100%;
  max-width: 100%;
  max-height: 100%;
}

/* Masquer l'indicateur de chargement quand les images sont chargées */
.image-carousel.images-loaded::before {
  display: none;
}

/* ========================================
   5.2 CONTENU TEXTUEL DU HERO
   ======================================== */

.hero-title {
  color: #ffffff;
  font-size: var(--font-size-hero-title);
  font-weight: 300; /* Élégant et moderne */
  font-family: var(--font-family-primary);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4); /* Ombre plus prononcée pour la lisibilité */
  position: relative;
}

.hero-subtitle {
  color: #ffffff;
  font-size: var(--font-size-hero-subtitle);
  font-weight: 300;
  font-family: var(--font-family-primary);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4); /* Ombre plus prononcée pour la lisibilité */
  position: relative;
  margin: 0;
}

/* Contenu du hero */
.hero-content {
  position: relative;
  text-align: center;
  max-width: min(800px, 90vw);
  margin: 0 auto;
}

/* ========================================
   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;
}

/* Titres des sections */
.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;
  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é */
}

/* Paragraphes généraux - TEXTE JUSTIFIÉ */
p {
  text-align: justify;
  line-height: 1.6;
}

/* Descriptions de docteur - TEXTE JUSTIFIÉ */
.doctor-description {
  text-align: justify;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--card-text);
}

/* ========================================
   7. SECTION CENTRES MÉDICAUX
   ======================================== */

.centers-grid {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 32px);
  margin: 1rem;
  flex-wrap: wrap; /* Responsive : passe à la ligne si nécessaire */
}

.center-card {
  /* Image de fond */
  background-size: cover;
  background-position: center;
  
  /* Dimensions adaptatives */
  height: clamp(200px, 25vw, 280px);
  width: clamp(250px, 30vw, 350px);
  
  /* Positionnement du contenu */
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Contenu en bas */
  
  /* Style du texte */
  color: #ffffff;
  font-size: var(--font-size-card-title);
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  
  /* Apparence */
  border-radius: clamp(8px, 1vw, 12px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.12);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(1rem, 2vw, 20px);
}

/* Dégradé pour améliorer la lisibilité du texte */
.center-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
  z-index: 1;
}

/* Contenu de la carte au-dessus du dégradé */
.center-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.center-type,
.center-name {
  margin: 0;
  color: #ffffff;
}

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

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

.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
   ======================================== */

.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 text 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 et le formulaire */
  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 FORMULAIRE DE CONTACT - MOBILE CENTRÉ
   ======================================== */

/* Centrage mobile pour le titre du formulaire */
@media (max-width: 768px) {
  .contact-subtitle {
    text-align: center;
  }
  
  .contact-form-container {
  text-align: center;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
}
  
  .appointment-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  align-items: center;
  padding: var(--spacing-sm);
}
  
  .form-field {
    width: 100%;
    max-width: 400px;
  }
}

/* ========================================
   11.2 FORMULAIRE DE CONTACT - TEXTE OPTIMISÉ
   ======================================== */

/* Labels et champs de formulaire restent alignés à gauche pour la UX */
.form-field {
  display: flex;
  flex-direction: column;
  text-align: left; /* Important pour les formulaires */
  margin-bottom: var(--spacing-sm);
  width: 100%;
}

.form-input,
.form-select,
.form-textarea {
  padding: var(--spacing-md);
  border: 1px solid var(--card-border);
  border-radius: clamp(6px, 0.8vw, 8px);
  background: var(--background-gradient-start);
  color: var(--card-text);
  font-size: var(--font-size-body);
  font-family: var(--font-family-primary);
  transition: var(--transition-normal);
  text-align: left;
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--card-text);
  opacity: 0.7;
  text-align: left;
}



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

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

/* Titres et éléments spéciaux restent centrés */
h1, h2, h3, h4, h5, h6 {
  text-align: center;
}

/* Sauf dans certains contextes spécifiques */
.doctor-information h2 {
  text-align: left;
}





/* ========================================
   SYSTÈME DE BOUTONS UNIFIÉ - OPTIMISÉ
   ======================================== */

/* Base commune pour tous les boutons */
.btn-base,
.appointment-button,
.doctor-appointment-button,
.form-submit-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;
}

/* Effet shimmer commun */
.appointment-button::before,
.doctor-appointment-button::before,
.form-submit-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,
.form-submit-button:hover::before {
  left: 100%;
}

/* Boutons principaux (CTA) */
.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;
}

/* Centrage du bouton CTA du docteur sur mobile */
@media (max-width: 768px) {
  .doctor-appointment-button {
    width: 100%;
    max-width: 300px;
    margin: 1.5rem auto 0 auto;
  }
  
  .doctor-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    gap: 2rem;
  }
  
  .doctor-information {
    padding: 0.5rem;
    order: 1;
  }
  
  .doctor-profile-card {
    order: 2;
    margin: 0 auto;
  }
  
  .doctor-description {
    font-size: var(--font-size-base);
    text-align: center;
  }
  
  /* Responsive pour la section contact */
  .contact-container {
    padding: var(--spacing-sm);
  }
  
  .contact-grid {
    padding: var(--spacing-sm);
  }
  
  .contact-form-container {
    padding: var(--spacing-sm);
  }
  
  .appointment-form {
    padding: var(--spacing-xs);
  }
}

.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;
}

/* Bouton de formulaire */
.form-submit-button {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-hover) 100%);
  color: #ffffff;
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-body);
  box-shadow: var(--shadow-light);
  width: 100%;
  margin-top: var(--spacing-md);
  border-radius: clamp(6px, 0.8vw, 8px);
  font-weight: 600;
}

.form-submit-button:hover {
  background: linear-gradient(135deg, var(--accent-color-hover) 0%, var(--accent-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.35);
  color: #ffffff;
}



















/* ========================================
   OPÉRATIONS PRINCIPALES - STYLES CONSOLIDÉS
   ======================================== */

/* Liste des opérations */
.operations-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

/* Éléments d'opération */
.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);
}

/* En-tête des opérations */
.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-header:hover {
  background: linear-gradient(135deg, var(--accent-color-hover), var(--accent-color));
}

.operation-header.active .toggle-icon {
  transform: rotate(45deg);
}

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

/* Icône de toggle */
.toggle-icon {
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

/* Contenu des opérations */
.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;
}

.operation-content p {
  margin: 0 0 1rem 0;
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-color-primary);
}

/* Boutons des opérations */
.operation-content .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.operation-content .btn:hover {
  background: var(--accent-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Media queries pour les opérations */
@media (max-width: 768px) {
  .operation-header {
    padding: 1rem;
  }
  
  .operation-content.show {
    padding: 1rem;
  }
  
  .operation-title {
    font-size: var(--font-size-base);
  }
}

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

/* ========================================
   MENU DÉROULANT DES OPÉRATIONS (SECTION SUPPRIMÉE - DUPLIQUÉE)
   ======================================== */



/* ========================================
   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: clamp(12px, 1.5vw, 18px);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 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.7);
  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 .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);
  }
}

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

/* Carte principale */
.center-card {
  position: relative;
  overflow: hidden;
  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 pour les grilles */
  .centers-grid {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem;
  }
  
  .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;
  }
}

/* ========================================
   INTERVENTIONS PRINCIPALES - STYLES CONSOLIDÉS
   ======================================== */

/* Éléments de base */
.service-hero {
  position: relative;
  margin-bottom: 2rem;
}

.section-description {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: var(--font-size-lg);
  line-height: 1.6;
  color: var(--text-color);
}

/* Sections d'interventions séparées */
.intervention-section-full {
  padding: 4rem 0;
  margin: 0;
  width: 100%;
}

.intervention-section-full:nth-child(odd) {
  background: linear-gradient(135deg, rgba(27, 60, 83, 0.95) 0%, rgba(42, 74, 95, 0.95) 100%);
}

.intervention-section-full:nth-child(even) {
  background: linear-gradient(135deg, rgba(42, 74, 95, 0.95) 0%, rgba(27, 60, 83, 0.95) 100%);
}

.intervention-section-full.alternate {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(27, 60, 83, 0.95) 100%);
}

/* Conteneur et mise en page */
.intervention-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.intervention-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  min-height: 400px;
}

.intervention-content.reverse {
  grid-template-columns: 1fr 1fr;
}

.intervention-content.reverse .intervention-image {
  order: 2;
}

.intervention-content.reverse .intervention-text {
  order: 1;
}

/* Contenu textuel */
.intervention-text {
  color: white;
}

.intervention-title {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.intervention-description {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 2rem;
  text-align: justify;
}

/* Points forts des interventions */
.intervention-highlights {
  margin: 2rem 0;
  text-align: center;
}

.highlight-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-base);
}

.highlight-icon {
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.2em;
  margin-right: 0.8rem;
  min-width: 20px;
}

/* Appel à l'action */
.intervention-cta {
  margin-top: 2rem;
  text-align: center;
}

.intervention-cta .intervention-btn {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-hover) 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: all 0.3s ease;
  border: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.intervention-cta .intervention-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
}

/* Images des interventions */
.intervention-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  width: 100%;
  max-width: 600px;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-size-xl);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Images des interventions */
.intervention-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
  opacity: 0.8;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intervention-img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* ========================================
   RESPONSIVE DESIGN - INTERVENTIONS
   ======================================== */

@media (max-width: 1024px) {
  .intervention-content {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }
  
  .intervention-content.reverse .intervention-image {
    order: 2 !important;
  }
  
  .intervention-content.reverse .intervention-text {
    order: 1 !important;
  }
  
  .intervention-image {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .intervention-section-full {
    padding: 1.5rem 0;
  }
  
  .intervention-container {
    padding: 0 1rem;
  }
  
  .intervention-content {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
    text-align: center;
  }
  
  .intervention-content.reverse .intervention-image {
    order: 2 !important;
  }
  
  .intervention-content.reverse .intervention-text {
    order: 1 !important;
  }
  
  .intervention-image {
    height: 300px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
  }
  
  .intervention-title {
    font-size: var(--font-size-xl);
    margin-bottom: 1rem;
  }
  
  .intervention-description {
    font-size: var(--font-size-base);
    margin-bottom: 1.5rem;
  }
  
  .intervention-highlights {
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  
  .intervention-cta {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .intervention-section-full {
    padding: 1rem 0;
  }
  
  .intervention-container {
    padding: 0 0.8rem;
  }
  
  .intervention-content {
    gap: 1rem;
  }
  
  .intervention-image {
    height: 250px;
  }
  
  .intervention-title {
    font-size: var(--font-size-lg);
  }
  
  .intervention-description {
    font-size: var(--font-size-sm);
  }
  
  .intervention-cta .intervention-btn {
    padding: 0.8rem 1.5rem;
    font-size: var(--font-size-sm);
  }
}

/* ========================================
   SECTION CTA - STYLES MODERNES
   ======================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border-radius: 25px;
  margin: 3rem auto;
  max-width: 1200px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-icon {
  display: inline-block;
  color: rgba(255, 255, 255, 0.9);
  animation: pulse 2s infinite;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-description {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-actions .btn {
  padding: 0.875rem 2rem;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-width: 200px;
  justify-content: center;
}

.cta-actions .btn-primary {
  background: white;
  color: var(--primary-color);
  border: 2px solid white;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.cta-actions .btn-primary:hover {
  background: transparent;
  color: white;
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.cta-actions .btn-outline-primary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.cta-actions .btn-outline-primary:hover {
  background: white;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@media (max-width: 768px) {
  .cta-title {
    font-size: 2rem;
  }
  
  .cta-description {
    font-size: 1.1rem;
  }
  
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-actions .btn {
    min-width: 250px;
  }
}

