/* ============================================================
   LES PAGES INTÉRIEURES DE L'E-LEARNING (refonte du front, 2026-10-25,
   maquette validée « E-learning IT LAND — toutes les pages »).
   La charte de l'accueil « Place de marché », sortie de son seul `.ud` :
   bandeau et pied marine, cartes de 18 px, boutons en pilule, Space Grotesk
   pour les titres. Tout vient des jetons de theme.css ; rien n'est redéfini.
   Préfixe `elp-` : aucune classe du thème n'est touchée.
   ============================================================ */

.elp-wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.elp-wrap--etroit { max-width: 980px; }

/* Le bandeau marine : le hero de l'accueil, en version page intérieure. */
.elp-bandeau { background: linear-gradient(160deg, #0d2c47, #0a2136); color: #dce9f4; }
.elp-bandeau .elp-wrap { padding-top: 34px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 14px; }
.elp-bandeau h1 { font-family: var(--font-title); color: #fff; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; margin: 0; text-wrap: balance; }
.elp-bandeau p { color: #c6d7e6; font-size: 16.5px; max-width: 62ch; margin: 0; }
.elp-fil { font-size: 13px; color: #a9c2d8; display: flex; flex-wrap: wrap; gap: 8px; }
.elp-fil a { color: #cfe3f2; }
.elp-surtitre { font: 700 12px var(--font-title); letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.elp-bandeau .elp-surtitre { color: var(--primary-300); }

/* La recherche en pilule (bandeau, page introuvable, FAQ). */
.elp-recherche { display: flex; align-items: center; gap: 10px; min-height: 54px; max-width: 720px; padding: 0 18px; border-radius: var(--r-pill); background: var(--surface); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); color: var(--primary); }
.elp-recherche input { border: 0; outline: 0; flex: 1; min-width: 0; font: 400 15.5px var(--font-body); color: var(--text); background: transparent; }

/* Boutons pilule — le même geste que .btn-primary du thème. */
.elp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--r-pill); font: 600 14.5px var(--font-title); border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none; transition: transform var(--t-vif), box-shadow var(--t-vif); }
.elp-btn--plein { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-primary); }
.elp-btn--plein:hover { color: #fff; transform: translateY(-1px); }
.elp-btn--contour { background: var(--surface); color: var(--primary-600); border-color: #b9dff2; }
.elp-btn--contour:hover { color: var(--primary); border-color: var(--primary); }
.elp-btn--clair { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); }
.elp-btn--clair:hover { color: #fff; background: rgba(255, 255, 255, .18); }
.elp-btn--large { min-height: 50px; padding: 0 26px; font-size: 15.5px; }

/* Cartes et pastilles. */
.elp-carte { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); }
.elp-pastille { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--r-pill); font: 600 12px var(--font-title); background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.elp-pastille--bleu { background: var(--primary-050); color: var(--primary-600); border-color: #c9e8f7; }
.elp-pastille--or { background: var(--warning-050); color: #9a4a00; border-color: #f4dcb8; }
.elp-pastille--sombre { background: var(--text); color: #fff; border-color: var(--text); }

/* ---- Le catalogue ------------------------------------------------------ */
.elp-filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.elp-sep { width: 1px; height: 28px; background: var(--border); }
.elp-puce { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid #cbd8e6; background: var(--surface); font: 600 14px var(--font-title); color: var(--text); cursor: pointer; text-decoration: none; list-style: none; }
.elp-puce:hover { color: var(--text); border-color: var(--primary); }
.elp-puce::-webkit-details-marker { display: none; }
.elp-puce.is-actif { background: var(--primary-050); border-color: var(--primary); color: var(--primary-600); }
/* Un choix qui ne laisserait aucun cours : visible, mais éteint. */
.elp-puce.is-vide { opacity: .45; pointer-events: none; }
.elp-puce-compte { font: 600 12px var(--font-body); color: var(--muted); background: var(--surface-2); border-radius: var(--r-pill); padding: 1px 8px; }
.elp-puce.is-actif .elp-puce-compte { background: var(--surface); color: var(--primary-600); }
.elp-facette { position: relative; }
.elp-facette[open] > .elp-puce { border-color: var(--text); }
.elp-panneau { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; min-width: 260px; padding: 14px; display: flex; flex-wrap: wrap; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.elp-tri { margin-left: auto; display: flex; align-items: center; gap: 8px; font: 600 14px var(--font-title); }
.elp-tri select { min-height: 42px; border: 1px solid #cbd8e6; border-radius: var(--r-pill); padding: 0 14px; font: 500 14px var(--font-body); color: var(--text); background: var(--surface); }
.elp-actifs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 36px; }
.elp-resultat { font: 700 16px var(--font-title); color: var(--text); }
.elp-retirer { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 6px 0 12px; border-radius: var(--r-pill); background: var(--text); color: #fff; font: 600 13px var(--font-title); text-decoration: none; }
.elp-retirer:hover { color: #fff; }
.elp-retirer span { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.elp-effacer { font: 600 14px var(--font-title); }

.elp-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.elp-cours { display: flex; flex-direction: column; overflow: hidden; transition: box-shadow var(--t-vif), transform var(--t-vif), border-color var(--t-vif); }
.elp-cours:hover { box-shadow: var(--shadow-lg); border-color: #c9e8f7; transform: translateY(-3px); }
/* Une carte ÉCARTÉE par un filtre : sa règle display:flex l'emporterait sur [hidden]. */
.elp-cours[hidden], .elp-vide[hidden] { display: none !important; }
.elp-cours-vignette { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--grad-vignette); }
.elp-cours-vignette .vg, .elp-cours-vignette picture, .elp-cours-vignette img { width: 100%; height: 100%; }
/* Sans visuel : un repli sobre, la catégorie et le titre — plus de monogramme. */
.elp-cours-repli { position: absolute; inset: 0; background: linear-gradient(135deg, #0d2c47 0%, var(--primary) 100%); display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 18px; color: #fff; }
.elp-cours-repli small { font: 700 12px var(--font-title); letter-spacing: .1em; text-transform: uppercase; color: #9fd7f3; }
.elp-cours-repli strong { font: 700 30px/1.1 var(--font-title); }
.elp-cours-badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.elp-cours-corps { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.elp-cours-cat { font: 700 11.5px var(--font-title); letter-spacing: .08em; text-transform: uppercase; color: var(--primary-600); }
.elp-cours-titre { font: 700 18px/1.25 var(--font-title); margin: 0; }
.elp-cours-titre a { color: var(--text); }
.elp-cours-resume { font-size: 14px; color: var(--muted); margin: 0; }
.elp-cours-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.elp-cours-pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.elp-prix { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font: 700 20px var(--font-title); color: var(--text); }
.elp-prix .prix-barre { font: 500 13.5px var(--font-body); }
.elp-cours-pied form { margin: 0; }
.elp-cours-pied .elp-btn { min-height: 40px; padding: 0 16px; }
.elp-vide { padding: 36px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }

@media (max-width: 640px) {
  .elp-tri { margin-left: 0; width: 100%; }
  .elp-tri select { flex: 1; }
  .elp-panneau { position: static; min-width: 0; width: 100%; box-shadow: none; margin-top: 8px; }
  .elp-facette[open] { width: 100%; }
}

/* ---- Les étapes de la commande (panier, paiement) ------------------------ */
.elp-etapes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.elp-etape { display: inline-flex; align-items: center; gap: 8px; font: 600 13.5px var(--font-title); color: #9fb6ca; }
.elp-etape b { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .3); font-size: 12.5px; }
.elp-etape.is-fait { color: #cfe3f2; }
.elp-etape.is-fait b { background: #15803d; border-color: #15803d; color: #fff; }
.elp-etape.is-ici { color: #fff; }
.elp-etape.is-ici b { background: var(--primary); border-color: var(--primary); color: #fff; }
.elp-etape-trait { color: #4f6d87; }

/* ---- L'espace de l'apprenant -------------------------------------------- */
.elp-tete-espace { background: linear-gradient(160deg, #0d2c47, #0a2136); color: #c6d7e6; border-radius: var(--r-xl); padding: 26px 28px 0; margin-bottom: 24px; display: flex; flex-direction: column; gap: 18px; }
.elp-tete-espace-haut { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.elp-tete-espace-qui { display: flex; align-items: center; gap: 14px; min-width: 0; }
.elp-tete-espace-qui .avatar { background: var(--primary-050); color: var(--primary-600); }
.elp-tete-espace h1 { font-family: var(--font-title); color: #fff; font-size: 28px; margin: 0; }
.elp-tete-espace p { margin: 0; color: #c6d7e6; font-size: 14px; overflow-wrap: anywhere; }
.elp-tete-espace-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.elp-tete-espace-actions form { margin: 0; }
.elp-onglets { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.elp-onglets a { display: inline-flex; align-items: center; min-height: 48px; border-bottom: 3px solid transparent; font: 600 14.5px var(--font-title); color: #c6d7e6; }
.elp-onglets a:hover { color: #fff; }
.elp-onglets a.is-ici { color: #fff; border-color: var(--accent); }

.elp-progression { height: 10px; border-radius: var(--r-pill); background: var(--border); overflow: hidden; }
.elp-progression > span { display: block; height: 100%; background: var(--grad-primary); }
.elp-reprendre { display: flex; flex-wrap: wrap; overflow: hidden; }
.elp-reprendre .elp-cours-vignette { flex: 1 1 320px; max-width: 440px; }
.elp-reprendre-corps { flex: 999 1 360px; padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.elp-reprendre-corps h2 { font-family: var(--font-title); font-size: 26px; margin: 0; }
.elp-trois { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.elp-bloc { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.elp-bloc h2 { font-family: var(--font-title); font-size: 19px; margin: 0; }
.elp-ligne-commande { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 1px solid var(--border); }

/* ---- Connexion et inscription : deux onglets ------------------------------ */
.elp-onglets-auth { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: #e9f0f7; margin-bottom: 16px; }
.elp-onglets-auth a { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border-radius: var(--r-pill); font: 600 14.5px var(--font-title); color: var(--muted); }
.elp-onglets-auth a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(36, 50, 68, .12); }

/* La ligne « Code promo » du récapitulatif : masquée tant qu'aucun code ne
   vaut — sa règle display:flex l'emportait sur [hidden], et une ligne vide
   « Code promo » s'affichait (2026-10-25). */
.pan-resume-ligne[hidden] { display: none !important; }

/* ---- Les pages éditables (À propos, FAQ, pages légales) ------------------- */
.elp-prose { line-height: 1.7; color: #33475b; font-size: 1.02rem; }
.elp-prose h2 { font-family: var(--font-title); font-size: 1.45rem; color: var(--text); margin: 2rem 0 .8rem; }
.elp-prose h3 { font-family: var(--font-title); font-size: 1.12rem; color: var(--text); margin: 1.8rem 0 .55rem; padding-top: 1.2rem; border-top: 1px solid var(--border); scroll-margin-top: 96px; }
.elp-prose > :first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.elp-prose p { margin: 0 0 1rem; }
.elp-prose ul, .elp-prose ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
.elp-prose li { margin: 0 0 .45rem; }
.elp-prose li::marker { color: var(--accent); }
.elp-prose strong { color: var(--text); }
.elp-acc { border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.elp-acc[hidden] { display: none; }
.elp-acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; min-height: 52px; font: 600 15.5px var(--font-title); color: var(--text); }
.elp-acc summary::-webkit-details-marker { display: none; }
.elp-acc summary svg { flex: none; transition: transform var(--t-vif); }
.elp-acc[open] summary svg { transform: rotate(180deg); }
.elp-acc-corps { padding: 0 18px 4px; }
.elp-onglets-legaux { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.elp-onglets-legaux a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); font: 600 14px var(--font-title); color: #cfe3f2; border: 1px solid rgba(255, 255, 255, .25); }
.elp-onglets-legaux a:hover { color: #fff; }
.elp-onglets-legaux a.is-ici { background: #fff; color: #0d2c47; border-color: #fff; }
.elp-sommaire { flex: 1 1 240px; max-width: 300px; padding: 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 96px; }
.elp-sommaire strong { font: 700 12px var(--font-title); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 12px; }
.elp-sommaire a { display: block; padding: 7px 12px; border-radius: 10px; font-size: 14px; color: #3d4b5c; }
.elp-sommaire a:hover { background: var(--primary-050); color: var(--primary-600); }

/* ---- Le contact et la page introuvable ---------------------------------- */
.elp-contact { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.elp-contact form { flex: 999 1 560px; min-width: 0; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.elp-contact aside { flex: 1 1 320px; max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.elp-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.elp-coord { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; }
.elp-coord + .elp-coord { border-top: 1px solid var(--border); }
.elp-coord-ico { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--primary-050); color: var(--primary-600); display: flex; align-items: center; justify-content: center; }
.elp-404 { font: 700 92px/1 var(--font-title); color: var(--primary-300); }

@media (max-width: 900px) {
  .elp-sommaire { position: static; max-width: none; }
}
