/* ============================================================
   POLYNEA SCHOOL — CSS PARTAGÉ PAGES MODULES
   ============================================================ */

/* iOS — masquer le bouton play natif */
video::-webkit-media-controls,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-play-button {
  display: none !important;
  -webkit-appearance: none !important;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #0c5df2;
  --black: #000000;
  --white: #ffffff;
  --grey: #f4f6fb;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: #000;
  overflow-x: hidden;
}

/* ===================== NAVBAR ===================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
  color: #000;
}

.nav-logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #000;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 0.55; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile full-screen menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9998;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-size: 28px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
}

/* ===================== MODULE SECTION ===================== */
.module-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 60px 60px;
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 64px;
  align-items: start;
}

/* ---- Colonne gauche ---- */
.module-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
}

.module-img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 3/4;
  display: block;
}

.price-box {
  border: 1.5px solid var(--blue);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}

.price-amount {
  font-size: 52px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 6px;
}

.price-sub {
  font-size: 14px;
  color: #555;
  margin-bottom: 14px;
}

.price-installment {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin-bottom: 6px;
}

.price-original {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.price-original s {
  color: #d00;
  font-weight: 600;
}

.btn-cta {
  display: block;
  background: var(--blue);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-cta:hover { opacity: 0.85; transform: translateY(-2px); }

/* ---- Colonne droite ---- */
.module-right h1 {
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 36px;
  color: #000;
}

.module-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.module-bullets li {
  padding-left: 16px;
  border-left: 3px solid var(--blue);
  font-size: 15px;
  line-height: 1.65;
  color: #222;
}

.module-bullets li strong {
  display: inline;
  font-weight: 600;
}

.module-summary {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
}

/* ===================== VIDÉO MODULE ===================== */
.module-video {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 3/4;
  display: block;
}

/* ===================== PLANNING (dans module-right) ===================== */
.module-planning {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid #eee;
}

.module-planning h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #000;
}

.module-planning > p {
  font-size: 15px;
  color: #333;
  line-height: 1.75;
  margin-bottom: 16px;
}

.planning-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.planning-list li {
  font-size: 15px;
  color: #333;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.planning-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-size: 18px;
  line-height: 1.4;
}

.planning-info {
  font-size: 15px;
  color: #333;
  line-height: 1.75;
  margin-bottom: 10px;
}

.planning-info strong { color: #000; }

/* ===================== FORMULAIRE ===================== */
#formulaire {
  background: var(--grey);
  padding: 80px 24px;
}

.form-card {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 48px 48px 40px;
  box-shadow: 0 6px 48px rgba(0,0,0,0.07);
}

.form-card h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
}

.form-subtitle {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

.form-field input,
.form-field textarea {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  padding: 11px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  color: #000;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--blue); }

/* Checkboxes */
.form-check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 4px;
}

.form-check-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  font-weight: 400;
}

.form-check-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
  padding: 0;
  border: none;
}

/* Message succès/erreur */
.form-message {
  display: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 20px;
}
.form-message.success { background: #e6f4ea; color: #1a7f3c; display: block; }
.form-message.error   { background: #fdecea; color: #c0392b; display: block; }

.form-submit {
  text-align: center;
  margin-top: 8px;
}

.form-submit button {
  background: var(--blue);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 64px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.form-submit button:hover   { opacity: 0.85; }
.form-submit button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===================== AUTRES FORMATIONS ===================== */
.autres-formations {
  text-align: center;
  padding: 56px 24px;
  background: var(--grey);
  border-top: 1px solid #e0e5f0;
  border-bottom: 1px solid #e0e5f0;
}

.autres-formations h3 {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin-bottom: 24px;
}

.autres-formations .links {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 16px;
}

.autres-formations .links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  border: 1.5px solid var(--blue);
  border-radius: 8px;
  padding: 12px 28px;
  transition: background 0.2s, color 0.2s;
}
.autres-formations .links a:hover {
  background: var(--blue);
  color: #fff;
}

/* Cacher les séparateurs — on utilise des boutons maintenant */
.autres-formations .links .sep { display: none; }

/* ===================== FOOTER ===================== */
footer {
  background: #fff;
  text-align: center;
  padding: 20px 24px;
  font-size: 11px;
  color: #999;
  border-top: 1px solid #eee;
}

/* ===================== FADE-IN ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }

/* ===================== MOBILE ===================== */
@media (max-width: 900px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .module-section {
    grid-template-columns: 1fr;
    padding: 100px 24px 40px;
    gap: 32px;
  }

  .module-left { position: static; }

  .module-img { aspect-ratio: 16/9; }

  .planning-section {
    padding: 0 24px 56px;
  }

  .form-card {
    padding: 32px 24px;
  }

  .form-row { grid-template-columns: 1fr; }

  .autres-formations .links { flex-direction: column; gap: 8px; }
  .autres-formations .links .sep { display: none; }
}
