/* ===== RESET ULTIME ===== */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box !important;
  -webkit-box-sizing: border-box !important;
  -moz-box-sizing: border-box !important;
  text-size-adjust: 100% !important;
  -webkit-text-size-adjust: 100% !important;
  -moz-text-size-adjust: 100% !important;
  -ms-text-size-adjust: 100% !important;
}

/* Correction spécifique Chrome */
@supports (-webkit-touch-callout: none) {
  body {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Force le rendering identique */
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: always;
}

/* Reset des éléments structuraux */
header, footer, section, div {
  margin: 0;
  padding: 0;
  position: relative;
}

/* ===== VARIABLES ===== */
:root {
  color-scheme: only light; /* Force le thème clair */
  /* Couleurs */
  --primary: #2c3e50;
  --secondary: #3498db;
  --accent: #3498db;
  --dark: #1a252f;
  --light: #ecf0f1;
  --white: #ffffff;
  --dark-blue: #1a5276;
  --header-scrolled: rgba(44, 62, 80, 0.9);
  
  /* Typographie */
  --font-main: 'Montserrat', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
  
  /* Effets */
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* ===== CORRECTIONS MODE SOMBRE ===== */
@media (prefers-color-scheme: dark) {
  /* Réinitialisation complète */
  :root {
    --primary: #2c3e50 !important;
    --secondary: #3498db !important;
    --dark: #1a252f !important;
    --light: #ecf0f1 !important;
  }

  body {
    background-color: var(--light) !important;
    color: var(--dark) !important;
  }

  /* Header */
  .glass-nav {
    background: rgba(255, 255, 255, 0.9) !important;
  }
  
  .glass-nav.scrolled {
    background: var(--header-scrolled) !important;
  }
  
  .glass-nav.scrolled .nav-links a,
  .glass-nav.scrolled .logo {
    color: var(--white) !important;
  }

  /* Footer */
  .main-footer {
    background: var(--dark) !important;
  }
}

/* ===== STRUCTURE DE BASE ===== */
body {
  font-family: var(--font-secondary);
  font-size: 16px; /* Taille de base fixe */
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== CORRECTIONS SPÉCIFIQUES HEADER ===== */
.glass-nav {
  position: fixed;
  width: 100vw; /* Utilisation de vw pour éviter les marges */
  left: 0;
  right: 0;
}

/* Suppression des marges sur les côtés */
body, html {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ===== MEDIA QUERIES RESPONSIVES ===== */
@media (max-width: 768px) {
  /* Correction supplémentaire pour mobile */
  body {
    width: 100vw;
    overflow-x: hidden;
    position: relative;
  }
  
  .container {
    padding: 0 15px;
  }
}
/* ===== VARIABLES ===== */
/* ===== FORCER LE THÈME CLAIR ===== */
:root {
  color-scheme: only light;
  /* Vos variables existantes */
  --primary: #2c3e50;
  --secondary: #3498db;
  --accent: #e74c3c;
  --dark: #1a252f;
  --light: #ecf0f1;
  --white: #ffffff;
  --dark-blue: #1a5276;
  /* Typographie */
  --font-main: 'Montserrat', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
  /* Effets */
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --header-scrolled: rgba(44, 62, 80, 0.9);
}

/* Reset complet du mode sombre */
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #2c3e50 !important;
    --secondary: #3498db !important;
    --dark: #1a252f !important;
    --light: #ecf0f1 !important;
  }

  body,
  .glass-nav,
  .main-footer,
  .research-card,
  .team-card,
  .tab-content,
  .contact-form,
  .pub-list {
    background-color: initial !important;
    color: initial !important;
  }

  /* Correction spécifique header */
  .glass-nav {
    background: rgba(255, 255, 255, 0.9) !important;
  }
  
  .glass-nav.scrolled {
    background: var(--header-scrolled) !important;
  }
  .glass-nav.scrolled .nav-links a,
  .glass-nav.scrolled .logo {
    color: var(--white) !important;
  }
  /* Correction liens */
  .nav-links a,
  .footer-links a {
    color: inherit !important;
  }

  /* Correction footer */
  .main-footer {
    background: var(--dark) !important;
    color: var(--white) !important;
  }
  
  .footer-links a {
    color: #bbb !important;
  }
}

/* ===== BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-secondary);
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--light);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Espacement de base pour toutes les sections */
section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--secondary);
}

