/* =========================================================
   Responsive Stylesheet — style-mobile.css
   For: WIAE Running - Course Caritative Website
   ========================================================= */

/* === GLOBAL FULL-SCREEN SECTIONS (ALL SIZES) === */
section,
.hero,
.equipe-section,
.bleuet-section,
.luc-section,
.impact-section,
.galerie-section,
.section-contact {
  min-height: 100vh;
  width: 100vw;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* === TABLETS (max-width: 1024px) === */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 2.1rem; }
  .impact-title { margin-top: 60px; font-size: 2.3rem; }
}

/* === MOBILES (max-width: 768px) === */
@media (max-width: 768px) {

  /* === NAVIGATION === */
  :root { --navbar-height: 70px; }

  .nav-container {
    width: 100%;
    height: var(--navbar-height);
    padding: 10px 20px;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(7, 27, 73, 0.98);
    z-index: 2000;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(7, 27, 73, 0.98);
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--navbar-height));
    padding: 0;
    gap: 25px;
    transition: opacity 0.4s ease;
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
  }

  .nav-links.active {
    display: flex;
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li a {
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    width: 40px;
    height: 30px;
    gap: 6px;
    z-index: 2100;
  }

  .hamburger span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 5px;
    transition: all 0.3s ease;
  }

  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translateY(8px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translateY(-8px); }

  /* === HERO === */
  .hero {
    height: 100vh;
    padding-top: var(--navbar-height);
  }
  .hero-content h1 { font-size: 1.6rem; line-height: 1.3; }

  /* === TEAM / BLEUET / LUC SUR MER === */
  .equipe-container,
  .bleuet-container,
  .luc-container {
    flex-direction: column;
    min-height: 100vh;
  }

  .team-photo,
  .bleuet-photo,
  .luc-photo {
    width: 100%;
    max-height: 40vh;
    object-fit: cover;
  }

  .equipe-content,
  .bleuet-content,
  .lieu-content {
    width: 100%;
    padding: 25px 20px;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* === IMPACT SECTION === */
  .impact-section {
    padding: 50px 20px;
    text-align: center;
  }

  .impact-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .impact-stats {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .impact-card {
    width: 90%;
    max-width: 350px;
    margin: 0 auto;
    font-size: 0.95rem;
  }

  .progress-bar {
    width: 85%;
    height: 12px;
    border-radius: 8px;
    margin: 20px auto;
  }

  /* === GALLERY === */
  .galerie-section {
    text-align: center;
    padding: 50px 0;
  }

  .carousel-container {
    width: 90%;
    margin: 0 auto;
  }

  .carousel-item img {
    width: 100%;
    border-radius: 10px;
  }

  .carousel-nav {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  /* === CONTACT SECTION === */
  .section-contact {
    padding: 45px 20px;
    text-align: center;
  }

  .contact-card {
    flex-direction: column;
    gap: 25px;
    padding: 30px 20px;
    text-align: center;
  }

  .mailto-btn {
    padding: 10px 24px;
    font-size: 0.95rem;
  }

  footer {
    text-align: center;
    padding: 25px 10px;
    font-size: 0.85rem;
  }
}

/* === SMALL PHONES (max-width: 480px) === */
@media (max-width: 480px) {
  body { font-size: 0.85rem; line-height: 1.6; }
  .hero-content h1 { font-size: 1.4rem; }
  .impact-title { font-size: 1.5rem; }
  .nav-links li a { font-size: 1.1rem; }
  .mailto-btn { width: 100%; }
}