/* ==========================================================================
   Planète Sciences Normandie — Design system
   ========================================================================== */

:root {
  /* Palette */
  --ps-navy-950: #0a1a33;
  --ps-navy-900: #0e2247;
  --ps-navy-800: #15305f;
  --ps-navy-700: #1c3f7a;
  --ps-blue-500: #2f6fed;
  --ps-blue-100: #e8f0ff;
  --ps-teal-500: #17b3a3;
  --ps-teal-100: #e3faf6;
  --ps-orange-600: #e8631a;
  --ps-orange-500: #f7862f;
  --ps-orange-100: #fff1e4;
  --ps-amber-400: #ffc247;

  /* Couleurs "flashies" de la charte d'origine (logo / animation planète) */
  --ps-brand-blue: #29abe2;
  --ps-brand-navy: #164a8a;
  --ps-brand-pink: #e6007e;
  --ps-brand-amber: #ffb01f;

  --ink-900: #101522;
  --ink-700: #333b4d;
  --ink-500: #5b6478;
  --ink-300: #9aa3b6;
  --ink-100: #e7eaf1;

  --surface-0: #ffffff;
  --surface-1: #f7f9fd;
  --surface-2: #eef1f8;

  --success: #1e9e6c;
  --danger: #d1483f;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(14, 34, 71, 0.06), 0 1px 3px rgba(14, 34, 71, 0.08);
  --shadow-md: 0 8px 24px rgba(14, 34, 71, 0.10);
  --shadow-lg: 0 24px 60px rgba(14, 34, 71, 0.16);

  --container: 1180px;
  --header-h: 76px;

  --font-display: "Fraunces", "Georgia", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ------------------------------ Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--surface-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; color: var(--ps-navy-900); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ps-orange-500); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 64px 0; }
@media (max-width: 760px) { section { padding: 40px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ps-orange-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--ps-orange-500);
  border-radius: 2px;
}

.section-head { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { color: var(--ink-500); font-size: 1.05rem; }

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ps-orange-500); color: #fff; box-shadow: 0 10px 24px rgba(247, 134, 47, 0.35); }
.btn-primary:hover { background: var(--ps-orange-600); box-shadow: 0 12px 28px rgba(232, 99, 26, 0.4); }
.btn-navy { background: var(--ps-navy-800); color: #fff; }
.btn-navy:hover { background: var(--ps-navy-900); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-navy { background: transparent; border-color: var(--ps-navy-700); color: var(--ps-navy-800); }
.btn-outline-navy:hover { background: var(--ps-blue-100); }
.btn-ghost { background: var(--surface-2); color: var(--ink-700); }
.btn-ghost:hover { background: var(--ink-100); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-disabled, .btn-disabled:hover {
  background: #d5d5d5 !important;
  color: #767676 !important;
  box-shadow: none !important;
  cursor: not-allowed;
  pointer-events: none;
}

/* ------------------------------ Header ------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  padding: 10px 0;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--ink-100);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-logo { height: 52px; width: auto; display: block; }
/* Fond blanc arrondi derrière le logo dans le footer (fond marine), pour garder ses couleurs lisibles */
.footer-brand-logo {
  background: #fff; display: inline-flex; padding: 10px 16px; border-radius: 14px; margin-bottom: 4px;
}
.footer-brand-logo .brand-logo { height: 46px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-700);
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--ps-blue-100); color: var(--ps-navy-800); }
.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink-100);
  background: var(--surface-0);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1100px) {
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--surface-0);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { padding: 13px 16px; font-size: 1rem; border-bottom: 1px solid var(--ink-100); border-radius: 0; }
  .header-cta .btn-outline-navy { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 480px) {
  .main-nav { padding: 12px; gap: 0; }
  .main-nav a { padding: 10px 14px; font-size: 0.94rem; }
}

