/* ===============================
   ScrollToTop Academia — Thème clair équilibré (clean)
   =============================== */

/* === RESET & TYPO === */
body.academia {
  background: #fff;
  color: #111;
  font-family: "Montserrat", sans-serif;
  line-height: 1.7;
  scroll-behavior: smooth;
}

/* === HEADER COMPACT === */
.header-academia {
  background: #fff;
  color: #000;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
}
.header-academia__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  max-width: 1200px;
  margin: auto;
}

/* Logo */
.header-academia .logo {
  font-weight: 900;
  font-size: 1.2rem;
  text-decoration: none;
  color: #000;
}
.header-academia .logo:hover {
  opacity: 0.85;
  text-decoration: none;
}
.logo-accent {
  color: #efb93d;
}

/* Nav */
.nav-academia ul {
  display: flex;
  list-style: none;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}
.nav-academia a {
  color: #000;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
}
.nav-academia a:hover,
.nav-academia a.active {
  color: #efb93d;
}

/* Burger mobile */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  margin: 5px 0;
  transition: 0.2s;
}
@media (max-width: 992px) {
  .burger {
    display: block;
  }
  .nav-academia {
    position: fixed;
    inset: 60px 0 auto 0;
    background: #fff;
    transform: translateY(-140%);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    z-index: 999;
  }
  .nav-academia.open {
    transform: translateY(0);
  }
  .nav-academia ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

/* === HERO === */
.hero {
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 3rem 1.5rem 2rem;
  margin-bottom: 4rem;
}
.hero--black {
  background: linear-gradient(180deg, #000 0%, #111 30%);
  color: #fff;
}
.hero.hero--black,
.hero.hero--black.hero--small {
  min-height: auto !important;
  height: auto !important;
  padding: 3rem 1.5rem 2rem !important;
  display: block !important;
}
.hero-title {
  font-family: "Montserrat", sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}
.hero-subtitle {
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  color: #d9d9d9;
  max-width: 700px;
  margin: 0 auto 1.2rem;
  line-height: 1.55;
}
.highlight {
  color: #efb93d;
}

/* Scroll indicator */
.scroll-indicator {
  cursor: pointer;
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 48px;
  border: 2px solid #efb93d;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 6px;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.scroll-indicator:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(-3px);
}
.scroll-indicator__wheel {
  width: 6px;
  height: 6px;
  background: #efb93d;
  border-radius: 50%;
  animation: scroll-wheel 2s infinite;
}
@keyframes scroll-wheel {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(12px);
    opacity: 0.5;
  }
}

/* CTA group */
.cta-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* === SECTIONS === */
.section {
  padding: 5rem 2rem;
}
.section--white {
  background: #fff;
  color: #111;
}
.section--light {
  background: #f8f8f8;
  color: #111;
}
.section--dark {
  background: #1b1b1b;
  color: #fff;
}
.section--yellow {
  background: #efb93d;
  color: #000;
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
}
.subtitle {
  color: #333;
  max-width: 820px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* === THEMES (3 + 2) === */
.themes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem;
}
.theme-card {
  flex: 1 1 320px;
  max-width: 340px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding: 2rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.theme-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.theme-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.theme-card p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}
.theme-cta {
  margin-top: 2.2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.theme-cta .btn {
  min-width: 240px;
}

/* === OBJECTIFS LIST === */
.objectives-list {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}
.objectives-list li {
  margin-bottom: 0.6rem;
}

/* === DOWNLOAD FORM === */
.download-form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}
.download-form input[type="email"] {
  padding: 0.9rem 1.2rem;
  border: 1px solid #ccc;
  border-radius: 999px;
  font-size: 1rem;
  min-width: 250px;
}
.download-form input[type="email"]:focus {
  border-color: #000;
  outline: none;
}
.download-form .btn {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 2rem;
  text-transform: uppercase;
}
.download-form .btn:hover {
  background: #fff;
  color: #000;
  border: 2px solid #000;
}

/* === BUTTONS === */
.btn {
  background: #efb93d;
  color: #000;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(239, 185, 61, 0.4);
  transition: all 0.25s;
}
.btn:hover {
  background: #fff;
  color: #000;
  transform: translateY(-3px);
}
.btn--dark {
  background: #111;
  color: #fff;
}
.btn--dark:hover {
  background: #fff;
  color: #111;
  border: 2px solid #111;
}
/* === FIX: visibilité du bouton "Accéder aux guides" === */
.btn--primary {
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  display: inline-block;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn--primary:hover {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
  transform: translateY(-3px);
}
/* === TIMELINE (page Formation) === */
.timeline {
  display: grid;
  gap: 2rem;
  margin-top: 2.2rem;
}
.day {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.day:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.day h3 {
  color: #efb93d;
  margin: 0 0 0.5rem;
  font-weight: 800;
}
.day ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}
.day li {
  list-style: disc;
  margin-bottom: 0.35rem;
  color: #333;
}

/* === CONTACT FORM === */
.contact-form {
  max-width: 600px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #efb93d;
  box-shadow: 0 0 0 3px rgba(239, 185, 61, 0.2);
  outline: none;
}
.contact-form button {
  align-self: center;
  min-width: 240px;
}

/* === FOOTER === */
.footer-academia {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
}
.footer-academia a {
  color: #efb93d;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 600;
}
.footer-academia a:hover {
  text-decoration: underline;
}
.footer-academia p {
  color: #bbb;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero {
    padding: 2.8rem 1rem 2rem;
  }
  .section {
    padding: 4rem 1.5rem;
  }
}
/* === GUIDES & FICHES TECHNIQUES === */
#guides.section--yellow {
  background: #efb93d;
  color: #000;
  padding: 6rem 2rem 5rem; /* plus d’espace vertical */
}

