/* ════════════════════════════════════════════════════════════════
   LHCorp Suivi — Dashboard front (espace abonné)
   Tous les sélecteurs sont préfixés .lhc- pour éviter les collisions
   avec le thème WordPress. Variables CSS pour les deux thèmes.
   Adapté du mockup V6.
   ════════════════════════════════════════════════════════════════ */

/* ─── RESET local ─── */
.lhc-front, .lhc-front *, .lhc-front *::before, .lhc-front *::after {
  box-sizing: border-box;
}

/* ─── THEME DARK (par défaut) ─── */
.lhc-front[data-theme="dark"] {
  --bg:        #060e1c;
  --bg-card:   #0b1628;
  --bg-soft:   #0f1e38;
  --text:        #e2e8f0;
  --text-strong: #f8fafc;
  --muted:       #a0b4cc;
  --faint:       #6a82a0;
  --border:        rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.20);
  --green:     #34d399;
  --green-bg:  rgba(52, 211, 153, 0.10);
  --green-edge:rgba(52, 211, 153, 0.35);
  --cyan:      #00f5d4;
  --cyan-bg:   rgba(0, 245, 212, 0.10);
  --cyan-edge: rgba(0, 245, 212, 0.35);
  --pink:      #f472b6;
  --pink-bg:   rgba(244, 114, 182, 0.10);
  --pink-edge: rgba(244, 114, 182, 0.35);
  --orange:    #fb923c;
  --orange-bg: rgba(251, 146, 60, 0.10);
  --orange-edge:rgba(251, 146, 60, 0.35);
  --indigo:    #818cf8;
  --indigo-bg: rgba(129, 140, 248, 0.10);
  --indigo-edge:rgba(129, 140, 248, 0.35);
  --slate:     #94a3b8;
  --slate-bg:  rgba(148, 163, 184, 0.10);
  --slate-edge:rgba(148, 163, 184, 0.30);
  --red:       #f87171;
  --orb-1: rgba(129, 140, 248, 0.25);
  --orb-2: rgba(0, 245, 212, 0.18);
  --grid-line: rgba(59, 130, 246, 0.04);
  --shadow-soft: rgba(0, 0, 0, 0.3);
  --shadow-hover: rgba(0, 0, 0, 0.5);
  --topbar-bg: rgba(6, 14, 28, 0.85);
  --thumb-grad: linear-gradient(135deg, rgba(244,114,182,0.20) 0%, rgba(129,140,248,0.20) 100%);
}

/* ─── THEME LIGHT ─── */
.lhc-front[data-theme="light"] {
  --bg:        #f6f4ee;
  --bg-card:   #ffffff;
  --bg-soft:   #faf8f3;
  --text:        #1a2435;
  --text-strong: #0d1626;
  --muted:       #4a5872;
  --faint:       #748399;
  --border:        #e3ddd0;
  --border-strong: #c8c0b0;
  --green:     #16a34a;
  --green-bg:  #ecfdf3;
  --green-edge:#86efac;
  --cyan:      #0891b2;
  --cyan-bg:   #ecfeff;
  --cyan-edge: #67e8f9;
  --pink:      #be185d;
  --pink-bg:   #fdf2f8;
  --pink-edge: #f9a8d4;
  --orange:    #c2410c;
  --orange-bg: #fff7ed;
  --orange-edge:#fdba74;
  --indigo:    #4338ca;
  --indigo-bg: #eef2ff;
  --indigo-edge:#a5b4fc;
  --slate:     #475569;
  --slate-bg:  #f1f5f9;
  --slate-edge:#cbd5e1;
  --red:       #b91c1c;
  --orb-1: rgba(165, 180, 252, 0.4);
  --orb-2: rgba(134, 239, 172, 0.3);
  --grid-line: rgba(67, 56, 202, 0.025);
  --shadow-soft: rgba(13, 22, 38, 0.04);
  --shadow-hover: rgba(13, 22, 38, 0.08);
  --topbar-bg: rgba(255, 255, 255, 0.85);
  --thumb-grad: linear-gradient(135deg, #fce7f3 0%, #ddd6fe 100%);
}

/* ─── Conteneur principal ─── */
.lhc-front {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 80vh;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
  margin: -20px -20px 0; /* compensate page padding for full-bleed */
  padding: 0 0 80px;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.lhc-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(100px);
  opacity: 0.55;
}
.lhc-glow-1 {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: radial-gradient(circle, var(--orb-1), transparent 70%);
}
.lhc-glow-2 {
  width: 500px; height: 500px;
  bottom: -100px; left: -150px;
  background: radial-gradient(circle, var(--orb-2), transparent 70%);
}

/* ─── BANNIÈRES STATUS ─── */
.lhc-banner {
  position: relative;
  z-index: 2;
  padding: 14px 36px;
  text-align: center;
  font-size: 14px;
}
.lhc-banner-pause {
  background: var(--orange-bg);
  color: var(--orange);
  border-bottom: 1px solid var(--orange-edge);
}
.lhc-banner-cancelled {
  background: var(--slate-bg);
  color: var(--slate);
  border-bottom: 1px solid var(--slate-edge);
}

/* ─── TOPBAR ─── */
.lhc-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  background: var(--topbar-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.lhc-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.lhc-brand-logo {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 900;
  color: #ffffff;
  font-size: 24px;
  position: relative;
  box-shadow: 0 4px 14px var(--shadow-soft), 0 0 28px rgba(0, 245, 212, 0.20);
}
.lhc-front[data-theme="dark"] .lhc-brand-logo {
  color: #060e1c;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4), 0 0 32px rgba(0, 245, 212, 0.35);
}
.lhc-brand-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 19px;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}
.lhc-brand-text small {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}
.lhc-topbar-right { display: flex; align-items: center; gap: 18px; }

/* Theme toggle */
.lhc-theme-toggle {
  width: 64px; height: 32px;
  border-radius: 100px;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  position: relative; cursor: pointer;
  transition: all 0.3s ease;
  display: flex; align-items: center;
  padding: 0 4px;
  flex-shrink: 0;
}
.lhc-theme-toggle:hover { border-color: var(--border-strong); }
.lhc-theme-toggle-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-card);
  box-shadow: 0 2px 8px var(--shadow-soft);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: absolute;
  left: 3px; top: 50%;
  margin-top: -13px;
}
.lhc-front[data-theme="dark"] .lhc-theme-toggle-thumb {
  transform: translateX(30px);
  background: linear-gradient(135deg, #1e293b, #0f172a);
}
.lhc-theme-icon-sun, .lhc-theme-icon-moon { font-size: 14px; line-height: 1; }
.lhc-theme-icon-moon { display: none; }
.lhc-front[data-theme="dark"] .lhc-theme-icon-sun { display: none; }
.lhc-front[data-theme="dark"] .lhc-theme-icon-moon { display: block; }
.lhc-theme-toggle-bg-icons {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 9px;
  pointer-events: none;
  font-size: 12px; opacity: 0.4;
}

.lhc-user { display: flex; align-items: center; gap: 14px; }
.lhc-user-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #fbbf24);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  color: #ffffff;
  font-size: 16px;
  box-shadow: 0 4px 12px var(--shadow-soft);
}
.lhc-user-name {
  font-weight: 600;
  color: var(--text-strong);
  font-size: 15px;
}
.lhc-user-name small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
  margin-top: 1px;
}

