/* ═══════════════════════════════════════════════════════════
   DANC·R — Page Écoles (alignée sur styles.css + accent --blue)
   ═══════════════════════════════════════════════════════════ */

body.page-ecoles {
  background: var(--white);
  color: var(--anthracite);
}

.page-ecoles-main {
  padding-top: 0;
}

/* Eyebrow école : accent corporate blue */
.page-ecoles-main .section-eyebrow--ecole {
  color: var(--blue);
  margin-bottom: var(--space-lg);
}

.page-ecoles-main .section-title {
  margin-bottom: var(--space-lg);
}

.page-ecoles-main .section-lead {
  margin-bottom: var(--space-xl);
}

.page-ecoles-main .btn-link--ecole {
  color: var(--anthracite);
  font-weight: 600;
}

.page-ecoles-main .btn-link--ecole:hover {
  color: var(--blue);
}

.page-ecoles-main > section.ec-hero {
  margin-block: 0;
}

.page-ecoles-main > section.ec-hero + section {
  margin-block-start: 0;
}

.page-ecoles-main > section {
  margin-block: var(--space-2xl);
}

.page-ecoles-main > section.ec-section-pad {
  padding-block: clamp(4.5rem, 11vw, 8rem);
}

@media (max-width: 768px) {
  .page-ecoles-main > section.ec-hero {
    margin-block: 0;
  }

  .page-ecoles-main > section.ec-hero + section {
    margin-block-start: 0;
  }

  .page-ecoles-main > section {
    margin-block: var(--space-xl);
  }

  .page-ecoles-main > section.ec-section-pad {
    padding-block: clamp(3.5rem, 14vw, 5.5rem);
  }
}

/* ── Hero (styles détaillés dans hero-ecoles.css) ── */

/* ── Rue commerçante (bandeau sombre, comme waitlist home) ── */
.ec-street {
  background: var(--anthracite);
  color: var(--white);
}

.ec-street .section-title,
.ec-street__title {
  color: var(--white);
  max-width: min(100%, 22ch);
}

.ec-street__title-line {
  display: block;
}

.ec-street__title-line .accent-blue {
  font-style: normal;
  font-weight: 900;
  color: var(--blue);
}

.ec-street .section-lead {
  color: rgba(255, 255, 255, 0.82);
  max-width: 34ch;
}

.ec-street__body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--grey-400);
  max-width: 46ch;
  margin-bottom: var(--space-md);
}

.ec-street__cta-wrap {
  margin-top: var(--space-xl);
}

.ec-street .btn-primary {
  background: var(--white);
  color: var(--anthracite);
}

.ec-street .btn-primary:hover {
  background: var(--off-white);
}

.ec-street__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 980px) {
  .ec-street__grid {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
    gap: var(--space-2xl);
  }
}

.ec-street__media {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: min(100%, 440px);
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ec-street__media:has(img) {
  aspect-ratio: auto;
  max-width: min(100%, 480px);
}

@media (min-width: 980px) {
  .ec-street__media {
    width: min(48vw, 560px);
    max-width: 560px;
    min-width: 420px;
    margin-inline: 0;
    justify-self: end;
  }

  .ec-street__media:has(img) {
    max-width: 560px;
  }
}

.ec-street__media .media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.25rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: inherit;
}

.ec-street__media .media-placeholder-name {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.65);
}

.ec-street__media .media-placeholder-hint {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.ec-street__media:has(img, video) .media-placeholder {
  display: none;
}

.ec-street__media img,
.ec-street__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ec-street__media:has(img) img {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ── 4 moments ── */
.ec-moments__intro {
  max-width: 760px;
  margin-bottom: var(--space-3xl);
}

.ec-moment {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--grey-200);
}

.ec-moment:first-of-type {
  border-top: 0;
  padding-top: var(--space-lg);
}

@media (min-width: 900px) {
  .ec-moment {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }

  .ec-moment--reverse .ec-moment__copy { order: 2; }
  .ec-moment--reverse .ec-moment__visual { order: 1; }
}

.ec-moment__number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 1;
  color: var(--grey-200);
  letter-spacing: -0.04em;
  margin-bottom: var(--space-sm);
}

.ec-moment__heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--anthracite);
  margin-bottom: var(--space-md);
  max-width: 16ch;
}

.ec-moment__body {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--grey-700);
  max-width: 48ch;
}

/* Visuels section « 4 moments » — image pleine, sans cadre */
.ec-moment__media {
  position: relative;
  margin: 0 auto;
  width: fit-content;
  max-width: 100%;
}

.ec-moment__media img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 420px);
  object-fit: contain;
}

.ec-moment__media:has(img) .media-placeholder {
  display: none;
}

.page-ecoles-main .ec-moment__media .media-placeholder {
  position: relative;
  min-height: 200px;
  min-width: min(100%, 280px);
}

.page-ecoles-main .media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.25rem;
  text-align: center;
  background: var(--grey-50);
  border: 1px dashed var(--grey-200);
  border-radius: inherit;
}

.page-ecoles-main .media-placeholder-name {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--grey-700);
}

