/* ===== RESPONSIVE DESIGN - ACTI-SENS LAB ===== */
/* Mobile First (styles par défaut pour <576px) */

/* ---------------------------- */
/* TRÈS PETITS ÉCRANS (<400px) */
/* ---------------------------- */
@media (max-width: 399px) {
  .hero-title {
    font-size: 1.6rem;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .research-card {
    padding: 12px;
    margin-bottom: 15px;
  }
  
  .team-photo {
    height: 180px;
  }
  
  .logo span {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-buttons a {
    width: 100%;
    padding: 12px;
    font-size: 0.85rem;
    justify-content: center;
  }
  
  .section-header h2::after {
    width: 60px;
    bottom: -8px;
  }
  
  .contact-form .btn-primary {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  
  #background-video {
    object-position: 65% center;
  }
}

/* ---------------------------- */
/* PETITS MOBILES (400px - 575px) */
/* ---------------------------- */
@media (min-width: 400px) and (max-width: 575px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .research-card {
    padding: 18px;
  }
  
  .team-photo {
    height: 220px;
  }
}

/* ---------------------------- */
/* TABLETTES (≥768px) */
/* ---------------------------- */
@media (min-width: 768px) {
  /* Layout */
  section {
    padding: 70px 0;
  }
  
  .container {
    padding: 0 30px;
  }
  
  /* Navigation */
  .hamburger {
    display: none;
  }
  
  .nav-links {
    position: static;
    display: flex;
    background: transparent;
    height: auto;
    width: auto;
    padding: 0;
  }
  
  .nav-links li {
    margin: 0 0 0 25px;
  }
  
  .nav-links a {
    color: var(--primary);
    font-size: 1rem;
  }
  
  /* Hero */
  .hero {
    padding: 180px 0 100px;
  }
  
  .hero-content {
    max-width: 80%;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  /* Grilles */
  .research-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  /* Technologies */
  .tech-content {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }
  
  .tech-visual {
    margin-top: 0;
    flex: 1;
  }
  
  .tech-description {
    flex: 1;
  }
  
  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------------------------- */
/* DESKTOP (≥992px) */
/* ---------------------------- */
@media (min-width: 992px) {
  /* Navigation */
  .nav-links li {
    margin-left: 30px;
  }
  
  /* Hero */
  .hero-content {
    max-width: 600px;
  }
  
  /* Contact */
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-social {
    justify-content: flex-start;
  }
}

/* ---------------------------- */
/* GRANDS ÉCRANS (≥1200px) */
/* ---------------------------- */
@media (min-width: 1200px) {
  .research-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-content {
    padding-top: 100px;
  }
  
  .container {
    max-width: 1200px;
  }
}

/* ---------------------------- */
/* CAS SPÉCIFIQUES */
/* ---------------------------- */

/* Orientation paysage mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding: 60px 0;
  }
  
  .hero-content {
    padding-top: 30px;
  }
  
  .research-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* iPad Pro portrait */
@media (width: 1024px) and (height: 1366px) {
  .hero-content {
    padding-top: 120px;
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Écrans 4K/Ultra HD */
@media (min-width: 2000px) {
  html {
    font-size: 110%;
  }
  
  .container {
    max-width: 1600px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .section-header h2 {
    font-size: 3rem;
  }
}

/* ---------------------------- */
/* OPTIMISATIONS CIBLÉES */
/* ---------------------------- */

/* Désactivation animations mobile */
@media (max-width: 768px) {
  .floating {
    animation: none !important;
  }
  
  .research-card:hover,
  .team-card:hover {
    transform: none !important;
  }
  
  /* Correction vidéo */
  #background-video {
    object-position: 60% center;
  }
}

/* Animation spécifique tablette */
@keyframes mobileWave {
  0% { transform: translateX(0) scaleY(0.8); }
  50% { transform: translateX(50%) scaleY(1); }
  100% { transform: translateX(100%) scaleY(0.8); }
}

@media (max-width: 768px) {
  .eeg-animation {
    animation: mobileWave 15s linear infinite;
    height: 100px;
  }
}

/* Correction marges mobiles */
@media (max-width: 767px) {
  .section-header {
    margin-bottom: 40px;
  }
  
  .tab-content {
    padding: 25px 20px;
  }
  
  .pub-item {
    padding-left: 70px;
  }
}

/* ---------------------------- */
/* IMPERATIFS D'ACCESSIBILITE */
/* ---------------------------- */
@media (max-width: 768px) {
  button, a[role="button"] {
    min-height: 44px;
    min-width: 44px;
  }
  
  input, textarea, select {
    font-size: 16px !important;
  }
  
  .nav-links a {
    padding: 10px 0;
    display: block;
  }
}

/* Retina/HiDPI displays */
@media (-webkit-min-device-pixel-ratio: 2), 
       (min-resolution: 192dpi) { 
  .logo {
    font-weight: 700;
  }
  
  .research-icon {
    -webkit-text-stroke: 1px rgba(255,255,255,0.1);
  }
}