/*--------------------------------------------------------------
# MaelEnglish — storefront styles (landing, coaching, catalogue)
  Brand: coral « Mael » + royal blue « English » (sampled from the
  logo in /assets/img/Maelenglish). Everything is scoped under
  .me-page so it never leaks into the rest of AfroHK.
--------------------------------------------------------------*/
:root {
  --me-coral: #ff5757;
  --me-coral-dark: #e63e3e;
  --me-coral-soft: #fff0f0;
  --me-blue: #364fab;
  --me-blue-dark: #1f2f73;
  --me-blue-deep: #141f4d;
  --me-blue-soft: #eef1fb;
  --me-ink: #151a33;
  --me-muted: #5b6280;
  --me-line: #e3e7f3;
  --me-bg: #f7f8fd;
  --me-white: #ffffff;
  --me-radius: 20px;
  --me-shadow: 0 18px 40px -18px rgba(31, 47, 115, 0.28);
  --me-font-display: "Archivo", "Outfit", system-ui, sans-serif;
  --me-font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.me-page {
  background: var(--me-white);
  color: var(--me-ink);
  font-family: var(--me-font-body);
  overflow-x: hidden;
}

.me-page h1,
.me-page h2,
.me-page h3,
.me-page h4 {
  font-family: var(--me-font-display);
  color: var(--me-ink);
  letter-spacing: -0.01em;
}

.me-page a { text-decoration: none; }

.me-section {
  padding: 96px 0;
  position: relative;
}

.me-section--tint { background: var(--me-bg); }

.me-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.me-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 14px 0 14px;
}

.me-head p {
  color: var(--me-muted);
  font-size: 1.1rem;
  margin: 0;
}

/* The logo's « bar + toggle » motif, used as a section kicker */
.me-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--me-font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--me-coral);
}

.me-pill::before {
  content: "";
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: var(--me-coral);
}

.me-pill::after {
  content: "";
  width: 18px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 70% 50%, #fff 0 2.5px, var(--me-coral) 3px);
}

.me-pill--light { color: #fff; }
.me-pill--light::before { background: #fff; }
.me-pill--light::after { background: radial-gradient(circle at 70% 50%, var(--me-blue-dark) 0 2.5px, #fff 3px); }

/* Buttons */
.me-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--me-font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.me-btn:hover { transform: translateY(-2px); }
.me-btn:focus-visible { outline: 3px solid rgba(54, 79, 171, 0.35); outline-offset: 3px; }

.me-btn--coral {
  background: var(--me-coral);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(255, 87, 87, 0.65);
}

.me-btn--coral:hover { background: var(--me-coral-dark); color: #fff; }

.me-btn--outline {
  background: #fff;
  color: var(--me-blue);
  border-color: var(--me-blue);
}

.me-btn--outline:hover { background: var(--me-blue); color: #fff; }

.me-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.me-btn--ghost:hover { background: #fff; color: var(--me-blue-dark); }

.me-btn--wa i { font-size: 1.15rem; }

/* ── Hero ─────────────────────────────────────────────── */
.me-hero {
  position: relative;
  padding: 150px 0 96px;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(54, 79, 171, 0.10), transparent 60%),
    radial-gradient(700px 380px at 0% 100%, rgba(255, 87, 87, 0.10), transparent 60%),
    var(--me-bg);
  overflow: hidden;
}

/* Faint « city grid » lines echoing the logo background */
.me-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(54, 79, 171, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 79, 171, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}

.me-hero .container { position: relative; z-index: 1; }

.me-hero__logo {
  display: block;
  width: min(360px, 78%);
  height: auto;
  margin: 0 0 28px;
}

.me-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 22px;
  color: var(--me-blue-dark);
}

.me-hero h1 em {
  font-style: normal;
  color: var(--me-coral);
}

.me-hero__lead {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--me-muted);
  max-width: 560px;
  margin: 0 0 32px;
}

.me-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.me-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
  color: var(--me-muted);
  font-size: 0.95rem;
}

.me-hero__proof span { display: inline-flex; align-items: center; gap: 8px; }
.me-hero__proof i { color: var(--me-blue); font-size: 1.1rem; }

/* Conversation cards: real workplace sentences */
.me-chat {
  position: relative;
  display: grid;
  gap: 16px;
  max-width: 460px;
  margin-left: auto;
}

.me-chat__card {
  background: #fff;
  border: 1px solid var(--me-line);
  border-radius: var(--me-radius);
  box-shadow: var(--me-shadow);
  padding: 18px 20px;
  animation: meFloat 6s ease-in-out infinite;
}

.me-chat__card:nth-child(2) { margin-left: 44px; animation-delay: -2s; }
.me-chat__card:nth-child(3) { margin-right: 30px; animation-delay: -4s; }

.me-chat__role {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--me-blue);
  margin-bottom: 8px;
}

.me-chat__role i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--me-blue-soft);
  font-size: 0.95rem;
}