.page-ecoles-main .media-placeholder-hint {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.ec-moment__visual {
  position: relative;
}

.ec-floating-card {
  position: absolute;
  background: rgba(26, 26, 26, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  box-shadow: 0 20px 48px -16px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.8125rem;
  line-height: 1.35;
  z-index: 3;
  animation: ec-float 5s ease-in-out infinite;
}

@keyframes ec-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.ec-floating-card__label {
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.35rem;
}

.ec-floating-card__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--white);
}

.ec-floating-card__accent {
  color: var(--blue);
}

.ec-moment-1 .ec-floating-card { top: 10%; right: -8%; max-width: 200px; }
.ec-moment-2 .ec-floating-card { bottom: 18%; left: -10%; max-width: 220px; }
.ec-moment-3 .ec-floating-card { top: 18%; right: -6%; max-width: 190px; }
.ec-moment-4 .ec-floating-card { bottom: 14%; right: -8%; max-width: 210px; }

@media (max-width: 720px) {
  .ec-floating-card { display: none; }
}

/* ── Citation manifeste (transition entre sections) ── */
.ec-partners {
  position: relative;
  border-top: none;
  border-bottom: none;
  background: var(--anthracite);
  color: var(--white);
  overflow: hidden;
}

.ec-partners::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 15% 20%, rgba(94, 197, 255, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 55% 60% at 88% 75%, rgba(94, 197, 255, 0.08) 0%, transparent 50%);
}

.ec-partners__inner {
  position: relative;
  z-index: 1;
  max-width: min(var(--container-max), 920px);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.ec-partners__inner::after {
  content: '';
  display: block;
  width: clamp(3rem, 8vw, 5rem);
  height: 3px;
  margin: var(--space-xl) auto 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--blue) 90%, white 10%),
    var(--blue)
  );
}

.ec-partners__quote {
  margin: 0;
  padding: 0;
  border: none;
}

.ec-partners__text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.65rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-align: center;
  text-wrap: balance;
  color: var(--white);
}

.ec-partners__brand {
  font-style: italic;
}

.ec-partners__brand-danc {
  color: var(--white);
}

.ec-partners__brand-r {
  color: var(--orange);
}

.ec-partners__accent {
  font-style: italic;
  font-weight: 900;
  color: var(--blue);
}

/* ── Prix ── */
.ec-price {
  background: var(--white);
}

.ec-price__title {
  max-width: 16ch;
  margin-bottom: var(--space-2xl);
}

.ec-price__grid {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 20px 48px -24px rgba(26, 26, 26, 0.08);
}

@media (min-width: 880px) {
  .ec-price__grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.ec-price__col {
  padding: clamp(2.5rem, 5vw, 4rem);
}

.ec-price__col--left {
  border-bottom: 1px solid var(--grey-200);
}

@media (min-width: 880px) {
  .ec-price__col--left {
    border-right: 1px solid var(--grey-200);
    border-bottom: 0;
  }
}

.ec-price__col-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-lg);
}

.ec-price__amount {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4rem, 10vw, 7rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--anthracite);
  margin-bottom: var(--space-xs);
}

.ec-price__amount-unit {
  font-size: 0.32em;
  font-weight: 600;
  color: var(--grey-500);
}

.ec-price__details {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0 var(--space-xl);
}

.ec-price__details li {
  padding: 0.875rem 0;
  border-top: 1px solid var(--grey-200);
  font-size: 1rem;
  color: var(--grey-700);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ec-price__details li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* Paiements — colonne droite */
.ec-price__payments {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.ec-price__payment-option {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--grey-200);
  background: var(--off-white);
}

.ec-price__payment-option--yours {
  border-style: dashed;
  background: var(--white);
}

.ec-price__payment-option--dancr {
  border-color: rgba(94, 197, 255, 0.45);
  background: rgba(94, 197, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(94, 197, 255, 0.12);
}

.ec-price__payment-option-kicker {
  display: block;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 0.45rem;
}

.ec-price__payment-option--dancr .ec-price__payment-option-kicker {
  color: var(--blue);
}

.ec-price__payment-option-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--anthracite);
}

.ec-price__payment-option-text strong {
  font-weight: 700;
}

.ec-price__payment-badge {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--anthracite);
  background: var(--blue);
}

.ec-price__payments-or {
  align-self: center;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-400);
}

.ec-price__col-block {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--grey-200);
}

.ec-price__onboard-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--anthracite);
  margin-bottom: var(--space-md);
}

.ec-price__onboard-body {
  font-size: 1rem;
  color: var(--grey-700);
  line-height: 1.55;
  margin-bottom: var(--space-lg);
}

/* ── FAQ ── */
.ec-faq__title {
  max-width: 14ch;
  margin-bottom: var(--space-2xl);
}

.ec-faq__list {
  border-top: 1px solid var(--grey-200);
}

.ec-faq__item {
  border-bottom: 1px solid var(--grey-200);
}

.ec-faq__item[open] {
  background: rgba(94, 197, 255, 0.04);
}

.ec-faq__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--anthracite);
  transition: color 0.2s;
}

