/* Aventure MELEC — espace établissements. Bootstrap 3 (html 10px) : px/em uniquement, jamais rem. */
.ap-page { padding: 30px 0 50px; background: #f5f8fc; color: #102033; font-size: 16px; line-height: 1.6; }
.ap-container { width: min(1100px, 92%); margin: 0 auto; }
.ap-page h1, .ap-page h2, .ap-page h3 { font-weight: 800; line-height: 1.25; }
.ap-page h2 { font-size: 26px; margin: 0 0 18px; color: #0b1f6b; }
.ap-page h3 { font-size: 18px; margin: 0 0 6px; }

.ap-hero { display: flex; gap: 30px; align-items: center; padding: 40px; border-radius: 28px; color: #fff;
  background: linear-gradient(145deg, #0b1f6b 0%, #1035c4 55%, #1554d1 100%); box-shadow: 0 18px 45px rgba(6, 59, 112, .22); }
.ap-hero-text { flex: 1 1 auto; min-width: 0; }
.ap-hero h1 { font-size: clamp(28px, 4vw, 44px); margin: 12px 0; color: #fff; }
.ap-badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-weight: 700; font-size: 14px; }
.ap-hello { margin: 14px 0 0; font-size: 17px; color: #fde68a; }
.ap-lead { font-size: 18px; color: rgba(255, 255, 255, .92); max-width: 720px; }
.ap-hero-media { flex: 0 0 auto; }
.ap-hero-media img { width: 190px; height: 190px; border-radius: 34px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.ap-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.ap-btn { display: inline-block; padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.ap-btn:hover, .ap-btn:focus { text-decoration: none; transform: translateY(-1px); }
.ap-btn-primary { background: #f59e0b; color: #1f1300; box-shadow: 0 8px 20px rgba(245, 158, 11, .35); }
.ap-btn-primary:hover, .ap-btn-primary:focus { color: #1f1300; background: #fbbf24; }
.ap-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.ap-btn-ghost:hover, .ap-btn-ghost:focus { color: #fff; background: rgba(255, 255, 255, .12); }
.ap-btn[disabled] { opacity: .6; cursor: default; transform: none; }
.ap-link { margin-left: 14px; font-weight: 600; }

.ap-section { margin-top: 28px; padding: 28px; background: #fff; border-radius: 24px; border: 1px solid #e7eef7; box-shadow: 0 12px 30px rgba(12, 35, 64, .07); }
.ap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ap-card { padding: 20px; border-radius: 18px; background: #f8fafc; border: 1px solid #e7eef7; }
.ap-card p { margin: 0; color: #334155; }
.ap-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 10px; font-size: 22px;
  background: color-mix(in srgb, var(--c) 14%, #fff); }
.ap-list { margin: 0; padding-left: 20px; }
.ap-list li { margin-bottom: 8px; }
.ap-muted { color: #475569; }

.ap-steps { list-style: none; margin: 0; padding: 0; }
.ap-step { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid #e7eef7; }
.ap-step:first-child { border-top: 0; padding-top: 0; }
.ap-step p { margin: 0 0 8px; color: #334155; }
.ap-step-num { flex: 0 0 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; background: #1554d1; color: #fff; }
.ap-step.is-done .ap-step-num { background: #16a34a; }
.ap-step-actions { margin-top: 10px !important; }

.ap-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-top: 10px; }
.ap-field label, .ap-checks legend { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; color: #102033; }
.ap-field input[type=text], .ap-field input[type=email], .ap-field input[type=number], .ap-field select, .ap-field textarea {
  width: 100%; padding: 10px 12px; font-size: 16px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #102033; }
.ap-field input:focus, .ap-field select:focus, .ap-field textarea:focus { outline: 0; border-color: #1554d1; box-shadow: 0 0 0 3px rgba(21, 84, 209, .15); }
.ap-field-wide { grid-column: 1 / -1; }
.ap-checks { border: 0; padding: 0; margin: 0; }
.ap-checks legend { border: 0; width: auto; }
.ap-checks label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; margin: 0 18px 6px 0; }
.ap-consent { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; font-size: 15px; color: #334155; }
.ap-consent input { margin-top: 4px; }
.ap-submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ap-form-msg { font-weight: 600; }
.ap-form-msg.is-ok { color: #15803d; }
.ap-form-msg.is-err { color: #b91c1c; }
.ap-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.ap-faq { border-top: 1px solid #e7eef7; padding: 12px 0; }
.ap-faq:first-of-type { border-top: 0; }
.ap-faq summary { cursor: pointer; font-weight: 700; }
.ap-faq p { margin: 8px 0 0; color: #334155; }

/* Vidéos de présentation : la verticale (9:16) et la bande-annonce (16:9) à la même hauteur */
.ap-videos { display: flex; gap: 20px; align-items: flex-start; }
.ap-video { margin: 0; }
.ap-video video { display: block; width: 100%; height: auto; border-radius: 16px; background: #0b1f6b; box-shadow: 0 10px 26px rgba(12, 35, 64, .18); }
.ap-video figcaption { margin-top: 8px; text-align: center; font-weight: 600; color: #475569; font-size: 15px; }
.ap-video-portrait { flex: 81 1 0; max-width: 300px; }
.ap-video-landscape { flex: 256 1 0; }

/* Désinscription */
.ap-unsub p { font-size: 17px; }
.ap-unsub-ok { color: #15803d; font-weight: 600; }

/* Page d'administration */
.ap-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; }
.ap-stat { flex: 1 1 160px; padding: 16px; border-radius: 16px; background: #f8fafc; border: 1px solid #e7eef7; }
.ap-stat strong { display: block; font-size: 28px; color: #1554d1; }
.ap-table-wrap { overflow-x: auto; }
.ap-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ap-table th, .ap-table td { padding: 8px 10px; border-bottom: 1px solid #e7eef7; text-align: left; vertical-align: top; }
.ap-table th { background: #f1f5f9; white-space: nowrap; }
.ap-table td.ap-msg { max-width: 320px; white-space: pre-wrap; }

@media (max-width: 800px) {
  .ap-hero { flex-direction: column-reverse; padding: 26px; text-align: center; }
  .ap-cta { justify-content: center; }
  .ap-hero-media img { width: 130px; height: 130px; }
  .ap-grid { grid-template-columns: 1fr; }
  .ap-videos { flex-direction: column; align-items: center; }
  .ap-video-portrait { width: 100%; max-width: 260px; flex: none; }
  .ap-video-landscape { width: 100%; flex: none; }
  .ap-form { grid-template-columns: 1fr; }
  .ap-section { padding: 20px; }
  .ap-link { display: block; margin: 10px 0 0; }
}
