/* enligneici — refonte dev v1 */

:root{
  --bg:#0b1020;
  --bg2:#0e1628;
  --card:#141d31;
  --card2:#19243b;
  --card3:#101827;
  --line:#293a58;
  --line2:#385173;
  --text:#f3f7ff;
  --muted:#9fb0cc;
  --muted2:#c1cce0;
  --accent:#4da3ff;
  --accent2:#7c5cff;
  --ok:#3ddc97;
  --warn:#ffcc66;
  --danger:#ff6b6b;
  --radius:22px;
  --radius2:14px;
  --shadow:0 20px 60px rgba(0,0,0,.32);
  --shadow2:0 10px 30px rgba(0,0,0,.24);
  --font:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(77,163,255,.20), transparent 32rem),
    radial-gradient(circle at top right, rgba(124,92,255,.18), transparent 30rem),
    linear-gradient(180deg, var(--bg), #070b14 75%);
  min-height:100vh;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,input{font:inherit}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  padding:14px clamp(16px,4vw,46px);
  background:rgba(8,12,24,.74);
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(16px);
}
.brand{
  display:flex;
  align-items:center;
  gap:.7rem;
  font-weight:850;
  letter-spacing:.02em;
}
.brand-mark{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  box-shadow:0 12px 32px rgba(77,163,255,.25);
}
.topbar-links{
  display:flex;
  align-items:center;
  gap:.5rem;
}
.topbar-links a{
  padding:9px 13px;
  border-radius:999px;
  color:var(--muted2);
}
.topbar-links a:hover,
.topbar-links a.is-active{
  background:rgba(255,255,255,.08);
  color:var(--text);
}
.admin-link{
  border:1px solid rgba(255,255,255,.12);
}

.shell{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
  padding:28px 0 54px;
}
.lesson-shell{
  width:min(1380px, calc(100% - 28px));
  margin:0 auto;
  padding:22px 0 54px;
}

.hero{
  position:relative;
  overflow:hidden;
  min-height:390px;
  display:grid;
  grid-template-columns:1.08fr .92fr;
  align-items:center;
  gap:2rem;
  padding:clamp(30px,5vw,62px);
  border:1px solid rgba(255,255,255,.10);
  border-radius:32px;
  background:
    linear-gradient(135deg, rgba(20,29,49,.94), rgba(15,23,42,.74)),
    radial-gradient(circle at 70% 20%, rgba(77,163,255,.24), transparent 28rem);
  box-shadow:var(--shadow);
}
.hero.compact{min-height:300px}
.hero h1{
  margin:.2rem 0 1rem;
  font-size:clamp(2.2rem,5.6vw,5rem);
  line-height:.96;
  letter-spacing:-.06em;
}
.hero.compact h1{font-size:clamp(2rem,4.4vw,4rem)}
.hero-text{
  max-width:680px;
  color:var(--muted2);
  font-size:clamp(1rem,1.5vw,1.25rem);
  line-height:1.6;
}
.eyebrow{
  margin:0 0 .35rem;
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:.78rem;
  font-weight:900;
}
.hero-actions,.card-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
  margin-top:1.4rem;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 18px;
  border:1px solid transparent;
  border-radius:999px;
  font-weight:800;
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
  cursor:pointer;
}
.btn:hover{transform:translateY(-1px)}
.btn.primary{
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:white;
  box-shadow:0 12px 28px rgba(77,163,255,.22);
}
.btn.ghost{
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.12);
  color:var(--text);
}
.btn.small{
  min-height:38px;
  padding:0 14px;
  font-size:.92rem;
}
.hero-visual{
  position:relative;
  min-height:280px;
}
.orb{
  position:absolute;
  border-radius:999px;
  filter:blur(.2px);
}
.orb-a{
  width:250px;height:250px;
  right:12%;top:4%;
  background:radial-gradient(circle, rgba(77,163,255,.95), rgba(77,163,255,.08) 64%, transparent);
}
.orb-b{
  width:190px;height:190px;
  right:42%;bottom:0;
  background:radial-gradient(circle, rgba(124,92,255,.90), rgba(124,92,255,.08) 64%, transparent);
}
.tech-card{
  position:absolute;
  right:8%;
  bottom:18%;
  width:min(320px,80%);
  padding:22px;
  border-radius:24px;
  background:rgba(13,21,38,.72);
  border:1px solid rgba(255,255,255,.14);
  box-shadow:var(--shadow2);
  backdrop-filter:blur(12px);
}
.tech-card strong{
  display:block;
  margin-top:.75rem;
  font-size:1.35rem;
  line-height:1.15;
}
.chip{
  display:inline-flex;
  padding:.35rem .65rem;
  border-radius:999px;
  background:rgba(77,163,255,.16);
  color:#bfe0ff;
  border:1px solid rgba(77,163,255,.30);
  font-weight:850;
  font-size:.78rem;
}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:1.5rem;
  margin:42px 0 18px;
}
.section-head h2{
  margin:0;
  font-size:clamp(1.6rem,3vw,2.35rem);
  letter-spacing:-.04em;
}
.section-head p{
  max-width:460px;
  margin:0;
  color:var(--muted);
  line-height:1.55;
}

