/* ============================================================================
   Vitrine marketing EduCycle (racine educycle.app) — feature 021
   Tout est scopé sous .mkt pour ne jamais entrer en conflit avec site.css.
   Hero = carousel photo plein cadre + overlay + carte produit flottante.
   ========================================================================== */

.mkt {
  --mkt-primary: #1d6fdb;
  --mkt-primary-dark: #1558b8;
  --mkt-accent: #93c5fd;
  --mkt-ink: #1e293b;
  --mkt-muted: #64748b;
  --mkt-bg: #f5f8fd;
  --mkt-deep: #0b1f3a;
  --mkt-radius: 18px;
  color: var(--mkt-ink);
  background: var(--mkt-bg);
}

.mkt h1, .mkt h2, .mkt h3 { letter-spacing: -.02em; }
.mkt .mkt-eyebrow {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--mkt-primary); margin-bottom: .9rem;
}
.mkt .mkt-section { padding: 5rem 0; }
.mkt .mkt-section.is-deep { background: radial-gradient(120% 120% at 80% 0%, #1f6fe0 0%, #103a86 55%, var(--mkt-deep) 100%); color: #fff; }
.mkt .mkt-section.is-dark { background: linear-gradient(150deg, #1558b8 0%, #1d6fdb 55%, #2f86ef 100%); color: #fff; }
.mkt .mkt-section.is-deep .mkt-eyebrow,
.mkt .mkt-section.is-dark .mkt-eyebrow { color: var(--mkt-accent); }
.mkt .mkt-section-title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; margin-bottom: .6rem; }
.mkt .mkt-section-sub { color: var(--mkt-muted); max-width: 60ch; }
.mkt .is-deep .mkt-section-sub, .mkt .is-dark .mkt-section-sub { color: rgba(255,255,255,.85); }
.mkt .mkt-hl { color: var(--mkt-primary); }
.mkt .is-deep .mkt-hl, .mkt .is-dark .mkt-hl { color: var(--mkt-accent); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.mkt-hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  overflow: hidden; background: var(--mkt-deep);
}
.mkt-hero-slides { position: absolute; inset: 0; z-index: 0; }
.mkt-hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center 30%;
  opacity: 0; transition: opacity 1.1s ease;
  /* Repli si aucune photo : dégradé de marque (FR-013, hero présentable sans assets) */
  background-color: var(--mkt-deep);
  background-image: radial-gradient(120% 120% at 75% 0%, #1f6fe0 0%, #103a86 55%, #0b1f3a 100%);
}
.mkt-hero-slide.is-active { opacity: 1; }
.mkt-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(8,20,40,.92) 0%, rgba(8,20,40,.72) 45%, rgba(8,20,40,.35) 100%);
}
.mkt-hero-inner { position: relative; z-index: 2; width: 100%; }
.mkt-hero-eyebrow { color: var(--mkt-accent); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; display: flex; align-items: center; gap: .5rem; }
.mkt-hero-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mkt-accent); display: inline-block; }
.mkt-hero-title { color: #fff; font-weight: 800; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.04; margin: 1rem 0 1.2rem; }
.mkt-hero-title .mkt-hl { color: var(--mkt-accent); }
.mkt-hero-sub { color: rgba(255,255,255,.88); font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 44ch; line-height: 1.5; }
.mkt-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.mkt-btn-primary {
  background: #fff; color: var(--mkt-primary-dark); border: none; border-radius: 999px;
  padding: .85rem 1.6rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem;
  box-shadow: 0 10px 30px rgba(11,31,58,.3); transition: transform .15s;
}
.mkt-btn-primary:hover { transform: translateY(-2px); color: var(--mkt-primary-dark); }
.mkt-btn-ghost {
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px; padding: .85rem 1.6rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem;
  transition: background .15s;
}
.mkt-btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }
.mkt-hero-dots { display: flex; gap: 8px; margin-top: 2.2rem; }
.mkt-hero-dots button { width: 28px; height: 5px; border-radius: 3px; border: none; background: rgba(255,255,255,.3); cursor: pointer; padding: 0; transition: background .2s; }
.mkt-hero-dots button.is-active { background: var(--mkt-accent); }

