@charset "UTF-8";

/* ======================================================
   PAGE GLOBALE
====================================================== */

@charset "UTF-8";

body.ek-subject-landing-page {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: #0f172a;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.09), transparent 24%),
    radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.06), transparent 18%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.ek-subject-landing-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 24px auto 64px;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
}

#site-header,
#site-footer {
  width: 100%;
  display: block;
}

body.ek-subject-landing-page > #site-header,
body.ek-subject-landing-page > #site-footer {
  margin: 0;
  padding: 0;
}

body.ek-subject-landing-page > #site-header .fullbar,
body.ek-subject-landing-page > #site-footer .mc-footer {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.ek-subject-landing-page > #site-footer .mc-footer {
  border-radius: 0 !important;
  margin-top: 0 !important;
}

body.ek-subject-landing-page > #site-footer,
body.ek-subject-landing-page > #site-footer * {
  box-sizing: border-box;
}
/* ======================================================
   HERO
====================================================== */

.ek-subject-hero {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 30px;
  padding: 34px;
  border-radius: 32px;
  margin-bottom: 24px;
  border: 1.5px solid #c8d4e3;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  overflow: hidden;
  position: relative;
}

.ek-subject-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.05);
  pointer-events: none;
}

.ek-subject-hero__content {
  position: relative;
  z-index: 1;
}

.ek-subject-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.ek-subject-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.ek-subject-hero__subtitle {
  margin: 0 0 12px;
  color: #1d4ed8;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
}

.ek-subject-hero__description {
  margin: 0 0 24px;
  max-width: 780px;
  color: #475569;
  font-size: 16px;
  line-height: 1.8;
}

.ek-subject-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ======================================================
   HERO VISUAL
====================================================== */

.ek-subject-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ek-subject-hero-card {
  width: min(100%, 390px);
  min-height: 340px;
  border-radius: 30px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
  border: 1.5px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ek-subject-hero-card::before {
  content: "";
  position: absolute;
  inset: auto auto -40px -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.07);
}

.ek-subject-hero-card__emoji {
  font-size: 92px;
  position: relative;
  z-index: 1;
}

.ek-subject-hero-card__img {
  width: 78%;
  max-height: 255px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* ======================================================
   BOUTONS PREMIUM
====================================================== */

.ek-btn-primary,
.ek-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 15px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.01em;
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    background .16s ease,
    border-color .16s ease,
    color .16s ease;
}

.ek-btn-primary {
  background: linear-gradient(180deg, #4f8df7 0%, #2f6cf0 44%, #1d4ed8 100%);
  color: #fff;
  border: 1px solid #1e4fd0;
  box-shadow:
    0 10px 0 rgba(29, 78, 216, .22),
    0 16px 24px rgba(37, 99, 235, .22);
}

.ek-btn-primary:hover {
  transform: translateY(5px);
  box-shadow:
    0 5px 0 rgba(29, 78, 216, .18),
    0 10px 18px rgba(37, 99, 235, .18);
}

.ek-btn-secondary {
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  color: #2563eb;
  border: 1.5px solid #adc1de;
  box-shadow:
    0 10px 0 rgba(148, 163, 184, .18),
    0 14px 24px rgba(15, 23, 42, .08);
}

.ek-btn-secondary:hover {
  transform: translateY(5px);
  box-shadow:
    0 5px 0 rgba(148, 163, 184, .14),
    0 9px 16px rgba(15, 23, 42, .06);
  background: linear-gradient(180deg, #ffffff 0%, #ecf4ff 100%);
  color: #1e3a8a;
  border-color: #93aed2;
}

/* ======================================================
   SECTIONS
====================================================== */

.ek-subject-section {
  margin-bottom: 24px;
}

.ek-subject-section__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ek-section-head {
  margin-bottom: 16px;
}

.ek-section-head h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.ek-section-head p {
  margin: 0;
  color: #475569;
  line-height: 1.75;
}

/* ======================================================
   CARTES INFOS
====================================================== */

.ek-info-card {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.97);
  border: 1.5px solid #c8d4e3;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.ek-info-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}

.ek-info-card__badge--alt {
  background: #eefdf3;
  color: #15803d;
}

.ek-info-card h2 {
  margin: 12px 0 10px;
  color: #0f172a;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.ek-info-card p {
  margin: 0;
  color: #475569;
  line-height: 1.78;
}

/* ======================================================
   FEATURE LIST
====================================================== */

.ek-feature-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.ek-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff, #f8fbff);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.ek-feature-item__icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
  flex: 0 0 34px;
}

/* ======================================================
   FORMAT GRID
====================================================== */

.ek-format-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.ek-format-card {
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1.5px solid #c8d4e3;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ek-format-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.06);
}

.ek-format-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: #eff6ff;
  margin-bottom: 14px;
}