.me-chat__en {
  font-family: var(--me-font-display);
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--me-ink);
  margin: 0 0 4px;
}

.me-chat__fr {
  font-size: 0.9rem;
  color: var(--me-muted);
  margin: 0;
}

.me-chat__card:nth-child(2) .me-chat__role { color: var(--me-coral); }
.me-chat__card:nth-child(2) .me-chat__role i { background: var(--me-coral-soft); }

@keyframes meFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Landing hero visual: photo + floating phrase cards */
.me-visual {
  position: relative;
  max-width: 470px;
  margin-left: auto;
  padding: 24px 0 40px;
}

.me-visual__photo {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--me-shadow);
}

.me-visual__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
}

.me-visual__card {
  position: absolute;
  max-width: 300px;
}

.me-visual__card--top { left: -40px; top: 0; }
.me-visual__card--bottom { right: -24px; bottom: 0; animation-delay: -3s; }
.me-visual__card--bottom .me-chat__role { color: var(--me-coral); }
.me-visual__card--bottom .me-chat__role i { background: var(--me-coral-soft); }

/* ── Professions ──────────────────────────────────────── */
.me-jobs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.me-jobs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.me-job {
  background: #fff;
  border: 1px solid var(--me-line);
  border-radius: var(--me-radius);
  padding: 26px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.me-job.me-job--photo { overflow: hidden; padding-top: 0; }

.me-job__media {
  margin: 0 -24px 0;
  height: 170px;
  overflow: hidden;
}

.me-job__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.me-job:hover .me-job__media img { transform: scale(1.05); }

.me-job--photo .me-job__icon {
  position: relative;
  margin-top: -26px;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px -8px rgba(31, 47, 115, 0.5);
}

.me-job--photo:nth-child(even) .me-job__icon { background: #fff; }

.me-job:hover {
  transform: translateY(-4px);
  box-shadow: var(--me-shadow);
  border-color: transparent;
}

.me-job__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  background: var(--me-blue-soft);
  color: var(--me-blue);
  margin-bottom: 16px;
}

.me-job:nth-child(even) .me-job__icon { background: var(--me-coral-soft); color: var(--me-coral); }

.me-job h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.me-job ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  color: var(--me-muted);
}

.me-job li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.me-job li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 4px;
  border-radius: 999px;
  background: var(--me-coral);
}

.me-job__quote {
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed var(--me-line);
  font-style: italic;
  color: var(--me-blue-dark);
  font-weight: 600;
}

/* ── Offers ───────────────────────────────────────────── */
.me-offers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.me-offer {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--me-radius);
  border: 1px solid var(--me-line);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.me-offer:hover { transform: translateY(-4px); box-shadow: var(--me-shadow); }

.me-offer__media {
  position: relative;
  height: 190px;
  background: var(--me-blue-soft);
  overflow: hidden;
}