/* ─── PAGE WRAPPER ─── */
.lhc-page {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px 0;
}

/* ─── HELLO HEADER ─── */
.lhc-hello { margin-bottom: 56px; animation: lhcFadeDown 0.5s ease both; }
.lhc-hello-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
  background: var(--green-bg);
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid var(--green-edge);
}
.lhc-hello-eyebrow::before {
  content: ''; width: 8px; height: 8px;
  border-radius: 50%; background: var(--green);
  animation: lhcPulse 2.5s infinite;
}
.lhc-hello h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin-bottom: 14px;
  line-height: 1.1;
}
.lhc-wave { display: inline-block; animation: lhcWave 2.5s infinite; transform-origin: 70% 70%; }
.lhc-hello-meta { color: var(--muted); font-size: 17px; line-height: 1.5; }

/* ─── GRID ─── */
.lhc-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

/* ─── CARDS génériques ─── */
.lhc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left-width: 6px;
  border-radius: 18px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  animation: lhcFadeIn 0.6s ease both;
  box-shadow: 0 4px 16px var(--shadow-soft), 0 1px 3px var(--shadow-soft);
}
.lhc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px var(--shadow-hover), 0 4px 12px var(--shadow-soft);
}
.lhc-card-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
}
.lhc-card-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.lhc-card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}
.lhc-card-subtitle {
  font-size: 12px; color: var(--muted);
  font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}
.lhc-empty { color: var(--muted); font-style: italic; padding: 16px 0; }

/* ─── Variantes par bloc ─── */
.lhc-card-tools {
  grid-column: 1 / 2;
  border-left-color: var(--green);
  background: linear-gradient(135deg, var(--bg-card) 60%, var(--green-bg));
}
.lhc-card-tools .lhc-card-icon { background: var(--green-bg); color: var(--green); }
.lhc-card-tools:hover { border-color: var(--green-edge); }

.lhc-card-counter {
  grid-column: 2 / 3;
  border-left-color: var(--orange);
  background: linear-gradient(135deg, var(--bg-card) 60%, var(--orange-bg));
}
.lhc-card-counter .lhc-card-icon { background: var(--orange-bg); color: var(--orange); }
.lhc-card-counter:hover { border-color: var(--orange-edge); }

.lhc-card-journal, .lhc-card-journal-empty {
  grid-column: 1 / -1;
  border-left-color: var(--cyan);
  background: linear-gradient(135deg, var(--bg-card) 50%, var(--cyan-bg));
  padding: 0;
  overflow: hidden;
}
.lhc-card-journal-empty { padding: 32px; }
.lhc-card-journal:hover {
  border-color: var(--cyan-edge);
  box-shadow: 0 24px 60px var(--shadow-hover), 0 0 80px rgba(0, 245, 212, 0.08);
}

