/* =========================================================
   Responsive & cohérence — refonte globale CGT Alkor
   Complète refonte.css et les CSS page-specific.
   ========================================================= */

#main-content {
  overflow-x: clip;
  padding-top: 0;
}

/* Skip link : invisible hors focus clavier (a11y), pas de bandeau blanc au-dessus du header */
.skip-link {
  position: fixed;
  top: 0;
  left: 16px;
  z-index: 10000;
  margin: 0;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--text-on-accent, #041730);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  border-radius: var(--r-sm);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  transform: none;
  pointer-events: none;
}

.skip-link:focus-visible {
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
  top: 16px;
  pointer-events: auto;
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

/* Typographie fluide (titres à taille fixe dans refonte.css) */
.hub-card h3 {
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.12;
}

.stat .num {
  font-size: clamp(28px, 6vw, 40px);
}

.lede {
  font-size: clamp(15px, 1.6vw, 18px);
}

.project-content .ti {
  font-size: clamp(18px, 2.2vw, 22px);
}

.pd-feat .val {
  font-size: clamp(18px, 2.2vw, 22px);
}

/* En-têtes de section : une colonne sous desktop */
@media (max-width: 1023px) {
  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: clamp(16px, 3vw, 24px);
  }
}

/* Catalogue membranes — double barre sticky */
body.has-membrane-subtabs {
  --category-subbar-sticky-extra: 72px;
}

body.has-membrane-subtabs #catalogue {
  scroll-margin-top: 160px;
}

/* ---------- Mobile (≤719px) ---------- */
@media (max-width: 719px) {
  /* Hero project (pro, training, project, product, about base) */
  .project-hero {
    min-height: min(72svh, 620px);
  }

  .project-hero-inner {
    padding-block: clamp(48px, 11vh, 80px) clamp(56px, 12vh, 88px);
  }

  .project-hero-title {
    max-width: 100%;
    font-size: clamp(30px, 9.5vw, 44px);
    line-height: 1.04;
  }

  .project-hero-lede {
    font-size: 15px;
    line-height: 1.6;
  }

  /* Hero home */
  .hero h1 {
    max-width: 100%;
  }

  /* Heros compacts */
  .contact-hero {
    min-height: clamp(220px, 52vw, 320px);
    padding-block: clamp(24px, 8vw, 48px);
  }

  .contact-hero-title,
  .legal-hero-title {
    max-width: 100%;
    font-size: clamp(28px, 8vw, 40px);
  }

  .legal-hero {
    min-height: clamp(200px, 48vw, 280px);
  }

  /* Grilles éditoriales */
  .split {
    grid-template-columns: 1fr !important;
  }

  .duo {
    grid-template-columns: 1fr;
  }

  .project-gallery {
    padding-inline: clamp(16px, 4vw, 24px);
    max-width: var(--max);
  }

  .project-next {
    min-height: min(52vh, 420px);
  }

  .project-next-title {
    font-size: clamp(28px, 8vw, 44px);
  }

  .project-next-arrow {
    width: 48px;
    height: 48px;
  }

  /* Hub / cartes */
  .hub {
    gap: 14px;
  }

  .hub-card {
    min-height: 0;
    padding: 22px 18px;
    gap: 14px;
  }

  /* Training */
  .page-training .training-hero {
    min-height: min(68svh, 560px);
  }

  .training-country .split-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .training-date {
    font-size: 12px;
    padding: 7px 12px;
  }

  /* Autres produits */
  .product-arg {
    padding-block: 28px 40px;
  }

  .product-feature {
    padding: 12px 14px;
  }

  /* Configurateur */
  .cfg-stage {
    min-height: min(72dvh, 520px);
  }

  /* Footer CTA */
  .footer-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Manifesto home */
  .manifesto {
    padding: clamp(24px, 6vw, 36px);
  }

  .manifesto p {
    font-size: clamp(18px, 5vw, 24px);
  }

  /* Formulaire contact */
  .contact-form-card {
    padding: 18px 16px;
  }

  .contact-aside-media {
    min-height: 240px;
    aspect-ratio: 16 / 10;
  }
}

/* ---------- Tablette (720–1023px) ---------- */
@media (min-width: 720px) and (max-width: 1023px) {
  .about-globe-layout {
    grid-template-columns: 1fr;
  }

  .training-country .split {
    grid-template-columns: 1fr;
  }
}