.me-offer__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.me-offer__media--challenge {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.10) 0 1px, transparent 1px 48px),
    linear-gradient(135deg, var(--me-blue) 0%, var(--me-blue-dark) 100%);
  color: #fff;
}

.me-offer__days {
  display: grid;
  grid-template-columns: repeat(5, 38px);
  gap: 8px;
}

.me-offer__days span {
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.14);
}

.me-offer__days span.is-done { background: var(--me-coral); }
.me-offer__days span.is-today { background: #fff; color: var(--me-blue-dark); }

.me-offer__tag {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--me-blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.me-offer__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.me-offer__body h3 {
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0 0 4px;
}

.me-offer__sub {
  color: var(--me-coral);
  font-weight: 700;
  margin: 0 0 12px;
}

.me-offer__body p { color: var(--me-muted); margin: 0 0 16px; }

.me-offer__body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.me-offer__body li {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--me-ink);
}

.me-offer__body li i { color: var(--me-blue); }

.me-offer__body .me-btn { margin-top: auto; align-self: flex-start; }

/* ── Method ───────────────────────────────────────────── */
.me-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  counter-reset: step;
  position: relative;
}

.me-steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 12%;
  right: 12%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--me-coral) 0%, var(--me-coral) 60%, var(--me-blue) 100%);
  opacity: 0.25;
}

.me-step {
  position: relative;
  text-align: center;
  padding: 0 8px;
}

.me-step__num {
  counter-increment: step;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 3px solid var(--me-coral);
  color: var(--me-coral);
  font-family: var(--me-font-display);
  font-weight: 900;
  font-size: 1.35rem;
  position: relative;
  z-index: 1;
}

.me-step__num::before { content: counter(step); }
.me-step:nth-child(n+3) .me-step__num { border-color: var(--me-blue); color: var(--me-blue); }

.me-step h3 { font-size: 1.12rem; font-weight: 800; margin: 0 0 8px; }
.me-step p { color: var(--me-muted); margin: 0; }

/* ── Stats band ───────────────────────────────────────── */
.me-stats {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 64px),
    linear-gradient(120deg, var(--me-blue-dark) 0%, var(--me-blue) 100%);
  color: #fff;
  padding: 64px 0;
}

.me-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  text-align: center;
}

.me-stats__value {
  font-family: var(--me-font-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
}

.me-stats__value span { color: var(--me-coral); }

.me-stats__label {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

/* ── Testimonials ─────────────────────────────────────── */
.me-quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.me-quote {
  background: #fff;
  border: 1px solid var(--me-line);
  border-radius: var(--me-radius);
  padding: 28px;
  position: relative;
}

.me-quote::before {
  content: "\201C";
  position: absolute;
  right: 22px;
  top: 4px;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--me-coral);
  opacity: 0.18;
}

.me-quote p {
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 18px;
}

.me-quote__who { display: flex; align-items: center; gap: 12px; }

.me-quote__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--me-blue);
  color: #fff;
  font-weight: 800;
}

.me-quote:nth-child(even) .me-quote__avatar { background: var(--me-coral); }

.me-quote__name { font-weight: 800; }
.me-quote__role { color: var(--me-muted); font-size: 0.9rem; }

/* ── FAQ (coaching page) ──────────────────────────────── */
.me-faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.me-faq details {
  background: #fff;
  border: 1px solid var(--me-line);
  border-radius: 16px;
  padding: 0 22px;
}

.me-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.me-faq summary::-webkit-details-marker { display: none; }

.me-faq summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--me-coral);
  transition: transform 0.2s ease;
}

.me-faq details[open] summary::after { transform: rotate(45deg); }
.me-faq details p { color: var(--me-muted); margin: 0 0 18px; }

/* ── Final CTA ────────────────────────────────────────── */
.me-cta {
  padding: 0 0 96px;
}

