/* BoosterLab — Système éditorial Formations
   Patterns importés du langage Sacha / Rapport Campagne PDFs
   Réutilise la charte LIVE (#05060A / #3DBEFF / #3843D0 / #F8635C).
   À utiliser en complément de assets/style.css + tailwind. */

:root {
  --ed-bg: #05060A;
  --ed-ink: #F5F7FB;
  --ed-mute: #9BA3B4;
  --ed-cy: #3DBEFF;
  --ed-vi: #3843D0;
  --ed-deep: #140064;
  --ed-coral: #F8635C;
  --ed-card: #0B0E18;
  --ed-line: #1A1F30;
}

/* ----- PILLS typés (pré-titre) ----- */
.ed-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid rgba(61,190,255,.35);
  background: rgba(61,190,255,.08);
  color: var(--ed-cy);
  margin-bottom: 14px;
}
.ed-pill.coral {
  border-color: rgba(248,99,92,.4);
  background: rgba(248,99,92,.08);
  color: var(--ed-coral);
}

/* ----- SECTION HEADER (brand + tag/page numérotation) ----- */
.ed-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ed-line);
}
.ed-section-header .brand {
  font-size: 11px;
  color: var(--ed-cy);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.ed-section-header .tag {
  font-size: 11px;
  color: var(--ed-mute);
}

/* ----- TITRES & LEDE ----- */
.ed-h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 16px;
}
.ed-h2 .accent {
  color: var(--ed-cy);
}
.ed-h2 .accent-coral {
  color: var(--ed-coral);
}
.ed-h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: #fff;
}
.ed-lede {
  font-size: 1.0625rem;
  color: var(--ed-mute);
  max-width: 720px;
  line-height: 1.55;
  margin-bottom: 32px;
}

/* ----- GRIDS éditoriaux ----- */
.ed-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.ed-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 768px) {
  .ed-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .ed-grid-2 { grid-template-columns: repeat(2, 1fr); }
}

/* ----- CARD éditoriale (icône XL + h4 + p) ----- */
.ed-card {
  background: var(--ed-card);
  border: 1px solid var(--ed-line);
  border-radius: 16px;
  padding: 24px 22px;
  transition: border-color .2s ease, transform .2s ease;
}
.ed-card:hover {
  border-color: rgba(61,190,255,.3);
  transform: translateY(-2px);
}
.ed-card .ic {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 14px;
  display: inline-block;
}
.ed-card h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}
.ed-card p {
  font-size: 0.875rem;
  color: var(--ed-mute);
  line-height: 1.55;
}

/* ----- BULLETS éditoriaux (avec → cyan) ----- */
.ed-bullets {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.ed-bullets li {
  position: relative;
  padding: 12px 0 12px 36px;
  border-bottom: 1px dashed rgba(255,255,255,.08);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #E2E7F1;
}
.ed-bullets li:last-child { border-bottom: 0; }
.ed-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 12px;
  width: 24px;
  text-align: center;
  color: var(--ed-cy);
  font-weight: 800;
  font-size: 1rem;
}
.ed-bullets li b { color: #fff; font-weight: 600; }

/* ----- FLOW numéroté (steps avec cercle gradient) ----- */
.ed-flow {
  counter-reset: ed-step;
  margin-top: 16px;
}
.ed-flow .step {
  position: relative;
  padding: 0 0 32px 64px;
  border-left: 2px solid var(--ed-line);
  margin-left: 24px;
}
.ed-flow .step:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.ed-flow .step::before {
  counter-increment: ed-step;
  content: counter(ed-step);
  position: absolute;
  left: -28px;
  top: -4px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ed-cy), var(--ed-vi));
  color: var(--ed-bg);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -8px rgba(61,190,255,.5);
}
.ed-flow .step h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.ed-flow .step p {
  font-size: 0.9375rem;
  color: var(--ed-mute);
  line-height: 1.55;
  max-width: 620px;
}