.guides-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  margin: 3rem auto 3.5rem;
  max-width: 800px;
}

/* Lien global pour uniformiser */
.guide-preview a {
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: all 0.25s ease;
}

.guide-preview a:hover {
  transform: translateY(-3px);
  color: #000;
}

/* Titres et textes */
.guide-preview h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #000;
  margin-bottom: 0.4rem;
}

.guide-preview p {
  max-width: 680px;
  margin: 0.4rem auto 0;
  line-height: 1.65;
  font-size: 1rem;
  color: #111;
}

/* CTA principal */
.cta-guides {
  margin-top: 3.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.cta-guides .btn {
  background: #000;
  color: #fff;
  border-radius: 999px;
  padding: 1rem 2.4rem;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.cta-guides .btn:hover {
  background: #fff;
  color: #000;
  border: 2px solid #000;
  transform: translateY(-3px);
}

/* Petit texte sous le bouton */
.cta-guides .small-text {
  margin-top: 1.5rem !important;
  opacity: 0.85;
  font-size: 0.95rem;
  color: #222;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  #guides.section--yellow {
    padding: 4.5rem 1.5rem 3.5rem;
  }

  .guides-preview {
    gap: 2rem;
  }

  .guide-preview h3 {
    font-size: 1.1rem;
  }

  .guide-preview p {
    font-size: 0.95rem;
  }

  .cta-guides .btn {
    width: 100%;
    max-width: 280px;
  }
}
/* === POPUP GUIDES === */
/* ===== Modal sans JS (ancre :target) ===== */
.guide-popup {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 3000;
}
.guide-popup:target {
  display: block;
} /* <- Le cœur du système */
.guide-popup .popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: block;
}
.guide-popup .popup-content {
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: calc(100% - 2rem);
  margin: 6vh auto 0;
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.6rem;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}
.guide-popup .popup-close {
  position: absolute;
  top: 10px;
  right: 14px;
  color: #000;
  text-decoration: none;
  font-size: 28px;
  line-height: 1;
  opacity: 0.7;
}
.guide-popup .popup-close:hover {
  opacity: 1;
}

@media (max-width: 480px) {
  .guide-popup .popup-content {
    margin-top: 8vh;
    padding: 1.6rem 1.2rem;
  }
}

/* S’assurer que la bannière cookies passe en dessous */
.cookie-banner {
  z-index: 1500;
}