.level-grid,.sequence-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.level-card,.sequence-card{
  overflow:hidden;
  min-height:100%;
  border-radius:var(--radius);
  background:linear-gradient(180deg,rgba(20,29,49,.96),rgba(14,22,40,.96));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:var(--shadow2);
}
.level-card:hover,.sequence-card:hover{
  border-color:rgba(77,163,255,.35);
  transform:translateY(-2px);
  transition:.18s ease;
}
.media-link,.sequence-cover{
  display:block;
  aspect-ratio:16/10;
  overflow:hidden;
  background:var(--card3);
}
.media-link img,.sequence-cover img,.hero-image img,.lesson-hero-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.card-body{padding:20px}
.card-meta{
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  margin-bottom:.7rem;
}
.card-meta span,.badge{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:0 .62rem;
  border-radius:999px;
  font-size:.75rem;
  font-weight:850;
  color:#cbd9f1;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.10);
}
.badge.accent{background:rgba(77,163,255,.14);border-color:rgba(77,163,255,.28);color:#cce8ff}
.badge.danger{background:rgba(255,107,107,.14);border-color:rgba(255,107,107,.32);color:#ffd1d1}
.badge.neutral{background:rgba(255,255,255,.07)}
.card-body h3{
  margin:.2rem 0 .6rem;
  font-size:1.35rem;
  letter-spacing:-.03em;
}
.card-body p{
  margin:0;
  color:var(--muted);
  line-height:1.55;
}

.hero-image{
  overflow:hidden;
  align-self:stretch;
  min-height:240px;
  border-radius:26px;
  border:1px solid rgba(255,255,255,.12);
  background:var(--card3);
}
.stats-row{
  display:flex;
  flex-wrap:wrap;
  gap:.8rem;
  margin-top:1.2rem;
}
.stats-row span{
  padding:.8rem 1rem;
  border-radius:18px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:var(--muted2);
}
.stats-row strong{color:var(--text)}

.breadcrumb{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
  align-items:center;
  margin:18px 0;
  color:var(--muted);
  font-size:.95rem;
}
.breadcrumb a{color:#cfe7ff}
.breadcrumb strong{color:var(--text)}

.lesson-list{
  display:grid;
  gap:14px;
  margin-top:26px;
}
.lesson-row{
  display:grid;
  grid-template-columns:72px 1fr auto;
  gap:18px;
  align-items:center;
  padding:18px;
  border-radius:var(--radius);
  background:rgba(20,29,49,.92);
  border:1px solid rgba(255,255,255,.10);
}
.lesson-index{
  width:58px;height:58px;
  display:grid;
  place-items:center;
  border-radius:20px;
  background:linear-gradient(135deg,rgba(77,163,255,.22),rgba(124,92,255,.18));
  color:#dcecff;
  font-weight:950;
}
.lesson-tags{
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  margin-bottom:.5rem;
}
.lesson-content h2{
  margin:0 0 .45rem;
  font-size:1.3rem;
}
.lesson-content p{
  margin:0;
  color:var(--muted);
  line-height:1.5;
}

.lesson-breadcrumb{margin-top:4px}
.lesson-hero{
  display:grid;
  grid-template-columns:1.1fr 320px;
  gap:18px;
  align-items:stretch;
  padding:22px;
  border-radius:30px;
  background:linear-gradient(135deg,rgba(20,29,49,.96),rgba(12,18,32,.94));
  border:1px solid rgba(255,255,255,.10);
  box-shadow:var(--shadow2);
}
.lesson-hero h1{
  margin:.4rem 0 .65rem;
  font-size:clamp(1.9rem,4vw,3.35rem);
  line-height:1.02;
  letter-spacing:-.05em;
}
.lesson-hero p{
  max-width:850px;
  margin:0;
  color:var(--muted2);
  line-height:1.55;
}
.lesson-hero-image{
  overflow:hidden;
  border-radius:22px;
  min-height:180px;
  background:var(--card3);
  border:1px solid rgba(255,255,255,.10);
}

.session-tabs{
  position:sticky;
  top:66px;
  z-index:30;
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:12px 2px;
  margin:10px 0 18px;
  scrollbar-width:thin;
}
.session-tabs a{
  flex:0 0 auto;
  max-width:260px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color:var(--muted2);
  font-weight:750;
}
.session-tabs a.is-current{
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:#fff;
}

.lesson-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 390px;
  gap:20px;
  align-items:start;
}
.lesson-main,.resource-panel{
  min-width:0;
}
.content-card{
  overflow:hidden;
  padding:clamp(18px,3vw,34px);
  border-radius:var(--radius);
  background:rgba(247,250,255,.98);
  color:#101827;
  box-shadow:var(--shadow2);
}
.content-card :where(h1,h2,h3){
  color:#0f172a;
  letter-spacing:-.03em;
}
.content-card :where(p,li,td,th){
  line-height:1.58;
}
.content-card img{
  border-radius:14px;
  margin:12px 0;
}
.content-card table{
  width:100%;
  border-collapse:collapse;
  margin:1rem 0;
}
.content-card th,.content-card td{
  border:1px solid #cbd5e1;
  padding:.6rem;
  vertical-align:top;
}
.content-card th{background:#eef4ff}

.notice{
  display:flex;
  gap:.8rem;
  align-items:center;
  padding:14px 16px;
  margin-bottom:14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
}
.notice.correction{
  background:rgba(255,107,107,.12);
  border-color:rgba(255,107,107,.32);
}

.resource-panel{
  position:sticky;
  top:128px;
  max-height:calc(100vh - 150px);
  overflow:auto;
  padding:18px;
  border-radius:var(--radius);
  background:rgba(20,29,49,.96);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:var(--shadow2);
}
.panel-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  margin-bottom:14px;
}
.panel-head h2{margin:0;font-size:1.15rem}
.panel-head span{
  display:grid;
  place-items:center;
  min-width:32px;height:32px;
  border-radius:999px;
  background:rgba(77,163,255,.16);
  color:#cfe7ff;
  font-weight:900;
}
.resource-list{
  display:grid;
  gap:12px;
}
.resource-item{
  display:grid;
  grid-template-columns:52px 1fr;
  gap:12px;
  align-items:center;
  padding:12px;
  border-radius:18px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.08);
}
.resource-icon{
  width:52px;height:52px;
  display:grid;
  place-items:center;
  border-radius:16px;
  color:#d7ecff;
  background:linear-gradient(135deg,rgba(77,163,255,.22),rgba(124,92,255,.20));
  font-size:.76rem;
  font-weight:950;
}
.resource-info{
  min-width:0;
}
.resource-info strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.resource-info a{
  display:inline-block;
  margin-top:.25rem;
  color:#acd8ff;
  font-weight:800;
}
.embedded-media,.embedded-pdf,.embedded-audio{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:#0b1020;
}
.embedded-media{
  max-height:360px;
  object-fit:contain;
}
.embedded-pdf{
  height:420px;
}
.embedded-audio{
  padding:8px;
}
.muted{color:var(--muted);line-height:1.5}

.prev-next{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  margin-top:20px;
}

.locked-panel{
  display:grid;
  grid-template-columns:1fr minmax(280px,420px);
  gap:24px;
  align-items:center;
  padding:clamp(24px,4vw,42px);
  border-radius:28px;
  background:linear-gradient(135deg,rgba(255,107,107,.13),rgba(20,29,49,.96));
  border:1px solid rgba(255,255,255,.12);
}
.locked-panel h2{
  margin:.2rem 0 .7rem;
  font-size:clamp(1.8rem,3.5vw,3rem);
  letter-spacing:-.05em;
}
.locked-panel p{color:var(--muted2)}
.unlock-form{
  display:grid;
  gap:.7rem;
  padding:18px;
  border-radius:22px;
  background:rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.10);
}
.unlock-form label{
  color:var(--muted2);
  font-weight:800;
}
.unlock-form input{
  width:100%;
  min-height:46px;
  padding:0 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.08);
  color:var(--text);
}
.form-error{
  margin:0;
  color:#ffd1d1;
  font-weight:800;
}

