/* ══════════════════════════════════════════════════════════
   PAGE RÉFÉRENT PÉDAGOGIQUE — /ecole/referent-pedagogique.html
   ══════════════════════════════════════════════════════════ */
.rp-page { --rp-pink: #fdf0f1; --rp-yellow: #fffaea; --rp-purple: #f6f2ff; --rp-purple-ink: #8a3ffc; }

/* ── Hero ── */
.rp-hero { padding: 56px 0 30px; }
.rp-hero .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 40px; }
.rp-hero h1.site-hero-title span { display: block; color: var(--ml-red); }
.rp-hero .hero-lead { max-width: 520px; }
.rp-hero .hero-ctas { gap: 14px; }
.rp-hero .hero-ctas .mock-btn { min-height: 48px; }
.rp-hero .hero-media { min-height: 0; }
.rp-hero .hero-media img { width: min(100%, 560px); }

/* Traits « rayonnants » dessinés autour des photos */
.rp-spark { position: absolute; z-index: 3; width: 46px; height: 40px; color: var(--ml-red); fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; pointer-events: none; }
.rp-spark--tl { left: 4%; top: 6%; }
.rp-spark--tr { right: 2%; top: 0; transform: scaleX(-1); }

/* ── Bandeau des atouts ── */
.rp-features { padding: 10px 0 70px; }
.rp-features__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--rp-pink); border-radius: 16px; overflow: hidden; }
.rp-features__list li { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 14px; text-align: center; font-size: 15px; font-weight: 750; line-height: 1.3; color: var(--ml-ink); }
.rp-features__list li + li { border-left: 1px solid rgba(221, 38, 40, .14); }
.rp-features__list .ml-icon { width: 34px; height: 34px; color: var(--ml-red); stroke-width: 1.7; }

/* ── Titres de section ── */
.rp-title span { color: var(--ml-red); }
.rp-lead { max-width: 560px; margin: 18px 0 0; color: var(--ml-muted); font-size: 17px; font-weight: 520; line-height: 1.6; }

/* ── Accompagnement sur mesure ── */
.rp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); align-items: center; gap: 48px; }
.rp-photo-card { position: relative; padding: 26px 26px 0; display: flex; justify-content: center; }
.rp-photo-card img { width: min(100%, 340px); height: auto; }
.rp-bubble { position: absolute; right: 14px; top: 26px; z-index: 3; max-width: 150px; margin: 0; padding: 12px 14px; background: #fff; border-radius: 14px; box-shadow: 0 10px 24px rgba(18, 32, 51, .08); font-size: 13px; font-weight: 650; line-height: 1.35; color: var(--ml-ink); }
.rp-bubble::after { content: ""; position: absolute; left: 22px; bottom: -8px; width: 16px; height: 16px; background: #fff; transform: rotate(45deg); }

.rp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.rp-card { padding: 28px 24px; border-radius: 18px; background: var(--rp-pink); }
.rp-card--yellow { background: var(--rp-yellow); }
.rp-card--purple { background: var(--rp-purple); }
.rp-card .ml-icon { width: 38px; height: 38px; color: var(--ml-red); stroke-width: 1.7; }
.rp-card--purple .ml-icon { color: var(--rp-purple-ink); }
.rp-card h3 { margin: 18px 0 10px; font-size: 18px; font-weight: 850; color: var(--ml-ink); }
.rp-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ml-muted); }

