/* ============================================================================
   vitrine.css : styles partages des pages vitrine publiques (prefixe .demo-page).
   Extrait de About.razor lors du decoupage en plusieurs pages (About,
   Fonctionnalites, Conformite, EcolePilote). Toute page vitrine qui utilise ces
   classes doit encapsuler son contenu dans <div class="demo-page"> et lier cette
   feuille via HeadContent. RÈGLE #1 (aucun emoji) et RÈGLE #6 (typographie FR).
   ============================================================================ */
 /* Force le scroll natif même si un parent a overflow: hidden */
 html, body { height: auto !important; overflow: auto !important; overflow-x: hidden !important; }
 .demo-page { position: relative; font-family: 'Outfit', 'Inter', system-ui, sans-serif; color: #0F172A; line-height: 1.55; background: #FFFFFF; min-height: 100vh; --bar-primary: #F97316; --bar-accent: #FBBF24; scroll-behavior: smooth; }
 .demo-page .container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
 .demo-page h1, .demo-page h2, .demo-page h3 { font-weight: 800; letter-spacing: -0.01em; margin: 0; }
 .demo-page h2 { font-size: 28px; margin-bottom: 8px; }
 .demo-page h3 { font-size: 17px; margin-bottom: 12px; color: #0F172A; }
 /* Aligne les AppIcon utilisés dans les titres avec le texte */
 .demo-page h2 .app-icon, .demo-page h3 .app-icon { vertical-align: middle; }
 .demo-page h3 .app-icon + span { display: inline-block; vertical-align: middle; }
 .demo-page p { margin: 8px 0; }
 .demo-page ul { padding-left: 18px; margin: 8px 0; }
 .demo-page code { background: #F1F5F9; padding: 2px 6px; border-radius: 4px; font-family: 'Menlo', 'Consolas', monospace; font-size: 0.9em; color: #475569; }
 .demo-page .lead { font-size: 18px; color: #475569; max-width: 720px; }
 .demo-page .section-lead { color: #64748B; max-width: 720px; margin-bottom: 28px; }
 .demo-page .muted { color: #94A3B8; font-size: 13px; }

 /* HERO */
 .demo-page .hero { background: linear-gradient(135deg, #FFF7ED 0%, #FEF3C7 100%); padding: 72px 0 56px; text-align: center; }
 .demo-page .hero-home { display: inline-flex; align-items: center; gap: 6px; color: #1E5F8A;
   text-decoration: none; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
 .demo-page .hero-home:hover { text-decoration: underline; }
 .demo-page .hero-logo { width: 320px; max-width: 80%; margin: 0 auto 16px; display: block; }
 .demo-page .hero h1 { font-size: 40px; margin-top: 8px; max-width: 760px; margin-left: auto; margin-right: auto; }
 .demo-page .hero .lead { margin: 16px auto 32px; }

 .demo-page .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
 /* Base commune des trois familles de boutons vitrine (charte docs/60) :
    btn-app DOIT figurer ici, sinon il n'hérite ni du padding ni de l'arrondi. */
 .demo-page .btn-primary, .demo-page .btn-secondary, .demo-page .btn-app {
 display: inline-block; padding: 10px 18px; border-radius: 9px; font-weight: 600;
 font-size: 14px; white-space: nowrap;
 text-decoration: none; transition: transform .1s, box-shadow .1s;
 }
 .demo-page .btn-primary { background: linear-gradient(135deg, #F97316, #EF4444); color: white; box-shadow: 0 2px 8px rgba(239,68,68,0.18); }
 .demo-page .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(239,68,68,0.26); }
 .demo-page .btn-secondary { background: white; color: #0F172A; border: 1px solid #E2E8F0; }
 .demo-page .btn-secondary:hover { background: #F8FAFC; }
 /* R4 (charte docs/60) : entrée dans l'application -> bleu SINI plein */
 .demo-page .btn-app { background: #1E5F8A; color: white; box-shadow: 0 2px 8px rgba(30,95,138,0.18); }
 .demo-page .btn-app:hover { transform: translateY(-1px); background: #17496B; }

 /* Simulation temps réel (école pilote) : badge live + flash de mise à jour */
 .demo-page .live-badge { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px;
   font-size: 12px; font-weight: 600; color: #16A34A; white-space: nowrap; }
 .demo-page .live-dot { width: 8px; height: 8px; border-radius: 50%; background: #16A34A;
   display: inline-block; animation: liveDotPulse 2.2s ease-in-out infinite; }
 @keyframes liveDotPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,.45); } 50% { box-shadow: 0 0 0 6px rgba(22,163,74,0); } }
 .demo-page .tick { animation: tickFlash 1.2s ease; }
 @keyframes tickFlash { 0% { background: #FEF3C7; } 100% { background: transparent; } }
 @media (prefers-reduced-motion: reduce) {
   .demo-page .live-dot, .demo-page .tick { animation: none; }
 }

 /* STATS BAND */
 .demo-page .stats-band { background: #0F172A; color: white; padding: 32px 0; }
 .demo-page .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
 .demo-page .stats-grid .value { font-size: 32px; font-weight: 800; background: linear-gradient(135deg, #F97316, #FBBF24); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
 .demo-page .stats-grid .label { font-size: 13px; color: #94A3B8; text-transform: uppercase; letter-spacing: 1px; }

 /* DIFFERENTIATORS — Pourquoi ScolaPro vs outils classiques */
 .demo-page .differentiators { background: linear-gradient(180deg, #FFF7ED 0%, #FFFFFF 100%);
   padding: 72px 0; border-bottom: 1px solid #F4E4C2; }
 .demo-page .diff-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em;
   text-transform: uppercase; color: #F97316; text-align: center; margin-bottom: 8px; }
 .demo-page .differentiators h2 { text-align: center; max-width: 720px; margin: 0 auto 12px;
   font-size: 32px; }
 .demo-page .differentiators .section-lead { text-align: center; max-width: 760px;
   margin: 0 auto 40px; font-size: 16px; line-height: 1.6; color: #475569; }
 .demo-page .differentiators .section-lead strong { color: #0F172A; }

 .demo-page .diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
   margin-bottom: 32px; }
 .demo-page .diff-card { background: white; border: 1px solid #E2E8F0; border-radius: 16px;
   padding: 28px 24px; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
   transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
   display: flex; flex-direction: column; }
 .demo-page .diff-card:hover { transform: translateY(-3px); border-color: #FCD9A8;
   box-shadow: 0 12px 28px rgba(249, 115, 22, 0.12); }
 .demo-page .diff-card.highlight { border-top: 4px solid #F97316; }
 .demo-page .diff-icon-wrap { width: 64px; height: 64px; border-radius: 16px;
   display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
 .demo-page .diff-card h3 { color: #0F172A; font-size: 18px; margin-bottom: 10px; }
 .demo-page .diff-card p { color: #475569; font-size: 14px; line-height: 1.6; margin-bottom: 14px;
   flex: 1; }
 .demo-page .diff-card p strong { color: #0F172A; font-weight: 600; }
 .demo-page .diff-card p em { color: #9A3412; font-style: normal; font-weight: 600; }
 .demo-page .diff-vs { font-size: 12px; color: #94A3B8; padding-top: 12px;
   border-top: 1px solid #F1F5F9; line-height: 1.5; }
 .demo-page .diff-vs span { color: #DC2626; font-weight: 700; }

 /* Trois atouts phares illustrés (toujours visibles) */
 .demo-page .diff-spot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
 .demo-page .diff-spot-card { display: flex; flex-direction: column; align-items: center; text-align: center;
   gap: 12px; background: #fff; border: 1px solid #E2E8F0; border-top: 4px solid #F97316; border-radius: 18px;
   padding: 22px 20px; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04); }
 .demo-page .diff-spot-illus { width: 150px; height: auto; }
 .demo-page .diff-spot-card h3 { color: #0F172A; font-size: 17px; margin: 0 0 6px; }
 .demo-page .diff-spot-card p { color: #475569; font-size: 13.5px; line-height: 1.6; margin: 0 0 8px; }
 .demo-page .diff-spot-card .diff-vs { border-top: none; padding-top: 0; }
 @media (max-width: 860px) { .demo-page .diff-spot { grid-template-columns: 1fr; } }

 /* Atouts secondaires en cartes dépliables (repli natif <details>).
    Base = mobile (replié) ; à partir de 641px = forcé ouvert. */
 .demo-page details.diff-acc { background: #fff; border: 1px solid #E2E8F0; border-top: 4px solid #F97316;
   border-radius: 16px; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04); overflow: hidden;
   transition: box-shadow .15s ease, border-color .15s ease; }
 .demo-page details.diff-acc:hover { border-color: #FCD9A8; box-shadow: 0 12px 28px rgba(249, 115, 22, 0.12); }
 .demo-page details.diff-acc > summary { list-style: none; cursor: pointer; display: flex;
   align-items: center; gap: 14px; padding: 20px 22px; }
 .demo-page details.diff-acc > summary::-webkit-details-marker { display: none; }
 .demo-page .diff-ic { width: 52px; height: 52px; flex: none; border-radius: 14px;
   display: flex; align-items: center; justify-content: center; }
 .demo-page .diff-ic img { width: 30px; height: 30px; display: block; }
 .demo-page .diff-sum { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
 .demo-page .diff-sum strong { font-size: 16px; color: #0F172A; line-height: 1.25; }
 .demo-page .diff-sum small { font-size: 13px; color: #64748B; line-height: 1.4; }
 .demo-page .diff-chev { flex: none; color: #CBD5E1; transition: transform .2s ease; }
 .demo-page .diff-chev svg { width: 18px; height: 18px; display: block; }
 .demo-page details.diff-acc[open] .diff-chev { transform: rotate(90deg); color: #1E5F8A; }
 .demo-page details.diff-acc > .diff-body { padding: 0 22px 20px; }
 .demo-page details.diff-acc > .diff-body p { margin: 0 0 12px; color: #475569; font-size: 14px; line-height: 1.6; }
 @media (min-width: 641px) {
   .demo-page details.diff-acc > .diff-body { display: block !important; }
   .demo-page details.diff-acc > summary { cursor: default; }
   .demo-page .diff-chev { display: none; }
   .demo-page .diff-sum small { display: none; }
 }

 .demo-page .diff-tco { background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
   border-radius: 20px; padding: 36px 40px; margin-top: 24px; }
 .demo-page .diff-tco-content { display: grid; grid-template-columns: 200px 1fr;
   gap: 32px; align-items: center; }
 .demo-page .diff-tco-num { font-size: 80px; font-weight: 800; line-height: 1;
   background: linear-gradient(135deg, #F97316, #FBBF24);
   -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
   text-align: center; }
 .demo-page .diff-tco-text h3 { font-size: 20px; margin-bottom: 10px; }
 .demo-page .diff-tco-text p { font-size: 15px; line-height: 1.7; }

 @media (max-width: 980px) { .demo-page .diff-grid { grid-template-columns: 1fr 1fr; } }
 @media (max-width: 640px) {
   .demo-page .diff-grid { grid-template-columns: 1fr; }
   .demo-page .diff-tco { padding: 24px; }
   .demo-page .diff-tco-content { grid-template-columns: 1fr; text-align: center; gap: 16px; }
   .demo-page .diff-tco-num { font-size: 56px; }
 }

 /* OVERVIEW */
 .demo-page .overview { padding: 72px 0; }
 .demo-page .kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 16px 0 32px; }
 .demo-page .kpi-card { background: white; border: 1px solid #E2E8F0; border-radius: 12px; padding: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
 .demo-page .kpi-icon { font-size: 24px; margin-bottom: 8px; }
 .demo-page .kpi-value { font-size: 28px; font-weight: 800; color: #0F172A; }
 .demo-page .kpi-label { font-size: 13px; color: #64748B; margin-top: 2px; }
 .demo-page .kpi-trend { font-size: 12px; color: #94A3B8; margin-top: 6px; }
 .demo-page .kpi-trend.up { color: #16A34A; }

 .demo-page .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
 .demo-page .card { background: white; border: 1px solid #E2E8F0; border-radius: 12px; padding: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }

 /* BAR CHART */
 .demo-page .bar-chart { display: flex; flex-direction: column; gap: 8px; }
 .demo-page .bar-row { display: grid; grid-template-columns: 110px 1fr 60px; align-items: center; gap: 8px; font-size: 13px; }
 .demo-page .bar-track { position: relative; background: #F1F5F9; height: 18px; border-radius: 4px; overflow: hidden; }
 .demo-page .bar-fill { position: absolute; left: 0; top: 0; height: 100%; border-radius: 4px; }
 .demo-page .bar-fill.ghost { z-index: 0; }
 .demo-page .bar-fill:not(.ghost) { z-index: 1; }
 .demo-page .bar-value { text-align: right; color: #475569; font-weight: 600; }

 /* DATA TABLES */
 .demo-page .data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
 .demo-page .data-table.tight { font-size: 12px; }
 .demo-page .data-table th { background: #F8FAFC; text-align: left; padding: 8px; font-size: 11px; text-transform: uppercase; color: #64748B; letter-spacing: 0.5px; }
 .demo-page .data-table td { padding: 8px; border-top: 1px solid #F1F5F9; }
 .demo-page .data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
 .demo-page .data-table .num.good, .demo-page .data-table .good { color: #16A34A; }
 .demo-page .data-table .num.warn, .demo-page .data-table .warn { color: #EA580C; }
 .demo-page .data-table .num.bad, .demo-page .data-table .bad { color: #DC2626; }
 .demo-page .data-table tfoot td { background: #FFF7ED; border-top: 2px solid #F97316; }

 .demo-page .events { list-style: none; padding: 0; margin: 0; }
 .demo-page .events li { padding: 10px 0; border-bottom: 1px solid #F1F5F9; font-size: 14px; }

 /* ═══════════ "Une journée à l'école" — cartes insight (refonte juin 2026) ═══════════ */
 .demo-page .story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
 .demo-page .story-card { background: #fff; border: 1px solid #E6EAF0; border-radius: 16px; padding: 18px 20px;
   box-shadow: 0 2px 6px rgba(15,23,42,.04); display: flex; flex-direction: column;
   transition: box-shadow .18s, transform .18s; }
 .demo-page .story-card:hover { box-shadow: 0 8px 22px rgba(15,23,42,.10); transform: translateY(-2px); }
 .demo-page .story-card.span-2 { grid-column: 1 / -1; }

 /* En-tête de carte */
 .demo-page .sc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
 .demo-page .sc-head h3 { margin: 0; font-size: 15px; color: #0F172A; font-weight: 700; }
 .demo-page .sc-head .sc-sub { font-size: 12px; color: #64748B; }
 .demo-page .sc-head .sc-time { margin-left: auto; font-size: 11px; color: #94A3B8; white-space: nowrap; }
 .demo-page .sc-head .sc-ic { flex: none; }
 .demo-page .sc-head .chip { margin-left: auto; }

 /* Chips (étend le .chip local : ok / info / lg) */
 .demo-page .chip.ok { background: #DCFCE7; color: #166534; }
 .demo-page .chip.info { background: #DBEAFE; color: #1E40AF; }
 .demo-page .chip.lg { font-size: 12px; padding: 4px 12px; }

 /* Anneau de progression (présences) */
 .demo-page .sc-hero { display: flex; align-items: center; gap: 20px; }
 .demo-page .ring { --p: 0; flex: none; width: 104px; height: 104px; border-radius: 50%;
   background: conic-gradient(#16A34A calc(var(--p) * 1%), #EDF1F5 0);
   display: flex; align-items: center; justify-content: center; }
 .demo-page .ring-mid { width: 78px; height: 78px; border-radius: 50%; background: #fff;
   display: flex; flex-direction: column; align-items: center; justify-content: center; }
 .demo-page .ring-num { font-size: 26px; font-weight: 800; color: #15803D; line-height: 1; }
 .demo-page .ring-num small { font-size: 14px; }
 .demo-page .ring-cap { font-size: 11px; color: #64748B; margin-top: 2px; }
 .demo-page .sc-legend { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }

 /* Pied de carte (phrase « parlante ») */
 .demo-page .sc-foot { display: flex; align-items: center; gap: 6px; margin: 14px 0 0;
   font-size: 12px; color: #64748B; }

 /* Statline : 2 gros chiffres côte à côte */
 .demo-page .sc-statline { display: flex; gap: 24px; margin-bottom: 14px; }
 .demo-page .big-stat { display: flex; flex-direction: column; }
 .demo-page .bs-num { font-size: 30px; font-weight: 800; color: #0F172A; line-height: 1; font-variant-numeric: tabular-nums; }
 .demo-page .bs-num small { font-size: 16px; font-weight: 700; margin-left: 1px; }
 .demo-page .bs-num.good { color: #15803D; }
 .demo-page .bs-cap { font-size: 12px; color: #64748B; margin-top: 4px; }

 /* Mini-histogramme de distribution */
 .demo-page .dist-bar { display: flex; align-items: flex-end; gap: 6px; height: 84px; }
 .demo-page .dist-bar span { flex: 1; background: #E2E8F0; border-radius: 4px 4px 0 0; min-height: 4px; }
 .demo-page .dist-bar span.hi { background: linear-gradient(180deg, #2D7BB5, #1E5F8A); }
 .demo-page .dist-axis { display: flex; gap: 6px; margin-top: 4px; }
 .demo-page .dist-axis span { flex: 1; text-align: center; font-size: 9px; color: #94A3B8; }

 /* Bulletin */
 .demo-page .bulletin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
 .demo-page .bulletin-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
 .demo-page .bulletin-badges .rank { font-size: 12px; color: #64748B; }
 .demo-page .bulletin-badges .rank strong { color: #0F172A; font-size: 14px; }
 .demo-page .subj-bars { display: flex; flex-direction: column; gap: 7px; }
 .demo-page .sb { display: grid; grid-template-columns: 70px 1fr 34px; align-items: center; gap: 10px; font-size: 12px; }
 .demo-page .sb-l { color: #475569; }
 .demo-page .sb-t { height: 7px; background: #EDF1F5; border-radius: 4px; overflow: hidden; }
 .demo-page .sb-t div { height: 100%; background: linear-gradient(90deg, #2D7BB5, #16A34A); border-radius: 4px; }
 .demo-page .sb-v { text-align: right; font-weight: 700; color: #0F172A; font-variant-numeric: tabular-nums; }

 /* Barre empilée recouvrement */
 .demo-page .stack-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin-bottom: 8px; }
 .demo-page .stack-bar .seg.ok { background: #16A34A; }
 .demo-page .stack-bar .seg.warn { background: #EA580C; }
 .demo-page .stack-bar .seg.bad { background: #DC2626; }
 .demo-page .stack-legend { display: flex; gap: 16px; font-size: 12px; color: #475569; flex-wrap: wrap; }

 /* Feed (inscriptions, paie, comms, biblio) */
 .demo-page .feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
 .demo-page .feed li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #F1F5F9; font-size: 13px; }
 .demo-page .feed li:first-child { border-top: none; }
 .demo-page .feed.compact li { padding: 6px 0; }
 .demo-page .feed-ava { flex: none; width: 30px; height: 30px; border-radius: 50%;
   background: linear-gradient(135deg, #2D7BB5, #1E5F8A); color: #fff;
   display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
 .demo-page .feed-ic { flex: none; display: inline-flex; }
 .demo-page .feed-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
 .demo-page .feed-main strong { color: #0F172A; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
 .demo-page .feed-main .muted { font-size: 11px; }
 .demo-page .feed-amt { margin-left: auto; font-weight: 700; color: #0F172A; font-variant-numeric: tabular-nums; white-space: nowrap; }
 .demo-page .feed code { background: #F1F5F9; padding: 0 4px; border-radius: 3px; font-size: 10px; }

 /* Journal d'audit */
 .demo-page .audit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
 .demo-page .audit li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid #F1F5F9; font-size: 12.5px; }
 .demo-page .audit li:first-child { border-top: none; }
 .demo-page .au-t { flex: none; font-variant-numeric: tabular-nums; color: #94A3B8; font-size: 11px; width: 42px; }
 .demo-page .au-u { flex: none; font-weight: 700; color: #1E5F8A; width: 64px; }
 .demo-page .au-a { color: #475569; }

 /* Multi-tenant */
 .demo-page .tenant-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
 .demo-page .tenant-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #F1F5F9; }
 .demo-page .tenant-list li:first-child { border-top: none; }
 .demo-page .ten-sw { flex: none; width: 14px; height: 14px; border-radius: 4px; }
 .demo-page .ten-main { display: flex; flex-direction: column; line-height: 1.3; font-size: 13px; }
 .demo-page .ten-main .muted { font-size: 11px; }

 /* Emploi du temps coloré par matière (les cellules n'avaient aucune couleur) */
 .demo-page .schedule { table-layout: fixed; }
 .demo-page .schedule th { text-align: center; }
 .demo-page .schedule td { text-align: center; border: 1px solid #EDF1F5; }
 .demo-page .schedule td:first-child { font-weight: 700; color: #64748B; background: #F8FAFC; }
 .demo-page .schedule .cell { border-radius: 6px; font-weight: 600; line-height: 1.3; }
 .demo-page .schedule .cell small { display: block; font-weight: 400; opacity: .75; font-size: 10px; }
 .demo-page .schedule .cell.maths { background: #EFF5FD; color: #1D4ED8; }
 .demo-page .schedule .cell.fr    { background: #FDF8EE; color: #B45309; }
 .demo-page .schedule .cell.hg    { background: #F4F1FC; color: #6D28D9; }
 .demo-page .schedule .cell.sc    { background: #EFF8F1; color: #15803D; }
 .demo-page .schedule .cell.ang   { background: #FCF1F1; color: #B91C1C; }
 .demo-page .schedule .cell.eps   { background: #F0FAFB; color: #0E7490; }

 @media (max-width: 860px) {
   .demo-page .story-grid { grid-template-columns: 1fr; }
   .demo-page .story-card.span-2 { grid-column: auto; }
 }

 /* FEATURES */
 .demo-page .features { padding: 72px 0; background: #F8FAFC; }
 .demo-page .feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 16px; }
 .demo-page .feature-card { background: white; border-radius: 12px; padding: 28px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid #E2E8F0; }
 .demo-page .feat-icon { font-size: 36px; margin-bottom: 12px; }

 /* MOCKS */
 .demo-page .mock { margin-top: 16px; background: #F1F5F9; border-radius: 8px; padding: 12px; font-size: 13px; }
 .demo-page .mock.notif-mock { background: linear-gradient(135deg, #1E293B, #0F172A); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
 .demo-page .mock .toast { background: #1E5F8A; color: white; padding: 10px 14px; border-radius: 6px; position: relative; }
 .demo-page .mock .toast.warn { background: #B45309; }
 .demo-page .mock .toast.info { background: #15803D; }
 .demo-page .mock .toast small { display: block; margin-top: 2px; opacity: 0.85; font-size: 12px; }
 .demo-page .mock .toast .toast-time { position: absolute; top: 8px; right: 12px; font-size: 10px; opacity: 0.6; }

 .demo-page .mock.kpi-mock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: white; }
 .demo-page .mock .kpi-mini { background: #F8FAFC; padding: 8px; border-radius: 6px; text-align: center; }
 .demo-page .mock .kpi-mini-label { font-size: 10px; color: #64748B; text-transform: uppercase; }
 .demo-page .mock .kpi-mini-value { font-size: 18px; font-weight: 700; color: #1E5F8A; margin-top: 2px; }
 .demo-page .mock .kpi-mini-value.good { color: #16A34A; }
 .demo-page .mock .kpi-mini-value.bad { color: #DC2626; }

 .demo-page .bottom-subjects { margin-top: 12px; font-size: 12px; }
 .demo-page .chip { display: inline-block; padding: 3px 8px; margin: 2px 4px 2px 0; border-radius: 12px; font-size: 11px; font-weight: 600; }
 .demo-page .chip.bad { background: #FEE2E2; color: #B91C1C; }
 .demo-page .chip.warn { background: #FED7AA; color: #C2410C; }

 .demo-page .mock.saas-mock { background: white; }
 .demo-page .mock.saas-mock .saas-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
 .demo-page .mock.saas-mock .saas-stats > div { background: #F8FAFC; padding: 8px; border-radius: 6px; text-align: center; }
 .demo-page .mock.saas-mock .ss-v { font-size: 20px; font-weight: 700; color: #F97316; }
 .demo-page .mock.saas-mock .ss-l { font-size: 11px; color: #64748B; text-transform: uppercase; }
 .demo-page .mock.saas-mock table { width: 100%; border-collapse: collapse; font-size: 12px; }
 .demo-page .mock.saas-mock th { text-align: left; font-size: 10px; color: #64748B; text-transform: uppercase; padding: 4px; }
 .demo-page .mock.saas-mock td { padding: 6px 4px; border-top: 1px solid #E2E8F0; }
 .demo-page .mock.saas-mock .num { text-align: right; }
 .demo-page .badge { padding: 2px 8px; border-radius: 12px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
 .demo-page .badge.premium { background: linear-gradient(135deg, #F97316, #FBBF24); color: white; }
 .demo-page .badge.std { background: #DBEAFE; color: #1E40AF; }
 .demo-page .badge.starter { background: #E0E7FF; color: #4338CA; }
 .demo-page .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
 .demo-page .dot.ok { background: #16A34A; }
 .demo-page .dot.warn { background: #EA580C; }
 .demo-page .dot.bad { background: #DC2626; }

 .demo-page .mock.wizard-mock { background: white; }
 .demo-page .mock.wizard-mock .wizard-steps { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11px; color: #94A3B8; }
 .demo-page .mock.wizard-mock .wizard-steps .active { color: #F97316; font-weight: 600; }
 .demo-page .mock.wizard-mock .wizard-steps .done { color: #16A34A; }
 .demo-page .mock.wizard-mock .wizard-bar { background: #E2E8F0; height: 4px; border-radius: 2px; margin: 8px 0 12px; overflow: hidden; }
 .demo-page .mock.wizard-mock .wizard-bar div { height: 100%; width: 90%; background: linear-gradient(90deg, #F97316, #FBBF24); }
 .demo-page .mock.wizard-mock .wizard-summary { font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
 .demo-page .mock.wizard-mock .wizard-summary > div { display: grid; grid-template-columns: 80px 1fr; gap: 8px; }
 .demo-page .mock.wizard-mock .lbl { color: #94A3B8; font-size: 11px; text-transform: uppercase; }
 .demo-page .mock.wizard-mock .wizard-cta { margin-top: 12px; background: linear-gradient(135deg, #F97316, #EF4444); color: white; border: 0; padding: 8px 16px; border-radius: 6px; font-weight: 600; font-size: 12px; }

 /* NOUVEAUTÉS LIVRÉES (mai 2026) */
 .demo-page .new-features { padding: 72px 0; background: linear-gradient(135deg, #ECFDF5 0%, #F0FDF4 100%);
 border-top: 4px solid #16A34A; }
 .demo-page .new-features-header { text-align: center; margin-bottom: 32px; }
 .demo-page .new-badge { display: inline-block; padding: 4px 14px; background: #16A34A; color: white;
 font-size: 12px; font-weight: 700; border-radius: 999px;
 letter-spacing: 1px; margin-bottom: 12px; }
 .demo-page .new-features h2 { font-size: 28px; }
 .demo-page .new-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
 .demo-page .new-card { background: white; border: 1px solid #BBF7D0; border-radius: 12px;
 padding: 24px; box-shadow: 0 4px 12px rgba(22,163,74,0.08);
 transition: transform .15s, box-shadow .15s; }
 .demo-page .new-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22,163,74,0.15); }
 .demo-page .new-icon { font-size: 32px; margin-bottom: 8px; }
 .demo-page .new-card h3 { color: #14532D; font-size: 16px; margin-bottom: 8px; }
 .demo-page .new-card p { font-size: 13px; color: #475569; margin-bottom: 12px; line-height: 1.5; }
 .demo-page .new-link { color: #16A34A; font-weight: 600; text-decoration: none; font-size: 13px; }
 .demo-page .new-link:hover { text-decoration: underline; }

 /* CONFORMITÉ */
 .demo-page .compliance { padding: 72px 0; background: white; }
 .demo-page .compliance-grid { display: grid; grid-template-columns: repeat(2, 1fr);
 gap: 16px; margin-top: 16px; }
 .demo-page .compliance-card { background: linear-gradient(135deg, #F8FAFC, #FFF);
 border: 1px solid #E2E8F0; border-radius: 12px;
 padding: 24px; border-left: 4px solid #1E5F8A; }
 .demo-page .comp-icon { font-size: 28px; margin-bottom: 8px; }
 .demo-page .compliance-card h3 { color: #1E5F8A; font-size: 16px; margin-bottom: 10px; }
 .demo-page .compliance-card p { font-size: 13px; color: #475569; line-height: 1.6; margin: 0; }

 /* ROADMAP */
 .demo-page .roadmap { padding: 72px 0; background: linear-gradient(180deg, #F8FAFC 0%, white 100%); }
 .demo-page .roadmap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
 .demo-page .rm-card { background: white; border: 1px solid #E2E8F0; border-radius: 10px; padding: 20px; }
 .demo-page .rm-card.next { border-left: 3px solid #F97316; }
 .demo-page .rm-card.later { border-left: 3px solid #94A3B8; }
 .demo-page .rm-status { font-size: 11px; font-weight: 700; color: #F97316; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
 .demo-page .rm-card.later .rm-status { color: #64748B; }
 .demo-page .rm-card h3 { font-size: 16px; margin-bottom: 6px; }
 .demo-page .rm-card p { font-size: 13px; color: #475569; line-height: 1.55; margin: 0; }

 /* ===== Section Modules ===== */
 .demo-page .modules {
   padding: 72px 0;
   background:
     radial-gradient(circle at 0% 0%, rgba(30,95,138,.06), transparent 40%),
     radial-gradient(circle at 100% 100%, rgba(249,115,22,.06), transparent 40%),
     linear-gradient(180deg, white 0%, #F8FAFC 100%);
 }
 .demo-page .modules h2 {
   font-size: 28px;
   margin-bottom: 8px;
   display: inline-flex;
   align-items: center;
   gap: 12px;
 }
 .demo-page .modules-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 16px;
   margin-top: 24px;
 }
 .demo-page .mod {
   background: white;
   border: 1px solid #E2E8F0;
   border-radius: 14px;
   padding: 22px 14px;
   text-align: center;
   font-size: 14px;
   font-weight: 600;
   color: #1E293B;
   transition: all .2s ease;
   box-shadow: 0 1px 3px rgba(15,23,42,.04);
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: flex-start;
   gap: 8px;
   position: relative;
   overflow: hidden;
 }
 .demo-page .mod::before {
   content: "";
   position: absolute;
   top: 0; left: 0; right: 0;
   height: 3px;
   background: linear-gradient(90deg, #1E5F8A, #F9A826);
   opacity: 0;
   transition: opacity .2s ease;
 }
 .demo-page .mod:hover {
   transform: translateY(-3px);
   border-color: transparent;
   box-shadow: 0 10px 24px rgba(30,95,138,.15);
   color: #1E5F8A;
 }
 .demo-page .mod:hover::before { opacity: 1; }
 .demo-page .mod span { line-height: 1.25; }
 .demo-page .mod small {
   display: block;
   font-size: 12px;
   font-weight: 400;
   color: #64748B;
   line-height: 1.45;
 }
 /* En-têtes de familles de modules (anti-monotonie) : occupent toute la
    largeur de la grille, couleur thématique via la variable --cat. */
 .demo-page .mod-cat { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px;
   margin: 14px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .07em;
   text-transform: uppercase; color: var(--cat, #64748B); }
 .demo-page .mod-cat:first-child { margin-top: 0; }
 .demo-page .mod-cat::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .25; }

 /* ===== Section Essayer la démo ===== */
 .demo-page .trial {
   padding: 72px 0;
   background:
     radial-gradient(circle at 50% 0%, rgba(249,168,38,.08), transparent 50%),
     white;
 }
 .demo-page .trial h2 {
   font-size: 28px;
   margin-bottom: 8px;
   display: inline-flex;
   align-items: center;
   gap: 12px;
 }
 .demo-page .creds {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 22px;
   margin-top: 28px;
   margin-bottom: 32px;
 }
 .demo-page .cred-card {
   background: white;
   border: 1px solid #E2E8F0;
   border-radius: 16px;
   padding: 28px 22px 22px;
   text-align: center;
   box-shadow: 0 2px 8px rgba(15,23,42,.05);
   transition: all .2s ease;
   position: relative;
 }
 .demo-page .cred-card:hover {
   transform: translateY(-3px);
   border-color: #1E5F8A;
   box-shadow: 0 12px 28px rgba(30,95,138,.15);
 }
 .demo-page .cred-avatar {
   width: 64px;
   height: 64px;
   border-radius: 50%;
   margin: 0 auto 14px;
   display: flex;
   align-items: center;
   justify-content: center;
   color: white;
   box-shadow: 0 6px 16px rgba(15,23,42,.18);
 }
 .demo-page .cred-avatar.primary { background: linear-gradient(135deg, #1E5F8A, #2D7DB0); }
 .demo-page .cred-avatar.accent { background: linear-gradient(135deg, #F9A826, #F97316); }
 .demo-page .cred-avatar.success { background: linear-gradient(135deg, #10B981, #059669); }
 .demo-page .cred-card .role {
   font-size: 14px;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 1px;
   color: #1E5F8A;
   margin-bottom: 14px;
   padding-bottom: 12px;
   border-bottom: 1px solid #E2E8F0;
 }
 .demo-page .cred-line {
   font-size: 13px;
   color: #475569;
   margin: 6px 0;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 6px;
   flex-wrap: wrap;
 }
 .demo-page .cred-card code {
   background: #F1F5F9;
   color: #0F172A;
   padding: 2px 8px;
   border-radius: 4px;
   font-family: 'Fira Code', 'Consolas', monospace;
   font-size: 12px;
   font-weight: 600;
 }
 .demo-page .cred-perms {
   margin-top: 14px;
   padding-top: 12px;
   border-top: 1px solid #E2E8F0;
   font-size: 11px;
   color: #64748B;
   font-style: italic;
   line-height: 1.5;
 }
 /* Boutons CTA avec icône inline */
 .demo-page .cta-row .btn-primary,
 .demo-page .cta-row .btn-secondary {
   display: inline-flex;
   align-items: center;
   gap: 8px;
 }

 /* ===== FAQ teaser ===== */
 .demo-page .faq-teaser {
   background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
   padding: 56px 0;
   border-top: 1px solid #E2E8F0;
   border-bottom: 1px solid #E2E8F0;
 }
 .demo-page .faq-teaser-inner {
   display: grid; grid-template-columns: 2fr 1fr;
   gap: 32px; align-items: center;
 }
 .demo-page .faq-teaser-eyebrow {
   display: inline-block; padding: 4px 12px; border-radius: 999px;
   background: #DBEAFE; color: #1E5F8A;
   font-size: 11px; font-weight: 700;
   text-transform: uppercase; letter-spacing: 0.08em;
   margin-bottom: 10px;
 }
 .demo-page .faq-teaser h2 {
   margin: 0 0 10px 0; font-size: 26px; color: #0F172A;
 }
 .demo-page .faq-teaser .section-lead {
   margin: 0; font-size: 15px; line-height: 1.6;
 }
 .demo-page .faq-teaser-actions {
   display: flex; flex-direction: column; gap: 10px;
 }
 .demo-page .faq-teaser-actions .btn-primary,
 .demo-page .faq-teaser-actions .btn-secondary {
   justify-content: center;
 }
 @media (max-width: 760px) {
   .demo-page .faq-teaser-inner { grid-template-columns: 1fr; }
 }

 /* ===== Footer ===== */
 .demo-page footer {
   background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
   color: #CBD5E1;
   padding: 48px 0 24px;
   margin-top: 0;
   border-top: 3px solid transparent;
   border-image: linear-gradient(90deg, #EF4444, #F97316, #FBBF24) 1;
 }
 .demo-page footer .foot-grid {
   display: grid;
   grid-template-columns: 2fr 1fr 1fr 1fr;
   gap: 40px;
   margin-bottom: 32px;
 }
 @media (max-width: 720px) {
   .demo-page footer .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
 }
 .demo-page footer p { color: #94A3B8; font-size: 14px; line-height: 1.6; margin-top: 12px; }
 .demo-page footer strong {
   display: block;
   color: white;
   font-size: 14px;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   margin-bottom: 14px;
 }
 .demo-page footer a, .demo-page footer span {
   display: block;
   color: #CBD5E1;
   font-size: 13px;
   text-decoration: none;
   margin: 6px 0;
   transition: color .15s ease;
 }
 .demo-page footer a:hover { color: white; }
 .demo-page footer hr {
   border: 0;
   border-top: 1px solid rgba(255,255,255,.08);
   margin: 24px 0 16px;
 }
 .demo-page footer small { color: #64748B; font-size: 12px; }

 /* ===== Couleur swatch (table multi-tenant) ===== */
 .demo-page .swatch {
   display: inline-block;
   width: 14px;
   height: 14px;
   border-radius: 3px;
   vertical-align: middle;
   margin-right: 6px;
   border: 1px solid rgba(0,0,0,.08);
 }

 /* ===== Calendrier scolaire (grille mensuelle) ===== */
 .demo-page .cal-grid {
   display: grid;
   grid-template-columns: repeat(7, 1fr);
   gap: 6px;
   margin-top: 12px;
 }
 .demo-page .cal-d {
   min-height: 48px;
   padding: 8px 6px;
   border: 1px solid #E2E8F0;
   border-radius: 6px;
   background: white;
   font-size: 13px;
   font-weight: 500;
   color: #1E293B;
   display: flex;
   align-items: flex-start;
   justify-content: flex-start;
   line-height: 1.2;
 }
 .demo-page .cal-d.head {
   background: #F1F5F9;
   color: #64748B;
   font-size: 11px;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.5px;
   min-height: auto;
   padding: 6px;
   justify-content: center;
   align-items: center;
   border-color: transparent;
 }
 .demo-page .cal-d.off {
   background: transparent;
   border-color: transparent;
 }
 .demo-page .cal-d.wk {
   background: #F8FAFC;
   color: #94A3B8;
 }
 .demo-page .cal-d.evt { background: #DBEAFE; border-color: #93C5FD; color: #1E3A8A; font-weight: 600; }
 .demo-page .cal-d.evt2 { background: #FEF3C7; border-color: #FCD34D; color: #92400E; font-weight: 600; }
 .demo-page .cal-d.evt3 { background: #FEE2E2; border-color: #FCA5A5; color: #991B1B; font-weight: 600; }
 .demo-page .cal-legend {
   display: flex;
   flex-wrap: wrap;
   gap: 14px;
   margin-top: 14px;
   font-size: 12px;
   color: #475569;
 }
 .demo-page .cal-legend .leg {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   padding: 4px 10px;
   border-radius: 999px;
   border: 1px solid #E2E8F0;
   background: white;
   font-weight: 500;
 }
 .demo-page .cal-legend .leg::before {
   content: "";
   display: inline-block;
   width: 10px;
   height: 10px;
   border-radius: 2px;
   background: #94A3B8;
 }
 .demo-page .cal-legend .leg.evt::before { background: #93C5FD; }
 .demo-page .cal-legend .leg.evt2::before { background: #FCD34D; }
 .demo-page .cal-legend .leg.evt3::before { background: #FCA5A5; }

 /* ===== Mobile responsive ===== */
 @media (max-width: 768px) {
   .demo-page .container       { padding: 0 16px; }
   .demo-page h1               { font-size: 26px; }
   .demo-page h2               { font-size: 22px; }
   .demo-page .differentiators h2 { font-size: 22px; }
   .demo-page .lead            { font-size: 15px; }
   .demo-page .section-lead    { font-size: 14.5px; margin-bottom: 20px; }

   /* Sections : le rembourrage vertical de 72px rend la page interminable sur
      telephone. On le resserre partout, du contenu jusqu'au pied de page. */
   .demo-page .hero            { padding: 40px 0 32px; }
   .demo-page .hero-logo       { width: 240px; }
   .demo-page .differentiators,
   .demo-page .overview,
   .demo-page .features,
   .demo-page .new-features,
   .demo-page .compliance,
   .demo-page .roadmap,
   .demo-page .modules,
   .demo-page .trial,
   .demo-page .faq-teaser,
   .demo-page .sample-data     { padding: 44px 0; }

   /* Grilles : une ou deux colonnes selon la densite. */
   .demo-page .stats-grid      { grid-template-columns: repeat(2, 1fr); gap: 16px; }
   .demo-page .kpi-row         { grid-template-columns: repeat(2, 1fr); }
   .demo-page .grid-2          { grid-template-columns: 1fr; }
   .demo-page .feature-grid    { grid-template-columns: 1fr; }
   .demo-page .compliance-grid { grid-template-columns: 1fr; }
   .demo-page .roadmap-grid    { grid-template-columns: 1fr; }
   .demo-page .creds           { grid-template-columns: 1fr; }
   .demo-page .modules-grid    { grid-template-columns: repeat(2, 1fr); }
   .demo-page footer .foot-grid{ grid-template-columns: 1fr; gap: 28px; }

   /* Cartes : rembourrage reduit pour condenser le defilement. */
   .demo-page .diff-card       { padding: 20px; }
   .demo-page .feature-card    { padding: 20px; }
   .demo-page .card            { padding: 16px; }
   .demo-page .compliance-card,
   .demo-page .new-card,
   .demo-page .rm-card         { padding: 18px; }

   /* Tableaux larges : defilement horizontal DANS la carte plutot que
      debordement de la page (body est en overflow-x:hidden). */
   .demo-page .card,
   .demo-page .feature-card    { overflow-x: auto; }
   .demo-page .bar-row         { grid-template-columns: 84px 1fr 46px; gap: 6px; font-size: 12px; }

   .demo-page .cal-d           { min-height: 38px; padding: 4px 3px; font-size: 11px; }
   .demo-page .cal-d.evt,
   .demo-page .cal-d.evt2,
   .demo-page .cal-d.evt3      { font-size: 10px; }
 }

 /* Tres petit ecran : CTA empiles pleine largeur, grilles en une colonne. */
 @media (max-width: 480px) {
   .demo-page h1               { font-size: 23px; }
   .demo-page .hero-logo       { width: 200px; }
   .demo-page .cta-row         { gap: 9px; }
   .demo-page .cta-row .btn-primary,
   .demo-page .cta-row .btn-secondary,
   .demo-page .cta-row .btn-app { display: block; width: 100%; text-align: center; white-space: normal; }
   .demo-page .stats-grid      { grid-template-columns: 1fr 1fr; }
   .demo-page .stats-grid .value { font-size: 26px; }
   .demo-page .kpi-row         { grid-template-columns: 1fr 1fr; }
   .demo-page .modules-grid    { grid-template-columns: 1fr; }
   .demo-page .diff-tco        { padding: 22px; }
   .demo-page .diff-tco-num    { font-size: 48px; }
 }

/* Cartes "differenciateur" utilisees comme lien (section Explorer de /about) :
   neutraliser le style de lien par defaut (bleu souligne). */
.demo-page a.diff-card { text-decoration: none; color: #0F172A; }
.demo-page a.diff-card:hover { text-decoration: none; }