.lhc-card-assistance {
  grid-column: 1 / 2;
  border-left-color: var(--indigo);
  background: linear-gradient(135deg, var(--bg-card) 60%, var(--indigo-bg));
}
.lhc-card-assistance .lhc-card-icon { background: var(--indigo-bg); color: var(--indigo); }
.lhc-card-assistance:hover { border-color: var(--indigo-edge); }

.lhc-card-videos {
  grid-column: 2 / 3;
  border-left-color: var(--pink);
  background: linear-gradient(135deg, var(--bg-card) 60%, var(--pink-bg));
}
.lhc-card-videos .lhc-card-icon { background: var(--pink-bg); color: var(--pink); }
.lhc-card-videos:hover { border-color: var(--pink-edge); }

.lhc-card-finale {
  grid-column: 1 / -1;
  border-left-color: var(--cyan);
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 245, 212, 0.06), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(148, 163, 184, 0.04), transparent 55%),
    var(--bg-card);
}
.lhc-card-finale:hover { border-color: var(--cyan-edge); }

/* ─── OUTILS ─── */
.lhc-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.lhc-tool {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.22s;
}
.lhc-tool:hover {
  transform: translateX(4px);
  border-color: var(--green-edge);
  background: var(--green-bg);
}
.lhc-tool-emoji {
  font-size: 26px;
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--green-bg);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.lhc-tool-text {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: var(--text-strong);
}
.lhc-tool-text small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
  margin-top: 3px;
  line-height: 1.4;
}

/* ─── COMPTEUR TEMPS ─── */
.lhc-time-bar-wrap { margin-bottom: 16px; }
.lhc-time-bar {
  height: 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--orange-edge);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}
.lhc-time-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange) 0%, #f59e0b 100%);
  border-radius: 100px;
  transition: width 0.6s ease;
}
.lhc-time-bar-labels {
  display: flex; justify-content: space-between;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.lhc-time-bar-labels strong {
  color: var(--orange);
  font-family: 'DM Mono', monospace;
  font-weight: 600;
}
.lhc-time-stat {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: var(--text-strong);
  line-height: 1;
  margin: 18px 0 4px;
  letter-spacing: -0.02em;
}
.lhc-time-stat span {
  color: var(--muted);
  font-size: 22px;
  font-weight: 700;
}
.lhc-time-label {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}

/* ─── JOURNAL HERO ÉDITORIAL ─── */
.lhc-journal-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 320px;
}
.lhc-journal-cover {
  position: relative;
  background:
    radial-gradient(circle at 30% 30%, rgba(0,245,212,0.20), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(129,140,248,0.18), transparent 60%),
    linear-gradient(135deg, #0a1f3a 0%, #061224 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-right: 1px solid var(--border);
}
.lhc-front[data-theme="light"] .lhc-journal-cover {
  background:
    radial-gradient(circle at 30% 30%, rgba(8, 145, 178, 0.15), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(67, 56, 202, 0.12), transparent 60%),
    linear-gradient(135deg, #f0fdfc 0%, #ecfeff 100%);
  border-right: 1px solid var(--cyan-edge);
}
.lhc-journal-cover::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 245, 212, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 212, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
}
.lhc-front[data-theme="light"] .lhc-journal-cover::before {
  background-image:
    linear-gradient(rgba(8, 145, 178, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 145, 178, 0.10) 1px, transparent 1px);
}
.lhc-journal-cover-content {
  position: relative; z-index: 1;
  text-align: center;
  padding: 32px 24px;
}
.lhc-journal-mast {
  font-family: 'Syne', sans-serif;
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  color: var(--cyan);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  text-shadow: 0 0 24px rgba(0, 245, 212, 0.4);
}
.lhc-journal-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.lhc-journal-issue {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.lhc-journal-number {
  font-family: 'Syne', sans-serif;
  font-weight: 900;
  font-size: clamp(72px, 9vw, 96px);
  line-height: 1;
  color: var(--text-strong);
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lhc-journal-divider {
  width: 40px; height: 2px;
  background: var(--cyan);
  margin: 0 auto 14px;
  opacity: 0.6;
}
.lhc-journal-cover-date {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.lhc-journal-content {
  padding: 36px 40px;
  display: flex; flex-direction: column;
}
.lhc-journal-content-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.lhc-journal-content-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--cyan-bg);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.lhc-journal-content-eyebrow {
  font-size: 12px; color: var(--muted);
  font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}
.lhc-journal-content-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}
.lhc-journal-flag {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg-card);
  color: var(--cyan);
  border: 1.5px solid var(--cyan-edge);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 16px;
  align-self: flex-start;
}
.lhc-journal-flag::before { content: '✦'; color: var(--cyan); font-size: 14px; }
.lhc-journal-title {
  font-family: 'Syne', sans-serif;
  font-weight: 900;
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--text-strong);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.lhc-journal-date {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}
.lhc-journal-date::before {
  content: ''; width: 24px; height: 1px;
  background: var(--muted); opacity: 0.4;
}
.lhc-journal-excerpt {
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 60ch;
}
.lhc-journal-actions {
  display: flex; gap: 14px;
  align-items: center; flex-wrap: wrap;
}

/* ─── BOUTONS GÉNÉRIQUES ─── */
.lhc-btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--cyan);
  color: var(--bg);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}