/* ── Interlocuteur clé ── */
.rp-steps { padding-top: 90px; }
.rp-steps .rp-split { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
.rp-steps .mock-accordion { margin-top: 30px; max-width: 470px; }
.rp-steps__media { position: relative; display: flex; justify-content: flex-end; }
.rp-steps__media img { width: min(100%, 440px); height: auto; }
.rp-steps__media .rp-spark--tl { left: 22%; top: 4%; }
.rp-note { position: absolute; left: 0; top: 46%; z-index: 3; width: 150px; margin: 0; padding: 18px 16px; background: #fff6cf; border-radius: 6px; box-shadow: 0 12px 24px rgba(18, 32, 51, .1); transform: rotate(-6deg); font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--ml-ink); }

/* ── Travail en équipe ── */
.rp-team { padding-top: 90px; }
.rp-team__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-items: center; gap: 40px; padding: 48px; background: var(--rp-pink); border-radius: 24px; }
.rp-team__panel .rp-lead { font-size: 16px; }
.rp-orbit { position: relative; width: min(100%, 340px); aspect-ratio: 1; margin-inline: auto; }
.rp-orbit::before { content: ""; position: absolute; inset: 15%; border: 1.5px dashed rgba(221, 38, 40, .3); border-radius: 50%; }
.rp-orbit__center, .rp-orbit__node { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; font-size: 13px; font-weight: 750; line-height: 1.2; transform: translate(-50%, -50%); }
.rp-orbit__center { left: 50%; top: 50%; width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--ml-red); color: #fff; box-shadow: 0 14px 30px rgba(221, 38, 40, .3); }
.rp-orbit__center .ml-icon { width: 30px; height: 30px; color: #fff; }
.rp-orbit__node { min-width: 96px; padding: 10px 12px; background: #fff; border-radius: 14px; box-shadow: 0 10px 24px rgba(18, 32, 51, .07); color: var(--ml-ink); }
.rp-orbit__node .ml-icon { width: 22px; height: 22px; color: var(--ml-red); }
.rp-orbit__node--top { left: 50%; top: 12%; }
.rp-orbit__node--left { left: 12%; top: 50%; }
.rp-orbit__node--right { left: 88%; top: 50%; }
.rp-orbit__node--bottom { left: 50%; top: 88%; }

/* ── FAQ ── */
.rp-faq { padding-top: 90px; }
.rp-faq__head { text-align: center; margin-bottom: 30px; }
.rp-faq__head p { margin: 10px 0 0; color: var(--ml-muted); font-size: 15px; }
.rp-faq .mock-accordion { max-width: 900px; margin-inline: auto; }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .rp-hero .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
  .rp-features__list { grid-template-columns: repeat(3, 1fr); }
  .rp-features__list li { border-left: 0 !important; }
}

@media (max-width: 760px) {
  /* Même hero mobile que /referent-tdah/ : une colonne, photo sous les boutons. */
  .rp-hero { padding: 24px 0 10px; }
  .rp-hero .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .rp-hero .hero-lead { max-width: 550px; margin-top: 14px; color: var(--ml-ink); font-size: 15px; line-height: 1.42; }
  .rp-hero .hero-ctas { margin-top: 22px; gap: 10px; }
  .rp-hero .hero-ctas .mock-btn { width: 100%; }
  .rp-hero .hero-media { order: 3; width: min(100%, 430px); justify-self: center; margin-top: 18px; }
  .rp-hero .hero-media img { width: 100%; }
  .rp-spark { width: 30px; height: 26px; stroke-width: 3.4; }

  .rp-features { padding-bottom: 46px; }
  .rp-features__list { grid-template-columns: repeat(2, 1fr); }
  .rp-features__list li { padding: 18px 10px; font-size: 13px; }
  .rp-features__list li:last-child { display: none; } /* « Un cadre rassurant… » masqué sur mobile */
  .rp-features__list .ml-icon { width: 28px; height: 28px; }

  .rp-split, .rp-steps .rp-split, .rp-team__panel { grid-template-columns: 1fr; gap: 28px; }
  .rp-photo-card { padding-top: 64px; }
  .rp-bubble { top: 0; }
  .rp-lead { font-size: 15px; }
  .rp-cards { grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
  .rp-card { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 22px 18px; }
  .rp-card .ml-icon { grid-row: span 2; }
  .rp-card h3 { margin: 0 0 6px; font-size: 17px; }

  .rp-steps, .rp-team, .rp-faq { padding-top: 60px; }
  .rp-steps .mock-accordion { max-width: none; margin-top: 22px; }
  .rp-steps__media { justify-content: center; }
  .rp-steps__media img { width: 80%; margin-left: 20%; }
  .rp-note { width: 120px; padding: 14px 12px; font-size: 13px; }

  .rp-team__panel { padding: 30px 20px; }
  .rp-orbit__node { min-width: 84px; padding: 8px; font-size: 12px; }
}

/* Hero desktop : boutons sous le texte, photo sur toute la hauteur. */
@media (min-width: 761px) {
  .rp-hero .hero-copy { grid-column: 1; grid-row: 1; align-self: end; }
  .rp-hero .hero-media { grid-column: 2; grid-row: 1 / span 2; }
  .rp-hero .hero-ctas { grid-column: 1; grid-row: 2; align-self: start; margin-top: 4px; }
}
