/* ===== VARIABLES CSS ===== */
:root {
  /* Couleurs principales - Palette medireg.ai (basée sur le logo) */
  --primary: #8BB582;
  --primary-dark: #6a9361;
  --primary-light: #a5c79d;
  --secondary: #8BB582;
  --accent: #0F1A2B;
  
  /* Couleurs sémantiques */
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #8BB582;
  --info: #8BB582;
  
  /* Nuances basées sur le bleu marine du logo */
  --navy-50: #e8edf3;
  --navy-100: #d1dbe7;
  --navy-200: #a3b7cf;
  --navy-300: #7593b7;
  --navy-400: #476f9f;
  --navy-500: #1a4b87;
  --navy-600: #152f5a;
  --navy-700: #0F1A2B;
  --navy-800: #0a1220;
  --navy-900: #050915;
  
  /* Fond et texte - Mode sombre inspiré du logo */
  --bg-primary: #0F1A2B;
  --bg-secondary: #152f5a;
  --bg-tertiary: #1a4b87;
  --text-primary: #ffffff;
  --text-secondary: #d1dbe7;
  --text-tertiary: #a3b7cf;
  
  /* Typographie */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Courier New', monospace;
  
  /* Espacements */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Bordures */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Ombres */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Hauteur navbar */
  --navbar-height: 70px;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
  /* CORRECTION CRITIQUE: Empêcher le redimensionnement automatique du texte sur mobile */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* CORRECTION RÉGRESSION: Assurer la largeur complète du viewport */
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  /* CORRECTION CRITIQUE: Améliorer les performances de scroll sur mobile */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: none;
  touch-action: manipulation;
  /* CORRECTION RÉGRESSION: Assurer la largeur complète et pas de transformation */
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== LOGO FIXE EN ARRIÈRE-PLAN ===== */
.background-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease-out;
  will-change: opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* CORRECTION CRITIQUE: Empêcher le débordement */
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
}

.background-logo.visible {
  opacity: 0.08;
}

.background-logo img {
  width: 800px;
  height: auto;
  max-width: 80vw; /* Réduit de 90vw à 80vw */
  max-height: 80vh; /* Ajout d'une hauteur max */
  object-fit: contain; /* Garde les proportions */
  /* CORRECTION: Centrage parfait de l'image */
  display: block;
  margin: 0 auto;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: var(--navbar-height);
  background: rgba(15, 26, 43, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 181, 130, 0.2);
  z-index: 1000;
  transition: var(--transition);
  /* CORRECTION: Améliorer les performances sur mobile */
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.navbar.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  background: rgba(15, 26, 43, 0.98);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-brand img {
  height: 55px;
  width: auto;
}

.nav-brand i {
  font-size: 1.75rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-xs);
  align-items: center;
}

.nav-link {
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  /* CORRECTION: Améliorer la zone tactile sur mobile (44px minimum) */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-link:hover {
  color: var(--primary);
  background: rgba(139, 181, 130, 0.1);
}

.nav-link.active {
  color: var(--primary);
}

.nav-link.cta {
  background: var(--primary);
  color: white;
  margin-left: var(--spacing-sm);
}

.nav-link.cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  /* CORRECTION: Améliorer la zone tactile */
  min-height: 44px;
  min-width: 44px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  /* CORRECTION RÉGRESSION: Créer un contexte de positionnement */
  position: relative;
  width: 100%;
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--spacing-3xl) 0;
  position: relative;
  z-index: 1;
  /* CORRECTION RÉGRESSION: Assurer la largeur complète */
  width: 100%;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* ===== HERO SECTION ===== */
.hero {
  padding-top: calc(var(--navbar-height) + var(--spacing-3xl));
  padding-bottom: var(--spacing-3xl);
  background: linear-gradient(135deg, #0F1A2B 0%, #1a4b87 100%);
  position: relative;
  z-index: 1;
  overflow: hidden;
  /* CORRECTION RÉGRESSION: Assurer la largeur complète */
  width: 100%;
  /* Pas de min-height fixe - la hauteur s'adapte au contenu */
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 181, 130, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
  position: relative;
}

.hero-content {
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-md);
  background: rgba(139, 181, 130, 0.15);
  border: 1px solid rgba(139, 181, 130, 0.3);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--spacing-lg);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
}

.hero-logo {
  width: auto;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
  /* AJUSTEMENT: Logo 1,5x plus gros (400px → 600px) */
  max-height: 375px;
}

.gradient-text {
  background: linear-gradient(135deg, #8BB582 0%, #a5c79d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.hero-visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  z-index: 1;
  align-items: stretch;
}

.visual-card {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 181, 130, 0.2);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: var(--transition);
}

.visual-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 181, 130, 0.4);
}

.visual-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: var(--spacing-md);
}

.visual-card p {
  font-weight: 600;
  color: var(--text-primary);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  /* CORRECTION: Améliorer la zone tactile (48px minimum) */
  min-height: 48px;
  justify-content: center;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--navy-900);
}

.btn-lg {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: 1.125rem;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  gap: var(--spacing-xl);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ===== CARDS ===== */
.card {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 181, 130, 0.15);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 181, 130, 0.3);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.card-icon {
  text-align: center;
}