.lhc-btn-primary:hover { transform: translateY(-2px); opacity: 0.9; }
.lhc-front[data-theme="dark"] .lhc-btn-primary { color: #060e1c; }
.lhc-btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 14px 12px;
  transition: color 0.2s, gap 0.2s;
}
.lhc-btn-ghost:hover { color: var(--text-strong); gap: 10px; }

/* ─── ASSISTANCE BUTTONS ─── */
.lhc-assistance-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.lhc-assistance-btn {
  position: relative;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  text-align: left;
  cursor: pointer;
  transition: all 0.22s;
  color: var(--text);
  font-family: inherit;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 14px;
  width: 100%;
  background: var(--bg-card);
}
.lhc-assistance-btn:hover { transform: translateY(-3px); }

.lhc-assistance-btn-doute {
  background: linear-gradient(135deg, var(--bg-card) 50%, var(--green-bg) 100%);
  border-color: var(--green-edge);
  box-shadow: 0 0 0 1px rgba(22,163,74,0.08), 0 8px 24px rgba(22,163,74,0.06);
}
.lhc-front[data-theme="dark"] .lhc-assistance-btn-doute {
  background: linear-gradient(135deg, var(--bg-card) 50%, rgba(52,211,153,0.08) 100%);
}
.lhc-assistance-btn-doute:hover {
  border-color: var(--green);
  box-shadow: 0 12px 32px rgba(22,163,74,0.15);
}
.lhc-assistance-btn-direct:hover {
  border-color: var(--indigo-edge);
  background: var(--indigo-bg);
  box-shadow: 0 12px 28px rgba(67,56,202,0.10);
}
.lhc-assistance-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.lhc-assistance-btn-doute .lhc-assistance-icon {
  background: var(--green-bg); color: var(--green);
}
.lhc-assistance-btn-direct .lhc-assistance-icon {
  background: var(--indigo-bg); color: var(--indigo);
}
.lhc-assistance-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--text-strong);
  line-height: 1.25;
}
.lhc-assistance-desc {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}
.lhc-assistance-meta {
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 600;
  border-top: 1.5px dashed var(--border);
  line-height: 1.4;
}
.lhc-assistance-btn-doute .lhc-assistance-meta { color: var(--green); }
.lhc-assistance-btn-doute .lhc-assistance-meta::before { content: '✓ '; font-weight: 800; }
.lhc-assistance-btn-direct .lhc-assistance-meta { color: var(--muted); }
.lhc-assistance-btn-direct .lhc-assistance-meta strong {
  color: var(--indigo); font-weight: 700;
}
.lhc-assistance-badge {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--green);
  color: #ffffff;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}
.lhc-front[data-theme="dark"] .lhc-assistance-badge { color: #060e1c; }

/* ─── VIDÉO FEATURE ─── */
.lhc-video-feature {
  display: block;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  cursor: pointer;
  transition: transform 0.22s;
  text-decoration: none;
  color: inherit;
}
.lhc-video-feature:hover { transform: translateY(-2px); }
.lhc-video-thumb {
  aspect-ratio: 16 / 9;
  background: var(--thumb-grad);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1.5px solid var(--border);
}
.lhc-video-play {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--pink);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
  box-shadow: 0 6px 20px var(--shadow-hover);
}
.lhc-video-feature:hover .lhc-video-play { transform: scale(1.08); }
.lhc-video-play svg { width: 22px; height: 22px; fill: #ffffff; margin-left: 4px; }
.lhc-front[data-theme="dark"] .lhc-video-play svg { fill: #060e1c; }
.lhc-video-duration {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(13, 22, 38, 0.85);
  color: #ffffff;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
}
.lhc-video-info { padding: 16px 18px; }
.lhc-video-info-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: var(--text-strong);
  line-height: 1.3;
  margin-bottom: 5px;
}
.lhc-video-info-meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* ─── BLOC FINALE ─── */
.lhc-finale-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 320px;
}
.lhc-finale-stats {
  padding: 36px 40px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.lhc-finale-stats::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,245,212,0.04) 1px, transparent 1px);
  background-size: 100% 36px;
  pointer-events: none;
}
.lhc-finale-stats-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
  align-self: flex-start;
  background: var(--cyan-bg);
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--cyan-edge);
  position: relative; z-index: 1;
}
.lhc-finale-stats-eyebrow::before {
  content: ''; width: 7px; height: 7px;
  border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: lhcPulse 2s infinite;
}
.lhc-finale-stats-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 24px);
  color: var(--text-strong);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 28px;
  position: relative; z-index: 1;
}
.lhc-stat-row {
  display: flex; align-items: baseline;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px dashed var(--border);
  position: relative; z-index: 1;
  gap: 20px;
}
.lhc-stat-row:last-of-type { border-bottom: none; }
.lhc-stat-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
  flex: 1; min-width: 0;
}
.lhc-stat-value {
  font-family: 'Syne', sans-serif;
  font-weight: 900;
  font-size: clamp(24px, 2.8vw, 32px);
  color: var(--text-strong);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--cyan), var(--indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}