.me-cta__box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 56px;
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(255, 87, 87, 0.35), transparent 60%),
    linear-gradient(120deg, var(--me-blue-deep) 0%, var(--me-blue-dark) 55%, var(--me-blue) 100%);
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}

.me-cta__box img { width: min(320px, 100%); height: auto; margin-bottom: 18px; }
.me-cta__box h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 900; margin: 0 0 12px; }
.me-cta__box p { color: rgba(255, 255, 255, 0.85); font-size: 1.08rem; margin: 0; }

.me-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

/* ── Programme catalogue (/maelenglish/cours) ─────────── */
.me-hero--dark {
  background:
    radial-gradient(700px 360px at 100% 0%, rgba(255, 87, 87, 0.28), transparent 60%),
    linear-gradient(120deg, var(--me-blue-deep) 0%, var(--me-blue-dark) 55%, var(--me-blue) 100%);
  color: #fff;
}

.me-hero--dark::before { opacity: 0.5; }
.me-hero--dark h1 { color: #fff; }
.me-hero--dark .me-hero__lead { color: rgba(255, 255, 255, 0.86); }
.me-hero--dark .me-hero__proof { color: rgba(255, 255, 255, 0.8); }
.me-hero--dark .me-hero__proof i { color: var(--me-coral); }

.me-hero__logo--light { width: min(300px, 70%); }

.me-progs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* Photo cards: the image bleeds to the card edges */
.me-prog.me-prog--photo { padding-top: 0; overflow: hidden; }

.me-prog__media {
  margin: 0 -24px 18px;
  height: 190px;
  overflow: hidden;
  background: var(--me-blue-soft);
}

.me-prog__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.me-prog:hover .me-prog__media img { transform: scale(1.05); }

.me-prog--photo .me-prog__top { margin-top: -44px; position: relative; }
.me-prog--photo .me-prog__icon { box-shadow: 0 8px 18px -8px rgba(31, 47, 115, 0.5); border: 3px solid #fff; background: #fff; }
.me-prog--photo:nth-child(even) .me-prog__icon { background: #fff; }
.me-prog--photo .me-badge { margin-top: 30px; }

.me-prog__photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 280px;
}

.me-prog__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.me-prog__quote {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  animation: none;
  margin: 0 !important;
}

/* « Votre secteur n'y est pas ? » card → coaching */
.me-prog.me-prog--custom {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  background: linear-gradient(120deg, var(--me-blue-dark) 0%, var(--me-blue) 100%);
  border-color: transparent;
  color: #fff;
}

.me-prog.me-prog--custom > div { flex: 1; }
.me-prog.me-prog--custom .me-prog__summary { margin: 0; }
.me-prog.me-prog--custom .me-prog__more { white-space: nowrap; }

.me-prog.me-prog--custom:hover { color: #fff; }
.me-prog.me-prog--custom .me-prog__icon { background: rgba(255, 255, 255, 0.14) !important; color: #fff !important; }
.me-prog.me-prog--custom .me-prog__brand { color: #fff; }
.me-prog.me-prog--custom .me-prog__tagline { color: #ffd2d2; }
.me-prog.me-prog--custom .me-prog__summary { color: rgba(255, 255, 255, 0.85); }

.me-prog {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--me-line);
  border-radius: var(--me-radius);
  padding: 26px 24px 24px;
  color: var(--me-ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.me-prog:hover {
  transform: translateY(-4px);
  box-shadow: var(--me-shadow);
  border-color: transparent;
  color: var(--me-ink);
}

.me-prog__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.me-prog__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  background: var(--me-blue-soft);
  color: var(--me-blue);
}

.me-prog:nth-child(even) .me-prog__icon { background: var(--me-coral-soft); color: var(--me-coral); }

.me-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.me-badge--open { background: #e8f7ee; color: #157a43; }
.me-badge--soon { background: #fff4e0; color: #a55b00; }

.me-prog__brand {
  font-family: var(--me-font-display);
  font-weight: 900;
  font-size: 1.22rem;
  line-height: 1.2;
  margin: 0 0 4px;
}

.me-prog__brand span { color: var(--me-coral); }

.me-prog__tagline { color: var(--me-blue); font-weight: 700; margin: 0 0 10px; }
.me-prog__summary { color: var(--me-muted); margin: 0 0 18px; }

.me-prog__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: auto 0 18px;
  color: var(--me-muted);
  font-size: 0.9rem;
}

.me-prog__meta span { display: inline-flex; align-items: center; gap: 6px; }
.me-prog__meta i { color: var(--me-blue); }

.me-prog__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--me-coral);
}

.me-prog:hover .me-prog__more i { transform: translateX(4px); }
.me-prog__more i { transition: transform 0.2s ease; }

/* Featured card (Essentials) spans the whole first row */
.me-prog--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  padding: 34px;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(255, 87, 87, 0.12), transparent 60%),
    linear-gradient(135deg, #fff 0%, var(--me-blue-soft) 100%);
  border-color: rgba(54, 79, 171, 0.18);
}

.me-prog--featured .me-prog__brand { font-size: 1.8rem; }
.me-prog--featured .me-prog__meta { margin-top: 0; }

.me-prog__aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.me-prog__aside .me-chat__card { animation: none; margin: 0 !important; box-shadow: none; }

/* « Autres formules » row under the catalogue (Coaching, Challenge) */
.me-alt {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.me-alt .me-prog.me-prog--custom { grid-column: auto; }

.me-prog.me-prog--challenge {
  background: linear-gradient(120deg, var(--me-coral-dark) 0%, var(--me-coral) 100%);
}

.me-prog.me-prog--challenge .me-prog__summary { color: rgba(255, 255, 255, 0.9); }

/* One-line format facts under « Comment ça marche » */
.me-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}

.me-facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--me-bg);
  border: 1px solid var(--me-line);
  font-weight: 600;
}

.me-facts i { color: var(--me-coral); }

/* Format strip */
.me-format {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.me-format__item {
  background: #fff;
  border: 1px solid var(--me-line);
  border-radius: var(--me-radius);
  padding: 22px;
}

.me-format__item i {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--me-coral-soft);
  color: var(--me-coral);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.me-format__item h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 6px; }
.me-format__item p { color: var(--me-muted); margin: 0; font-size: 0.95rem; }

/* ── Programme page ───────────────────────────────────── */
.me-hero__photo {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  border: 4px solid rgba(255, 255, 255, 0.15);
}

.me-hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 991px) {
  .me-hero__photo { aspect-ratio: 16 / 10; margin-top: 40px; }
}

.me-staff {
  margin-top: 22px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.me-staff a { color: #fff; font-weight: 700; text-decoration: underline; }
.me-staff i { color: var(--me-coral); margin-right: 6px; }

.me-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.75);
}

.me-crumbs a { color: #fff; font-weight: 600; }

.me-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
}

.me-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
}