/* Carte produit flottante (mock dashboard) */
.mkt-hero-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(8,20,40,.45); border: 1px solid rgba(255,255,255,.2);
}
.mkt-mock-bar { display: flex; gap: 7px; padding: 12px 14px; background: #eef3fb; border-bottom: 1px solid #e4ecf7; }
.mkt-mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #cbd8ec; display: inline-block; }
.mkt-mock-body { display: flex; min-height: 250px; }
.mkt-mock-side { width: 158px; background: linear-gradient(180deg, var(--mkt-primary-dark), #0e4493); padding: 13px 10px; display: flex; flex-direction: column; gap: 3px; }
.mkt-mock-brand { display: flex; align-items: center; gap: 7px; padding: 3px 7px 13px; color: #fff; font-size: .8rem; font-weight: 700; }
.mkt-mock-brand .dot { width: 16px; height: 16px; border-radius: 5px; background: var(--mkt-accent); flex: none; }
.mkt-mock-nav { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; color: rgba(255,255,255,.72); font-size: .72rem; font-weight: 500; white-space: nowrap; }
.mkt-mock-nav i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); flex: none; }
.mkt-mock-nav.act { background: rgba(255,255,255,.16); color: #fff; font-weight: 600; }
.mkt-mock-nav.act i { background: var(--mkt-accent); }

.mkt-mock-main { flex: 1; padding: 16px 18px; }
.mkt-mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mkt-mock-head b { font-size: .92rem; color: var(--mkt-ink); font-weight: 700; }
.mkt-mock-head .pill { font-size: .6rem; color: var(--mkt-primary); background: #eef3fb; border-radius: 999px; padding: 3px 10px; font-weight: 600; }

.mkt-mock-kpis { display: flex; gap: 10px; margin-bottom: 16px; }
.mkt-mock-kpi { flex: 1; border-radius: 11px; background: #f5f8fd; border: 1px solid #e7eef9; padding: 10px 11px; }
.mkt-mock-kpi b { display: block; font-size: 1.3rem; color: var(--mkt-primary); line-height: 1.1; font-weight: 800; }
.mkt-mock-kpi span { font-size: .57rem; color: var(--mkt-muted); text-transform: uppercase; letter-spacing: .05em; display: block; margin-top: 2px; }
.mkt-mock-kpi em { font-size: .58rem; font-style: normal; font-weight: 700; color: #16a34a; }
.mkt-mock-kpi em.flat { color: var(--mkt-muted); }

.mkt-mock-chart { display: flex; align-items: flex-end; gap: 7px; height: 84px; padding-top: 8px; border-top: 1px solid #eef2f8; }
.mkt-mock-chart i { flex: 1; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--mkt-accent), var(--mkt-primary)); opacity: .85; }

/* ── Actualités plateforme ─────────────────────────────────────────────── */
.mkt-news-card {
  background: #fff; border: 1px solid #e7eef9; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s;
  box-shadow: 0 6px 18px rgba(8,20,40,.05);
}
.mkt-news-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(8,20,40,.12); }
.mkt-news-img { height: 168px; background-size: cover; background-position: center; }
.mkt-news-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 7px; }
.mkt-news-date { font-size: .72rem; color: var(--mkt-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.mkt-news-title { font-size: 1.12rem; font-weight: 700; color: var(--mkt-ink); margin: 0; line-height: 1.3; }
.mkt-news-sub { font-size: .92rem; color: var(--mkt-muted); margin: 0; line-height: 1.5; }
.mkt-news-corps-inner { font-size: .92rem; color: var(--mkt-ink); line-height: 1.7; padding-top: 10px; border-top: 1px solid #e7eef9; margin-top: 4px; }
.mkt-news-corps-inner p { margin-bottom: .6em; }
.mkt-news-toggle {
  background: none; border: none; padding: 0; margin-top: 4px;
  font-size: .82rem; font-weight: 600; color: var(--mkt-primary); cursor: pointer;
  display: flex; align-items: center; gap: 4px;
}
.mkt-news-toggle:hover { text-decoration: underline; }
.mkt-news-toggle .lbl-moins { display: none; }
.mkt-news-toggle:not(.collapsed) .lbl-plus { display: none; }
.mkt-news-toggle:not(.collapsed) .lbl-moins { display: flex; align-items: center; gap: 4px; }
.mkt-news-share { display: flex; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #e7eef9; }
.mkt-share-btn { color: var(--mkt-muted); font-size: 1.1rem; transition: color .15s; }
.mkt-share-btn:hover { color: var(--mkt-primary); }

/* ── Cartes / grilles ─────────────────────────────────────────────────── */
.mkt-card {
  background: #fff; border: 1px solid #e4ecf7; border-radius: var(--mkt-radius);
  padding: 24px 22px; height: 100%; box-shadow: 0 10px 28px rgba(21,88,184,.06);
}
.mkt .is-deep .mkt-card, .mkt .is-dark .mkt-card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); }
.mkt-card-ic {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: #e8f1fd; color: var(--mkt-primary); font-size: 1.3rem; margin-bottom: 14px;
}
.mkt .is-deep .mkt-card-ic, .mkt .is-dark .mkt-card-ic { background: rgba(147,197,253,.2); color: #fff; }
.mkt-card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: .4rem; }
.mkt-card p { font-size: .96rem; color: var(--mkt-muted); line-height: 1.45; margin: 0; }
.mkt .is-deep .mkt-card p, .mkt .is-dark .mkt-card p { color: rgba(255,255,255,.8); }

/* Cycle de vie (étapes) */
.mkt-step { background: #fff; border: 1px solid #e4ecf7; border-radius: 14px; padding: 20px 18px; height: 100%; }
.mkt-step .num { font-size: .8rem; font-weight: 800; color: var(--mkt-primary); }
.mkt-step .t { font-size: 1.05rem; font-weight: 700; margin: .3rem 0; }
.mkt-step .d { font-size: .9rem; color: var(--mkt-muted); line-height: 1.4; margin: 0; }

/* Bénéfices */
.mkt-ben { display: flex; gap: 14px; align-items: flex-start; }
.mkt-ben .chk { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--mkt-accent); color: var(--mkt-primary-dark); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.mkt-ben .bt { font-weight: 700; font-size: 1.04rem; }
.mkt-ben .bd { color: rgba(255,255,255,.82); font-size: .94rem; line-height: 1.4; }

/* Tarifs */
.mkt-plan { background: #fff; border: 1px solid #e4ecf7; border-radius: var(--mkt-radius); padding: 28px 24px; height: 100%; display: flex; flex-direction: column; }
.mkt-plan.feat { border: 2px solid var(--mkt-primary); box-shadow: 0 16px 40px rgba(29,111,219,.18); }
.mkt-plan .pn { font-weight: 700; color: var(--mkt-muted); text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; }
.mkt-plan .pp { font-size: 1.7rem; font-weight: 800; margin: .4rem 0 .8rem; }
.mkt-plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.mkt-plan li { font-size: .94rem; padding-left: 1.4rem; position: relative; }
.mkt-plan li:before { content: "\2713"; position: absolute; left: 0; color: var(--mkt-primary); font-weight: 800; }
.mkt-badge { align-self: flex-start; background: var(--mkt-primary); color: #fff; font-size: .68rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; letter-spacing: .07em; text-transform: uppercase; margin-bottom: .6rem; }

/* CTA final */
.mkt-cta { background: radial-gradient(120% 140% at 50% 0%, #1f6fe0 0%, #103a86 60%, #0b1f3a 100%); color: #fff; border-radius: 26px; padding: 3.5rem 2rem; text-align: center; }
.mkt-cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; max-width: 18ch; margin: 0 auto 1rem; }
.mkt-pill { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .6rem 1.2rem; font-weight: 600; }

/* ── Header / footer marketing ────────────────────────────────────────── */
.mkt-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid #e4ecf7; }
.mkt-header .nav-link { color: var(--mkt-ink); font-weight: 600; }
.mkt-header .nav-link:hover { color: var(--mkt-primary); }
.mkt-footer { background: #fff; border-top: 1px solid #e4ecf7; color: var(--mkt-muted); }
.mkt-footer a { color: var(--mkt-muted); text-decoration: none; }
.mkt-footer a:hover { color: var(--mkt-primary); }

/* ── Responsive : la carte produit passe sous la copy ─────────────────── */
@media (max-width: 991.98px) {
  .mkt-hero { min-height: auto; padding: 5.5rem 0 3rem; }
  .mkt-hero-card { margin-top: 2.5rem; max-width: 520px; }
}