.lhc-stat-suffix {
  font-size: 0.55em;
  color: var(--muted);
  font-weight: 600;
  -webkit-text-fill-color: var(--muted);
  margin-left: 4px;
  letter-spacing: 0;
}
.lhc-finale-stats-message {
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--cyan-bg);
  border: 1px solid var(--cyan-edge);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px; line-height: 1.5;
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px;
}
.lhc-finale-stats-message strong { color: var(--text-strong); font-weight: 700; }
.lhc-finale-stats-message::before {
  content: '✦'; color: var(--cyan); font-size: 18px; flex-shrink: 0;
}
.lhc-finale-source {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--faint);
  margin-top: 14px;
  position: relative; z-index: 1;
}

/* Côté abonnement */
.lhc-finale-subscription {
  padding: 36px 40px;
  display: flex; flex-direction: column;
  background: var(--bg-soft);
}
.lhc-front[data-theme="dark"] .lhc-finale-subscription {
  background: rgba(255,255,255,0.02);
}
.lhc-finale-sub-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
}
.lhc-finale-sub-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--slate-bg);
  color: var(--slate);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.lhc-finale-sub-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--text-strong);
}
.lhc-finale-sub-subtitle {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}
.lhc-sub-info { margin-bottom: 20px; }
.lhc-sub-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--text-strong);
  margin-bottom: 6px;
}
.lhc-sub-price {
  font-family: 'Syne', sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: var(--text-strong);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.lhc-sub-price small {
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
}
.lhc-sub-period {
  font-size: 13px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
}
.lhc-sub-next {
  background: var(--slate-bg);
  border-left: 3px solid var(--slate);
  border-radius: 0 12px 12px 0;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.lhc-sub-next-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.lhc-sub-next-date {
  font-size: 15px;
  color: var(--text-strong);
  font-weight: 700;
  font-family: 'DM Mono', monospace;
}
.lhc-sub-actions {
  display: flex; flex-direction: column; gap: 8px;
}
.lhc-sub-actions a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.lhc-sub-actions a:hover {
  border-color: var(--slate-edge);
  background: var(--bg-soft);
}
.lhc-sub-actions svg { width: 14px; height: 14px; opacity: 0.5; }
.lhc-sub-savings { font-size: 11px; opacity: 0.6; }
.lhc-sub-cancel-area {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  text-align: center;
}
.lhc-sub-cancel-link {
  color: var(--faint);
  font-size: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  display: inline-block;
  padding: 4px 8px;
}
.lhc-sub-cancel-link:hover {
  color: var(--muted);
  text-decoration: underline;
}

/* ─── MODALES ─── */
.lhc-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(13, 22, 38, 0.55);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.lhc-modal-overlay.lhc-show { display: flex; animation: lhcFadeBg 0.25s ease forwards; }
.lhc-front[data-theme="dark"] .lhc-modal-overlay { background: rgba(0,0,0,0.7); }

.lhc-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  animation: lhcModalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text);
}
.lhc-modal-header { padding: 28px 32px 16px; }
.lhc-modal-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--text-strong);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.lhc-modal-subtitle {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}
.lhc-modal-warning {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--orange-bg);
  border: 1px solid var(--orange-edge);
  border-radius: 10px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 500;
}
.lhc-modal-warning strong { color: var(--orange); font-weight: 700; }
.lhc-modal-body { padding: 12px 32px 8px; }
.lhc-modal-footer {
  padding: 8px 32px 28px;
  display: flex; flex-direction: column; gap: 10px;
}

.lhc-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
  margin: 14px 0 8px;
}
.lhc-form-input, .lhc-form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color 0.2s;
}
.lhc-form-input:focus, .lhc-form-textarea:focus {
  outline: none;
  border-color: var(--cyan-edge);
}
.lhc-form-textarea { resize: vertical; min-height: 100px; }
.lhc-form-help {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  background: var(--bg-soft);
  padding: 10px 12px;
  border-radius: 8px;
}

.lhc-modal-loss {
  background: var(--orange-bg);
  border: 1px solid var(--orange-edge);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.lhc-modal-loss-title {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.lhc-modal-loss-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  padding: 0; margin: 0;
}
.lhc-modal-loss-list li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}
.lhc-modal-loss-list li::before {
  content: '×';
  color: var(--orange);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  margin-top: 2px;
}

.lhc-modal-alts {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 22px;
}
.lhc-modal-alt {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: all 0.22s;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.lhc-modal-alt:hover {
  border-color: var(--indigo-edge);
  background: var(--indigo-bg);
  transform: translateY(-2px);
}
.lhc-modal-alt-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--indigo-bg);
  color: var(--indigo);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.lhc-modal-alt-text {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-strong);
  line-height: 1.35;
}
.lhc-modal-alt-text small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
  margin-top: 3px;
  line-height: 1.4;
}