.me-chip i { color: var(--me-coral); }

.me-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.me-panel {
  background: #fff;
  border: 1px solid var(--me-line);
  border-radius: var(--me-radius);
  padding: 28px;
}

.me-panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 16px;
}

.me-panel h3 i { color: var(--me-coral); }
.me-panel p { color: var(--me-muted); margin: 0; }

.me-checks { list-style: none; padding: 0; margin: 0; }

.me-checks li {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.me-checks li i { color: var(--me-blue); margin-top: 2px; }

.me-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.me-tag {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--me-blue-soft);
  color: var(--me-blue-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.me-tag:nth-child(3n+2) { background: var(--me-coral-soft); color: var(--me-coral-dark); }

.me-phrases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.me-phrases .me-chat__card { animation: none; margin: 0 !important; }

/* Essentials practical details */
.me-levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.me-level__badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--me-coral);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.me-level:nth-child(2) .me-level__badge { background: var(--me-blue); }
.me-level h3 { font-size: 1.35rem; font-weight: 900; margin: 0 0 8px; }

.me-calendar {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  align-items: start;
}

.me-sessions { list-style: none; padding: 0; margin: 0; }

.me-sessions li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--me-line);
  font-weight: 600;
}

.me-sessions li:last-child { border-bottom: 0; }

