/* ============================================================================
   CAP Forma — thème « école à distance » (2026-09-28)

   Remplace la DA « La marge » à la demande du client, sur le modèle visuel
   d'une landing d'école de formation à distance : bleu franc, gris clair,
   cartes blanches ombrées, police ronde (Rubik), boutons pilules, grandes
   photos. Chargé APRÈS main/catalogue/tunnel.css : il redéfinit les jetons
   puis surcharge les composants ; les blocs .cef-* servent à l'accueil.
   ========================================================================== */

@font-face { font-family: 'Rubik'; src: url('/assets/fonts/rubik-var.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --paper:    #ffffff;
  --paper-2:  #ebebeb;
  --paper-3:  #ffffff;
  --ink:      #2e3644;
  --ink-2:    #5b6270;
  --ink-3:    #767c87;
  --rule:     #d7d7d7;
  --rule-2:   #e2e2e2;

  --minium:   #0079a3;   /* bleu lisible pour les liens (AA 4,9:1 sur blanc) */
  --minium-2: #005f80;
  --minium-on-ink: #7fd3f2;

  --blue:     #0094c5;   /* bleu de marque (aplats, boutons, titres) */
  --blue-d:   #007aa3;
  --navy:     #264466;
  --shadow:   0 6px 24px rgba(20, 40, 70, .10);

  --serif: 'Rubik', 'Helvetica Neue', Arial, sans-serif;
  --sans:  'Rubik', 'Helvetica Neue', Arial, sans-serif;
  --radius: 6px;
}

body { font-size: 16.5px; color: var(--ink); background: #fff; font-weight: 400; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline-color: var(--blue); }

/* Titres : « fin + gras » en bleu, comme « La formation à distance, c'est quoi ? » */
.display, .h1, .h2 { font-family: var(--sans); color: var(--blue); letter-spacing: -0.01em; }
.display { font-weight: 700; }
.h2 { font-weight: 300; line-height: 1.15; }
.h2 strong, .h2 b { font-weight: 700; }
.display em, .h2 em, .h1 em { font-style: normal; font-weight: 700; color: var(--blue); }
.h3 { font-family: var(--sans); font-weight: 600; color: var(--navy); letter-spacing: 0; }
.lede { font-family: var(--sans); font-weight: 300; color: var(--ink-2); }
.kicker { color: var(--navy); letter-spacing: .04em; }
.kicker b { color: var(--blue); }
.price { font-family: var(--sans); font-weight: 700; color: var(--navy); }
.link { color: var(--minium); }

/* Boutons pilules bleus */
.btn { border-radius: 999px; font-family: var(--sans); font-weight: 600; letter-spacing: .02em; }
.btn--accent, .btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; text-transform: uppercase; }
.btn--accent:hover, .btn--primary:hover { background: var(--blue-d); border-color: var(--blue-d); color: #fff; }
.btn.ghost, .btn--ghost { border-color: var(--blue); color: var(--blue); }
.btn.ghost:hover, .btn--ghost:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* En-tête blanc, ombre légère */
.hdr { background: #fff; border-bottom: 0; box-shadow: 0 2px 12px rgba(20, 40, 70, .08); }
.brand { color: var(--navy); }
.brand__cap { font-family: var(--sans); font-weight: 800; color: var(--blue); letter-spacing: .06em; }
.brand__forma { font-family: var(--sans); font-style: normal; font-weight: 500; color: var(--navy); font-size: 20px; }
.nav a { color: var(--ink-2); font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: var(--blue); }
.nav a[aria-current]::after { background: var(--blue); }

/* Sections, cartes, formulaires */
.section--tint, .section--wash { background: var(--paper-2); }
.slab { background: var(--navy); }
.slab .h2, .slab .display, .slab em { color: #fff; }
.faq { border-top: 0; }
.faq details { background: #fff; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; padding-inline: 20px; }
input, select, textarea { border-radius: var(--radius) !important; }
.flash { border-radius: var(--radius); border-color: var(--rule); }

/* Pied de page bleu nuit */
.ftr { background: var(--navy); color: #d6e2ef; }
.ftr .brand__cap { color: #7fd3f2; }
.ftr .brand__forma { color: #fff; }
.ftr__brand p { font-family: var(--sans); font-weight: 300; color: #d6e2ef; }

/* ==========================================================================
   Accueil
   ========================================================================== */
.cef-wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--pad); }

/* Titre de section : partie fine + partie grasse + trait dégradé */
.cef-title { display: flex; align-items: center; gap: 22px; margin: 0 0 44px; font-family: var(--sans); font-weight: 300; font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; color: var(--blue); }
.cef-title strong { font-weight: 700; }
.cef-title::after { content: ''; flex: 1 1 60px; min-width: 40px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), rgba(0, 148, 197, 0)); }

/* Hero photo + voile bleu */
.cef-hero { position: relative; color: #fff; padding: clamp(64px, 9vw, 120px) var(--pad) clamp(72px, 10vw, 130px); overflow: hidden; background: var(--navy); }
.cef-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.cef-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(13, 56, 102, .92) 0%, rgba(0, 110, 160, .78) 55%, rgba(0, 148, 197, .45) 100%); }
.cef-hero__in { position: relative; z-index: 2; max-width: 720px; margin-inline: auto; text-align: center; }
.cef-hero__tag { display: inline-block; margin: 0 0 18px; padding: 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, .16); font-size: 14px; font-weight: 500; letter-spacing: .03em; }
.cef-hero h1 { margin: 0; font-family: var(--sans); font-weight: 300; font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.1; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.cef-hero h1 strong { font-weight: 700; display: block; }
.cef-hero__lede { margin: 20px auto 0; max-width: 34em; font-size: 1.12rem; font-weight: 300; line-height: 1.55; color: #eaf5fb; }
.cef-pick { margin: 34px auto 0; max-width: 620px; text-align: left; }
.cef-pick label { display: block; margin-bottom: 10px; font-size: 1.3rem; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
.cef-pick__row { display: flex; gap: 12px; }
.cef-pick select { flex: 1; min-width: 0; height: 54px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 2px solid #fff; border-radius: 6px !important; }
.cef-pick button { flex: none; height: 54px; padding: 0 28px; border: 0; border-radius: 6px; background: var(--blue); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }
.cef-pick button:hover { background: var(--blue-d); }
.cef-hero__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: #eaf5fb; }
.cef-hero__trust li::before { content: '✓'; margin-right: 8px; font-weight: 700; color: #7fd3f2; }

/* Cartes à icône */
.cef-why { background: var(--paper-2); padding: clamp(56px, 7vw, 90px) 0; }
.cef-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.cef-card { background: #fff; box-shadow: var(--shadow); padding: 30px 24px 32px; text-align: center; border-radius: 4px; }
.cef-card svg { width: 54px; height: 54px; margin: 0 auto 18px; color: var(--blue); }
.cef-card h3 { margin: 0 0 14px; font-size: 1.2rem; font-weight: 600; line-height: 1.25; color: var(--blue); }
.cef-card p { margin: 0; font-size: 15px; font-weight: 300; color: var(--ink-2); line-height: 1.55; }
.cef-card p strong { font-weight: 600; color: var(--ink); }

/* Formations : photo à gauche, titre coloré à droite */
.cef-forms { background: var(--paper-2); padding: 0 0 clamp(56px, 7vw, 90px); }
.cef-forms .cef-title { padding-top: clamp(20px, 3vw, 30px); }
.cef-dom { display: grid; grid-template-columns: 390px 1fr; gap: 0 36px; align-items: center; margin-bottom: 34px; background: #fff; box-shadow: var(--shadow); border-radius: 4px; overflow: hidden; }
.cef-dom__img { align-self: stretch; }
.cef-dom__img img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.cef-dom__body { padding: 28px 32px 30px 0; }
.cef-dom__head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.cef-dom__head svg { width: 46px; height: 46px; flex: none; color: var(--c); }
.cef-dom h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.1; color: var(--c); }
.cef-dom h3 a { color: inherit; }
.cef-dom p { margin: 0 0 12px; font-size: 16px; font-weight: 300; color: var(--ink-2); line-height: 1.6; }
.cef-dom p strong { font-weight: 600; color: var(--c); }
.cef-dom__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 18px; }
.cef-dom__price { font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.cef-dom__price small { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.cef-dom__meta { font-size: 14px; color: var(--ink-3); }
.cef-dom__btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px; border-radius: 999px; background: var(--c); color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; transition: filter .15s; }
.cef-dom__btn:hover { filter: brightness(.9); }
.cef-dom--1 { --c: #b88a5e; }
.cef-dom--2 { --c: #0f87c6; }
.cef-dom--3 { --c: #e9853b; }
.cef-dom--4 { --c: #5f9aa0; }
.cef-dom--5 { --c: #d86565; }

.cef-cta { text-align: center; padding: 44px var(--pad) 0; background: #fff; }
.cef-pill { display: inline-flex; align-items: center; gap: 14px; padding: 12px 34px 12px 14px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 1.15rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; transition: background .15s; }
.cef-pill:hover { background: var(--blue-d); color: #fff; }
.cef-pill svg { width: 32px; height: 32px; }

/* Pourquoi / engagements */
.cef-sec { padding: clamp(56px, 7vw, 90px) 0; background: #fff; }
.cef-sub { margin: 0 0 30px 30px; font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 600; color: var(--navy); }
.cef-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.cef-stat { background: #fff; box-shadow: var(--shadow); padding: 34px 22px; text-align: center; border-radius: 4px; }
.cef-stat svg { width: 46px; height: 46px; margin: 0 auto 16px; color: var(--blue); }
.cef-stat b { display: block; font-size: 1.2rem; font-weight: 700; line-height: 1.3; color: var(--blue); }
.cef-stat span { display: block; margin-top: 8px; font-size: 14.5px; font-weight: 300; color: var(--ink-2); }

/* Méthode : 6 icônes en ligne */
.cef-method { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px; text-align: center; }
.cef-method svg { width: 64px; height: 64px; margin: 0 auto 16px; color: var(--blue); }
.cef-method h3 { margin: 0 0 12px; font-size: 1.1rem; font-weight: 700; text-transform: uppercase; line-height: 1.2; color: var(--blue); }
.cef-method p { margin: 0; font-size: 15px; font-weight: 300; color: var(--ink-2); line-height: 1.5; }

/* Inscription : 3 cartes */
.cef-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.cef-three .cef-card { text-align: left; padding: 32px 26px; }
.cef-three .cef-card h3 { text-align: center; }
.cef-three .cef-card svg { margin-bottom: 20px; }
.cef-three .cef-num { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 1.4rem; font-weight: 700; }

/* FAQ + contact */
.cef-faq { background: var(--paper-2); padding: clamp(56px, 7vw, 90px) 0; }
.cef-faq .faq { max-width: 860px; }
.cef-contact { background: var(--blue); color: #fff; padding: clamp(48px, 6vw, 72px) 0; text-align: center; }
.cef-contact h2 { margin: 0 0 12px; font-weight: 300; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.cef-contact h2 strong { font-weight: 700; }
.cef-contact p { margin: 0 auto 26px; max-width: 36em; font-weight: 300; color: #e6f5fb; }
.cef-contact__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cef-btn-w { display: inline-flex; align-items: center; padding: 13px 30px; border-radius: 999px; background: #fff; color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.cef-btn-w:hover { background: #eaf6fb; }
.cef-btn-o { display: inline-flex; align-items: center; padding: 11px 28px; border-radius: 999px; border: 2px solid #fff; color: #fff; font-weight: 600; }
.cef-btn-o:hover { background: rgba(255, 255, 255, .12); }

@media (max-width: 1080px) {
  .cef-cards, .cef-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cef-method { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 20px; }
  .cef-dom { grid-template-columns: 300px 1fr; }
}
@media (max-width: 760px) {
  .cef-title { font-size: 1.6rem; gap: 14px; margin-bottom: 30px; }
  .cef-pick__row { flex-direction: column; }
  .cef-pick button { width: 100%; }
  .cef-cards, .cef-stats, .cef-three { grid-template-columns: 1fr; gap: 18px; }
  .cef-method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cef-dom { grid-template-columns: 1fr; }
  .cef-dom__img img { min-height: 0; aspect-ratio: 16 / 9; }
  .cef-dom__body { padding: 22px 20px 26px; }
  .cef-sub { margin-left: 0; }
  .cef-pill { font-size: 1rem; padding-right: 24px; }
}

/* Retouches : pas d'italique (Rubik n'en a pas), champ de choix pleine hauteur */
em, i, .h3 em, .lede em, .kicker em { font-style: normal; }
h1 em, h2 em, h3 em, h4 em { font-weight: 700; color: var(--blue); }
.cef-pick select { height: 54px !important; min-height: 54px; appearance: auto; }