/* ------------------------------ Hero ------------------------------ */
.hero {
  position: relative;
  padding: 44px 0 32px;
  color: var(--ink);
  background: #fff;
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute; border-radius: 50%; filter: blur(2px); opacity: .14; z-index: 0; pointer-events: none;
}
.hero::before { width: 420px; height: 420px; background: var(--ps-brand-blue); top: -180px; right: -120px; }
.hero::after { width: 260px; height: 260px; background: var(--ps-brand-amber); bottom: -120px; left: -80px; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: #fef0f8; color: var(--ps-brand-pink) !important;
  font-weight: 700; font-size: .82rem; padding: 8px 16px; border-radius: 999px; margin-bottom: 8px;
}
.hero h1 { color: var(--ps-navy-900); font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.hero p.lead { font-size: 1.1rem; color: var(--ink-500); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero-stats { display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--ps-navy-900); }
.hero-stats div span { color: var(--ink-500); font-size: 0.86rem; }

.hero-visual { display: flex; align-items: center; justify-content: center; position: relative; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { max-width: 340px; margin: 0 auto; } }

.page-hero {
  padding: 56px 0 64px;
  background: linear-gradient(160deg, var(--ps-navy-950), var(--ps-navy-800));
  color: #fff;
}
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 640px; font-size: 1.05rem; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.breadcrumb a:hover { color: #fff; }

/* ------------------------------ Cards / grids ------------------------------ */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface-0);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ps-blue-100); color: var(--ps-blue-500);
  margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--ink-500); font-size: 0.95rem; margin-bottom: 0; }

.card--accent-teal .icon { background: var(--ps-teal-100); color: var(--ps-teal-500); }
.card--accent-orange .icon { background: var(--ps-orange-100); color: var(--ps-orange-600); }

.pill-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--ink-700);
  font-size: 0.86rem; font-weight: 600;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------ Split / CTA blocks ------------------------------ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split-media {
  border-radius: var(--radius-lg);
  min-height: 320px;
  background: linear-gradient(150deg, var(--ps-teal-100), var(--ps-blue-100));
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.split-media svg { width: 46%; }

.cta-band {
  background: linear-gradient(120deg, var(--ps-orange-500), var(--ps-amber-400));
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #16130c;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h3 { color: #16130c; margin-bottom: 6px; }
.cta-band .btn-navy { background: var(--ps-navy-950); }

.section-alt { background: var(--surface-1); }

/* ------------------------------ Footer ------------------------------ */
.site-footer { background: var(--ps-navy-950); color: rgba(255,255,255,0.75); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.site-footer a { color: rgba(255,255,255,0.7); font-size: 0.94rem; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 10px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.92rem; max-width: 320px; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: rgba(255,255,255,0.18); }
.social-row svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
}

/* ------------------------------ Forms ------------------------------ */
.form-card {
  background: var(--surface-0);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
}
@media (max-width: 640px) { .form-card { padding: 24px; } }

.form-section { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--ink-100); }
.form-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.form-section h3 {
  font-family: var(--font-sans); font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ps-blue-500);
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.form-section h3 .step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ps-blue-100); color: var(--ps-navy-800);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
}

.field { margin-bottom: 20px; }
.field label, .fieldset-label {
  display: block; font-weight: 600; font-size: 0.92rem; color: var(--ink-900); margin-bottom: 7px;
}
.field .hint { display: block; font-weight: 400; color: var(--ink-500); font-size: 0.84rem; margin-top: 6px; }
.required-mark { color: var(--ps-orange-600); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--ink-100);
  background: var(--surface-1);
  font: inherit;
  color: var(--ink-900);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ps-blue-500); background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row, .field-row-3 { grid-template-columns: 1fr; } }

.choice-list { display: flex; flex-direction: column; gap: 10px; }
.choice-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice-card:hover { border-color: var(--ps-blue-500); }
.choice-card input { margin-top: 3px; accent-color: var(--ps-blue-500); flex-shrink: 0; }
.choice-card .choice-title { font-weight: 600; font-size: 0.95rem; }
.choice-card .choice-desc { color: var(--ink-500); font-size: 0.85rem; margin-top: 2px; }
.choice-card:has(input:checked) { border-color: var(--ps-blue-500); background: var(--ps-blue-100); }

.terms-box {
  max-height: 160px; overflow-y: auto;
  background: var(--surface-1);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--ink-500);
  margin-bottom: 14px;
}