/* ----- MATRIX (tableau dense) ----- */
.ed-matrix {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.9375rem;
}
.ed-matrix th {
  text-align: left;
  color: var(--ed-cy);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  padding: 0 16px 12px 0;
  border-bottom: 1px solid var(--ed-line);
}
.ed-matrix td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px dashed rgba(255,255,255,.08);
  color: #E2E7F1;
  line-height: 1.45;
  vertical-align: top;
}
.ed-matrix td.s { color: #fff; font-weight: 600; }
.ed-matrix td.w { color: var(--ed-cy); font-weight: 600; }
.ed-matrix td.c { color: var(--ed-cy); font-weight: 700; text-align: center; }
@media (max-width: 640px) {
  .ed-matrix { font-size: 0.8125rem; }
  .ed-matrix th, .ed-matrix td { padding: 10px 8px 10px 0; }
}

/* ----- NOTE encadrée (gradient cyan/violet) ----- */
.ed-note {
  background: linear-gradient(135deg, rgba(61,190,255,.1), rgba(56,67,208,.14));
  border: 1px solid rgba(61,190,255,.3);
  border-radius: 16px;
  padding: 22px 26px;
  margin: 24px 0;
}
.ed-note .t {
  font-size: 11px;
  color: var(--ed-cy);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}
.ed-note p {
  font-size: 1rem;
  color: #E2E7F1;
  line-height: 1.55;
}
.ed-note p b { color: #fff; font-weight: 600; }

/* ----- KV (key-value cards, comme Rapport Campagne) ----- */
.ed-kv {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.ed-kv .item {
  background: var(--ed-card);
  border: 1px solid var(--ed-line);
  border-radius: 12px;
  padding: 18px 20px;
}
.ed-kv .k {
  font-size: 10.5px;
  color: var(--ed-mute);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}
.ed-kv .v {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 6px;
  color: #fff;
}
.ed-kv .v.cy { color: var(--ed-cy); }
.ed-kv .v.coral { color: var(--ed-coral); }
.ed-kv .v.sm { font-size: 0.9375rem; }
@media (min-width: 768px) {
  .ed-kv.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .ed-kv.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ----- BADGE réglementaire (RS6776, TOSA, etc.) ----- */
.ed-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(61,190,255,.35);
  background: rgba(61,190,255,.08);
  color: var(--ed-cy);
}
.ed-badge.on {
  background: rgba(46,204,113,.14);
  color: #41d98a;
  border-color: rgba(46,204,113,.35);
}
.ed-badge.rev {
  background: rgba(245,176,65,.14);
  color: #f0b541;
  border-color: rgba(245,176,65,.35);
}
.ed-badge.coral {
  background: rgba(248,99,92,.14);
  color: var(--ed-coral);
  border-color: rgba(248,99,92,.35);
}

/* ----- CONTACT CARD (CTA bas de page) ----- */
.ed-contact {
  background: linear-gradient(135deg, rgba(61,190,255,.12), rgba(56,67,208,.18));
  border: 1px solid var(--ed-cy);
  border-radius: 20px;
  padding: 36px 32px;
  margin-top: 32px;
}
.ed-contact .name {
  font-size: 1.625rem;
  font-weight: 800;
  color: #fff;
}
.ed-contact .role {
  font-size: 0.9375rem;
  color: var(--ed-cy);
  font-weight: 600;
  margin-top: 4px;
}
.ed-contact .rows {
  margin-top: 24px;
  display: grid;
  gap: 8px;
}
.ed-contact .r {
  display: grid;
  grid-template-columns: 120px 1fr;
  font-size: 0.9375rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  align-items: center;
}
.ed-contact .r:last-child { border-bottom: 0; }
.ed-contact .r .k {
  color: var(--ed-mute);
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 1.2px;
  font-weight: 600;
}
.ed-contact .r .v { color: #fff; font-weight: 500; }
.ed-contact .r .v a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(61,190,255,.4); }
.ed-contact .r .v a:hover { color: var(--ed-cy); }
@media (max-width: 640px) {
  .ed-contact { padding: 24px 20px; }
  .ed-contact .r { grid-template-columns: 1fr; gap: 4px; }
}

/* ----- HERO éditorial (sobre, sans vidéo) ----- */
.ed-hero {
  padding: 96px 0 64px;
  position: relative;
  overflow: hidden;
}
.ed-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px circle at 50% 0%, rgba(61,190,255,.14), transparent 55%),
    radial-gradient(600px circle at 10% 40%, rgba(56,67,208,.18), transparent 60%);
  pointer-events: none;
}
.ed-hero-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.ed-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: #fff;
}
.ed-hero h1 .accent { color: var(--ed-cy); }
.ed-hero .sub {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--ed-mute);
  margin-top: 24px;
  max-width: 640px;
  line-height: 1.5;
}

/* ----- FOOTER de section (cyan brand + page tag) ----- */
.ed-section {
  padding: 80px 0;
  border-top: 1px solid var(--ed-line);
}
.ed-section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 768px) {
  .ed-section { padding: 56px 0; }
  .ed-hero { padding: 64px 0 48px; }
}