.empty-state{
  grid-column:1/-1;
  padding:32px;
  border-radius:var(--radius);
  background:rgba(20,29,49,.78);
  border:1px solid rgba(255,255,255,.10);
  color:var(--muted2);
}
.empty-state h1,.empty-state h3{
  color:var(--text);
  margin-top:0;
}
.empty-state.inside{
  background:#eef4ff;
  color:#334155;
  border-color:#cbd5e1;
}
.empty-state.inside h3{color:#0f172a}

.site-footer{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
  padding:28px 0 40px;
  display:flex;
  justify-content:space-between;
  gap:1rem;
  color:var(--muted);
  border-top:1px solid rgba(255,255,255,.08);
}

@media (max-width:980px){
  .hero,.hero.compact,.lesson-hero,.lesson-layout,.locked-panel{
    grid-template-columns:1fr;
  }
  .hero-image,.lesson-hero-image{
    min-height:220px;
  }
  .level-grid,.sequence-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .resource-panel{
    position:relative;
    top:auto;
    max-height:none;
  }
}
@media (max-width:680px){
  .topbar{
    position:relative;
    align-items:flex-start;
    flex-direction:column;
  }
  .topbar-links{
    width:100%;
    overflow:auto;
  }
  .hero{
    padding:24px;
    border-radius:24px;
  }
  .level-grid,.sequence-grid{
    grid-template-columns:1fr;
  }
  .section-head{
    align-items:start;
    flex-direction:column;
  }
  .lesson-row{
    grid-template-columns:1fr;
  }
  .lesson-index{
    width:48px;height:48px;
  }
  .lesson-action{
    justify-self:start;
  }
  .site-footer{
    flex-direction:column;
  }
}

/* ===== enligneici compact v2 START =====
   But : moins de molette, plus d'informations visibles.
   On garde la v1, on la rend utilisable sans faire du cardio avec l'index.
=========================================================== */

:root{
  --radius:16px;
  --radius2:12px;
}

/* Barre du haut plus fine */
.topbar{
  padding:8px clamp(12px,3vw,32px);
}
.brand-mark{
  width:30px;
  height:30px;
  border-radius:10px;
}
.topbar-links a{
  padding:7px 11px;
  font-size:.92rem;
}

/* Pages globales plus denses */
.shell{
  width:min(1360px, calc(100% - 24px));
  padding:14px 0 28px;
}
.lesson-shell{
  width:min(1500px, calc(100% - 22px));
  padding:10px 0 28px;
}

/* Gros bandeaux réduits */
.hero{
  min-height:220px;
  grid-template-columns:1.45fr .55fr;
  gap:1rem;
  padding:22px;
  border-radius:22px;
}
.hero.compact{
  min-height:170px;
  padding:18px;
}
.hero h1{
  margin:.1rem 0 .55rem;
  font-size:clamp(1.75rem,3.8vw,3.6rem);
  line-height:1;
}
.hero.compact h1{
  font-size:clamp(1.55rem,3.2vw,3rem);
}
.hero-text{
  max-width:780px;
  font-size:1rem;
  line-height:1.42;
}
.hero-actions,
.card-actions{
  margin-top:.85rem;
  gap:.55rem;
}
.hero-image{
  min-height:145px;
  border-radius:18px;
}
.hero-visual{
  min-height:150px;
}
.orb-a{
  width:150px;
  height:150px;
}
.orb-b{
  width:120px;
  height:120px;
}
.tech-card{
  width:min(270px,90%);
  padding:15px;
  border-radius:18px;
}
.tech-card strong{
  font-size:1.05rem;
}

/* Titres de section moins hauts */
.section-head{
  margin:24px 0 12px;
}
.section-head h2{
  font-size:clamp(1.35rem,2.4vw,2rem);
}
.section-head p{
  font-size:.95rem;
  line-height:1.42;
}

/* Cartes niveaux compactes : image à gauche */
.level-grid{
  grid-template-columns:repeat(auto-fit,minmax(330px,1fr));
  gap:12px;
}
.level-card{
  display:grid;
  grid-template-columns:132px 1fr;
  min-height:158px;
  border-radius:18px;
}
.level-card .media-link{
  height:100%;
  aspect-ratio:auto;
}
.level-card .card-body{
  padding:14px;
}
.level-card .card-body h3{
  font-size:1.15rem;
  margin:.1rem 0 .35rem;
}
.level-card .card-body p{
  font-size:.92rem;
  line-height:1.38;
}

/* Cartes séquences compactes : image à gauche */
.sequence-grid{
  grid-template-columns:repeat(auto-fit,minmax(360px,1fr));
  gap:12px;
}
.sequence-card{
  display:grid;
  grid-template-columns:124px 1fr;
  min-height:150px;
  border-radius:18px;
}
.sequence-card .sequence-cover{
  height:100%;
  aspect-ratio:auto;
}
.sequence-card .card-body{
  padding:14px;
}
.sequence-card .card-body h3{
  font-size:1.12rem;
  margin:.1rem 0 .35rem;
}
.sequence-card .card-body p{
  font-size:.91rem;
  line-height:1.35;
}

/* Métadonnées et boutons plus fins */
.card-meta{
  margin-bottom:.45rem;
}
.card-meta span,
.badge{
  min-height:22px;
  padding:0 .52rem;
  font-size:.70rem;
}
.btn{
  min-height:38px;
  padding:0 14px;
}
.btn.small{
  min-height:32px;
  padding:0 11px;
  font-size:.86rem;
}

/* Fil d’Ariane moins envahissant */
.breadcrumb{
  margin:9px 0;
  font-size:.88rem;
}

/* Liste des séances en grille compacte */
.lesson-list{
  grid-template-columns:repeat(auto-fit,minmax(390px,1fr));
  gap:10px;
  margin-top:14px;
}
.lesson-row{
  grid-template-columns:44px minmax(0,1fr) auto;
  gap:11px;
  padding:12px;
  border-radius:16px;
}
.lesson-index{
  width:40px;
  height:40px;
  border-radius:14px;
  font-size:.82rem;
}
.lesson-tags{
  margin-bottom:.3rem;
}
.lesson-content h2{
  margin:0 0 .25rem;
  font-size:1.02rem;
}
.lesson-content p{
  font-size:.88rem;
  line-height:1.32;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Page séance : bandeau plus bas, image moins dominante */
.lesson-hero{
  grid-template-columns:minmax(0,1fr) 210px;
  gap:12px;
  padding:14px;
  border-radius:20px;
}
.lesson-hero h1{
  margin:.25rem 0 .35rem;
  font-size:clamp(1.45rem,2.7vw,2.55rem);
}
.lesson-hero p{
  font-size:.96rem;
  line-height:1.36;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.lesson-hero-image{
  min-height:110px;
  border-radius:16px;
}

/* Onglets de séances plus discrets */
.session-tabs{
  top:48px;
  padding:8px 1px;
  margin:6px 0 10px;
  gap:6px;
}
.session-tabs a{
  max-width:210px;
  padding:7px 11px;
  font-size:.86rem;
}

/* Le gros changement : page séance en mode application.
   La page globale scrolle beaucoup moins ; contenu et ressources scrollent dans leurs panneaux. */
.lesson-layout{
  grid-template-columns:minmax(0,1fr) 350px;
  gap:14px;
  height:calc(100vh - 285px);
  min-height:430px;
}
.lesson-main{
  min-height:0;
  height:100%;
  overflow:auto;
  padding-right:2px;
}
.content-card{
  min-height:100%;
  padding:22px;
  border-radius:18px;
}
.content-card :where(h1,h2,h3){
  margin-top:.6rem;
  margin-bottom:.45rem;
}
.content-card :where(p,li,td,th){
  line-height:1.46;
}
.content-card img{
  max-height:55vh;
  object-fit:contain;
}

/* Ressources moins géantes */
.resource-panel{
  position:relative;
  top:auto;
  height:100%;
  max-height:none;
  padding:13px;
  border-radius:18px;
}
.panel-head{
  margin-bottom:10px;
}
.resource-list{
  gap:9px;
}
.resource-item{
  grid-template-columns:42px 1fr;
  gap:9px;
  padding:9px;
  border-radius:14px;
}
.resource-icon{
  width:42px;
  height:42px;
  border-radius:13px;
  font-size:.68rem;
}
.resource-info strong{
  font-size:.9rem;
}
.resource-info a{
  font-size:.86rem;
}
.embedded-media{
  max-height:230px;
}
.embedded-pdf{
  height:260px;
}
.embedded-audio{
  padding:4px;
}

/* Panneau verrouillé plus compact */
.locked-panel{
  padding:22px;
  border-radius:22px;
}
.locked-panel h2{
  font-size:clamp(1.55rem,2.7vw,2.5rem);
}
.unlock-form{
  padding:14px;
}

/* Navigation bas de page */
.prev-next{
  margin-top:12px;
}

/* Pied de page moins haut */
.site-footer{
  width:min(1360px, calc(100% - 24px));
  padding:16px 0 24px;
}

/* Mobile : on garde du confort, pas un tableur soviétique */
@media (max-width:980px){
  .hero,
  .hero.compact,
  .lesson-hero,
  .lesson-layout,
  .locked-panel{
    grid-template-columns:1fr;
  }

  .hero-image,
  .lesson-hero-image{
    display:none;
  }

  .lesson-layout{
    height:auto;
    min-height:0;
  }

  .lesson-main,
  .resource-panel{
    height:auto;
    overflow:visible;
  }

  .resource-panel{
    position:relative;
    top:auto;
  }
}

@media (max-width:700px){
  .level-card,
  .sequence-card{
    grid-template-columns:96px 1fr;
  }

  .level-grid,
  .sequence-grid,
  .lesson-list{
    grid-template-columns:1fr;
  }

  .lesson-row{
    grid-template-columns:38px 1fr;
  }

  .lesson-action{
    grid-column:2;
  }

  .topbar{
    gap:.5rem;
  }
}

/* ===== enligneici compact v2 END ===== */