.file-drop {
  border: 1.5px dashed var(--ink-300);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  color: var(--ink-500);
  background: var(--surface-1);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.file-drop:hover, .file-drop.is-dragover { border-color: var(--ps-blue-500); background: var(--ps-blue-100); }
.file-drop input { display: none; }
.file-drop svg { width: 30px; height: 30px; margin-bottom: 8px; color: var(--ps-blue-500); }
.file-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.file-list li {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface-1); border-radius: var(--radius-sm);
  padding: 8px 12px; font-size: 0.86rem;
}
.file-list button { background: none; border: none; color: var(--danger); font-size: 1.1rem; line-height: 1; }

.signature-wrap {
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  overflow: hidden;
}
.signature-wrap canvas { width: 100%; height: 180px; display: block; touch-action: none; background: #fff; }
.signature-actions { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--surface-2); }
.signature-actions span { font-size: 0.8rem; color: var(--ink-500); }

.stripe-card-el {
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--surface-1);
}

.form-msg {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.92rem;
  margin-bottom: 20px;
  display: none;
}
.form-msg.is-visible { display: block; }
.form-msg.success { background: #e8f8f1; color: var(--success); border: 1px solid #b9ecd4; }
.form-msg.error { background: #fdecea; color: var(--danger); border: 1px solid #f6c6c1; }
.form-msg.info { background: var(--ps-blue-100); color: var(--ps-navy-800); border: 1px solid #cfe0ff; }

.form-msg pre {
  white-space: pre-wrap; word-break: break-word;
  background: rgba(0,0,0,0.04); padding: 10px; border-radius: 8px;
  font-size: 0.78rem; margin-top: 10px; max-height: 220px; overflow: auto;
}

.field-error { color: var(--danger); font-size: 0.82rem; margin-top: 6px; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: #fdecea; }
.field.has-error .field-error { display: block; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  animation: rotate 0.7s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }

/* ------------------------------ Cookie banner ------------------------------ */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px;
  max-width: 560px; margin: 0 auto;
  background: var(--ps-navy-950); color: #fff;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  display: none;
  gap: 16px;
  flex-direction: column;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { font-size: 0.88rem; color: rgba(255,255,255,0.78); margin: 0; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ------------------------------ Misc content pages ------------------------------ */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose p { color: var(--ink-700); font-size: 1.02rem; }
.stat-strip { display: flex; gap: 40px; flex-wrap: wrap; margin: 36px 0; }
.stat-strip div strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--ps-navy-900); }
.stat-strip div span { color: var(--ink-500); font-size: 0.88rem; }

.person-card { display: flex; gap: 16px; align-items: flex-start; }
.person-card .avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ps-blue-100); color: var(--ps-navy-800);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
}

.news-list { display: flex; flex-direction: column; gap: 18px; }
.news-item {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--surface-0); border: 1px solid var(--ink-100);
  border-radius: var(--radius-md); padding: 22px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.news-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-date {
  flex-shrink: 0; width: 64px; text-align: center;
  background: var(--ps-blue-100); color: var(--ps-navy-800);
  border-radius: var(--radius-sm); padding: 10px 6px;
  font-weight: 700;
}
.news-date .day { display: block; font-size: 1.3rem; font-family: var(--font-display); }
.news-date .month { display: block; font-size: 0.72rem; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.download-card {
  display: flex; align-items: center; gap: 20px;
  background: var(--surface-1); border: 1px solid var(--ink-100);
  border-radius: var(--radius-md); padding: 24px;
}
.download-card .icon { background: var(--ps-orange-100); color: var(--ps-orange-600); width: 56px; height: 56px; border-radius: 14px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.download-card .icon svg { width: 28px; height: 28px; }

.access-box {
  display: flex; gap: 16px; align-items: center;
  background: var(--ps-teal-100); border-radius: var(--radius-md);
  padding: 20px 24px; margin-bottom: 28px;
}
.access-box .icon { color: var(--ps-teal-500); flex-shrink: 0; }
.access-box .icon svg { width: 30px; height: 30px; }

.badge-inline {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ps-orange-100); color: var(--ps-orange-600);
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
}

.notice-box {
  background: var(--surface-1); border-left: 4px solid var(--ps-blue-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px; font-size: 0.92rem; color: var(--ink-700);
}

/* Animation "planète en orbite" reprise à l'identique du site en ligne */
@keyframes psnGlobeSpin { 100% { transform: rotate(360deg); } }
@keyframes psnOrbit1 { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes psnOrbit2 { 0% { transform: rotate(55deg); } 100% { transform: rotate(415deg); } }
@keyframes psnOrbit3 { 0% { transform: rotate(-55deg); } 100% { transform: rotate(305deg); } }
@keyframes psnOrbit4 { 0% { transform: rotate(25deg); } 100% { transform: rotate(385deg); } }
@keyframes psnOrbit5 { 0% { transform: rotate(-25deg); } 100% { transform: rotate(-385deg); } }
@keyframes psnOrbit6 { 0% { transform: rotate(90deg); } 100% { transform: rotate(-270deg); } }

/* ---------------------------------------------------------------------
   Page BAFA : présentation (2/3) + sessions à droite (1/3), pensée pour
   tenir dans un écran sans défilement sur un portable 1920 x 1024.
--------------------------------------------------------------------- */
.bafa-page { padding: 32px 0 48px; }
.bafa-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 44px; align-items: start; }
.bafa-intro .breadcrumb { margin-bottom: 10px; color: var(--ink-500); }
.bafa-intro .breadcrumb a { color: var(--ps-brand-blue); }
.bafa-intro h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 14px; }
.bafa-intro .lead { font-size: 1.02rem; color: var(--ink-700); line-height: 1.6; max-width: 62ch; margin: 0 0 26px; }

.bafa-steps { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.bafa-steps li { display: flex; gap: 16px; align-items: flex-start; }
.bafa-steps .step-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ps-brand-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.bafa-steps li:nth-child(2) .step-num { background: var(--ps-brand-pink); }
.bafa-steps li:nth-child(3) .step-num { background: var(--ps-brand-amber); color: #3a2a00; }
.bafa-steps h2 { font-size: 1.05rem; margin: 4px 0 4px; }
.bafa-steps h2 em { font-style: normal; font-weight: 500; color: var(--ink-500); font-size: 0.88rem; }
.bafa-steps p { margin: 0; font-size: 0.92rem; color: var(--ink-500); line-height: 1.5; max-width: 62ch; }

.bafa-notes {
  border-top: 1px solid var(--ink-100); padding-top: 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.bafa-notes p { margin: 0; font-size: 0.88rem; color: var(--ink-500); line-height: 1.55; max-width: 66ch; }
.bafa-notes strong { color: var(--ps-navy-900); }
.bafa-source a { color: var(--ps-brand-blue); font-weight: 600; }

.bafa-sessions { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; }
.bafa-sessions > h2 {
  font-family: var(--font-sans); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); margin: 0;
}
.session-card {
  border: 1.5px solid var(--ink-100); border-radius: var(--radius-md);
  padding: 20px; background: var(--surface-0);
  border-top: 4px solid var(--ps-brand-blue);
}
.session-card--teal { border-top-color: var(--ps-teal-500); }
.session-card h3 { font-size: 1.15rem; margin: 10px 0 8px; }
.session-card p { font-size: 0.86rem; color: var(--ink-500); line-height: 1.5; margin: 0 0 16px; }
.sessions-help { font-size: 0.84rem; color: var(--ink-500); margin: 2px 0 0; }
.sessions-help a { color: var(--ps-brand-pink); font-weight: 600; }

@media (max-width: 940px) {
  .bafa-grid { grid-template-columns: 1fr; gap: 32px; }
  .bafa-sessions { position: static; }
}

/* ---------------------------------------------------------------------
   Carrousel photo (page d'accueil, juste après le hero)
--------------------------------------------------------------------- */
.carousel-section { padding: 0 0 64px; }
.carousel { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 50px rgba(22,74,138,.16); }
.carousel-track { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.slide {
  flex: 0 0 100%; height: 420px; display: flex; align-items: flex-end; justify-content: center;
  color: #fff; text-align: center; padding: 28px; background-size: cover; background-position: center; position: relative;
}
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,26,51,.72) 0%, rgba(10,26,51,0) 55%); }
.slide p { position: relative; margin: 0; font-size: 1.05rem; font-weight: 700; }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; font-size: 1.4rem; color: var(--ps-navy-800); cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(22,74,138,.25); z-index: 2;
}
.car-btn.prev { left: 16px; } .car-btn.next { right: 16px; }
.dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; border: none; padding: 0; }
.dot.active { background: #fff; width: 22px; border-radius: 6px; }

/* ---------------------------------------------------------------------
   Sélecteur "Je suis..." — sobre, couleurs de marque en accent
--------------------------------------------------------------------- */
.picker { padding: 60px 0; }
.picker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .picker-grid { grid-template-columns: repeat(2, 1fr); } }
.pick-card {
  display: flex; flex-direction: column; color: inherit;
  border: 1.5px solid var(--ink-100); border-radius: 18px; padding: 28px 24px; text-align: center;
  transition: transform .15s, box-shadow .15s;
}
.pick-card .go { margin-top: auto; }
.pick-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(22,74,138,.12); }
.pick-card .icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 16px; }
.pick-card.parent .icon { background: #fde8f2; color: var(--ps-brand-pink); }
.pick-card.enseignant .icon { background: #e8f6fd; color: var(--ps-brand-blue); }
.pick-card.acm .icon { background: var(--ps-teal-100); color: var(--ps-teal-500); }
.pick-card.animateur .icon { background: #fff3e0; color: var(--ps-brand-amber); }
.pick-card h3 { font-size: 1.05rem; text-wrap: balance; }
.pick-card p { font-size: .9rem; color: var(--ink-500); line-height: 1.5; margin: 0 0 16px; }
.pick-card .go { font-size: .85rem; font-weight: 700; }
.pick-card.parent .go { color: var(--ps-brand-pink); }
.pick-card.enseignant .go { color: var(--ps-brand-blue); }
.pick-card.acm .go { color: #0d7d72; }
.pick-card.animateur .go { color: #b8790a; }

/* ---------------------------------------------------------------------
   Contact express (accueil) — mini-formulaire routé par sujet
--------------------------------------------------------------------- */
.contact-express { padding: 0 0 64px; }
.contact-express-inner { background: var(--surface-1); border-radius: 22px; padding: 40px; }
.contact-express-link {
  display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600;
  color: var(--ps-navy-800); background: #fff; border: 1px solid var(--ink-100); border-radius: 999px;
  padding: 8px 16px; margin-bottom: 24px;
}
.contact-express-link a { color: var(--ps-brand-pink); }
.contact-express-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .contact-express-grid { grid-template-columns: 1fr; } .picker-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------
   Flipbook catalogue (page catalogue) — feuilletage des pages SVG
--------------------------------------------------------------------- */
.flipbook { max-width: 480px; margin: 0 auto; }
.flipbook-viewport {
  position: relative; width: 100%; aspect-ratio: 595.5 / 842.25;
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 50px rgba(22,74,138,.16); perspective: 1800px;
}
.flipbook-page {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  transition: transform .35s ease, opacity .35s ease; transform-origin: center; backface-visibility: hidden;
}
.flipbook-page.is-flipping { transform: rotateY(90deg); opacity: 0; }
.flipbook-page img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.flipbook-spinner {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--ink-500); font-size: .85rem; background: #fff; opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.flipbook-spinner.is-visible { opacity: 1; }
.flipbook-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 18px; }
.flip-btn {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.9); border: 1px solid var(--ink-100);
  font-size: 1.4rem; color: var(--ps-navy-800); cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(22,74,138,.15);
}
.flip-btn:disabled { opacity: .35; cursor: not-allowed; }
.flipbook-indicator { font-weight: 700; color: var(--ps-navy-800); min-width: 64px; text-align: center; }
.flipbook-hint { text-align: center; color: var(--ink-500); font-size: .85rem; margin-top: 10px; }