.ek-format-card h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 20px;
}

.ek-format-card p {
  margin: 0;
  color: #475569;
  line-height: 1.72;
}

/* ======================================================
   LEVELS — SANS VISUEL
====================================================== */

.ek-levels-stack {
  display: grid;
  gap: 18px;
}

.ek-level-card {
  display: block;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  border: 1.5px solid #c8d4e3;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ek-level-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.ek-level-card__content {
  width: 100%;
}

.ek-level-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.ek-level-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.ek-level-card h3 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.ek-level-card p {
  margin: 0;
  color: #475569;
  line-height: 1.78;
}

.ek-level-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
}

.ek-topic-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.ek-level-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ======================================================
   TRUST
====================================================== */

.ek-trust-box {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 20px;
  padding: 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  border: 1.5px solid #c8d4e3;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.ek-trust-box h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.ek-trust-box p {
  margin: 0;
  color: #475569;
  line-height: 1.8;
}

.ek-trust-box__right {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.ek-trust-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}

/* ======================================================
   NOUS REJOINDRE
====================================================== */

.ek-join-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ek-join-card {
  display: block;
  text-decoration: none;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1.5px solid #c8d4e3;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
  transition: transform .18s ease, box-shadow .18s ease;
}

.ek-join-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.09);
}

.ek-join-card__image {
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #eff6ff, #f8fbff);
}

.ek-join-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ek-join-card__body {
  padding: 18px;
}

.ek-join-card__body h3 {
  margin: 12px 0 8px;
  font-size: 22px;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.ek-join-card__body p {
  margin: 0;
  color: #475569;
  line-height: 1.72;
}

/* ======================================================
   LOADING
====================================================== */

.ek-loading-card,
.ek-loading-line {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff, #f7fbff);
  color: #64748b;
  border: 1px dashed rgba(148, 163, 184, 0.28);
}

/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 1100px) {
  .ek-format-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ek-trust-box {
    grid-template-columns: 1fr;
  }

  .ek-join-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .ek-subject-hero,
  .ek-subject-section__grid {
    grid-template-columns: 1fr;
  }

  .ek-subject-hero {
    padding: 24px;
  }

  .ek-format-grid {
    grid-template-columns: 1fr;
  }

  .ek-subject-hero h1 {
    font-size: 38px;
  }

  .ek-level-card h3,
  .ek-info-card h2,
  .ek-trust-box h2 {
    font-size: 24px;
  }
}

@media (max-width: 576px) {
  .ek-subject-landing-wrap {
    width: min(1180px, calc(100% - 28px));
  }

  .ek-subject-hero,
  .ek-info-card,
  .ek-level-card,
  .ek-trust-box,
  .ek-format-card,
  .ek-join-card__body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .ek-subject-hero h1 {
    font-size: 32px;
  }
}

@media (max-width: 576px) {
  .ek-subject-landing-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }
}


/* ======================================================
   ALIGNEMENT EXACT AVEC INDEX
====================================================== */

body.ek-subject-landing-page > #site-header,
body.ek-subject-landing-page > #site-footer {
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
}

body.ek-subject-landing-page > #site-header .fullbar,
body.ek-subject-landing-page > #site-footer .mc-footer {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.ek-subject-landing-page > #site-footer .mc-footer {
  border-radius: 0 !important;
  margin-top: 0 !important;
}

/* Le contenu matière suit exactement la grille d'index */
.ek-subject-landing-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 24px auto 64px;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
}

@media (max-width: 576px) {
  .ek-subject-landing-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* =========================================
   SECTION NOUS REJOINDRE
========================================= */

.ek-join-section {
  margin-top: 32px;
}

.ek-join-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 22px;
}

/* CARD */
.ek-join-card {
  display: block;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e2e8f0;

  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: all 0.25s ease;
}

/* HOVER PREMIUM */
.ek-join-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

