/* Police Inter hébergée localement (confidentialité + performance). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/static/fonts/inter-800.woff2') format('woff2');
}

:root {
  --white: #ffffff;
  /* Palette calée sur le bleu du logo : #347EF7 */
  --blue-50: #f3f7fe;
  --blue-100: #e6eefd;
  --blue-200: #cbdcfb;
  --blue-300: #347ef7;  /* accent principal (boutons, logo) */
  --blue-400: #1f63d6;  /* bleu foncé : survol / texte accent */
  --blue-600: #1b4fb0;  /* bleu profond (dégradé hero) */
  --black: #101820;
  --ink-soft: #5b6672;  /* texte secondaire */
  --danger: #d64545;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(16, 24, 32, 0.06);
  --shadow-soft: 0 12px 34px rgba(16, 24, 32, 0.08);
  font-family: 'Inter', "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h1, h2, h3, .hero-title, .section-title, .brand { letter-spacing: -0.02em; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--blue-50);
  color: var(--black);
  line-height: 1.5;
}

a { color: var(--blue-400); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--blue-200);
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.15rem; color: var(--black); }
.brand:hover { text-decoration: none; }
.brand-logo { width: 32px; height: 32px; border-radius: 8px; }
.topnav a { margin-left: 1.25rem; color: var(--black); font-weight: 500; }
.topnav a.muted { color: #8a97a3; }
/* Un bouton dans la barre reste toujours en texte blanc sur son fond bleu. */
.topnav a.btn { color: #ffffff; }

.container { max-width: 960px; margin: 0 auto; padding: 1.5rem; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.head-actions { display: flex; gap: 0.5rem; align-items: center; }
h1 { font-size: 1.6rem; margin: 0.4rem 0 1rem; }
h2 { font-size: 1.15rem; }

.card {
  background: var(--white);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}

.auth-card { max-width: 420px; margin: 3rem auto; }

.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
@media (max-width: 720px) { .columns { grid-template-columns: 1fr; } }

.class-card { display: block; color: var(--black); }
.class-card:hover { text-decoration: none; border-color: var(--blue-300); }
.class-card h3 { margin: 0 0 0.25rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat { background: var(--white); border: 1px solid var(--blue-200); border-radius: var(--radius); padding: 1rem; text-align: center; }
.stat-num { display: block; font-size: 1.8rem; font-weight: 700; color: var(--blue-400); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

label { display: block; margin-bottom: 0.75rem; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number], select {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--blue-200);
  border-radius: 10px;
  font-size: 1rem;
  margin-top: 0.25rem;
  background: var(--white);
}
input[type=file] { margin-top: 0.25rem; }
.inline-label { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0; }
.inline-label input { width: auto; margin: 0; }
.checkbox { font-weight: 400; }

.inline-form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 auto; margin: 0; }
.inline-form .btn { flex: 0 0 auto; }
.stack-form { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }
.assign-form select { min-width: 180px; }

.btn {
  display: inline-block;
  background: var(--blue-300);
  color: #ffffff;  /* fond bleu plein => texte toujours blanc */
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { background: var(--blue-400); text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
/* Bouton secondaire : fond blanc + contour bleu (jamais de fond bleu sous du texte foncé). */
.btn-ghost { background: #ffffff; color: var(--blue-400); border: 1px solid var(--blue-200); }
.btn-ghost:hover { background: var(--blue-50); }
.btn-danger { background: #f7d7d7; color: var(--danger); }
/* CTA mis en valeur (bouton « Essayer gratuitement » de la barre). */
.btn-cta { padding: 0.6rem 1.15rem; font-weight: 700;
  box-shadow: 0 6px 16px rgba(52, 126, 247, 0.4);
  transition: box-shadow .2s ease, transform .2s ease, background .2s ease; }
.btn-cta:hover { box-shadow: 0 10px 24px rgba(52, 126, 247, 0.5); transform: translateY(-1px); }
.link-danger { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 1rem; }

.table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.table th { text-align: left; font-size: 0.8rem; text-transform: uppercase; color: #8a97a3; padding: 0.4rem 0.5rem; }
.table td { padding: 0.5rem; border-top: 1px solid var(--blue-100); vertical-align: middle; }
.table .right { text-align: right; white-space: nowrap; }
.right { text-align: right; }

.badge { display: inline-block; background: var(--blue-100); color: var(--blue-400); border-radius: 999px; padding: 0.15rem 0.6rem; font-size: 0.8rem; font-weight: 600; }
.badge-warn { background: #fff2d6; color: #b7791f; }

.muted { color: #8a97a3; }
.hint { font-size: 0.85rem; color: #8a97a3; margin: 0.25rem 0 0.5rem; }
.error { color: var(--danger); font-weight: 500; }
.flash { max-width: 960px; margin: 1rem auto 0; padding: 0.75rem 1rem; background: var(--blue-100); border: 1px solid var(--blue-200); border-radius: 10px; }

.quota-card { padding: 1rem 1.25rem; }
.quota-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.quota-bar { margin-top: 0.7rem; height: 8px; background: var(--blue-100); border-radius: 999px; overflow: hidden; }
.quota-bar span { display: block; height: 100%; background: var(--blue-300); border-radius: 999px; }

.review-item .review-head { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 0.5rem; }
.warn-block { color: #b7791f; }
.warn-block ul { margin: 0.3rem 0 0; }

textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--blue-200);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  margin-top: 0.25rem;
  background: var(--white);
  resize: vertical;
}

/* ============ Façade publique (landing, tarifs, contact) ============ */

.public-topbar .topnav { display: flex; align-items: center; gap: 1.25rem; }
.btn-small { padding: 0.4rem 0.9rem; font-size: 0.9rem; }
.btn-lg { padding: 0.85rem 1.6rem; font-size: 1.05rem; border-radius: 12px; }
.btn-block { display: block; width: 100%; text-align: center; }
.center { text-align: center; }

/* --- Barre du haut : collante, transparente sur le hero puis blanche --- */
.public-topbar { position: sticky; top: 0; z-index: 100;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; }

body.has-hero .public-topbar { position: fixed; left: 0; right: 0; top: 0;
  background: transparent; border-bottom-color: transparent; }
body.has-hero .public-topbar .brand,
body.has-hero .public-topbar .topnav > a { color: #ffffff; }
body.has-hero .public-topbar:not(.scrolled) .btn {
  background: rgba(255, 255, 255, 0.14); color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55); }
body.has-hero .public-topbar:not(.scrolled) .btn:hover { background: rgba(255, 255, 255, 0.26); }
/* CTA « Essayer gratuitement » sur le hero : bleu plein, texte blanc, contour + halo. */
body.has-hero .public-topbar:not(.scrolled) .btn-cta {
  background: var(--blue-300); color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(12, 30, 66, 0.3); }
body.has-hero .public-topbar:not(.scrolled) .btn-cta:hover { background: var(--blue-400); }

body.has-hero .public-topbar.scrolled { background: #ffffff;
  border-bottom-color: var(--blue-200); box-shadow: var(--shadow); }
body.has-hero .public-topbar.scrolled .brand,
body.has-hero .public-topbar.scrolled .topnav > a { color: var(--black); }
/* ... sauf le bouton CTA : sur fond bleu il garde toujours son texte blanc. */
body.has-hero .public-topbar.scrolled .topnav a.btn { color: #ffffff; }

/* Logo : version bleue par défaut, version blanche quand la barre est
   transparente sur le hero bleu. */
.brand-logo-white { display: none; }
body.has-hero .public-topbar:not(.scrolled) .brand-logo-color { display: none; }
body.has-hero .public-topbar:not(.scrolled) .brand-logo-white { display: inline-block; }

.pill {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-400);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.pill-accent { background: var(--blue-300); color: #ffffff; }

/* --- Hero bleu plein, en deux colonnes (texte + maquette) --- */
.hero {
  background:
    radial-gradient(1200px 500px at 78% -10%, rgba(255,255,255,0.18), transparent 60%),
    linear-gradient(150deg, var(--blue-300), var(--blue-600));
  color: #ffffff;
  padding: 8rem 1.5rem 5rem;
}
.hero-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center;
}
.hero-text { max-width: 560px; }
.hero .pill { background: rgba(255,255,255,0.16); color: #ffffff; }
.hero-title { font-size: 3rem; line-height: 1.1; margin: 0.5rem 0 1rem; font-weight: 800; }
.hero-sub { font-size: 1.2rem; color: rgba(255,255,255,0.9); margin: 0 0 1.8rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero .btn { background: #ffffff; color: var(--blue-400); }
.hero .btn:hover { background: var(--blue-50); }
.hero .btn-outline { background: transparent; color: #ffffff; border: 1px solid rgba(255,255,255,0.6); }
.hero .btn-outline:hover { background: rgba(255,255,255,0.14); }
.hero-note { margin-top: 1rem; font-size: 0.9rem; color: rgba(255,255,255,0.8); }

/* Maquette : aperçu d'une copie corrigée question par question */
.hero-mockup {
  background: #ffffff; color: var(--black);
  border-radius: 18px; box-shadow: 0 24px 60px rgba(12, 30, 66, 0.35);
  padding: 1.1rem 1.2rem; transform: rotate(-1.2deg);
}
.mock-head { display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 0.7rem; border-bottom: 1px solid var(--blue-100); margin-bottom: 0.5rem; }
.mock-title { font-weight: 700; }
.mock-grade { font-weight: 800; color: var(--blue-400); }
.mock-row { display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 0.2rem; border-bottom: 1px solid #f0f3f8; }
.mock-row:last-child { border-bottom: none; }
.mock-q { color: var(--ink-soft); font-size: 0.92rem; }
.mock-right { display: flex; align-items: center; gap: 0.5rem; }
.mock-score { font-weight: 700; font-variant-numeric: tabular-nums; }
.mock-flag { background: #fff6e6; border: 1px solid #ffe2ad; border-radius: 12px;
  padding: 0.55rem 0.7rem; margin-top: 0.6rem; font-size: 0.85rem; color: #92600c; }
.mock-flag strong { color: #7a4f06; }

@media (max-width: 860px) {
  .hero { padding: 7rem 1.5rem 3.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-title { font-size: 2.3rem; }
  .hero-mockup { transform: none; }
}

.section { padding: 3.5rem 1.5rem; }
.section-alt { background: var(--blue-50); border-top: 1px solid var(--blue-100); border-bottom: 1px solid var(--blue-100); }
.section-inner { max-width: 960px; margin: 0 auto; }
.section-narrow { max-width: 720px; }
.section-title { font-size: 1.8rem; text-align: center; margin: 0 0 0.5rem; }
.section-title.left { text-align: left; }
.section-lead { text-align: center; margin-bottom: 2rem; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.feature { text-align: center; }
.feature-icon { font-size: 2rem; }
.feature h3 { margin: 0.6rem 0 0.4rem; font-size: 1.05rem; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .features { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.step { text-align: center; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--blue-300); color: #ffffff; font-weight: 700; font-size: 1.1rem;
  margin-bottom: 0.6rem;
}
.step h3 { font-size: 1.05rem; margin: 0 0 0.3rem; }
@media (max-width: 780px) { .steps { grid-template-columns: repeat(2, 1fr); } }

.section-tech { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center; }
.section-tech p { color: #5b6672; }
.tech-list { margin: 1rem 0 0; padding-left: 1.1rem; color: #5b6672; }
.tech-list li { margin-bottom: 0.6rem; }
.tech-card { background: var(--white); }
.tech-row { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--blue-100); }
.tech-row:last-of-type { border-bottom: none; }
.tech-hint { margin-top: 0.8rem; font-size: 0.85rem; }
@media (max-width: 780px) { .section-tech { grid-template-columns: 1fr; } }

.faq { margin-top: 1.5rem; }
.faq-item { background: var(--white); border: none; border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 0.85rem; box-shadow: var(--shadow-soft); }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--blue-400); font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0.7rem 0 0; }

.cta-band { background: linear-gradient(160deg, var(--blue-200), var(--blue-100)); text-align: center; }
.cta-inner h2 { font-size: 1.6rem; margin-bottom: 1.2rem; }

/* Tarifs */
.section-inner.wide { max-width: 1120px; }
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 2rem; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 1.4rem 1.3rem; }
.price-highlight { border: 2px solid var(--blue-300); box-shadow: 0 10px 28px rgba(52, 126, 247, 0.2); }
.price-card h2 { margin: 0.3rem 0; }
.price { margin: 0.5rem 0; }
.price-amount { font-size: 1.9rem; font-weight: 800; }
.price-period { font-size: 0.9rem; }
.plan-tagline { min-height: 2.6rem; }
.plan-features { list-style: none; padding: 0; margin: 0.5rem 0 1.25rem; flex: 1 1 auto; }
.plan-features li { padding: 0.4rem 0; border-top: 1px solid var(--blue-100); font-size: 0.92rem; }
.plan-features li::before { content: "✓ "; color: var(--blue-400); font-weight: 700; }
@media (max-width: 920px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pricing { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--black); color: #cdd6df; padding: 2.5rem 1.5rem 1.5rem; margin-top: 2rem; }
.footer-inner { max-width: 960px; margin: 0 auto; display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.site-footer .muted { color: #8a97a3; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: #cdd6df; }
.footer-legal { max-width: 960px; margin: 1.5rem auto 0; padding-top: 1rem; border-top: 1px solid #2a3541; font-size: 0.85rem; }

/* --- Cartes marketing : ombres douces, sans bordure --- */
.section .card, .feature, .tech-card, .price-card {
  border: none;
  box-shadow: var(--shadow-soft);
  border-radius: 16px;
}
.price-highlight { border: 2px solid var(--blue-300); }

/* --- Bandeau confiance / sécurité --- */
.trust { background: var(--blue-50); border-top: 1px solid var(--blue-100); border-bottom: 1px solid var(--blue-100); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.trust-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.trust-icon {
  flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: 12px;
  background: var(--white); box-shadow: var(--shadow-soft);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.trust-item h3 { margin: 0.1rem 0 0.25rem; font-size: 1rem; }
.trust-item p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
@media (max-width: 780px) { .trust-grid { grid-template-columns: 1fr; } }

/* --- Apparition au défilement --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ================= Landing : hero centré, démo, raisonnement, espace élève ================= */

/* Hero simplifié */
.hero-center { text-align: center; }
.hero-inner-center { max-width: 780px; margin: 0 auto; }
.hero-center .hero-sub { margin-left: auto; margin-right: auto; }
.hero-actions-center { justify-content: center; }
.scroll-cue { display: inline-block; margin-top: 1.8rem; color: #fff; font-size: 1.5rem;
  opacity: .85; text-decoration: none; animation: bob 1.7s ease-in-out infinite; }
.scroll-cue:hover { text-decoration: none; opacity: 1; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* Démo scan ➜ résultats */
.demo-stage { display: grid; grid-template-columns: 1.05fr auto 0.95fr; gap: 1.4rem;
  align-items: center; margin-top: 2rem; }
.demo-scan { position: relative; margin: 0; border-radius: 14px; overflow: hidden;
  background: #fff; border: 1px solid var(--blue-100); box-shadow: var(--shadow-soft); }
.demo-scan img { display: block; width: 100%; }
.scan-tag { position: absolute; top: .6rem; left: .6rem; background: rgba(16,24,32,.72);
  color: #fff; font-size: .72rem; padding: .2rem .6rem; border-radius: 999px; margin: 0; }
.scan-line { position: absolute; left: 0; right: 0; top: -12%; height: 42px; opacity: 0;
  background: linear-gradient(to bottom, rgba(52,126,247,0), rgba(52,126,247,.38), rgba(52,126,247,0));
  box-shadow: 0 0 24px 5px rgba(52,126,247,.5); pointer-events: none; }
.demo.playing .scan-line { animation: scan 1.7s ease-in-out .2s forwards; }
@keyframes scan { 0% { top: -12%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.demo-arrow { font-size: 1.6rem; color: var(--blue-400); text-align: center; }
.demo-results { display: flex; flex-direction: column; gap: .8rem; }
.result-card, .result-total { opacity: 0; transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease; }
.result-card { background: #fff; border-radius: 14px; padding: .9rem 1rem; box-shadow: var(--shadow-soft); }
.demo.playing .result-card, .demo.playing .result-total { opacity: 1; transform: none; }
.demo.playing .result-card:nth-child(1) { transition-delay: 1.5s; }
.demo.playing .result-card:nth-child(2) { transition-delay: 1.9s; }
.demo.playing .result-total { transition-delay: 2.3s; }
.rc-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.rc-q { font-weight: 600; font-size: .92rem; }
.rc-score { font-size: 1.5rem; font-weight: 800; margin: .2rem 0; }
.rc-score span { font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.rc-just { margin: 0; font-size: .85rem; }
.result-total { background: var(--blue-50); border: 1px dashed var(--blue-200);
  border-radius: 14px; padding: .7rem 1rem; font-size: .9rem; }
@media (max-width: 900px) {
  .demo-stage { grid-template-columns: 1fr; }
  .demo-arrow { transform: rotate(90deg); }
}

/* Panneau raisonnement / seuil de confiance */
.reason-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.5rem;
  align-items: start; margin-top: 2rem; }
.reason-scan { position: relative; margin: 0; border-radius: 14px; overflow: hidden;
  background: #fff; border: 1px solid var(--blue-100); box-shadow: var(--shadow-soft); }
.reason-scan img { display: block; width: 100%; }
.reason-card h3 { margin: .2rem 0 .8rem; }
.reason-list { margin: 0 0 1rem; }
.reason-list > div { display: flex; justify-content: space-between; gap: 1rem;
  padding: .45rem 0; border-top: 1px solid var(--blue-100); }
.reason-list dt { color: var(--ink-soft); margin: 0; }
.reason-list dd { margin: 0; font-weight: 700; text-align: right; }
.threshold { margin: .3rem 0 .2rem; }
.threshold-bar { position: relative; height: 12px; background: var(--blue-100); border-radius: 999px; }
.th-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px;
  background: linear-gradient(90deg, #e8a317, #f7c948); }
.th-mark { position: absolute; top: -4px; width: 2px; height: 20px; background: var(--blue-400); }
.threshold-legend { display: flex; justify-content: space-between; font-size: .75rem;
  color: var(--ink-soft); margin-top: .5rem; }
.th-th { color: var(--blue-400); font-weight: 600; }
.th-verdict { font-size: .92rem; }
.reason-doubt { background: #fff8ec; border: 1px solid #ffe2ad; border-radius: 12px; padding: .7rem .9rem; margin-top: .6rem; }
.reason-doubt p { margin: .3rem 0; font-size: .88rem; color: #5b4a1f; }
@media (max-width: 820px) { .reason-grid { grid-template-columns: 1fr; } }

/* Espace élève (maquette navigateur) */
.section-lead-left { max-width: 640px; margin: 0 0 1.5rem; color: var(--ink-soft); }
.browser-frame { background: #fff; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--blue-100); box-shadow: var(--shadow-soft); max-width: 720px; }
.bf-bar { display: flex; align-items: center; padding: .6rem .8rem; gap: .35rem;
  background: var(--blue-50); border-bottom: 1px solid var(--blue-100); }
.bf-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-200); }
.bf-url { margin-left: .6rem; font-style: normal; font-size: .8rem; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--blue-100); border-radius: 6px; padding: .15rem .6rem; }
.bf-body { padding: 1.25rem; }
.sm-head { display: flex; justify-content: space-between; align-items: center;
  padding-bottom: .8rem; border-bottom: 1px solid var(--blue-100); margin-bottom: .3rem; }
.sm-grade { font-size: 1.6rem; font-weight: 800; color: var(--blue-400); }
.sm-grade span { font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.sm-q { padding: .9rem 0; border-bottom: 1px solid var(--blue-100); }
.sm-q:last-child { border-bottom: none; }
.sm-q-main { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; }
.sm-note { white-space: nowrap; }
.sm-status { color: #b7791f; font-weight: 600; font-size: .85rem; }
.recheck-form { display: flex; gap: .5rem; margin-top: .5rem; }
.recheck-form textarea { flex: 1; }
.recheck-done { margin: .5rem 0 0; color: var(--blue-400); font-weight: 600; }

/* Décale les ancres sous la barre fixe. */
#demo { scroll-margin-top: 84px; }

/* Barème (illustration) */
.bareme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2rem; }
.bareme-card { text-align: left; }
.bc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .3rem; }
.bc-head h3 { margin: 0; font-size: 1.05rem; }
.bc-total { color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.bareme-list { list-style: none; padding: 0; margin: 0; }
.bareme-list li { display: flex; gap: .7rem; align-items: baseline; padding: .55rem 0;
  border-top: 1px solid var(--blue-100); font-size: .95rem; }
.bc-pts { flex: 0 0 auto; min-width: 2.6rem; text-align: center; font-size: .8rem; font-weight: 700;
  color: var(--blue-400); background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: 8px; padding: .12rem .45rem; }
@media (max-width: 720px) { .bareme-grid { grid-template-columns: 1fr; } }

/* Espace élève : centré comme le reste de la landing */
.student-section { text-align: center; }
.student-section .section-lead { margin-left: auto; margin-right: auto; }
.student-section .browser-frame { margin-left: auto; margin-right: auto; text-align: left; }

/* Bande CTA finale : panneau bleu arrondi avec documents inclinés sur les côtés */
.cta-section { padding: 3.5rem 1.5rem; }
.cta-panel { position: relative; overflow: hidden; max-width: 1080px; margin: 0 auto;
  border-radius: 24px; padding: 3.6rem 1.5rem;
  background:
    radial-gradient(900px 380px at 50% -25%, rgba(255,255,255,.16), transparent 60%),
    linear-gradient(150deg, var(--blue-300), var(--blue-600));
  color: #fff; text-align: center; box-shadow: var(--shadow-soft); }
.cta-content { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; }
.cta-content h2 { font-size: 1.9rem; margin: 0 0 .6rem; }
.cta-sub { color: rgba(255,255,255,.9); margin: 0 0 1.4rem; }
.cta-panel .btn { background: #ffffff; color: var(--blue-400); border-color: #ffffff; }
.cta-panel .btn:hover { background: var(--blue-50); }
.cta-reassure { margin: 1rem 0 0; font-size: .85rem; color: rgba(255,255,255,.8); }

.cta-float { position: absolute; z-index: 1; top: 50%; }
.cta-left { left: -66px; width: 260px; transform: translateY(-50%) rotate(5deg); }
.cta-right { right: -70px; width: 300px; transform: translateY(-50%) rotate(-5deg);
  border-radius: 10px; box-shadow: 0 20px 44px rgba(12,30,66,.4); }
.float-card { background: #fff; color: var(--black); border-radius: 14px; padding: .9rem 1rem;
  text-align: left; box-shadow: 0 20px 44px rgba(12,30,66,.4); }
.fc-title { font-weight: 700; font-size: .9rem; margin-bottom: .4rem; }
.fc-row { display: flex; justify-content: space-between; gap: 1rem; padding: .38rem 0;
  border-top: 1px solid var(--blue-100); font-size: .85rem; }
.fc-row b { color: var(--blue-400); }
@media (max-width: 940px) { .cta-float { display: none; } }