.me-sessions b {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 10px;
  background: var(--me-blue);
  color: #fff;
  font-size: 0.8rem;
}

.me-slot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--me-blue-dark), var(--me-blue));
  color: #fff;
  margin-bottom: 14px;
}

.me-slot:nth-child(2) { background: linear-gradient(120deg, var(--me-coral-dark), var(--me-coral)); }
.me-slot i { font-size: 1.6rem; }
.me-slot strong { display: block; font-size: 1.05rem; }
.me-slot small { opacity: 0.85; }

.me-seats {
  text-align: center;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid var(--me-line);
  background: var(--me-bg);
}

.me-seats__num {
  font-family: var(--me-font-display);
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
  color: var(--me-coral);
}

.me-others {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.me-other {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--me-line);
  background: #fff;
  color: var(--me-ink);
  font-weight: 700;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.me-other i { color: var(--me-blue); }
.me-other:hover { border-color: var(--me-coral); color: var(--me-coral); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 991px) {
  .me-hero { padding: 120px 0 72px; }
  .me-chat { margin: 48px auto 0; }
  .me-visual { margin: 48px auto 0; }
  .me-visual__card--top { left: -12px; }
  .me-visual__card--bottom { right: -12px; }
  .me-jobs, .me-offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .me-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .me-steps::before { display: none; }
  .me-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .me-cta__box { grid-template-columns: 1fr; padding: 40px 32px; }
  .me-progs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .me-prog.me-prog--custom { flex-direction: column; align-items: flex-start; }
  .me-alt { grid-template-columns: 1fr; }
  .me-prog--featured { grid-template-columns: 1fr; }
  .me-format { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .me-phrases { grid-template-columns: 1fr; }
  .me-calendar { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .me-section { padding: 68px 0; }
  .me-head { margin-bottom: 36px; }
  .me-hero { padding: 104px 0 56px; text-align: center; }
  .me-hero__logo { margin: 0 auto 22px; }
  .me-hero__lead { margin-left: auto; margin-right: auto; }
  .me-hero__cta { justify-content: center; }
  .me-hero__cta .me-btn { width: 100%; }
  .me-hero__proof { justify-content: center; }
  .me-chat__card:nth-child(2), .me-chat__card:nth-child(3) { margin: 0; }
  .me-chat { text-align: left; }
  .me-visual { text-align: left; padding-bottom: 0; }
  .me-visual__photo { aspect-ratio: 4 / 3; }
  .me-visual__photo img { object-position: 35% 25%; }
  .me-visual__card { position: relative; left: auto !important; right: auto !important; top: auto; bottom: auto; max-width: none; margin-top: 12px; animation: none; }
  .me-visual__card--top { display: none; }
  .me-jobs, .me-jobs--2, .me-offers, .me-quotes, .me-progs, .me-format, .me-two, .me-levels { grid-template-columns: 1fr; }
  .me-prog--featured { padding: 26px 22px; }
  .me-prog--featured .me-prog__brand { font-size: 1.45rem; }
  .me-chips { justify-content: center; }
  .me-crumbs { justify-content: center; }
  .me-steps { grid-template-columns: 1fr; }
  .me-cta { padding-bottom: 68px; }
  .me-cta__box { padding: 32px 22px; border-radius: 22px; text-align: center; }
  .me-cta__box img { margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .me-chat__card { animation: none; }
  .me-btn, .me-job, .me-offer, .me-prog { transition: none; }
}