.lhc-modal-divider {
  text-align: center;
  margin: 16px 0;
  position: relative;
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lhc-modal-divider::before, .lhc-modal-divider::after {
  content: '';
  position: absolute;
  top: 50%; width: 30%; height: 1px;
  background: var(--border);
}
.lhc-modal-divider::before { left: 0; }
.lhc-modal-divider::after { right: 0; }

.lhc-modal-btn-primary {
  background: var(--indigo);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.lhc-modal-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.lhc-front[data-theme="dark"] .lhc-modal-btn-primary { color: #060e1c; }
.lhc-modal-btn-cancel {
  background: transparent;
  color: var(--faint);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 24px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.lhc-modal-btn-cancel:hover {
  color: var(--red);
  border-color: rgba(185, 28, 28, 0.3);
}
.lhc-front[data-theme="dark"] .lhc-modal-btn-cancel:hover {
  border-color: rgba(248, 113, 113, 0.4);
}

/* Pause options dans modal */
.lhc-pause-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.lhc-pause-option {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  color: var(--text);
}
.lhc-pause-option:hover { border-color: var(--indigo-edge); }
.lhc-pause-option input { display: none; }
.lhc-pause-option:has(input:checked) {
  background: var(--indigo-bg);
  border-color: var(--indigo);
  color: var(--indigo);
}

/* ─── INVITATION (login + non-subscriber) ─── */
.lhc-front-invitation {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 60px 20px;
}
.lhc-invitation-card {
  position: relative; z-index: 1;
  max-width: 540px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 48px;
  text-align: center;
  box-shadow: 0 20px 60px var(--shadow-soft);
}
.lhc-invitation-icon {
  font-size: 48px;
  margin-bottom: 20px;
}
.lhc-invitation-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.lhc-invitation-text {
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.lhc-invitation-actions {
  display: flex; flex-direction: column; gap: 10px;
  align-items: center;
  margin: 28px 0 20px;
}
.lhc-invitation-actions .lhc-btn-primary,
.lhc-invitation-actions .lhc-btn-ghost {
  width: 100%;
  justify-content: center;
}
.lhc-invitation-help {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
}
.lhc-invitation-help a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}

/* ─── ANIMATIONS ─── */
@keyframes lhcFadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lhcFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lhcFadeBg {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lhcModalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes lhcPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}
@keyframes lhcWave {
  0%, 60%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 980px) {
  .lhc-grid { grid-template-columns: 1fr; gap: 24px; }
  .lhc-card-tools, .lhc-card-counter, .lhc-card-journal,
  .lhc-card-videos, .lhc-card-assistance, .lhc-card-finale {
    grid-column: 1; grid-row: auto;
  }
  .lhc-assistance-options { grid-template-columns: 1fr; }
  .lhc-tools-grid { grid-template-columns: 1fr; }
  .lhc-journal-hero { grid-template-columns: 1fr; min-height: 0; }
  .lhc-journal-cover {
    border-right: none;
    border-bottom: 1px solid var(--cyan-edge);
    min-height: 220px;
  }
  .lhc-journal-content { padding: 28px 28px 32px; }
  .lhc-finale-grid { grid-template-columns: 1fr; min-height: 0; }
  .lhc-finale-stats { border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 600px) {
  .lhc-topbar { padding: 16px 20px; gap: 12px; }
  .lhc-brand-text { font-size: 16px; }
  .lhc-brand-text small { display: none; }
  .lhc-user-name { display: none; }
  .lhc-topbar-right { gap: 12px; }
  .lhc-page { padding: 36px 20px 0; }
  .lhc-hello { margin-bottom: 36px; }
  .lhc-hello h1 { font-size: 28px; }
  .lhc-card { padding: 24px; border-radius: 16px; }
  .lhc-card-journal { padding: 0; }
  .lhc-journal-content { padding: 24px 22px; }
  .lhc-journal-cover { min-height: 180px; }
  .lhc-journal-number { font-size: 64px; }
  .lhc-card-finale { padding: 0; }
  .lhc-finale-stats, .lhc-finale-subscription { padding: 24px 22px; }
  .lhc-modal-header, .lhc-modal-body, .lhc-modal-footer {
    padding-left: 22px; padding-right: 22px;
  }
  .lhc-invitation-card { padding: 32px 24px; }
}

/* ════════════════════════════════════════════════════════════════
   L5 — Bloc "Mes demandes" sur dashboard + page complète
   ════════════════════════════════════════════════════════════════ */
.lhc-card-demands {
  grid-column: 1 / -1;
  border-left-color: var(--slate);
  background: linear-gradient(135deg, var(--bg-card) 60%, var(--slate-bg));
}
.lhc-card-demands .lhc-card-icon { background: var(--slate-bg); color: var(--slate); }
.lhc-card-demands:hover { border-color: var(--slate-edge); }

.lhc-mydemands-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lhc-mydemand {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.lhc-mydemand:hover { border-color: var(--border-strong); }
.lhc-mydemand-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.lhc-mydemand-type {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lhc-mydemand-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.lhc-mydemand-topic {
  font-size: 15px;
  color: var(--text-strong);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}
.lhc-mydemand-date {
  font-size: 12px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
}
.lhc-mydemand-response {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--cyan-bg);
  border-left: 3px solid var(--cyan);
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}
.lhc-mydemand-response strong {
  display: block;
  color: var(--text-strong);
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lhc-mydemand-response p { margin: 0 0 8px; }
.lhc-mydemand-response p:last-child { margin: 0; }

.lhc-btn-block { display: flex; width: 100%; }

/* Page complète "Mes demandes" */
.lhc-mydemands-full {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}
.lhc-mydemand-full {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left-width: 6px;
  border-left-color: var(--indigo);
  border-radius: 14px;
  padding: 22px 26px;
}
.lhc-mydemand-full-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.lhc-mydemand-full-topic {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--text-strong);
  line-height: 1.3;
  margin-bottom: 12px;
}
.lhc-mydemand-full-notes {
  margin: 12px 0;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-radius: 8px;
  font-size: 14px;
}
.lhc-mydemand-full-notes summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
}
.lhc-mydemand-full-notes div {
  margin-top: 10px;
  color: var(--text);
  line-height: 1.5;
}
.lhc-mydemand-full-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0;
}
.lhc-mydemand-full-meta strong { color: var(--text-strong); font-family: 'DM Mono', monospace; }
.lhc-mydemand-full-response {
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--green-bg);
  border-left: 3px solid var(--green);
  border-radius: 8px;
}
.lhc-mydemand-full-response-label {
  font-weight: 700;
  font-size: 13px;
  color: var(--green);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.lhc-mydemand-full-response-body {
  color: var(--text);
  line-height: 1.6;
}
.lhc-mydemand-full-response-body p { margin: 0 0 10px; }
.lhc-mydemand-full-response-body p:last-child { margin: 0; }
.lhc-mydemand-full-pending {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--orange-bg);
  border-left: 3px solid var(--orange);
  border-radius: 8px;
  font-size: 14px;
  color: var(--orange);
}

/* ════════════════════════════════════════════════════════════════
   L5 — Vidéothèque
   ════════════════════════════════════════════════════════════════ */
.lhc-videos-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.lhc-videos-search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 4px 14px;
  transition: border-color 0.2s;
}
.lhc-videos-search:focus-within { border-color: var(--cyan); }
.lhc-videos-search-icon {
  font-size: 18px;
  margin-right: 10px;
}
.lhc-videos-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 14px 0;
  font-size: 16px;
  color: var(--text);
  font-family: inherit;
}
.lhc-videos-search input::placeholder { color: var(--faint); }
#lhc-videos-clear {
  background: var(--border);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  color: var(--muted);
  line-height: 1;
}
.lhc-videos-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lhc-videos-cat {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.lhc-videos-cat:hover { border-color: var(--cyan-edge); }
.lhc-videos-cat--active {
  background: var(--cyan);
  color: var(--bg);
  border-color: var(--cyan);
}
.lhc-front[data-theme="dark"] .lhc-videos-cat--active { color: #060e1c; }
.lhc-videos-cat-count {
  font-weight: 400;
  opacity: 0.7;
  margin-left: 4px;
}

.lhc-videos-count {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 16px;
  font-family: 'DM Mono', monospace;
}
.lhc-videos-empty {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
}

.lhc-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.lhc-video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.lhc-video-card:hover {
  transform: translateY(-3px);
  border-color: var(--cyan-edge);
  box-shadow: 0 12px 28px var(--shadow-soft);
}
.lhc-video-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--thumb-grad);
  border: none;
  cursor: pointer;
  position: relative;
  display: block;
  padding: 0;
  transition: filter 0.2s;
}
.lhc-video-card-thumb:hover { filter: brightness(1.05); }
.lhc-video-card-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(244, 114, 182, 0.95);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}
.lhc-video-card-thumb:hover .lhc-video-card-play { transform: translate(-50%, -50%) scale(1.08); }
.lhc-video-card-play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.lhc-video-card-duration {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(13, 22, 38, 0.85);
  color: #ffffff;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}
.lhc-video-card-body {
  padding: 16px 18px 18px;
}
.lhc-video-card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--text-strong);
  line-height: 1.3;
  margin: 0 0 8px;
}
.lhc-video-card-excerpt {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 10px;
}
.lhc-video-card-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lhc-video-card-cat {
  background: var(--cyan-bg);
  color: var(--cyan);
  border: 1px solid var(--cyan-edge);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lhc-video-player-modal {
  max-width: 900px;
}
.lhc-video-player-iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  margin: 0 0 22px;
  border-radius: 10px;
  overflow: hidden;
}

