/* Studens — gabarit original des articles, compléments du cas pédagogique 2.1. */

 :root {
 --blue: #3b82f6;
 --blue-light: #60a5fa;
 --blue-pale: #93c5fd;
 --blue-dark: #1d4ed8;
 --blue-glow: rgba(59, 130, 246, 0.4);
 --bg: #020206;
 }

 body {
 font-family: 'Inter', sans-serif;
 background: var(--bg);
 color: #cbd5e1;
 }
 h1, h2, h3, h4 { font-family: 'Syne', sans-serif; }

 /* ── Glassmorphism ── */
 .glass {
 backdrop-filter: blur(20px) saturate(150%);
 -webkit-backdrop-filter: blur(20px) saturate(150%);
 background: rgba(15, 23, 42, 0.45);
 border: 1px solid rgba(59, 130, 246, 0.12);
 box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 4px 24px rgba(0,0,0,0.3);
 }
 .glass-light {
 backdrop-filter: blur(16px) saturate(140%);
 -webkit-backdrop-filter: blur(16px) saturate(140%);
 background: rgba(30, 41, 59, 0.35);
 border: 1px solid rgba(59, 130, 246, 0.08);
 }
 .glass-card {
 backdrop-filter: blur(24px) saturate(160%);
 -webkit-backdrop-filter: blur(24px) saturate(160%);
 background: rgba(15, 23, 42, 0.55);
 border: 1px solid rgba(59, 130, 246, 0.15);
 box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 32px rgba(0,0,0,0.4);
 transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
 }
 .glass-card:hover {
 background: rgba(15, 23, 42, 0.65);
 border-color: rgba(59, 130, 246, 0.3);
 transform: translateY(-2px);
 }
 .glass-nav {
 backdrop-filter: blur(24px) saturate(160%);
 -webkit-backdrop-filter: blur(24px) saturate(160%);
 background: rgba(3, 3, 8, 0.75);
 border-bottom: 1px solid rgba(59, 130, 246, 0.08);
 }
 .glass-input {
 backdrop-filter: blur(12px) saturate(130%);
 -webkit-backdrop-filter: blur(12px) saturate(130%);
 background: rgba(15, 23, 42, 0.5);
 border: 1px solid rgba(59, 130, 246, 0.15);
 }
 .glass-tag {
 backdrop-filter: blur(8px);
 -webkit-backdrop-filter: blur(8px);
 background: rgba(59, 130, 246, 0.08);
 border: 1px solid rgba(59, 130, 246, 0.2);
 }

 /* ── CTA Flare ── */
 .btn-flare {
 position: relative;
 overflow: hidden;
 transition: background .2s, transform .15s, box-shadow .35s, border-color .2s;
 }
 .btn-flare::before {
 content: '';
 position: absolute;
 inset: 0;
 background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.18) 50%, transparent 80%);
 background-size: 220% 100%;
 background-position: -120% 0;
 transition: background-position .6s ease;
 pointer-events: none;
 border-radius: inherit;
 }
 .btn-flare:hover::before {
 background-position: 220% 0;
 }
 /* Primary CTA (filled glass + glow) */
 .btn-flare-primary {
 background: rgba(59, 130, 246, 0.12);
 border: 1px solid rgba(59, 130, 246, 0.3);
 color: #93c5fd;
 box-shadow: 0 2px 16px rgba(59, 130, 246, 0.25), 0 0 40px rgba(59, 130, 246, 0.1), inset 0 1px 0 rgba(255,255,255,0.06);
 }
 .btn-flare-primary:hover {
 background: rgba(59, 130, 246, 0.2);
 border-color: rgba(59, 130, 246, 0.5);
 transform: translateY(-2px);
 box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4), 0 0 60px rgba(59, 130, 246, 0.15), inset 0 1px 0 rgba(255,255,255,0.1);
 }
 .btn-flare-nav {
 background: rgba(59, 130, 246, 0.1);
 border: 1px solid rgba(59, 130, 246, 0.25);
 color: #93c5fd;
 box-shadow: 0 0 12px rgba(59, 130, 246, 0.12);
 }
 .btn-flare-nav:hover {
 background: rgba(59, 130, 246, 0.18);
 border-color: rgba(59, 130, 246, 0.4);
 transform: translateY(-1px);
 box-shadow: 0 4px 18px rgba(59, 130, 246, 0.25), 0 0 30px rgba(59, 130, 246, 0.1);
 }

 .noise {
 background-image: url('data:image/svg+xml,%3Csvg viewBox=%220 0 200 200%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22noise%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.8%22 numOctaves=%224%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23noise)%22/%3E%3C/svg%3E');
 }

 /* ── Retro Grid ── */
 .retro-grid {
 position: fixed;
 bottom: 0;
 left: -50%;
 width: 200%;
 height: 92vh;
 pointer-events: none;
 z-index: 1;
 overflow: hidden;
 transform-style: preserve-3d;
 perspective: 400px;
 }
 .retro-grid::before {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 width: 100%;
 height: 100%;
 transform: rotateX(68deg);
 transform-origin: bottom center;
 background:
 repeating-linear-gradient(90deg, rgba(59,130,246,0.16) 0px, rgba(59,130,246,0.08) 2px, transparent 2px, transparent 60px),
 repeating-linear-gradient(0deg, rgba(59,130,246,0.12) 0px, rgba(59,130,246,0.06) 2px, transparent 2px, transparent 60px);
 background-size: 60px 60px;
 animation: grid-scroll 8s linear infinite;
 will-change: background-position;
 backface-visibility: hidden;
 -webkit-backface-visibility: hidden;
 }
 .retro-grid::after {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 3px;
 background: linear-gradient(90deg, transparent 5%, rgba(59,130,246,0.35) 30%, rgba(59,130,246,0.7) 50%, rgba(59,130,246,0.35) 70%, transparent 95%);
 filter: drop-shadow(0 0 15px rgba(59,130,246,0.7)) drop-shadow(0 0 40px rgba(59,130,246,0.4));
 }
 .retro-grid-fade {
 position: fixed;
 bottom: 0;
 left: 0;
 width: 100%;
 height: 92vh;
 pointer-events: none;
 z-index: 1;
 background: linear-gradient(to bottom, #030308 0%, transparent 25%, transparent 85%, rgba(3,3,8,0.5) 100%);
 }
 @keyframes grid-scroll {
 0% { background-position: 0 0; }
 100% { background-position: 0 60px; }
 }

 .divider-glow {
 position: relative;
 height: 1px;
 overflow: hidden;
 }
 .divider-glow::before {
 content: '';
 position: absolute;
 inset: 0;
 background: linear-gradient(to right, transparent, rgba(59, 130, 246, 0.15), transparent);
 }
 .divider-glow::after {
 content: '';
 position: absolute;
 left: 50%;
 transform: translateX(-50%);
 width: 200px;
 height: 1px;
 background: linear-gradient(to right, transparent, rgba(59, 130, 246, 0.5), transparent);
 filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
 }

 /* ── Article Prose ── */
 .prose-studens h2 {
 font-family: 'Syne', sans-serif;
 font-weight: 600;
 color: #f1f5f9;
 font-size: 1.5rem;
 margin-top: 2.5rem;
 margin-bottom: 1rem;
 letter-spacing: -0.02em;
 }
 .prose-studens h3 {
 font-family: 'Syne', sans-serif;
 font-weight: 500;
 color: #e2e8f0;
 font-size: 1.2rem;
 margin-top: 2rem;
 margin-bottom: 0.75rem;
 }
 .prose-studens p {
 color: #cbd5e1;
 font-weight: 300;
 line-height: 1.8;
 margin-bottom: 1.25rem;
 }
 .prose-studens a {
 color: #60a5fa;
 text-decoration: underline;
 text-underline-offset: 3px;
 transition: color 0.2s;
 }
 .prose-studens a:hover { color: #93c5fd; }
 .prose-studens ul, .prose-studens ol {
 margin: 1rem 0;
 padding-left: 1.5rem;
 }
 .prose-studens li {
 color: #cbd5e1;
 font-weight: 300;
 line-height: 1.7;
 margin-bottom: 0.5rem;
 }
 .prose-studens ul li { list-style-type: disc; }
 .prose-studens ol li { list-style-type: decimal; }
 .prose-studens ul li::marker { color: #3b82f6; }
 .prose-studens ol li::marker { color: #3b82f6; }
 .prose-studens blockquote {
 border-left: 2px solid rgba(59, 130, 246, 0.4);
 padding-left: 1.25rem;
 margin: 1.5rem 0;
 color: #cbd5e1;
 font-style: italic;
 font-weight: 300;
 }
 .prose-studens code {
 background: rgba(59, 130, 246, 0.1);
 border: 1px solid rgba(59, 130, 246, 0.15);
 border-radius: 4px;
 padding: 2px 6px;
 font-size: 0.875rem;
 color: #93c5fd;
 }
 .prose-studens pre {
 background: rgba(15, 23, 42, 0.6);
 border: 1px solid rgba(59, 130, 246, 0.12);
 border-radius: 12px;
 padding: 1.25rem;
 overflow-x: auto;
 margin: 1.5rem 0;
 backdrop-filter: blur(12px);
 }
 .prose-studens pre code {
 background: none;
 border: none;
 padding: 0;
 }
 .prose-studens img {
 border-radius: 16px;
 margin: 2rem 0;
 }

 /* ── Table of Contents ── */
 .toc-link {
 transition: color 0.2s, border-color 0.2s;
 border-left: 2px solid transparent;
 padding-left: 12px;
 }
 .toc-link:hover {
 color: #60a5fa;
 border-left-color: rgba(59, 130, 246, 0.5);
 }

 /* ═══ THEME TOGGLE ═══ */

 
 
 /* ═══ LIGHT THEME ═══ */

 /* Dark mode contrast improvements */
 .text-slate-500 { color: #78879a !important; }
 .text-slate-600 { color: #5e6e80 !important; }

 
 /* Dropdown Articles menu */
 .glass-nav .md\:flex > a { white-space: nowrap; }
 
    /* Nav dropdown — version validée */
    .nav-dropdown { position: relative; }
    .nav-dropdown-menu {
      position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
      min-width: 220px; padding: 8px; border-radius: 16px; opacity: 0; pointer-events: none;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); transition-delay: 0.15s;
      background: rgba(5, 5, 12, 0.98); backdrop-filter: blur(40px) saturate(1.8);
      -webkit-backdrop-filter: blur(40px) saturate(1.8);
      border: 1px solid rgba(168, 85, 247, 0.18); box-shadow: 0 24px 48px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,0,0,0.4);
      z-index: 100;
    }
    .nav-dropdown-menu::before { content:''; position:absolute; top:-28px; left:0; right:0; height:28px; background:transparent; }
    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown-menu:hover { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); transition-delay: 0s; }
    .nav-dropdown-menu a {
      display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 10px;
      font-size: 13px; color: #94a3b8; transition: all 0.2s; font-weight: 300;
    }
    .nav-dropdown-menu a:hover { background: rgba(59, 130, 246, 0.08); color: #93c5fd; }
    .nav-dropdown-menu .dropdown-divider { height: 1px; background: rgba(148, 163, 184, 0.06); margin: 4px 8px; }
    .nav-dropdown-menu .nav-dd-disabled { display:flex; align-items:center; gap:10px; padding:8px 14px; border-radius:10px; font-size:13px; color:#64748b; font-weight:300; cursor:not-allowed; opacity:0.7; }
    .nav-dropdown-menu .nav-dd-disabled:hover { background:transparent; color:#64748b; }
    .nav-dropdown-menu .nav-dd-soon { margin-left:auto; font-size:10px; padding:2px 7px; border-radius:9999px; background:rgba(148,163,184,0.1); color:#94a3b8; letter-spacing:0.04em; font-weight:500; }
  
  
/* Accessibilité et éléments du cas guidé. Les couleurs et les surfaces reprennent le gabarit existant. */
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
[hidden] { display: none !important; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: #f1f5f9; color: #020206; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid #60a5fa; outline-offset: 4px; }
.nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); transition-delay: 0s; }
.article-accent { color: #60a5fa; }
.prose-studens { min-width: 0; }
.prose-studens > section:first-child h2 { margin-top: 0; }
.prose-studens strong { color: #e2e8f0; font-weight: 600; }
.prose-studens .note { color: #94a3b8; font-size: .8125rem; line-height: 1.7; }
.prose-studens .eyebrow { color: #93c5fd; font-size: .6875rem; text-transform: uppercase; letter-spacing: .15em; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid rgba(59,130,246,.15); border-radius: 16px; background: rgba(15,23,42,.45); backdrop-filter: blur(20px); }
.table-wrap table { border-collapse: collapse; width: 100%; text-align: left; font-size: .9375rem; }
.table-wrap caption { padding: 16px 20px; color: #94a3b8; font-size: .75rem; text-align: left; }
.table-wrap th, .table-wrap td { padding: 15px 20px; border-top: 1px solid rgba(59,130,246,.12); }
.table-wrap th { color: #93c5fd; font-weight: 400; }
.table-wrap td { color: #e2e8f0; font-weight: 300; }
.callout { margin: 1.5rem 0; padding: 20px 24px; border-left: 2px solid rgba(59,130,246,.4); background: rgba(59,130,246,.04); }
.callout p:last-child { margin-bottom: 0; }
.formula { padding: 16px 20px; border-radius: 12px; background: rgba(59,130,246,.06); }
.exercise { margin: 1.5rem 0; padding: 24px; border: 1px solid rgba(59,130,246,.15); border-radius: 16px; background: rgba(15,23,42,.45); backdrop-filter: blur(20px); }
.exercise fieldset { margin: 0; padding: 0; border: 0; }
.exercise legend { margin-bottom: 18px; font-family: 'Syne', sans-serif; font-size: 1.125rem; font-weight: 500; color: #f1f5f9; }
.choice { display: flex; align-items: start; gap: 12px; margin-bottom: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(59,130,246,.15); color: #cbd5e1; font-size: .875rem; font-weight: 300; line-height: 1.7; cursor: pointer; }
.choice:has(input:checked) { background: rgba(59,130,246,.08); border-color: rgba(59,130,246,.45); }
.choice input { flex-shrink: 0; margin-top: 5px; accent-color: #3b82f6; }
.prose-studens .btn { display: inline-flex; justify-content: center; align-items: center; position: relative; overflow: hidden; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid rgba(59,130,246,.3); background: rgba(59,130,246,.12); box-shadow: 0 2px 16px rgba(59,130,246,.15), inset 0 1px 0 rgba(255,255,255,.06); color: #93c5fd; font-size: .875rem; font-weight: 300; text-align: center; text-decoration: none; cursor: pointer; transition: background .2s, transform .15s, box-shadow .35s, border-color .2s; }
.prose-studens .btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg,transparent 20%,rgba(255,255,255,.18) 50%,transparent 80%); background-size: 220% 100%; background-position: -120% 0; transition: background-position .6s ease; pointer-events: none; }
.prose-studens .btn:hover::before { background-position: 220% 0; }
.prose-studens .btn:hover { transform: translateY(-2px); border-color: rgba(59,130,246,.5); background: rgba(59,130,246,.2); box-shadow: 0 8px 32px rgba(59,130,246,.25); }
.prose-studens .btn.secondary { background: rgba(30,41,59,.35); color: #cbd5e1; box-shadow: none; border-color: rgba(59,130,246,.08); }
.exercise .btn { margin-top: 8px; }
.prose-studens .feedback { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid rgba(59,130,246,.2); color: #93c5fd; font-size: .875rem; }
.prose-studens details { margin: 1.5rem 0; padding: 20px 24px; border-radius: 16px; border: 1px solid rgba(59,130,246,.15); background: rgba(15,23,42,.45); backdrop-filter: blur(20px); }
.prose-studens summary { cursor: pointer; color: #93c5fd; font-weight: 400; }
.prose-studens details p:first-of-type { margin-top: 18px; }
.prose-studens details p:last-child { margin-bottom: 0; }
.article-aside { width: 256px; flex-shrink: 0; }
.article-aside-inner { position: sticky; top: 96px; max-height: calc(100dvh - 112px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3b82f6 transparent; padding: 24px; border-radius: 16px; }
.article-aside h2 { color: #94a3b8; font-family: 'Inter', sans-serif; font-size: .75rem; font-weight: 300; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.article-aside ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.article-aside a { display: block; border-left: 2px solid transparent; padding-left: 12px; font-size: .875rem; line-height: 1.5; font-weight: 300; color: #78879a; transition: color .2s, border-color .2s; }
.article-aside a:hover { color: #60a5fa; border-left-color: rgba(59,130,246,.5); }
.article-aside .note { color: #94a3b8; font-size: .75rem; line-height: 1.7; font-weight: 300; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(59,130,246,.12); }
.article-cta { margin: 2.5rem 0; padding: 28px; border-radius: 16px; border: 1px solid rgba(59,130,246,.18); background: rgba(15,23,42,.55); backdrop-filter: blur(24px); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 32px rgba(0,0,0,.4); }
.prose-studens .article-cta h2 { margin-top: 0; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 24px 0; }
.related { display: grid; gap: 12px; margin: 20px 0 0; }
.prose-studens .related a { display: block; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(59,130,246,.15); background: rgba(15,23,42,.45); text-decoration: none; font-size: .875rem; font-weight: 300; }
.prose-studens .related a:hover { border-color: rgba(59,130,246,.3); background: rgba(15,23,42,.65); }
@media(max-width:1023px) { .article-aside { width: 100%; } .article-aside-inner { position: static; max-height: none; overflow: visible; } .article-aside ol { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:540px) { .exercise, .article-cta { padding: 20px; } .table-wrap th, .table-wrap td { padding: 12px; font-size: .8125rem; } .article-aside ol { grid-template-columns: 1fr; } .actions .btn { width: 100%; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } .retro-grid::before { animation: none; } *, *::before { transition: none !important; } }

/* Garde les menus et colonnes lisibles aux largeurs intermédiaires. */
/* Clip horizontal decoration without creating a scroll container that traps sticky. */
html,body.overflow-x-hidden{overflow-x:clip}.prose-studens{overflow-wrap:anywhere}.prose-studens .table-wrap{max-width:100%}footer a{overflow-wrap:anywhere}
@media(min-width:768px) and (max-width:1040px){.glass-nav form[role=search]{display:none}.glass-nav .gap-6{gap:16px}.glass-nav .gap-4{gap:8px}}