/* IMAGE */
.ek-join-card__img {
  height: 180px;
  overflow: hidden;
  background: #f1f5f9;
}

.ek-join-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CONTENT */
.ek-join-card__content {
  padding: 18px 18px 20px;
}

.ek-join-card__content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ek-join-card__content p {
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

/* BADGE */
.ek-join-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e0edff;
  color: #1d4ed8;
  margin-bottom: 8px;
}

.ek-join-badge--alt {
  background: #ede9fe;
  color: #7c3aed;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 992px) {
  .ek-join-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .ek-join-grid {
    grid-template-columns: 1fr;
  }

  .ek-join-card__img {
    height: 160px;
  }
}






/* =========================================
   SECTION NOUS REJOINDRE — WOW PREMIUM
========================================= */

.ek-join-section {
  margin-top: 38px;
}

.ek-join-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.ek-join-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,251,255,0.98));
  border: 1.5px solid #dbe4ef;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.07),
    0 1px 0 rgba(255,255,255,0.7) inset;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.ek-join-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.06);
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.ek-join-card:hover {
  transform: translateY(-8px);
  border-color: #bfd3f2;
  box-shadow:
    0 24px 50px rgba(15, 23, 42, 0.13),
    0 0 0 1px rgba(37, 99, 235, 0.05);
}

.ek-join-card:hover::after {
  transform: scale(1.15);
  opacity: 1;
}

.ek-join-card__img {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #eef4ff;
}

.ek-join-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.ek-join-card:hover .ek-join-card__img img {
  transform: scale(1.06);
}

.ek-join-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15,23,42,0.02) 0%,
    rgba(15,23,42,0.10) 60%,
    rgba(15,23,42,0.18) 100%
  );
  pointer-events: none;
}

.ek-join-card__content {
  position: relative;
  padding: 20px 20px 22px;
}

.ek-join-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.ek-join-badge--alt {
  background: #efe9ff;
  color: #6d28d9;
}

.ek-join-card__content h3 {
  margin: 0 0 9px;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.ek-join-card__content p {
  margin: 0 0 14px;
  font-size: 14px;
  color: #475569;
  line-height: 1.65;
}

.ek-join-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.22s ease, color 0.22s ease;
}

.ek-join-card:hover .ek-join-link {
  transform: translateX(4px);
  color: #1e40af;
}

/* variations très légères par profil */
.ek-join-card--prof .ek-join-card__img {
  background: linear-gradient(135deg, #eff6ff, #f8fbff);
}

.ek-join-card--eleve .ek-join-card__img {
  background: linear-gradient(135deg, #eef2ff, #f8fbff);
}

.ek-join-card--parent .ek-join-card__img {
  background: linear-gradient(135deg, #f0fdf4, #f8fbff);
}

/* glow subtil */
.ek-join-card--prof:hover {
  box-shadow:
    0 24px 50px rgba(15, 23, 42, 0.13),
    0 0 30px rgba(37, 99, 235, 0.12);
}

.ek-join-card--eleve:hover {
  box-shadow:
    0 24px 50px rgba(15, 23, 42, 0.13),
    0 0 30px rgba(109, 40, 217, 0.10);
}

.ek-join-card--parent:hover {
  box-shadow:
    0 24px 50px rgba(15, 23, 42, 0.13),
    0 0 30px rgba(34, 197, 94, 0.10);
}

/* responsive */
@media (max-width: 1100px) {
  .ek-join-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .ek-join-card__img {
    height: 180px;
  }

  .ek-join-card__content {
    padding: 18px;
  }

  .ek-join-card__content h3 {
    font-size: 19px;
  }
}


/* =========================================
   SECTION NOUS REJOINDRE — ULTRA PREMIUM
========================================= */

.ek-join-section--ultra {
  position: relative;
  margin-top: 44px;
  padding: 30px 24px 10px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.10), transparent 22%),
    radial-gradient(circle at bottom right, rgba(109,40,217,.08), transparent 20%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(246,250,255,.96));
  border: 1.5px solid #dbe4ef;
  box-shadow:
    0 20px 50px rgba(15,23,42,.07),
    inset 0 1px 0 rgba(255,255,255,.8);
  overflow: hidden;
}

.ek-join-section--ultra::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(37,99,235,.06);
  pointer-events: none;
}

.ek-section-head--center {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 22px;
}

.ek-join-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 12px;
}