.ec-faq__summary::-webkit-details-marker {
  display: none;
}

.ec-faq__summary:hover {
  color: var(--blue);
}

.ec-faq__chevron {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-out), background 0.2s, border-color 0.2s;
}

.ec-faq__item[open] .ec-faq__chevron {
  transform: rotate(45deg);
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.ec-faq__answer {
  padding: 0 0 1.75rem;
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--grey-700);
}

.ec-faq__answer p + p {
  margin-top: 0.875rem;
}

.ec-faq__answer strong {
  color: var(--anthracite);
  font-weight: 600;
}

.ec-faq__cta {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--grey-200);
  text-align: center;
}

.ec-faq__cta-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--anthracite);
  margin: 0 auto var(--space-lg);
  max-width: 22ch;
}

.ec-faq__cta .hero-cta {
  justify-content: center;
}

/* Reveal */
@media (prefers-reduced-motion: no-preference) {
  .page-ecoles-main .ec-reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: ec-reveal 0.85s var(--ease-out) forwards;
    animation-play-state: paused;
  }

  .page-ecoles-main .ec-reveal--play {
    animation-play-state: running;
  }
}

@keyframes ec-reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Mode sombre ── */
html.theme-dark body.page-ecoles {
  background: var(--page-bg, #0a0a0a);
  color: var(--text-primary, #f5f5f0);
}

html.theme-dark .page-ecoles-main .section-eyebrow--ecole {
  color: var(--blue);
}

html.theme-dark .page-ecoles-main .section-title,
html.theme-dark .page-ecoles-main .ec-moment__heading,
html.theme-dark .page-ecoles-main .ec-faq__cta-headline,
html.theme-dark .page-ecoles-main .ec-price__amount {
  color: var(--text-primary, #f5f5f0);
}

html.theme-dark .page-ecoles-main .section-lead,
html.theme-dark .page-ecoles-main .ec-moment__body,
html.theme-dark .page-ecoles-main .ec-price__onboard-body,
html.theme-dark .page-ecoles-main .ec-faq__answer,
html.theme-dark .page-ecoles-main .ec-price__details li {
  color: var(--text-secondary, rgba(245, 245, 240, 0.78));
}

/* Aligné sur hero-ecoles.css — noir #000 au bord bas de l’image */
html.theme-dark .ec-hero__scrim {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.22) 42%,
    rgba(0, 0, 0, 0.52) 68%,
    rgba(0, 0, 0, 0.78) 82%,
    #000000 100%
  );
}

html.theme-dark .ec-moment {
  border-top-color: var(--border, rgba(255, 255, 255, 0.1));
}

html.theme-dark .ec-moment__number {
  color: rgba(255, 255, 255, 0.12);
}

html.theme-dark .ec-partners {
  background: var(--anthracite);
  border-color: transparent;
}

html.theme-dark .ec-partners__text {
  color: var(--white);
}

html.theme-dark .ec-price {
  background: var(--page-bg, #0a0a0a);
}

html.theme-dark .ec-price__grid {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border, rgba(255, 255, 255, 0.12));
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.45);
}

html.theme-dark .ec-price__onboard-title {
  color: var(--text-primary, #f5f5f0);
}

html.theme-dark .ec-price__amount-unit {
  color: var(--text-secondary, rgba(245, 245, 240, 0.55));
}

html.theme-dark .ec-price__payment-option--yours {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border, rgba(255, 255, 255, 0.18));
}

html.theme-dark .ec-price__payment-option--dancr {
  background: rgba(94, 197, 255, 0.1);
  border-color: rgba(94, 197, 255, 0.35);
}

html.theme-dark .ec-price__payment-option-text {
  color: var(--text-primary, #f5f5f0);
}

html.theme-dark .ec-price__payment-badge {
  color: var(--anthracite);
}

html.theme-dark .ec-price__col-block {
  border-top-color: var(--border, rgba(255, 255, 255, 0.12));
}

html.theme-dark .ec-floating-card {
  background: rgba(26, 26, 26, 0.5);
  border-color: rgba(255, 255, 255, 0.12);
}

html.theme-dark .ec-floating-card__label {
  color: rgba(255, 255, 255, 0.72);
}

html.theme-dark .ec-floating-card__value {
  color: var(--white);
}

html.theme-dark .page-ecoles-main .ec-moment__media .media-placeholder {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border, rgba(255, 255, 255, 0.14));
}

html.theme-dark .page-ecoles-main .btn-link--ecole {
  color: var(--text-primary);
}

html.theme-dark .page-ecoles-main .btn-link--ecole:hover {
  color: var(--blue);
}

html.theme-dark .ec-faq__list,
html.theme-dark .ec-faq__item,
html.theme-dark .ec-faq__cta,
html.theme-dark .ec-price__col--left {
  border-color: var(--border, rgba(255, 255, 255, 0.1));
}

html.theme-dark .ec-faq__summary {
  color: var(--text-primary);
}

html.theme-dark .ec-faq__chevron {
  border-color: var(--border, rgba(255, 255, 255, 0.18));
}