.section-header.dark h2::after {
  background: var(--primary);
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== BOUTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--secondary);
  color: var(--white);
}

.btn-primary:hover {
  background: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(41, 128, 185, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary);
  color: var(--white);
}
#research .research-card .alzheimer-demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  margin-top: 15px;
  border: 2px solid var(--secondary);
  border-radius: 50px;
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  background-color: rgba(52, 152, 219, 0.1);
  width: auto;
}

#research .research-card .alzheimer-demo-btn:hover {
  background-color: var(--secondary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

#research .research-card .alzheimer-demo-btn i {
  color: var(--secondary);
  font-size: 1rem;
}

#research .research-card .alzheimer-demo-btn:hover i {
  color: black;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  margin-top: 20px;
  display: inline-block;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ===== HEADER ===== */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.glass-nav.scrolled {
  background: rgba(44, 62, 80, 0.9);
}

.glass-nav.scrolled .nav-links a {
  color: var(--white);
}

.glass-nav.scrolled .logo {
  color: var(--white);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo-icon {
  margin-right: 10px;
  color: var(--secondary);
}

.lab-tag {
  font-size: 0.8rem;
  background: var(--secondary);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 5px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.cta-nav {
  background: var(--secondary);
  color: white !important;
  padding: 8px 20px;
  border-radius: 50px;
}

.cta-nav:hover::after {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary);
  margin: 3px 0;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.eeg-animation {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 150px;
  background: url('../images/eeg-wave.svg') repeat-x;
  animation: waveMove 20s linear infinite;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
      radial-gradient(circle at 20% 30%, rgba(52, 152, 219, 0.1) 0%, transparent 25%),
      radial-gradient(circle at 80% 70%, rgba(46, 204, 113, 0.1) 0%, transparent 25%);
}

.hero-content {
  max-width: 600px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.title-line {
  display: block;
}

.highlight {
  color: var(--secondary);
  position: relative;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 10px;
  background: rgba(52, 152, 219, 0.3);
  z-index: -1;
}

.hero-subtitle {
  font-size: 1rem;
  margin-bottom: 30px;
  color: #2c2a2a;
}

.hero-buttons .btn-primary, 
.hero-buttons .btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    color: white;
}

.hero-buttons .btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
    backdrop-filter: blur(5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* ===== RECHERCHE ===== */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.research-card {
  background: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.research-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.research-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.research-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.research-card p {
  color: #666;
  margin-bottom: 20px;
}

.research-link {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.research-link i {
  margin-left: 5px;
  transition: var(--transition);
}

.research-link:hover i {
  transform: translateX(5px);
}

.research-badge {
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--accent);
  color: white;
  padding: 5px 30px;
  transform: rotate(45deg);
  font-size: 0.8rem;
  font-weight: 600;
}
.download-box {
  margin: 15px 0;
  border: 1px dashed #3498db;
  padding: 10px;
  border-radius: 5px;
}
.download-btn {
  display: block;
  color: #e74c3c;
  font-weight: 600;
}
.download-btn i {
  margin-right: 8px;
}
.file-size {
  display: block;
  font-size: 0.8rem;
  color: #777;
  margin-top: 5px;
}
/* Style spécifique pour le bouton de démo Alzheimer */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 2px solid var(--secondary);
  border-radius: 50px;
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 10px 0;
  background-color: rgba(52, 152, 219, 0.1);
}

.btn-outline:hover {
  background-color: var(--secondary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-outline i {
  font-size: 1.1rem;
}

/* ===== TECHNOLOGIES ===== */
.tech-tabs {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tab-buttons {
  display: flex;
  border-bottom: 1px solid #eee;
}

.tab-btn {
  flex: 1;
  padding: 15px 20px;
  background: none;
  border: none;
  font-family: var(--font-main);
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--secondary);
  transition: var(--transition);
}

.tab-btn.active {
  color: var(--primary);
}

.tab-btn.active::after {
  width: 100%;
}

.tab-content {
  display: none;
  padding: 40px;
}

.tab-content.active {
  display: block;
}

.tech-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.tech-description {
  flex: 1;
}

.tech-visual {
  flex: 1;
}

.tech-features {
  list-style: none;
  margin: 20px 0;
}

.tech-features li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.tech-features i {
  color: var(--secondary);
  margin-right: 10px;
}

.tech-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.video-gallery {
  margin: 20px 0;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 10px;
}
.video-thumbnail {
  position: relative;
  display: block;
}
.video-thumbnail img {
  width: 100%;
  border-radius: 5px;
  transition: transform 0.3s;
}
.video-thumbnail:hover img {
  transform: scale(1.03);
}
.video-thumbnail span {
  display: block;
  margin-top: 5px;
  font-size: 0.9rem;
}
.github-links {
  margin-top: 20px;
}
.github-link {
  display: inline-block;
  background: #333;
  color: white;
  padding: 8px 15px;
  border-radius: 4px;
  margin-right: 10px;
  margin-bottom: 10px;
}
.github-link i {
  margin-right: 5px;
}

.resource-links {
  margin-top: 25px;
}

.resource-section {
  margin-bottom: 20px;
}

.resource-section h4 {
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.resource-link {
  display: block;
  padding: 8px 12px;
  background: rgba(52, 152, 219, 0.1);
  border-left: 3px solid var(--secondary);
  margin-bottom: 8px;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.3s ease;
}

.resource-link:hover {
  background: rgba(52, 152, 219, 0.2);
  transform: translateX(5px);
}

.resource-link i {
  margin-right: 8px;
  color: var(--secondary);
}

.placeholder-visual {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(52, 152, 219, 0.05);
  border-radius: 8px;
  padding: 30px;
}

.placeholder-visual i {
  font-size: 5rem;
  color: var(--secondary);
  margin-bottom: 15px;
  opacity: 0.7;
}

.placeholder-visual p {
  color: var(--dark);
  font-style: italic;
}
/* Structure principale */
.tech-content {
  display: flex;
  gap: 40px;
}

.tech-description {
  flex: 2; /* Prend plus d'espace */
}

.tech-resources {
  flex: 1;
  min-width: 280px;
}

/* Style des ressources */
.resource-block {
  background: rgba(52, 152, 219, 0.03);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(52, 152, 219, 0.1);
}

.resource-block h4 {
  color: var(--primary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
}

.resource-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 8px;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.resource-item:hover {
  background: rgba(52, 152, 219, 0.1);
  transform: translateX(5px);
}

.resource-icon {
  width: 24px;
  text-align: center;
  margin-right: 12px;
  color: var(--secondary);
}

.resource-text {
  flex: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .tech-content {
    flex-direction: column;
  }
  
  .tech-resources {
    min-width: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  
  .resource-block {
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .tech-resources {
    grid-template-columns: 1fr;
  }
}
/* ===== ÉQUIPE ===== */
.team-section {
  padding: 60px 20px; /* Espacement vertical + marge latérale */
}
.team-grid {
  display: flex; /* On passe en flexbox pour mieux contrôler */
  flex-wrap: wrap;
  justify-content: center; /* Centre horizontalement */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.team-card {
  width: 360px; /* Largeur fixe */
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

/* Version mobile */
@media (max-width: 768px) {
  .team-card {
    width: 100%;
    max-width: 400px; /* Largeur maximale sur mobile */
  }
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-photo {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.team-card:hover .team-photo img {
  transform: scale(1.05);
}

.team-social {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 15px;
  transition: var(--transition);
}

.team-card:hover .team-social {
  bottom: 20px;
}

.team-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 50%;
  color: var(--secondary);
  transition: var(--transition);
}

.team-social a:hover {
  background: var(--secondary);
  color: var(--white);
}

.team-info {
  padding: 20px;
  text-align: center;
}

.team-info h3 {
  margin-bottom: 5px;
}

.team-title {
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 5px;
}

.team-expertise {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.team-stats {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 0.9rem;
  color: #888;
}

.team-stats i {
  margin-right: 5px;
}
/* ===== PUBLICATIONS ===== */
.pub-list {
  background: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.pub-item {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 80px;
}

.pub-item:last-child {
  border-bottom: none;
}

.pub-badge {
  position: absolute;
  left: 0;
  top: 20px;
  background: var(--secondary);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.pub-title {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.pub-journal {
  color: #666;
  margin-bottom: 10px;
  font-style: italic;
}

.pub-link {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}
#background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.8;
}
.pub-link i {
  margin-left: 5px;
}
.timeline {
  display: flex;
  margin: 15px 0;
}
.timeline-step {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
}
.timeline-step span {
  display: block;
  width: 25px;
  height: 25px;
  background: var(--secondary);
  color: white;
  border-radius: 50%;
  margin: 0 auto 5px;
  line-height: 25px;
}
.pub-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

.modal-content h3 {
  margin-bottom: 15px;
  color: var(--primary);
}

.modal-content input {
  width: 100%;
  padding: 12px;
  margin: 15px 0;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.pub-item {
  position: relative;
  padding: 25px 0 25px 80px;
  border-bottom: 1px solid #eee;
}

.upcoming-badge {
  background: var(--secondary);
  color: white;
}

/* Timeline style - Version harmonisée */
.pub-timeline {
  margin: 20px 0;
  padding-left: 15px;
  position: relative;
}

.pub-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--secondary);
  opacity: 0.3;
}

.timeline-step {
  position: relative;
  padding-bottom: 25px;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -15px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--secondary);
}

.timeline-step.active .timeline-dot {
  background: var(--secondary);
}

.timeline-content {
  padding-left: 10px;
}

.timeline-content h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.timeline-content p {
  font-size: 0.85rem;
  color: #666;
}

.pub-actions {
  margin-top: 15px;
}

/* Animation */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(52, 152, 219, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

.timeline-step.active .timeline-dot {
  animation: pulse 2s infinite;
}
/* Animation */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(52, 152, 219, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

.timeline-step.active .timeline-dot {
  animation: pulse 2s infinite;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 50px;
}
.contact-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 0;
  position: relative;
  color: #2c3e50; /* Couleur de texte explicite */
}

.contact-info h2,
.contact-info h4 {
  color: #2c3e50; /* Couleur sombre pour les titres */
}

.contact-text,
.contact-details p {
  color: #495057; /* Gris foncé lisible */
}
.contact-info {
  color: var(--white);
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-text {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.contact-details {
  display: grid;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-top: 3px;
}

.contact-item h4 {
  margin-bottom: 5px;
}

/* ===== FORMULAIRE ===== */
.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.5px;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}
/* Style amélioré pour le bouton */
:root {
  --dark-blue: #1a5276; /* Nouvelle variable couleur bleu foncé */
}
/* ===== BOUTON DE CONTACT ===== */
.contact-form .btn-primary {
  background-color: var(--dark-blue);
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(26, 82, 118, 0.3);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.contact-form .btn-primary:hover {
  background-color: #154360;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(26, 82, 118, 0.4);
}
.contact-form .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(26, 82, 118, 0.4);
}
.contact-form .btn-primary i {
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: var(--font-secondary);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}


/* ===== FOOTER ===== */
.main-footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-col p {
  margin-bottom: 20px;
  color: #f5f2f2;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #bbb;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.admin-login {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 5px;
  text-decoration: none;
  margin-bottom: 20px;
  transition: var(--transition);
}

.admin-login:hover {
  background: var(--secondary);
}

.footer-legal {
  color: #777;
  font-size: 0.9rem;
}

.footer-legal a {
  color: #bbb;
}
.fa-x-twitter::before {
  content: "X";
  font-weight: bold;
  font-family: sans-serif;
}

/* ===== ANIMATIONS ===== */
@keyframes waveMove {
  0% { background-position-x: 0; }
  100% { background-position-x: 1000px; }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero {
      padding: 150px 0 80px;
  }
  
  .hero-content {
      max-width: 100%;
      text-align: center;
  }
  
  .hero-buttons {
      justify-content: center;
  }
  
  .hero-image {
      position: relative;
      width: 80%;
      margin: 40px auto 0;
  }
  
  .tech-content {
      flex-direction: column;
  }
}

@media (max-width: 768px) {
  .nav-links {
      position: fixed;
      top: 80px;
      left: -100%;
      width: 100%;
      height: calc(100vh - 80px);
      background: var(--primary);
      flex-direction: column;
      align-items: center;
      justify-content: center;
      transition: var(--transition);
      z-index: 999;
  }
  
  .nav-links.active {
      left: 0;
  }
  
  .nav-links li {
      margin: 15px 0;
  }
  
  .nav-links a {
      color: var(--white);
      font-size: 1.2rem;
  }
  
  .hamburger {
      display: flex;
  }
  
  .hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
      opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .hero-title {
      font-size: 2.5rem;
  }
  
  .contact-grid {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-title {
      font-size: 2rem;
  }
  
  .hero-subtitle {
      font-size: 1rem;
  }
  
  .hero-buttons {
      flex-direction: column;
  }
  
  .section-header h2 {
      font-size: 2rem;
  }
  
  .tab-buttons {
      flex-direction: column;
  }
  
  .tab-btn {
      padding: 15px;
      text-align: center;
  }
  
  .tab-content {
      padding: 30px 20px;
  }
}
/* LANGUES */
.language-dropdown {
  position: relative;
  margin-left: 20px;
}

.language-current {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border: none;
  color: var(--primary);
  padding: 8px 15px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.language-current i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.language-options {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 10px 0;
  margin-top: 10px;
  width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.language-dropdown:hover .language-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-dropdown:hover .language-current i {
  transform: rotate(180deg);
}

.language-options li {
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.language-options li:hover {
  background: var(--light);
  color: var(--secondary);
}

/* Style scrolled */
.glass-nav.scrolled .language-current {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.glass-nav.scrolled .language-options {
  background: var(--dark);
}

.glass-nav.scrolled .language-options li {
  color: white;
}

.glass-nav.scrolled .language-options li:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--secondary);
}
.language-dropdown {
  z-index: 1001; /* Au-dessus du header */
}

.language-options {
  z-index: 1002; /* Au-dessus du dropdown */
}

/* Pour le mobile */
@media (max-width: 768px) {
  .language-dropdown {
    margin-left: auto; /* Aligner à droite */
    margin-right: 15px;
  }
}
/* COOKIES */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #2c3e50;
  color: white;
  padding: 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 9999;
  display: none;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 250px;
}

.cookie-banner a {
  color: #3498db;
  text-decoration: underline;
}

.btn-cookie {
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#accept-cookies {
  background: #3498db;
  color: white;
}

#reject-cookies {
  background: #e74c3c;
  color: white;
}
/* VIDEO */
#background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Espacement et style du bouton */
.mission-button-container {
    margin-top: 60px;  /* Espace important entre les cartes et le bouton */
    text-align: center;
}

.mission-join-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: #3498db;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.mission-join-button:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}
/* Styles pour le menu déroulant */
.nav-links .dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary);
    padding-left: 25px;
}

/* Styles pour la page d'offre de stage */
.internship-offer {
    padding: 80px 0;
}

.offer-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.offer-header h1 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.offer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #666;
    font-size: 0.9rem;
}

.offer-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.offer-meta i {
    color: var(--secondary);
    font-size: 0.8rem;
}

.offer-content .section {
    margin-bottom: 40px;
}

.offer-content h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.offer-content ul {
    list-style-position: inside;
    margin-left: 20px;
}

.offer-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.apply-section {
    text-align: center;
    margin-top: 60px;
}

.apply-section .btn-primary {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Responsive pour le menu déroulant */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: transparent;
        padding: 0;
        margin-left: 20px;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown > a::after {
        content: '+';
        margin-left: 5px;
    }
    
    .dropdown.active > a::after {
        content: '-';
    }
}