/* ════════════════════════════════════════════════════════════════
   L6 — Vidéothèque publique avec cadenas + modale d'abonnement
   ════════════════════════════════════════════════════════════════ */

/* Bannière visiteur en haut de la vidéothèque */
.lhc-videos-visitor-banner {
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, var(--indigo-bg), var(--cyan-bg));
  border: 1px solid var(--indigo-edge);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.lhc-videos-visitor-banner__icon {
  font-size: 36px;
  flex-shrink: 0;
}
.lhc-videos-visitor-banner__body {
  flex: 1;
  min-width: 240px;
}
.lhc-videos-visitor-banner__title {
  font-size: 16px;
  color: var(--text-strong);
  font-weight: 600;
  margin-bottom: 4px;
}
.lhc-videos-visitor-banner__sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* Badge "Aperçu gratuit" sur les vignettes publiques */
.lhc-video-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(13, 22, 38, 0.85);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  z-index: 2;
}
.lhc-video-card-badge--public {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

/* Carte verrouillée : overlay avec cadenas */
.lhc-video-card--locked .lhc-video-card-thumb {
  cursor: pointer;
}
.lhc-video-card-lock-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.85), rgba(13, 22, 38, 0.78));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.lhc-video-card-lock-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -64%);
  font-size: 38px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  z-index: 1;
}
.lhc-video-card-lock-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 28px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 1;
  padding: 0 8px;
  width: 100%;
}
.lhc-video-card-lock-cta strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lhc-video-card--locked:hover .lhc-video-card-lock-overlay {
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.78), rgba(13, 22, 38, 0.7));
}
.lhc-video-card--locked:hover .lhc-video-card-lock-icon {
  transform: translate(-50%, -64%) scale(1.05);
  transition: transform 0.2s;
}