.card-icon h3 {
  display: block;
  text-align: center;
  justify-content: center;
}

.card-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-size: 2rem;
}

.card-icon-wrapper.danger {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: var(--danger);
}

.card-icon-wrapper.warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: var(--warning);
}

.card-icon-wrapper.info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: var(--info);
}

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
  background: rgba(139, 181, 130, 0.1);
  border: 1px solid rgba(139, 181, 130, 0.3);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary);
  margin-top: var(--spacing-2xl);
  display: flex;
  gap: var(--spacing-lg);
}

.highlight-box i {
  font-size: 2rem;
  color: var(--primary);
  flex-shrink: 0;
}

.highlight-box h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.highlight-box p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== CONTENT SPLIT ===== */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: start;
}

.content-text h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.content-text p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.feature-list li {
  display: flex;
  gap: var(--spacing-md);
  align-items: start;
}

.feature-list i {
  color: var(--success);
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-list span {
  color: var(--text-secondary);
  line-height: 1.7;
}

.content-visual {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.feature-box {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 181, 130, 0.15);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.feature-box:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 181, 130, 0.3);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #8BB582 0%, #6a9361 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.feature-icon i {
  font-size: 1.5rem;
  color: var(--navy-900);
}

.feature-box h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.feature-box p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== PRINCIPLE BOX ===== */
.principle-box {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 181, 130, 0.2);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.principle-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.principle-icon i {
  font-size: 3rem;
  color: white;
}

.principle-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.principle-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.0625rem;
}

/* ===== SPECTRUM ===== */
.spectrum-box {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 181, 130, 0.15);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  margin-top: var(--spacing-2xl);
}

.spectrum-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.spectrum-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.spectrum-item {
  text-align: center;
}

.spectrum-badge {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.spectrum-badge.red {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.spectrum-badge.orange {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.spectrum-badge.blue {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.spectrum-item h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.spectrum-item p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ===== CALLOUT ===== */
.callout {
  background: rgba(139, 181, 130, 0.1);
  border: 1px solid rgba(139, 181, 130, 0.3);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  display: flex;
  gap: var(--spacing-lg);
  align-items: start;
  margin-top: var(--spacing-2xl);
  border-left: 4px solid var(--primary);
}

.callout i {
  font-size: 1.75rem;
  color: var(--primary);
  flex-shrink: 0;
}

.callout p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 500;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 80px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(139, 181, 130, 0.3);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-2xl);
}

.timeline-marker {
  position: absolute;
  left: -80px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #8BB582 0%, #6a9361 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(15, 26, 43, 0.8), 0 0 0 6px var(--primary);
}

.timeline-marker i {
  font-size: 1.5rem;
  color: var(--navy-900);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 181, 130, 0.15);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.timeline-content:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 181, 130, 0.3);
}

.timeline-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

.timeline-content p:last-child {
  margin-bottom: 0;
}

.timeline-content .mt-2 {
  margin-top: var(--spacing-md);
}

/* ===== PROFILE CARDS ===== */
.profile-card {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 181, 130, 0.2);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: var(--transition);
}

.profile-card:hover {
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.4);
  transform: translateY(-5px);
  border-color: rgba(139, 181, 130, 0.4);
}

