/*
 * psf_elearning.css — front de e-learning.procesphere.fr (accueil public et tableau de bord).
 * Charte PROCESPHERE en MODE CLAIR : bleu nuit #0E1A3A / #18233a, cuivre #C97F1F / #c08552,
 * or pâle #F4C465, blanc cassé #F7F5F2 ; Inter (locale) pour le texte, Georgia pour les titres.
 * Mobile d'abord (390 px, gouttière 16 px, aucun défilement horizontal), cibles de 44 px,
 * focus visible, aucune information portée par la seule couleur, prefers-reduced-motion respecté.
 * Les états initiaux des animations sont posés par psf_elearning.js : sans script, tout est visible.
 */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --el-navy: #0E1A3A;
  --el-navy2: #18233a;
  --el-cuivre: #C97F1F;
  --el-cuivre2: #c08552;
  --el-or: #F4C465;
  --el-fond: #F7F5F2;
  --el-blanc: #FFFFFF;
  --el-encre: #0E1A3A;
  --el-texte: #2A3652;
  --el-doux: #5E6A85;
  --el-filet: rgba(14, 26, 58, .12);
  --el-vert: #1F7A4D;
  --el-vert-fond: #E3F3EA;
  --el-ombre: 0 10px 30px rgba(14, 26, 58, .08);
  --el-rayon: 16px;
  --el-transition: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.el {
  margin: 0;
  background: var(--el-fond);
  color: var(--el-texte);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-width: 0;
  overflow-x: hidden;
  overflow-wrap: anywhere;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--el-cuivre); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--el-navy); }