.ek-section-head--center h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.ek-section-head--center p {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.75;
}

.ek-join-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.ek-join-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,251,255,.98));
  border: 1.5px solid #dbe4ef;
  border-radius: 26px;
  overflow: hidden;
  box-shadow:
    0 14px 32px rgba(15,23,42,.07),
    inset 0 1px 0 rgba(255,255,255,.7);
  transition:
    transform .28s ease,
    box-shadow .28s ease,
    border-color .28s ease,
    filter .28s ease;
  will-change: transform;
}

.ek-join-card::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -35px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(37,99,235,.06);
  pointer-events: none;
  transition: transform .28s ease, opacity .28s ease;
}

.ek-join-card:hover {
  transform: translateY(-9px) scale(1.012);
  border-color: #bfd3f2;
  box-shadow:
    0 26px 56px rgba(15,23,42,.14),
    0 0 0 1px rgba(37,99,235,.05);
  filter: saturate(1.02);
}

.ek-join-card:hover::after {
  transform: scale(1.18);
}

.ek-join-card__img {
  position: relative;
  height: 225px;
  overflow: hidden;
  background: #eef4ff;
}

.ek-join-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.ek-join-card:hover .ek-join-card__img img {
  transform: scale(1.07);
}

.ek-join-card__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(15,23,42,0.02) 0%,
      rgba(15,23,42,0.10) 62%,
      rgba(15,23,42,0.18) 100%);
  pointer-events: none;
}

.ek-join-card__content {
  position: relative;
  padding: 22px 20px 22px;
}

.ek-join-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #e8f0ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .01em;
  margin-bottom: 10px;
}

.ek-join-badge--alt {
  background: #efe9ff;
  color: #6d28d9;
}

.ek-join-card__content h3 {
  margin: 0 0 9px;
  font-size: 22px;
  line-height: 1.18;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.02em;
}

.ek-join-card__content p {
  margin: 0 0 14px;
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
}

.ek-join-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 800;
  transition: transform .22s ease, color .22s ease;
}

.ek-join-card:hover .ek-join-link {
  transform: translateX(4px);
  color: #1e40af;
}

/* Variantes de glow par profil */
.ek-join-card--prof .ek-join-card__img {
  background: linear-gradient(135deg, #eff6ff, #f8fbff);
}

.ek-join-card--eleve .ek-join-card__img {
  background: linear-gradient(135deg, #eef2ff, #f8fbff);
}

.ek-join-card--parent .ek-join-card__img {
  background: linear-gradient(135deg, #f0fdf4, #f8fbff);
}

.ek-join-card--prof:hover {
  box-shadow:
    0 26px 56px rgba(15,23,42,.14),
    0 0 36px rgba(37,99,235,.13);
}

.ek-join-card--eleve:hover {
  box-shadow:
    0 26px 56px rgba(15,23,42,.14),
    0 0 36px rgba(109,40,217,.11);
}

.ek-join-card--parent:hover {
  box-shadow:
    0 26px 56px rgba(15,23,42,.14),
    0 0 36px rgba(34,197,94,.11);
}

/* Reveal simple si classes déjà présentes */
.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  animation: ekJoinReveal .7s ease forwards;
}

.reveal-delay-1 { animation-delay: .08s; }
.reveal-delay-2 { animation-delay: .18s; }
.reveal-delay-3 { animation-delay: .28s; }

@keyframes ekJoinReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .ek-join-grid {
    grid-template-columns: 1fr;
  }

  .ek-join-section--ultra {
    padding: 24px 18px 8px;
  }
}

@media (max-width: 576px) {
  .ek-join-card__img {
    height: 185px;
  }

  .ek-join-card__content {
    padding: 18px;
  }

  .ek-join-card__content h3 {
    font-size: 20px;
  }

  .ek-section-head--center h2 {
    font-size: 30px;
  }
}

/* ======================================================
   V6 — UX PLUS COLORÉE, COHÉRENTE AVEC LES PAGES CLASSES
====================================================== */

body.ek-subject-landing-page {
  --subject-a: #7c3aed;
  --subject-b: #ec4899;
  --subject-c: #f97316;
  --subject-soft: #f4edff;
  --subject-soft-2: #fff0f8;
  --subject-shadow: rgba(124, 58, 237, .22);

  background:
    radial-gradient(circle at 8% 10%, rgba(124, 58, 237, .15), transparent 25%),
    radial-gradient(circle at 92% 18%, rgba(236, 72, 153, .11), transparent 24%),
    radial-gradient(circle at 72% 84%, rgba(249, 115, 22, .10), transparent 23%),
    linear-gradient(180deg, #fbf7ff 0%, #f2f7ff 48%, #fff8f3 100%);
}

body.theme-maths {
  --subject-a: #ff8a00;
  --subject-b: #ff5d5d;
  --subject-c: #ffb020;
  --subject-soft: #fff5df;
  --subject-soft-2: #fff0ea;
  --subject-shadow: rgba(255, 138, 0, .24);
}

body.theme-francais {
  --subject-a: #8b5cf6;
  --subject-b: #ec4899;
  --subject-c: #f97316;
}

body.theme-anglais {
  --subject-a: #2563eb;
  --subject-b: #06b6d4;
  --subject-c: #22c55e;
  --subject-soft: #eaf2ff;
  --subject-soft-2: #ebfbff;
  --subject-shadow: rgba(37, 99, 235, .23);
}

body.theme-histoire {
  --subject-a: #d97706;
  --subject-b: #f59e0b;
  --subject-c: #14b8a6;
  --subject-soft: #fff5de;
  --subject-soft-2: #edfffb;
  --subject-shadow: rgba(217, 119, 6, .23);
}

body.theme-sciences,
body.theme-svt,
body.theme-physique {
  --subject-a: #0f9f7a;
  --subject-b: #06b6d4;
  --subject-c: #8b5cf6;
  --subject-soft: #e9fff7;
  --subject-soft-2: #edfbff;
  --subject-shadow: rgba(15, 159, 122, .23);
}

.ek-subject-landing-wrap {
  max-width: 1220px;
}

.ek-subject-hero {
  min-height: 450px;
  padding: 44px;
  border: 0;
  border-radius: 36px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.18), transparent 16%),
    radial-gradient(circle at 87% 20%, rgba(255,255,255,.20), transparent 20%),
    linear-gradient(120deg, var(--subject-b), var(--subject-a) 54%, var(--subject-c));
  box-shadow:
    0 26px 60px var(--subject-shadow),
    inset 0 1px 0 rgba(255,255,255,.28);
}