.profile-header {
  background: linear-gradient(135deg, #8BB582 0%, #6a9361 100%);
  padding: var(--spacing-xl);
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: rgba(15, 26, 43, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-avatar i {
  font-size: 2.5rem;
  color: var(--primary);
}

.profile-avatar.secondary {
  background: rgba(255, 255, 255, 0.9);
}

.profile-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

.profile-title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
  margin: 0;
}

.profile-content {
  padding: var(--spacing-xl);
}

.profile-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

.profile-content p:last-child {
  margin-bottom: 0;
}

.profile-badges {
  padding: var(--spacing-lg) var(--spacing-xl);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-md);
  background: rgba(139, 181, 130, 0.15);
  border: 1px solid rgba(139, 181, 130, 0.3);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.badge i {
  color: var(--primary);
}

/* ===== CONTACT SECTION ===== */
.section-contact {
  background: linear-gradient(135deg, #8BB582 0%, #6a9361 100%);
  color: white;
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.contact-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
}

.contact-content p {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-xl);
  opacity: 0.9;
}

.contact-content .btn-primary {
  background: var(--navy-900);
  color: white;
  border: 2px solid var(--navy-900);
}

.contact-content .btn-primary:hover {
  background: rgba(15, 26, 43, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.contact-info-item {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  display: flex;
  gap: var(--spacing-md);
  align-items: start;
  transition: var(--transition);
}

.contact-info-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.contact-info-item i {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
}

.contact-info-item p {
  font-size: 0.9375rem;
  opacity: 0.9;
  margin: 0;
}

/* ===== FOOTER ===== */
.footer {
  background: #050915;
  color: white;
  padding: var(--spacing-2xl) 0;
  border-top: 1px solid rgba(139, 181, 130, 0.2);
}

.footer-content {
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.footer-brand img {
  height: 70px;
  width: auto;
}

.footer-brand i {
  font-size: 1.75rem;
  color: var(--primary-light);
}

.footer p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-container,
  .content-split,
  .contact-box {
    grid-template-columns: 1fr;
  }
  
  .hero-visual {
    grid-template-columns: 1fr;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .spectrum-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Logo en arrière-plan adapté pour mobile */
  .background-logo {
    /* CORRECTION: Forcer le centrage sur mobile */
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .background-logo img {
    width: 350px; /* Réduit de 400px */
    max-width: 60vw; /* Réduit de 80vw à 60vw */
    max-height: 60vh; /* Limite la hauteur */
    object-fit: contain;
  }

  .background-logo.visible {
    opacity: 0.05; /* Plus discret sur mobile */
  }
}
 
  /* Navigation mobile */
  .nav-menu {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: rgba(15, 26, 43, 0.98);
    -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(139, 181, 130, 0.2);
    flex-direction: column;
    padding: var(--spacing-lg);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  /* Hero adaptatif */
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-logo {
    max-width: 450px;
    max-height: 300px;
  }
  
  /* Sections */
  .section-title {
    font-size: 2rem;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
  
  /* Timeline mobile */
  .timeline {
    padding-left: 40px;
  }
  
  .timeline::before {
    left: 15px;
  }
  
  .timeline-marker {
    left: -40px;
    width: 40px;
    height: 40px;
  }
  
  .timeline-marker i {
    font-size: 1rem;
  }
  
  /* Principe box mobile */
  .principle-box {
    flex-direction: column;
    text-align: center;
  }
  
  .principle-icon {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-logo {
    max-width: 300px;
    max-height: 225px;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .contact-content h2 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
}

/* ===== FALLBACK POUR FONT AWESOME (EMOJIS) ===== */
/* Si Font Awesome ne charge pas sur Chrome Android, utiliser des émojis */
.no-fontawesome .fa-phone-volume::before,
.no-fontawesome .fas.fa-phone-volume::before {
  content: "📞";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
  font-size: inherit;
}

.no-fontawesome .fa-brain::before,
.no-fontawesome .fas.fa-brain::before {
  content: "🧠";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fa-user-md::before,
.no-fontawesome .fas.fa-user-md::before {
  content: "👨‍⚕️";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fa-clipboard-check::before,
.no-fontawesome .fas.fa-clipboard-check::before {
  content: "📋";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fa-stethoscope::before,
.no-fontawesome .fas.fa-stethoscope::before {
  content: "🩺";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fa-rocket::before,
.no-fontawesome .fas.fa-rocket::before {
  content: "🚀";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fa-envelope::before,
.no-fontawesome .fas.fa-envelope::before {
  content: "✉️";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fa-check-circle::before,
.no-fontawesome .fas.fa-check-circle::before {
  content: "✅";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fa-cloud::before,
.no-fontawesome .fas.fa-cloud::before {
  content: "☁️";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fa-shield-alt::before,
.no-fontawesome .fas.fa-shield-alt::before {
  content: "🛡️";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fa-sync-alt::before,
.no-fontawesome .fas.fa-sync-alt::before {
  content: "🔄";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fa-lightbulb::before,
.no-fontawesome .fas.fa-lightbulb::before {
  content: "💡";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fa-balance-scale::before,
.no-fontawesome .fas.fa-balance-scale::before {
  content: "⚖️";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fa-user-shield::before,
.no-fontawesome .fas.fa-user-shield::before {
  content: "🛡️";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fa-ambulance::before,
.no-fontawesome .fas.fa-ambulance::before {
  content: "🚑";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fa-notes-medical::before,
.no-fontawesome .fas.fa-notes-medical::before {
  content: "📋";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fa-comments::before,
.no-fontawesome .fas.fa-comments::before {
  content: "💬";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fa-heart::before,
.no-fontawesome .fas.fa-heart::before {
  content: "❤️";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fa-flask::before,
.no-fontawesome .fas.fa-flask::before {
  content: "🧪";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fa-hands-helping::before,
.no-fontawesome .fas.fa-hands-helping::before {
  content: "🤝";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fa-vial::before,
.no-fontawesome .fas.fa-vial::before {
  content: "🧪";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fa-gavel::before,
.no-fontawesome .fas.fa-gavel::before {
  content: "⚖️";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fa-users::before,
.no-fontawesome .fas.fa-users::before {
  content: "👥";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fa-hospital::before,
.no-fontawesome .fas.fa-hospital::before {
  content: "🏥";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fa-phone::before,
.no-fontawesome .fas.fa-phone::before {
  content: "📞";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fa-handshake::before,
.no-fontawesome .fas.fa-handshake::before {
  content: "🤝";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fa-calendar::before,
.no-fontawesome .fas.fa-calendar::before {
  content: "📅";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

.no-fontawesome .fab.fa-linkedin::before {
  content: "🔗";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif !important;
}

/* Ajuster la taille des émojis pour qu'ils correspondent aux icônes */
.no-fontawesome i {
  font-style: normal;
  font-size: 1em;
  line-height: 1;
}
