/* Styles généraux et réinitialisation */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f8f9fa;
  color: #333;
  overflow-x: hidden;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

/* HEADER */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eaeaea;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.site-header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;
  gap: 20px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}
.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.logo-container {
  text-align: center;
}
.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #007bff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.logo-center {
  font-size: 1.8rem;
  font-weight: 800;
  color: #007bff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}
nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
nav a.btn {
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.btn-primary {
  background-color: #007bff;
  color: #fff;
}
.btn-primary:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* Icônes dans la navigation */
.email-icon {
  font-size: 1.3em;
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 8px;
  border-radius: 50%;
}
.email-icon:hover {
  color: #0056b3;
  background-color: rgba(0,123,255,0.1);
}
.language-selector {
  display: flex;
  align-items: center;
  gap: 5px;
}
.language-selector a {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
}
.language-selector a:hover {
  background-color: rgba(0,123,255,0.1);
  color: #0056b3;
}

/* Bouton hamburger amélioré */
.burger-menu {
  display: inline-block;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}
.burger-menu:hover {
  background-color: rgba(0,123,255,0.1);
}
.burger-menu .bar {
  width: 25px;
  height: 3px;
  background-color: #007bff;
  margin: 5px 0;
  transition: 0.4s;
  border-radius: 2px;
}

/* Panneau latéral amélioré */
.side-panel {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  background-color: #fff;
  overflow-x: hidden;
  transition: 0.5s ease;
  box-shadow: 2px 0 15px rgba(0,0,0,0.2);
}
.side-panel.open {
  width: 300px;
}
.side-panel-header {
  padding: 20px;
  border-bottom: 1px solid #eaeaea;
  display: flex;
  justify-content: flex-end;
}
.close-btn {
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}
.close-btn:hover {
  background-color: rgba(0,0,0,0.1);
}
.close-icon {
  position: relative;
  width: 20px;
  height: 20px;
}
.close-icon span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #333;
  transition: 0.3s ease;
}
.close-icon span:first-child {
  transform: rotate(45deg);
}
.close-icon span:last-child {
  transform: rotate(-45deg);
}
.close-btn:hover .close-icon span {
  background-color: #007bff;
}
.side-panel-content {
  padding: 20px 0;
}
.side-link {
  display: block;
  padding: 15px 30px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}
.side-link:hover {
  background-color: rgba(0,123,255,0.1);
  color: #007bff;
  border-left-color: #007bff;
  padding-left: 35px;
}
.side-link.active {
  background-color: rgba(0,123,255,0.1);
  color: #007bff;
  border-left-color: #007bff;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, rgba(0,86,179,0.9), rgba(0,123,255,0.8)), url('Photo/ECG-blog_how-to-interpret_1.png') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.hero .subtitle {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 600px;
  line-height: 1.5;
}

/* TIMELINE */
.features-timeline {
  padding: 60px 0;
}
.features-timeline .timeline-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}

/* Par défaut : image à gauche, texte à droite */
.timeline-item .image {
  order: 1;
}
.timeline-item .text {
  order: 2;
  padding: 20px;
}

/* Pour les éléments reverse : image à droite, texte à gauche */
.timeline-item.reverse .image {
  order: 2;
}
.timeline-item.reverse .text {
  order: 1;
}