:focus-visible { outline: 3px solid var(--el-or); outline-offset: 2px; border-radius: 4px; }
.el-liste-nue { list-style: none; margin: 0; padding: 0; }
.el-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.el-evitement { position: absolute; left: 16px; top: -60px; background: var(--el-navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.el-evitement:focus { top: 12px; }
.el-conteneur { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.el-ic { display: inline-flex; flex: 0 0 auto; vertical-align: middle; color: inherit; }
.el-ic svg { display: inline-block; width: 1em; height: 1em; font-size: inherit; stroke: currentColor; }

/* ── Typographie ─────────────────────────────────────────────────────────── */
.el-h1, .el-h2, .el-h3 { color: var(--el-encre); margin: 0 0 .5em; }
.el-h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(30px, 6vw, 46px); line-height: 1.12; letter-spacing: -.01em; }
.el-h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(24px, 4vw, 34px); line-height: 1.18; }
.el-h3 { font-size: 18px; font-weight: 650; line-height: 1.3; display: flex; gap: 8px; align-items: center; }
.el-h3 a { color: inherit; text-decoration: none; }
.el-h3 a:hover { color: var(--el-cuivre); }
.el-p { margin: 0 0 1em; max-width: 62ch; }
.el-p:last-child { margin-bottom: 0; }
.el-p-intro { font-size: 17px; color: var(--el-doux); margin-bottom: 28px; }
.el-surtitre { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--el-cuivre); }
.el-surtitre-petit { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--el-cuivre2); }
.el-doux { color: var(--el-doux); }
.el-lien { font-weight: 600; white-space: nowrap; }

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.el-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background var(--el-transition), color var(--el-transition), transform var(--el-transition), box-shadow var(--el-transition);
}
.el-btn:hover { transform: translateY(-1px); }
.el-btn-primaire { background: var(--el-cuivre); color: #fff; box-shadow: 0 6px 18px rgba(201, 127, 31, .28); }
.el-btn-primaire:hover { background: #b06f19; color: #fff; }
.el-btn-fantome { background: transparent; color: var(--el-navy); border-color: var(--el-navy); }
.el-btn-fantome:hover { background: var(--el-navy); color: #fff; }
.el-btn-clair { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(4px); }
.el-btn-clair:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.el-btn-grand { min-height: 50px; padding: 12px 22px; font-size: 16px; }
.el-btn-nav { min-height: 40px; padding: 8px 16px; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .el-btn, .el-btn:hover { transition: none; transform: none; } }

/* ── En-tête ─────────────────────────────────────────────────────────────── */
.el-entete { position: sticky; top: 0; z-index: 50; background: rgba(247, 245, 242, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--el-filet); }
.el-entete-int { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.el-marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--el-encre); }
.el-marque img { width: 34px; height: 34px; }
.el-marque-nom { font-weight: 800; letter-spacing: .06em; font-size: 15px; }
.el-marque-nom span { color: var(--el-cuivre); }
.el-marque-sous { font-size: 12px; color: var(--el-doux); border-left: 1px solid var(--el-filet); padding-left: 10px; }
.el-nav { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; }
.el-nav-lien { color: var(--el-encre); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 4px; }
.el-nav-lien:hover { color: var(--el-cuivre); }
.el-nav-form { margin: 0; display: inline-flex; }
@media (max-width: 640px) {
  .el-marque-sous { display: none; }
  .el-nav-lien { display: none; }
}

/* ── Héros ───────────────────────────────────────────────────────────────── */
.el-heros { position: relative; isolation: isolate; color: #fff; background: var(--el-navy); min-height: 520px; display: flex; align-items: flex-end; overflow: hidden; }
.el-heros-visuel { position: absolute; inset: 0; z-index: -2; }
.el-heros-visuel img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 25%; }
.el-heros::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 26, 58, .45) 0%, rgba(14, 26, 58, .82) 60%, rgba(14, 26, 58, .96) 100%); }
.el-heros::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--el-cuivre), var(--el-or)); }
.el-heros-int { padding-top: 96px; padding-bottom: 56px; }
.el-heros .el-surtitre { color: var(--el-or); }
.el-h1-heros { color: #fff; max-width: 22ch; }
.el-heros-p { color: rgba(255, 255, 255, .86); font-size: 18px; max-width: 52ch; }
.el-heros-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
@media (min-width: 800px) { .el-heros { min-height: 600px; } .el-heros-int { padding-top: 140px; padding-bottom: 72px; } }

/* ── Bandeau d'information ───────────────────────────────────────────────── */
.el-bandeau { background: #FBEFD9; border-bottom: 1px solid rgba(201, 127, 31, .25); color: var(--el-encre); }
.el-bandeau-int { display: flex; align-items: flex-start; gap: 10px; padding-top: 12px; padding-bottom: 12px; font-size: 14.5px; }
.el-bandeau .el-ic { color: var(--el-cuivre); margin-top: 3px; }
.el-bandeau p { margin: 0; }

/* ── Blocs ───────────────────────────────────────────────────────────────── */
.el-bloc { padding: 56px 0; }
.el-bloc-serre { padding: 8px 0 24px; }
.el-bloc-contraste { background: var(--el-navy); color: rgba(255, 255, 255, .86); }
.el-bloc-contraste .el-h2, .el-bloc-contraste .el-h3 { color: #fff; }
.el-bloc-contraste .el-surtitre { color: var(--el-or); }
.el-bloc-entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.el-bloc-entete .el-h2 { margin: 0; }
.el-grille { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .el-grille-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .el-grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.el-carte { background: var(--el-blanc); border: 1px solid var(--el-filet); border-radius: var(--el-rayon); padding: 24px; box-shadow: var(--el-ombre); min-width: 0; }
.el-carte-icone { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--el-navy); color: var(--el-or); margin-bottom: 16px; }
.el-carte-icone .el-ic svg { width: 26px; height: 26px; }
.el-carte-icone-or { background: linear-gradient(135deg, var(--el-cuivre), var(--el-or)); color: var(--el-navy); }
.el-carte-famille .el-h3 { font-size: 20px; }
.el-puces { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.el-puces li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; }
.el-puces .el-ic { color: var(--el-vert); margin-top: 3px; }
.el-carte-pied { display: flex; gap: 8px; align-items: center; margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed var(--el-filet); font-size: 14px; color: var(--el-doux); }

.el-etapes { display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: etape; }
@media (min-width: 720px) { .el-etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .el-etapes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.el-etape { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--el-rayon); padding: 20px; }
.el-etape-num { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--el-or); color: var(--el-navy); font-weight: 800; font-family: Georgia, serif; font-size: 18px; }
.el-etape .el-h3 { font-size: 17px; }
.el-etape .el-p { font-size: 14.5px; }
.el-etape .el-ic { color: var(--el-or); }

.el-pilier { padding: 8px 0; }
.el-pilier .el-p { color: var(--el-doux); }

.el-appel { padding-top: 0; }
.el-appel-int { background: linear-gradient(135deg, var(--el-navy) 0%, var(--el-navy2) 60%, #2A2F4A 100%); color: rgba(255, 255, 255, .88); border-radius: 24px; padding: 40px 24px; text-align: center; max-width: 1088px; }
.el-appel-int .el-h2 { color: #fff; }
.el-appel-int .el-p { margin-left: auto; margin-right: auto; }
.el-vide { background: var(--el-blanc); border: 1px dashed var(--el-filet); border-radius: var(--el-rayon); padding: 28px 20px; }

/* ── Tableau de bord ─────────────────────────────────────────────────────── */
.el-tdb-tete { padding-bottom: 8px; }
.el-tuiles { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .el-tuiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.el-tuile { background: var(--el-blanc); border: 1px solid var(--el-filet); border-radius: 14px; padding: 16px; min-width: 0; }
.el-tuile .el-ic { color: var(--el-cuivre); }
.el-tuile-val { margin: 8px 0 2px; font-family: Georgia, serif; font-size: 24px; line-height: 1.1; color: var(--el-encre); }
.el-tuile-lib { margin: 0; font-size: 13px; color: var(--el-doux); }
.el-carte-parcours { display: flex; flex-direction: column; gap: 14px; }
.el-carte-parcours-tete { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.el-carte-parcours .el-h3 { font-size: 20px; margin: 0; }
.el-puce { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid transparent; }
.el-puce-ok { background: var(--el-vert-fond); color: var(--el-vert); border-color: rgba(31, 122, 77, .25); }
.el-puce-neutre { background: #EEF0F5; color: var(--el-doux); border-color: var(--el-filet); }
.el-progression { display: flex; align-items: center; gap: 16px; }
.el-anneau { flex: 0 0 64px; transform: rotate(-90deg); }
.el-anneau circle { fill: none; stroke-width: 6; }
.el-anneau-fond { stroke: #EAE6E0; }
.el-anneau-val { stroke: var(--el-cuivre); stroke-linecap: round; }
.el-progression-texte { flex: 1 1 auto; min-width: 0; }
.el-progression-pct { margin: 0; font-family: Georgia, serif; font-size: 26px; line-height: 1; color: var(--el-encre); }
.el-progression-lib { margin: 4px 0 8px; font-size: 13.5px; color: var(--el-doux); }
.el-barre { height: 8px; border-radius: 999px; background: #EAE6E0; overflow: hidden; }
.el-barre-val { display: block; height: 100%; width: var(--el-pct, 0%); border-radius: 999px; background: linear-gradient(90deg, var(--el-cuivre), var(--el-or)); }
.el-meta { margin: 0; display: grid; gap: 10px; border-top: 1px solid var(--el-filet); padding-top: 14px; }
.el-meta-ligne { display: grid; grid-template-columns: 20px 1fr; gap: 2px 10px; font-size: 14.5px; }
.el-meta-ligne .el-ic { color: var(--el-cuivre); grid-row: 1 / span 2; margin-top: 2px; }
.el-meta-ligne dt { font-weight: 700; color: var(--el-encre); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
.el-meta-ligne dd { margin: 0; }
.el-carte-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; }

/* ── Pied ────────────────────────────────────────────────────────────────── */
.el-pied { background: var(--el-navy); color: rgba(255, 255, 255, .78); padding: 28px 0; margin-top: 24px; font-size: 14px; }
.el-pied-int { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; }
.el-pied-marque { margin: 0; }
.el-pied-liens { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.el-pied-liens a { color: #fff; text-decoration: none; }
.el-pied-liens a:hover { color: var(--el-or); text-decoration: underline; }

/* ── Animations : états initiaux posés par le script (classe el-anim-pret) ── */
.el-anim-pret [data-el-anim] { opacity: 0; transform: translateY(14px); }
.el-anim-pret [data-el-anim].el-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce), print {
  .el-anim-pret [data-el-anim] { opacity: 1 !important; transform: none !important; }
}