.ek-subject-hero::after {
  right: -55px;
  top: -75px;
  width: 270px;
  height: 270px;
  background: rgba(255,255,255,.12);
}

.ek-subject-hero::before {
  content: "";
  position: absolute;
  left: 38%;
  bottom: -160px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,.11);
}

.ek-subject-badge {
  color: #fff;
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.26);
  backdrop-filter: blur(8px);
}

.ek-subject-hero h1,
.ek-subject-hero__subtitle,
.ek-subject-hero__description {
  color: #fff;
}

.ek-subject-hero__description {
  color: rgba(255,255,255,.91);
}

.ek-subject-hero-card {
  min-height: 350px;
  border: 1px solid rgba(255,255,255,.35);
  background:
    radial-gradient(circle at 75% 15%, rgba(255,255,255,.98), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.89), rgba(238,247,255,.81));
  box-shadow: 0 24px 44px rgba(15,23,42,.18);
}

.ek-subject-hero-card__emoji {
  font-size: 116px;
}

.ek-subject-hero .ek-btn-primary,
.ek-subject-hero .ek-btn-secondary {
  min-height: 54px;
  border-radius: 17px;
}

.ek-subject-hero .ek-btn-primary {
  color: var(--subject-a);
  background: #fff;
  border: 0;
  box-shadow:
    0 9px 0 rgba(50, 22, 90, .18),
    0 16px 26px rgba(36, 15, 68, .18);
}

.ek-subject-hero .ek-btn-secondary {
  color: #fff;
  background: rgba(255,255,255,.17);
  border: 1.5px solid rgba(255,255,255,.54);
  backdrop-filter: blur(8px);
  box-shadow:
    0 9px 0 rgba(50, 22, 90, .15),
    0 16px 26px rgba(36, 15, 68, .14);
}

.ek-info-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border: 0;
  background:
    radial-gradient(circle at 100% 0, rgba(255,255,255,.92), transparent 28%),
    linear-gradient(145deg, #fff, var(--subject-soft));
  box-shadow:
    0 20px 42px rgba(15,23,42,.09),
    inset 0 0 0 1px rgba(148,163,184,.22);
}