.timeline-item .text h2 {
  color: #007bff;
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}
.timeline-item .text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}
.timeline-item .image img {
  width: 100%;
  height: 400px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.timeline-item .image img:hover {
  transform: scale(1.05);
}

/* CTA BOTTOM */
.cta-bottom {
  background: linear-gradient(135deg, #eaf4ff, #d1ecf1);
  text-align: center;
  padding: 60px 20px;
  border-radius: 20px;
  margin: 40px 0;
}
.cta-bottom p {
  font-size: 1.3rem;
  margin-bottom: 25px;
  font-weight: 600;
  color: #2c3e50;
}
.btn-secondary {
  text-decoration: none;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: #fff;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(40,167,69,0.4);
}

/* PARTENAIRES */
#partenaires {
  padding: 60px 0;

}
.swiper { max-width: 1000px; margin: auto; }
.swiper-slide img {
  max-width: 120px;
  max-height: 80px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}
.swiper-slide img:hover { filter: grayscale(0); opacity: 1; transform: scale(1.1); }

/* FOOTER */
.site-footer {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}
.site-footer a { color: #3498db; text-decoration: none; transition: color 0.3s; }
.site-footer a:hover { color: #5dade2; }

/* MODAL */
.modal {
  display: none; position: fixed; inset: 0;
  background-color: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  justify-content: center; align-items: center;
}
.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  width: 90%; max-width: 600px;
  max-height: 80vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 15px; right: 20px;
  font-size: 2rem; cursor: pointer; color: #666;
  transition: color 0.3s;
}
.modal-close:hover { color: #333; }

/* RESPONSIVE : Breakpoints mobiles */
@media (max-width: 1024px) {
  .hero { min-height: 50vh; padding: 60px 20px; }
  .hero h1 { font-size: 2rem; }
  .timeline-item { margin-bottom: 60px; }
  .features-timeline .timeline-item {
    gap: 40px;
  }
  
  /* Header responsive */
  .site-header .container {
    grid-template-columns: auto 1fr auto;
    gap: 15px;
  }
  .logo {
    font-size: 1.3rem;
  }
  .logo-center {
    font-size: 1.6rem;
  }
}
@media (max-width: 768px) {
  .site-header .container { 
    padding: 0 15px; 
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .header-left {
    justify-content: flex-start;
  }
  .logo-container {
    order: -1;
    text-align: center;
  }
  .header-right {
    justify-content: center;
  }
  nav { 
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  nav a.btn { 
    padding: 8px 16px; 
    font-size: 0.85rem; 
  }
  .email-icon {
    font-size: 1.2em;
  }
  .language-selector a {
    font-size: 0.85rem;
  }
  
  .hero { min-height: 40vh; }
  .hero h1 { font-size: 1.8rem; }
  .hero .subtitle { font-size: 1rem; }
  
  /* Sur tablette : garder l'alternance mais réduire l'espacement */
  .features-timeline .timeline-item {
    gap: 30px;
    margin-bottom: 80px;
  }
  .timeline-item .image img {
    height: 300px;
  }
  
  /* Panneau latéral responsive */
  .side-panel.open {
    width: 280px;
  }
  .side-link {
    font-size: 1rem;
    padding: 12px 25px;
  }
}
@media (max-width: 480px) {
  .hero { min-height: 30vh; padding: 40px 15px; }
  .hero h1 { font-size: 1.5rem; }
  .features-timeline { padding: 40px 0; }
  .cta-bottom { margin: 20px 15px; padding: 30px 15px; }
  .cta-bottom p { font-size: 1rem; }
  
  /* Header mobile */
  .site-header .container {
    padding: 0 10px;
  }
  .logo {
    font-size: 1.2rem;
  }
  .logo-center {
    font-size: 1.4rem;
  }
  nav {
    gap: 10px;
  }
  nav a.btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  .email-icon {
    font-size: 1.1em;
    padding: 6px;
  }
  .language-selector a {
    font-size: 0.8rem;
    padding: 4px 6px;
  }
  
  /* Sur mobile : passer en colonne pour tous les éléments */
  .features-timeline .timeline-item {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 60px;
  }
  
  /* Réinitialiser l'ordre pour mobile */
  .timeline-item .image,
  .timeline-item.reverse .image {
    order: 1;
  }
  .timeline-item .text,
  .timeline-item.reverse .text {
    order: 2;
  }
  
  .timeline-item .image img {
    height: 250px;
  }
  
  .timeline-item .text h2 {
    font-size: 1.5rem;
  }
  
  .timeline-item .text p {
    font-size: 1rem;
  }
  
  /* Panneau latéral mobile */
  .side-panel.open {
    width: 100%;
  }
  .side-panel-header {
    padding: 15px;
  }
  .side-link {
    font-size: 0.95rem;
    padding: 15px 20px;
  }
}

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
timeline-item { animation: fadeInUp 0.6s ease-out; }

/* Accessibilité */
.btn:focus, a:focus { outline: 2px solid #007bff; outline-offset: 2px; }

@media (max-width: 480px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }

  nav a.btn {
    margin-top: 5px;
  }
}