/* Modale "Réservé aux abonnés" — pitch d'abonnement */
.lhc-modal-subscribe {
  max-width: 520px;
}
.lhc-modal-subscribe__header {
  text-align: center;
  padding: 28px 28px 20px;
  background: linear-gradient(135deg, var(--indigo-bg), var(--cyan-bg));
  border-bottom: 1px solid var(--border);
}
.lhc-modal-subscribe__icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.lhc-modal-subscribe__header h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--text-strong);
  margin: 0;
  line-height: 1.3;
}
.lhc-modal-subscribe__body {
  padding: 24px 28px;
}
.lhc-modal-subscribe__features {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lhc-modal-subscribe__features li {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.lhc-modal-subscribe__features strong {
  color: var(--text-strong);
}

/* ════════════════════════════════════════════════════════════════
   L7 — Toasts, tutoriel premier pas, accessibilité
   ════════════════════════════════════════════════════════════════ */

/* Toast (remplace alert) */
.lhc-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  z-index: 10000;
  background: #1a2435;
  color: #ffffff;
  padding: 16px 20px 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  max-width: min(560px, 90vw);
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.lhc-toast--in {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.lhc-toast--success { background: #16a34a; }
.lhc-toast--error   { background: #b91c1c; }
.lhc-toast--warning { background: #ea580c; }
.lhc-toast--info    { background: #4338ca; }
.lhc-toast__message {
  flex: 1;
  line-height: 1.45;
}
.lhc-toast__close {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  font-weight: 300;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.lhc-toast__close:hover { background: rgba(255, 255, 255, 0.3); }
.lhc-toast__close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
/* Mobile : toast en bas (plus proche du pouce, toujours visible si scroll) */
@media (max-width: 768px) {
  .lhc-toast {
    top: auto;
    bottom: 20px;
    left: 16px;
    right: 16px;
    transform: translateY(120px);
    max-width: none;
  }
  .lhc-toast--in {
    transform: translateY(0);
  }
}

/* Tutoriel premier pas */
.lhc-first-run-modal {
  max-width: 540px;
}
.lhc-first-run-icon {
  font-size: 56px;
  text-align: center;
  margin-bottom: 8px;
}
.lhc-first-run-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lhc-first-run-steps li {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 16px 20px 16px 56px;
  position: relative;
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  counter-increment: step;
}
.lhc-first-run-steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  background: var(--cyan);
  color: var(--bg);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: 'Syne', sans-serif;
}
.lhc-front[data-theme="dark"] .lhc-first-run-steps li::before { color: #060e1c; }

/* Accessibilité — police minimum 14px partout en front (recommandation senior) */
.lhc-front .lhc-mydemand-date,
.lhc-front .lhc-mydemand-type,
.lhc-front .lhc-video-card-cat,
.lhc-front .lhc-video-card-duration,
.lhc-front .lhc-card-subtitle,
.lhc-front .lhc-form-help,
.lhc-front .lhc-tag,
.lhc-front .lhc-mydemand-full-meta {
  font-size: 14px !important;
}

.lhc-front .lhc-modal-subscribe__features li,
.lhc-front .lhc-mydemand-response,
.lhc-front .lhc-mydemand-full-pending {
  font-size: 15px !important;
}

/* Focus visible pour navigation clavier */
.lhc-front *:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}
.lhc-front button:focus-visible,
.lhc-front .lhc-btn-primary:focus-visible,
.lhc-front .lhc-btn-ghost:focus-visible {
  outline-offset: 4px;
}

/* État disabled / aria-busy */
.lhc-front button[aria-busy="true"],
.lhc-front button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