.ek-info-card:nth-child(2) {
  background:
    radial-gradient(circle at 100% 0, rgba(255,255,255,.92), transparent 28%),
    linear-gradient(145deg, #fff, var(--subject-soft-2));
}

.ek-info-card__badge {
  color: var(--subject-a);
  background: rgba(255,255,255,.78);
}

.ek-feature-item {
  border: 0;
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 0 0 1px rgba(148,163,184,.18);
}

.ek-feature-item__icon {
  background: #fff;
  color: var(--subject-a);
  font-size: 18px;
}

.ek-format-card {
  min-height: 210px;
  border: 0;
  background: linear-gradient(145deg, #fff, var(--subject-soft));
  box-shadow:
    0 16px 34px rgba(15,23,42,.08),
    inset 0 0 0 1px rgba(148,163,184,.20);
}

.ek-format-card:nth-child(2) {
  background: linear-gradient(145deg, #fff, #fff1f7);
}

.ek-format-card:nth-child(3) {
  background: linear-gradient(145deg, #fff, #fff6e6);
}

.ek-format-card:nth-child(4) {
  background: linear-gradient(145deg, #fff, #eafbf1);
}

.ek-format-card__icon {
  width: 64px;
  height: 64px;
  font-size: 30px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
}

.ek-level-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  color: #fff;
  background:
    linear-gradient(120deg, var(--subject-b), var(--subject-a) 54%, var(--subject-c));
  box-shadow:
    0 22px 46px var(--subject-shadow),
    inset 0 1px 0 rgba(255,255,255,.25);
}

.ek-level-card__bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
}

.ek-level-card__bubble--one {
  width: 180px;
  height: 180px;
  top: -72px;
  right: 17%;
}

.ek-level-card__bubble--two {
  width: 110px;
  height: 110px;
  bottom: -48px;
  left: 9%;
}

.ek-level-card__content {
  position: relative;
  z-index: 2;
  padding: 30px;
}

.ek-level-card__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 28px;
  align-items: center;
}

.ek-level-card h3,
.ek-level-card p {
  color: #fff;
}

.ek-level-card p {
  color: rgba(255,255,255,.88);
}

.ek-level-pill,
.ek-topic-chip {
  color: #fff;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.20);
}

.ek-level-card__availability {
  color: #fff;
}

.ek-level-card__availability::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #dcff7c;
  box-shadow: 0 0 0 5px rgba(220,255,124,.17);
}

.ek-level-card__aside {
  min-height: 170px;
  padding: 20px;
  display: grid;
  align-content: center;
  gap: 15px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
}

.ek-level-card__mini-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.95);
  font-size: 31px;
  box-shadow: 0 10px 24px rgba(15,23,42,.10);
}

.ek-level-card__route {
  color: rgba(255,255,255,.84);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ek-level-cta {
  min-height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 17px;
  color: var(--subject-a);
  background: #fff;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  box-shadow:
    0 9px 0 rgba(38,18,67,.18),
    0 16px 26px rgba(38,18,67,.16);
  transition: transform .18s ease, box-shadow .18s ease;
}

.ek-level-cta:hover {
  transform: translateY(5px);
  box-shadow:
    0 4px 0 rgba(38,18,67,.15),
    0 9px 18px rgba(38,18,67,.14);
}

.ek-level-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 30px 60px var(--subject-shadow),
    inset 0 1px 0 rgba(255,255,255,.25);
}

.ek-trust-box {
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 90% 20%, rgba(255,255,255,.17), transparent 22%),
    linear-gradient(120deg, var(--subject-a), var(--subject-b));
  box-shadow: 0 22px 46px var(--subject-shadow);
}

.ek-trust-box h2,
.ek-trust-box p {
  color: #fff;
}

.ek-trust-box p {
  color: rgba(255,255,255,.88);
}

.ek-trust-pill {
  color: #fff;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.20);
}

@media (max-width: 900px) {
  .ek-level-card__main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .ek-subject-hero {
    min-height: auto;
    padding: 28px 20px;
    border-radius: 26px;
  }

  .ek-subject-hero__actions {
    display: grid;
  }

  .ek-subject-hero__actions a {
    width: 100%;
  }

  .ek-info-card {
    min-height: auto;
  }

  .ek-level-card__content {
    padding: 22px 18px;
  }
}
