:root {
  --accent: #15A89A;
  --accent-dark: #118A7F;
  --accent-light: #2BC4AE;
  --tint: #E3F5F1;
  --bg: #E9ECF1;
  --surface: #FFFFFF;
  --surface-2: #F3F4F7;
  --surface-3: #E6E9EE;
  --text: #1C2229;
  --text-2: #4B5565;
  --muted: #7B8595;
  --border: rgba(20, 28, 36, 0.10);
  --success: #13977F;
  --danger: #E0443E;
  --warning: #C77F12;
  --r-sm: 10px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --radius: var(--r-lg);
  --shadow: 0 0 0 1px rgba(16, 24, 40, 0.045), 0 2px 4px rgba(16, 24, 40, 0.05), 0 16px 40px rgba(16, 24, 40, 0.10);
  --shadow-soft: 0 0 0 1px rgba(16, 24, 40, 0.045), 0 2px 6px rgba(16, 24, 40, 0.06);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-feature-settings: "tnum" 1;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

h1, h2, h3 { color: var(--text); line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 700; margin-top: 0; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2rem, 1040px); margin: 0 auto; }
.container-wide { width: min(100% - 2rem, 1280px); }
.narrow { max-width: 620px; margin: 0 auto; }
main.container { flex: 1; padding: 2.2rem 0 4rem; }

/* En-tête */
.site-header { background: linear-gradient(180deg, #1FB49E 0%, #15A89A 100%); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; flex-wrap: wrap; }
.brand { color: #fff; font-weight: 800; text-decoration: none; letter-spacing: -0.01em; font-size: 1.05rem; display: inline-flex; align-items: center; gap: 0.55rem; }
.brand-mark { width: 40px; height: 40px; display: block; flex: none; filter: drop-shadow(0 2px 6px rgba(9, 60, 54, 0.25)); }
.brand-name { font-size: 1.2rem; letter-spacing: -0.02em; }
.brand-name span { color: #D7F3EE; }
.brand:hover { color: #fff; }
.nav { display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; }
.nav a { color: #fff; text-decoration: none; font-size: 0.92rem; font-weight: 600; padding: 0.45rem 0.9rem; border-radius: 99px; transition: background 180ms var(--ease); }
.nav a:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.nav .btn-outline { color: var(--accent-dark); background: #fff; border-color: #fff; padding: 0.45rem 1rem; }
.nav .btn-outline:hover { background: var(--tint); border-color: var(--tint); color: var(--accent-dark); }

/* Pied de page */
.site-footer { background: transparent; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.88rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; flex-wrap: wrap; }
.footer-inner nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--accent-dark); }

/* Boutons : pilules, un seul accent */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 99px;
  border: 1px solid var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
  transition: background 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-accent { background: var(--text); border-color: var(--text); color: #fff; }
.btn-accent:hover { background: #000; border-color: #000; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--surface); border-color: var(--text); color: var(--text); }
.btn-small { padding: 0.35rem 0.9rem; font-size: 0.85rem; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
button.link { background: none; border: 0; color: #fff; cursor: pointer; font: inherit; font-size: 0.92rem; font-weight: 600; padding: 0.45rem 0.9rem; border-radius: 99px; }
button.link:hover { background: rgba(255, 255, 255, 0.16); }
form.inline { display: inline; margin: 0; }

/* Accueil */
.hero { text-align: center; padding: 2.4rem 0 3rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); margin-bottom: 0.45em; }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 720px; margin: 0 auto 1.6em; }
.hero-actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

.section { margin: 3rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: box-shadow 220ms var(--ease), transform 220ms var(--ease);
}
.card p:last-of-type { margin-bottom: 1em; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card-link { text-decoration: none; color: inherit; }
.card-link:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.card-link p { color: var(--muted); margin: 0; }

.modules { padding-left: 1.4rem; columns: 2; column-gap: 2.5rem; }
.modules li { margin: 0.35rem 0; break-inside: avoid; }
@media (max-width: 720px) { .modules { columns: 1; } }

.checks { list-style: none; padding: 0; }
.checks li { padding-left: 2.3rem; position: relative; margin: 0.6rem 0; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0.05rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--tint); color: var(--accent); font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }

.tiers { align-items: stretch; }
.tier { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 1.6rem; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; }
.tier-highlight { box-shadow: var(--shadow), 0 0 0 2px var(--accent); border-color: transparent; }
.badge { position: absolute; top: -0.8rem; left: 1.4rem; background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 99px; text-transform: uppercase; letter-spacing: 0.05em; }
.tier ul { padding-left: 1.2rem; margin: 0 0 1.4rem; flex: 1; }
.tier li { margin: 0.3rem 0; }
.price { font-size: 2.3rem; font-weight: 800; color: var(--text); margin: 0 0 0.8rem; letter-spacing: -0.02em; }
.price small { font-size: 0.85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-small { font-size: 1.4rem; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 0.8rem 1.1rem; margin: 0.6rem 0; }
summary { cursor: pointer; font-weight: 600; color: var(--text); }
details p { margin: 0.7rem 0 0; color: var(--text-2); }

.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

/* Formulaires */
.form { display: flex; flex-direction: column; gap: 0.6rem; max-width: 420px; }
.form-row { flex-direction: row; align-items: flex-end; flex-wrap: wrap; max-width: none; gap: 1rem; }
.form-row label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.9rem; color: var(--muted); }
label { font-weight: 600; color: var(--text); }
input[type="email"], input[type="text"], select {
  font: inherit;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  min-width: 240px;
}
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(21, 168, 154, 0.35); outline-offset: 2px; }
.form .btn { align-self: flex-start; margin-top: 0.4rem; }

.flash { padding: 0.8rem 1rem; border-radius: var(--r-md); margin: 0 0 1.2rem; border: 1px solid; }
.flash-info { background: var(--tint); border-color: #BFE8E1; color: var(--accent-dark); }
.flash-success { background: var(--tint); border-color: #BFE8E1; color: var(--success); }
.flash-error { background: #FCEBEA; border-color: #F3C2C0; color: var(--danger); }

/* Espace membre */
.dashboard-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.dashboard-head h1 { margin-bottom: 0.2em; }
.dashboard-head p { margin: 0; color: var(--text-2); }
progress.progress { width: 260px; height: 8px; appearance: none; border: 0; border-radius: 99px; overflow: hidden; background: var(--surface-3); }
progress.progress::-webkit-progress-bar { background: var(--surface-3); border-radius: 99px; }
progress.progress::-webkit-progress-value { background: var(--accent); border-radius: 99px; }
progress.progress::-moz-progress-bar { background: var(--accent); border-radius: 99px; }

.quick .card h3 { margin-bottom: 0.2em; }

.module-list { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-soft); overflow: hidden; }
.module-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--border);
}
.module-list li:last-child { border-bottom: 0; }
.module-list li:hover { background: var(--surface-2); }
.module-list li a { text-decoration: none; font-weight: 600; flex: 1; color: var(--text); }
.module-list li a:hover { color: var(--accent-dark); }
.module-list li.done a { color: var(--muted); }
.check {
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--surface); color: #fff;
  cursor: pointer; font-size: 1rem; line-height: 1; font-weight: 700;
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}
.check:hover { border-color: var(--accent); }
.check.checked { background: var(--accent); border-color: var(--accent); }

.breadcrumb { color: var(--muted); font-size: 0.9rem; }
.breadcrumb a { color: var(--muted); }

.prose { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(1.2rem, 4vw, 3rem); max-width: 860px; margin: 0 auto; box-shadow: var(--shadow-soft); }
.prose h1 { margin-bottom: 1em; }
.prose h2 { margin-top: 2em; font-size: 1.45rem; }
.prose h3 { margin-top: 1.6em; }
.prose h2 .anchor, .prose h3 .anchor, .prose h4 .anchor { color: var(--surface-3); text-decoration: none; margin-right: 0.4em; font-weight: 400; }
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose h4:hover .anchor { color: var(--accent); }
.prose pre { background: #1B1F27; color: #EEF0F2; padding: 1rem 1.2rem; border-radius: var(--r-md); overflow-x: auto; font-size: 0.88rem; line-height: 1.5; }
.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 6px; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose blockquote { border-left: 3px solid var(--accent); margin: 1.2em 0; padding: 0.4em 1.2em; color: var(--text-2); background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: 0.95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); font-weight: 600; }
.prose tbody tr:hover td { background: var(--surface-2); }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

.module-done { max-width: 860px; margin: 1.5rem auto 0; text-align: center; }
.module-nav { max-width: 860px; margin: 1.5rem auto 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.module-nav a { text-decoration: none; font-weight: 600; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 1.2rem 1.4rem; max-width: 620px; box-shadow: var(--shadow-soft); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-soft); }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th, .table td { padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table th { background: var(--surface-2); color: var(--text-2); font-weight: 600; }
.table tbody tr:hover td { background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }

.tag { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 99px; font-size: 0.78rem; font-weight: 600; background: var(--surface-2); color: var(--text-2); }
.tag-processed { background: var(--tint); color: var(--success); }
.tag-rejected { background: #FCEBEA; color: var(--danger); }
.tag-duplicate, .tag-ignored { background: #FDF3E3; color: var(--warning); }

.journee { max-width: 820px; margin: 0 auto; padding: 1.8rem 2rem; }
.journee .lead-left { font-size: 1.05rem; color: var(--text-2); }
.journee .btn { align-self: flex-start; margin-top: 0.4rem; }
.journee .price { margin-top: 0.8rem; }

.hero-logo { width: 72px; height: 72px; margin: 0 auto 1.2rem; display: block; border-radius: 16px; box-shadow: var(--shadow); }

.prose blockquote.dont, .prose blockquote.do { font-style: normal; color: var(--text); }
.prose blockquote.dont { border-left-color: var(--danger); background: #FCEBEA; }
.prose blockquote.do { border-left-color: var(--success); background: var(--tint); }

/* Pictogrammes et pastilles */
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -5px; }
.ico-lg { width: 26px; height: 26px; }
.pastille { display: inline-flex; width: 44px; height: 44px; border-radius: 13px; background: var(--tint); color: var(--accent-dark); align-items: center; justify-content: center; margin-bottom: 0.8rem; }
.pastille .ico { width: 22px; height: 22px; vertical-align: 0; }
.feature h3 { margin-bottom: 0.4em; }
.feature p { color: var(--text-2); margin-bottom: 0; }

/* Héros riche */
.hero-rich { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; text-align: left; padding: 2.5rem 0 3rem; }
.hero-rich .hero-logo { margin: 0 0 1rem; }
.hero-rich h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
.hero-rich .lead { margin: 0 0 1.4em; }
.hero-rich .hero-actions { justify-content: flex-start; }
.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700; color: var(--accent-dark); margin: 0 0 0.6rem; }
.hero-proof { font-size: 0.88rem; color: var(--text-2); margin-top: 1.2rem; }
.hero-proof .ico { width: 18px; height: 18px; color: var(--accent); }
.hero-mockup { position: relative; height: 420px; }
.mock { position: absolute; border-radius: 12px; box-shadow: var(--shadow); background: #fff; }
.mock-guide { width: 46%; left: 4%; top: 0; transform: rotate(-4deg); z-index: 2; }
.mock-tp { width: 42%; right: 4%; top: 10%; transform: rotate(5deg); z-index: 1; }
.mock-term { width: 78%; left: 11%; bottom: 0; z-index: 3; border-radius: 14px; }
@media (max-width: 900px) { .hero-rich { grid-template-columns: 1fr; text-align: center; } .hero-rich .hero-logo { margin: 0 auto 1rem; } .hero-rich .hero-actions { justify-content: center; } .hero-mockup { height: 300px; max-width: 520px; margin: 0 auto; width: 100%; } }

/* Frise du programme */
.timeline { list-style: none; padding: 0; margin: 1.2rem 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--accent), var(--surface-3)); }
.timeline li { display: flex; align-items: center; gap: 1rem; padding: 0.45rem 0; }
.tl-ico { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); color: var(--accent-dark); display: inline-flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.tl-ico.small { flex-basis: 34px; width: 34px; height: 34px; border-width: 1.5px; }
.tl-ico.small .ico { width: 18px; height: 18px; }
.tl-ico .ico { vertical-align: 0; }
.tl-title { font-weight: 600; }

/* Aperçus */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }
.shot { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 0.8rem; box-shadow: var(--shadow-soft); }
.shot img { width: 100%; display: block; border-radius: 12px; }
.shot figcaption { font-size: 0.86rem; color: var(--text-2); padding: 0.7rem 0.3rem 0.2rem; }

/* Paliers et séances */
.tier-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; color: var(--accent-dark); }
.tier-head h3 { margin: 0; color: var(--text); }
.session h3 { font-size: 1.02rem; }

/* Journée */
.journee-rich { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 1.5rem; align-items: center; max-width: 1040px; }
.journee-illu { width: 100%; height: auto; }
@media (max-width: 820px) { .journee-rich { grid-template-columns: 1fr; } .journee-illu { max-width: 320px; margin: 0 auto; } }

/* Qui suis-je */
.qui-head { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.2rem; }
.qui-head h2 { margin-bottom: 0.2em; }
.avatar { width: 96px; height: 96px; border-radius: 50%; box-shadow: var(--shadow-soft); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0 0 1.5rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1rem 1.1rem; box-shadow: var(--shadow-soft); }
.stat strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; color: var(--accent-dark); font-feature-settings: "tnum" 1; }
.stat span { font-size: 0.85rem; color: var(--text-2); }

/* Espace membre */
.quick-card { flex-direction: row; align-items: center; gap: 1rem; }
.quick-card .thumb { width: 64px; height: 88px; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow-soft); flex: 0 0 auto; }
.quick-card .pastille { margin: 0; flex: 0 0 auto; }
.quick-card h3 { margin-bottom: 0.2em; font-size: 1.02rem; }
.quick-card p { margin: 0; }
.module-list li { gap: 0.8rem; }
.foot-brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.foot-brand img { border-radius: 6px; }

/* Page de module */
.module-head { display: flex; align-items: center; gap: 1.1rem; margin: 0.4rem 0 1.6rem; }
.module-head h1 { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.module-head .kicker { margin-bottom: 0.3rem; }
.module-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.module-toc { position: sticky; top: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1rem 1.1rem; box-shadow: var(--shadow-soft); }
.module-toc ol { padding-left: 1.2rem; margin: 0.3rem 0 0.9rem; font-size: 0.9rem; color: var(--text-2); }
.module-toc li { margin: 0.35rem 0; }
.module-toc a { text-decoration: none; font-weight: 600; }
@media (max-width: 900px) { .module-grid { grid-template-columns: 1fr; } .module-toc { position: static; } }
.module-grid .prose { max-width: none; margin: 0; }
.module-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: none; }
.nav-card { display: flex; flex-direction: column; gap: 0.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 0.9rem 1.1rem; text-decoration: none; color: var(--text); box-shadow: var(--shadow-soft); }
.nav-card.next { text-align: right; align-items: flex-end; }
.nav-card:hover { border-color: var(--accent); color: var(--text); }
@media (max-width: 640px) { .module-nav { grid-template-columns: 1fr; } .nav-card.next { text-align: left; align-items: flex-start; } }
.module-done { max-width: none; }

/* Visio et connexion */
.how { padding-left: 1.2rem; margin: 0.6rem 0 1.2rem; }
.how li { margin: 0.4rem 0; }
.login-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; max-width: 920px; margin: 1rem auto; }
.login-side img { border-radius: 14px; box-shadow: var(--shadow-soft); margin-bottom: 1rem; }
.login-card { padding: 1.8rem; }
.login-card h1 { font-size: 1.6rem; }
.checks.small li { margin: 0.35rem 0; }
@media (max-width: 820px) { .login-grid { grid-template-columns: 1fr; } }

/* Simulateur */
.track-switch { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 4px; gap: 4px; margin: 0.6rem 0 0.8rem; }
.track-switch a { text-decoration: none; color: var(--text-2); font-weight: 600; font-size: 0.92rem; padding: 0.5rem 1rem; border-radius: 99px; display: inline-flex; align-items: center; gap: 0.4rem; }
.track-switch a.on { background: var(--accent); color: #fff; }
.exercise-list { list-style: none; padding: 0; margin: 1rem 0 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-soft); overflow: hidden; }
.exercise-list li { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--border); }
.exercise-list li:last-child { border-bottom: 0; }
.exercise-list li div { flex: 1; }
.exercise-list li p { margin: 0.1rem 0 0; }
.exercise-list li a { text-decoration: none; color: var(--text); }
.exercise-list li.done .tl-ico { background: var(--accent); color: #fff; }
.exercise-list .tl-ico b { font-weight: 800; }

.sim { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: 1.4rem; align-items: start; }
@media (max-width: 980px) { .sim { grid-template-columns: 1fr; } }
.sim-left { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 560px; }
.sim-left.terminal { background: #1B1F27; color: #EEF0F2; font-family: var(--mono); }
.sim-left.chat { background: #F7F7F8; color: var(--text); border: 1px solid var(--border); }
.sim-bar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px; position: relative; }
.terminal .sim-bar { background: #262D37; }
.chat .sim-bar { background: #fff; border-bottom: 1px solid var(--border); }
.sim-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #FF5F57; } .dot.y { background: #FEBC2E; } .dot.g { background: #28C840; }
.chat .dot.g { background: var(--accent); }
.sim-title { position: absolute; left: 0; right: 0; text-align: center; font-size: 12.5px; color: #8792A0; font-family: var(--font); font-weight: 600; }
.chat .sim-title { position: static; color: var(--text); font-size: 14px; }
.sim-files { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 12.5px; }
.sim-files-title { margin: 0 0 4px; color: #2BC4AE; font-weight: 600; font-family: var(--font); }
.sim-files details { margin: 2px 0; }
.sim-files summary { cursor: pointer; color: #B9C0C8; }
.sim-files pre { margin: 6px 0 8px; padding: 8px 10px; background: #12151B; border-radius: 8px; font-size: 12px; white-space: pre-wrap; color: #D7DCE6; }
.sim-attachments { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: #fff; }
.sim-attachments .chip { background: var(--tint); border-radius: 99px; font-size: 13px; }
.sim-attachments summary { cursor: pointer; padding: 6px 12px; color: var(--accent-dark); font-weight: 600; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.sim-attachments summary::-webkit-details-marker { display: none; }
.sim-attachments .chip[open] { border-radius: 14px; }
.sim-attachments .chip p { margin: 0; padding: 0 12px 10px; color: var(--text-2); }
.sim-log { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; max-height: 440px; }
.turn { display: flex; flex-direction: column; gap: 4px; max-width: 92%; }
.turn .who { font-size: 11.5px; font-weight: 600; color: #8792A0; font-family: var(--font); }
.turn pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; line-height: 1.5; }
.terminal .turn.user pre::before { content: "❯ "; color: #2BC4AE; font-weight: 700; }
.terminal .turn.ai pre { color: #D7F2EE; }
.chat .turn pre { font-family: var(--font); padding: 11px 14px; border-radius: 16px; }
.chat .turn.user { align-self: flex-end; }
.chat .turn.user pre { background: var(--tint); border-bottom-right-radius: 6px; }
.chat .turn.ai pre { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.turn.note { align-self: center; max-width: 100%; }
.turn.note pre, .turn.note { color: #8792A0; font-style: italic; font-size: 12.5px; font-family: var(--font); text-align: center; }
.sim-form { padding: 12px 14px 14px; border-top: 1px solid rgba(127,127,127,.18); background: inherit; }
.terminal .sim-form { background: #161A21; }
.chat .sim-form { background: #fff; }
.sim-form textarea { width: 100%; box-sizing: border-box; resize: vertical; border-radius: 12px; border: 1px solid rgba(127,127,127,.3); padding: 10px 12px; font: 13.5px/1.5 var(--mono); }
.terminal .sim-form textarea { background: #0F1115; color: #EEF0F2; }
.chat .sim-form textarea { font-family: var(--font); background: #F7F7F8; }
.sim-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-family: var(--font); }
.terminal .sim-actions .muted { color: #8792A0; }
.sim-right h1 { font-size: 1.5rem; margin-bottom: 0.8rem; }
.sim-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 0.9rem 1.1rem; margin-bottom: 0.8rem; box-shadow: var(--shadow-soft); }
.sim-block h3 { font-size: 0.95rem; margin: 0 0 0.5rem; display: flex; align-items: center; gap: 0.4rem; color: var(--text-2); }
.sim-block p:last-child { margin-bottom: 0; }
.criteria { list-style: none; padding: 0; margin: 0; }
.criteria li { display: flex; align-items: flex-start; gap: 0.6rem; padding: 0.4rem 0; border-top: 1px solid var(--border); font-size: 0.93rem; }
.criteria li:first-child { border-top: 0; }
.criteria .mark { flex: 0 0 20px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--surface-3); margin-top: 1px; position: relative; transition: all 220ms var(--ease); }
.criteria li.pending .mark { border-color: var(--accent-light); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.criteria li.ok .mark { background: var(--accent); border-color: var(--accent); }
.criteria li.ok .mark::after { content: ""; position: absolute; left: 6px; top: 2px; width: 4px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.criteria li.ko .mark { border-color: var(--danger); }
.criteria li.ko .mark::after { content: ""; position: absolute; left: 8px; top: 3px; width: 2px; height: 10px; background: var(--danger); transform: rotate(45deg); box-shadow: 0 0 0 0 transparent; }
.criteria li.ko .mark::before { content: ""; position: absolute; left: 8px; top: 3px; width: 2px; height: 10px; background: var(--danger); transform: rotate(-45deg); }
.criteria li.ok { color: var(--text); } .criteria li.ko { color: var(--text-2); }
@keyframes spin { to { transform: rotate(360deg); } }
.coach { border-left: 4px solid var(--surface-3); }
.coach[data-state="ok"] { border-left-color: var(--success); background: var(--tint); }
.coach[data-state="ko"] { border-left-color: var(--warning); background: #FFF8EC; }
.coach[data-state="pending"] { border-left-color: var(--accent-light); }
.hints ol { margin: 0.6rem 0 0; padding-left: 1.2rem; color: var(--text-2); }
.hints li { margin: 0.3rem 0; }
.sim-nav { display: flex; justify-content: space-between; gap: 0.6rem; margin-top: 0.4rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.parcours details { margin-top: 0.6rem; background: var(--surface-2); border: 0; }
.parcours ol { padding-left: 1.2rem; margin: 0.4rem 0 0; color: var(--text-2); }

/* Jeu */
.btn-big { padding: 0.95rem 1.6rem; font-size: 1.05rem; }
.game-hero { text-align: center; max-width: 760px; margin: 1.5rem auto 1rem; }
.game-hero h1 { font-size: clamp(1.8rem, 5.5vw, 2.8rem); line-height: 1.12; }
.game-hero .lead { margin: 0 auto 1.4rem; }
.game-hero.narrow { max-width: 620px; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.xp { font-weight: 700; color: var(--accent-dark); }
.xp-bar { height: 10px; background: var(--surface-3); border-radius: 99px; overflow: hidden; margin: 0.4rem 0 1rem; }
.xp-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-light), var(--accent)); border-radius: 99px; transition: width 600ms var(--ease); }
.level-map { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.7rem; position: relative; }
.lvl a { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); text-decoration: none; color: var(--text); box-shadow: var(--shadow-soft); transition: transform 150ms var(--ease), border-color 150ms; }
.lvl a:hover { transform: translateY(-2px); border-color: var(--accent); }
.lvl-node { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; background: var(--surface-2); color: var(--text-2); border: 2px solid var(--surface-3); }
.lvl-node.small { flex-basis: 34px; width: 34px; height: 34px; font-size: 0.95rem; }
.lvl-node .ico { vertical-align: 0; }
.lvl.open .lvl-node { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 0 6px var(--tint); animation: pulse 1.8s ease-in-out infinite; }
.lvl.done .lvl-node { background: var(--tint); color: var(--accent-dark); border-color: var(--accent); }
.lvl.locked a { opacity: 0.75; }
.lvl-text { flex: 1; display: flex; flex-direction: column; gap: 0.1rem; }
.lvl-score { display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; }
.pill { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.82rem; padding: 0.3rem 0.8rem; border-radius: 99px; }
.pill-lock { background: var(--surface-3); color: var(--text-2); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px var(--tint); } 50% { box-shadow: 0 0 0 10px rgba(21,168,154,.12); } }
.stars i { font-style: normal; color: var(--surface-3); font-size: 1.15rem; }
.stars i.on { color: #F5B301; }
.offer-teaser { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; }
.offer-teaser h2 { margin-bottom: 0.3rem; }

.game { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); grid-template-areas: "top top" "mission side" "chat side"; gap: 1rem 1.4rem; align-items: start; }
.game-top { grid-area: top; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.game-top a { text-decoration: none; font-weight: 600; }
.mission { grid-area: mission; padding: 1.1rem 1.3rem; }
.mission h1 { font-size: clamp(1.35rem, 3.5vw, 1.8rem); margin: 0 0 0.5rem; }
.mission .objective { background: var(--tint); border-radius: 12px; padding: 0.7rem 0.9rem; font-weight: 600; color: var(--accent-dark); }
.game-chat { grid-area: chat; min-height: 420px; }
.game-side { grid-area: side; position: sticky; top: 1rem; }
@media (max-width: 900px) {
  .game { grid-template-columns: 1fr; grid-template-areas: "top" "mission" "chat" "side"; }
  .game-side { position: static; }
  .game-chat { min-height: 0; }
  .sim-log { max-height: 340px; }
}
.ingredients { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ingr { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--text-3, #8792A0); border: 1px dashed var(--surface-3); transition: all 200ms var(--ease); }
.ingr.on { background: var(--accent); color: #fff; border: 1px solid var(--accent); transform: scale(1.04); }
.ingr.on::before { content: "✓ "; }
.turn.typing pre i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: var(--text-3, #8792A0); animation: blink 1s infinite; }
.turn.typing pre i:nth-child(2) { animation-delay: .15s; } .turn.typing pre i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.solution pre { white-space: pre-wrap; background: var(--surface-2); border-radius: 10px; padding: 0.7rem 0.8rem; font-size: 0.86rem; margin: 0; }

.modal { position: fixed; inset: 0; background: rgba(16, 24, 40, .55); display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 50; }
.modal[hidden] { display: none; }
.modal-card { max-width: 460px; width: 100%; text-align: center; position: relative; overflow: hidden; padding: 1.6rem 1.4rem; animation: pop 320ms var(--ease); }
.modal-card .form { text-align: left; }
.modal-card .consent-check { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.85rem; font-weight: 400; margin: 0.6rem 0; }
.modal-card .consent-check input { width: auto; margin-top: 3px; }
.win-stars .stars i { font-size: 2.2rem; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; background: var(--accent); animation: fall 1.6s ease-in forwards; opacity: .9; }
.confetti i:nth-child(3n) { background: #F5B301; } .confetti i:nth-child(4n) { background: #2BC4AE; width: 6px; } .confetti i:nth-child(5n) { background: #E5484D; }
.confetti i:nth-child(1) { left: 41%; animation-delay: 0.07s; }
.confetti i:nth-child(2) { left: 82%; animation-delay: 0.14s; }
.confetti i:nth-child(3) { left: 23%; animation-delay: 0.21s; }
.confetti i:nth-child(4) { left: 64%; animation-delay: 0.28s; }
.confetti i:nth-child(5) { left: 5%; animation-delay: 0.35s; }
.confetti i:nth-child(6) { left: 46%; animation-delay: 0.42s; }
.confetti i:nth-child(7) { left: 87%; animation-delay: 0.49s; }
.confetti i:nth-child(8) { left: 28%; animation-delay: 0.00s; }
.confetti i:nth-child(9) { left: 69%; animation-delay: 0.07s; }
.confetti i:nth-child(10) { left: 10%; animation-delay: 0.14s; }
.confetti i:nth-child(11) { left: 51%; animation-delay: 0.21s; }
.confetti i:nth-child(12) { left: 92%; animation-delay: 0.28s; }
.confetti i:nth-child(13) { left: 33%; animation-delay: 0.35s; }
.confetti i:nth-child(14) { left: 74%; animation-delay: 0.42s; }
.confetti i:nth-child(15) { left: 15%; animation-delay: 0.49s; }
.confetti i:nth-child(16) { left: 56%; animation-delay: 0.00s; }
.confetti i:nth-child(17) { left: 97%; animation-delay: 0.07s; }
.confetti i:nth-child(18) { left: 38%; animation-delay: 0.14s; }
.confetti i:nth-child(19) { left: 79%; animation-delay: 0.21s; }
.confetti i:nth-child(20) { left: 20%; animation-delay: 0.28s; }
.confetti i:nth-child(21) { left: 61%; animation-delay: 0.35s; }
.confetti i:nth-child(22) { left: 2%; animation-delay: 0.42s; }
.confetti i:nth-child(23) { left: 43%; animation-delay: 0.49s; }
.confetti i:nth-child(24) { left: 84%; animation-delay: 0.00s; }
@keyframes fall { to { transform: translateY(520px) rotate(540deg); opacity: 0; } }
.price-card { max-width: 520px; margin: 1.2rem auto 0; text-align: left; }
.price-card .price { text-align: center; font-size: 2.6rem; }
.price-card .btn { width: 100%; text-align: center; }
.offer-levels { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.offer-levels li { display: flex; align-items: center; gap: 0.9rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 0.8rem 1rem; }
.offer-levels li div { flex: 1; } .offer-levels p { margin: 0.1rem 0 0; }
.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 0.9rem 1rem; display: flex; gap: 1rem; align-items: center; z-index: 60; font-size: 0.88rem; }
.consent[hidden] { display: none; } .consent p { margin: 0; flex: 1; }
@media (max-width: 560px) { .consent { flex-direction: column; align-items: stretch; } }

/* Explications niveau 1 */
.intro-box { display: flex; gap: 0.6rem; align-items: flex-start; background: #FFF8EC; border-radius: 12px; padding: 0.7rem 0.9rem; margin: 0.4rem 0 0.8rem; }
.intro-box p { margin: 0; }
.intro-box .ico { flex: 0 0 auto; color: #C98A00; margin-top: 2px; }
.guide { margin-top: 0.9rem; padding: 0.9rem 1rem; background: var(--surface-2); border: 0; box-shadow: none; }
.guide summary { cursor: pointer; }
.guide-list { list-style: none; padding: 0; margin: 0.8rem 0 0.4rem; display: flex; flex-direction: column; gap: 0.7rem; }
.guide-list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.guide-list p { margin: 0.15rem 0 0; }
.letter { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.05rem; display: inline-flex; align-items: center; justify-content: center; }
.guide-example { font-size: 0.86rem; color: var(--accent-dark); background: var(--tint); border-radius: 8px; padding: 0.35rem 0.6rem; margin-top: 0.35rem !important; }
.ingr-help { margin: 0 0 6px; }
button.ingr { font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.ingr b { display: inline-block; min-width: 1em; }
.bubble { position: relative; background: #1C2229; color: #fff; border-radius: 12px; padding: 0.7rem 0.85rem; margin: 0 0 8px; font-size: 0.9rem; box-shadow: var(--shadow); }
.bubble::before { content: ""; position: absolute; top: -6px; left: 22px; width: 12px; height: 12px; background: #1C2229; transform: rotate(45deg); }
.bubble p { margin: 0.25rem 0 0; }
.bubble .guide-example { background: rgba(255,255,255,.1); color: #BFF3EA; }
.tour { position: fixed; inset: 0; background: rgba(16, 24, 40, .45); z-index: 40; display: flex; align-items: flex-end; justify-content: center; padding: 1rem; pointer-events: auto; }
.tour[hidden] { display: none; }
.tour-bubble { max-width: 440px; width: 100%; padding: 1rem 1.1rem; animation: pop 250ms var(--ease); }
.tour-bubble p { margin: 0 0 0.5rem; }
.tour-actions { display: flex; justify-content: space-between; align-items: center; }
.tour-lit { position: relative; z-index: 45; box-shadow: 0 0 0 4px var(--accent), 0 0 0 9999px rgba(16,24,40,.0) !important; border-radius: 14px; background: var(--surface); }
.help-fab { position: fixed; left: 1rem; bottom: 1rem; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.3rem; box-shadow: var(--shadow); cursor: pointer; z-index: 30; }
.help-fab[hidden] { display: none; }

/* Leçon */
.lesson { max-width: 680px; margin: 0 auto; }
.lesson .game-top { margin-bottom: 0.6rem; }
.lesson-dots { display: flex; gap: 6px; margin: 0 0 1rem; }
.lesson-dots span { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-3); transition: background 250ms; }
.lesson-dots span.on { background: var(--accent); }
.slide { padding: 1.4rem 1.3rem; margin-bottom: 1rem; animation: pop 250ms var(--ease); }
.slide h2 { font-size: clamp(1.35rem, 4.5vw, 1.75rem); line-height: 1.2; margin: 0.2rem 0 0.8rem; }
.slide p, .slide li { font-size: 1.03rem; line-height: 1.6; }
.slide-count { text-align: right; margin: 0.6rem 0 0; }
.lesson-shot { margin: 1rem 0 0; }
.lesson-shot img { width: 100%; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-soft); max-height: 420px; object-fit: cover; object-position: top; }
.lesson-shot figcaption { font-size: 0.85rem; color: var(--text-2); margin-top: 0.4rem; text-align: center; }
.lesson-go { display: block; text-align: center; margin-top: 1.2rem; }
.lesson-nav { display: flex; justify-content: space-between; gap: 1rem; }
.lesson-nav .btn { flex: 1; max-width: 220px; }
.lesson-nav .btn:last-child { margin-left: auto; }
.lesson-nav .btn[disabled] { opacity: .55; cursor: default; }
.lesson:not(.js) .lesson-nav, .lesson:not(.js) .lesson-dots { display: none; }
.quiz { margin-top: 0.6rem; display: flex; flex-direction: column; gap: 0.5rem; }
.quiz-q { font-weight: 600; background: var(--surface-2); border-radius: 12px; padding: 0.8rem 0.9rem; }
.quiz-opt { font: inherit; text-align: left; padding: 0.8rem 1rem; border-radius: 12px; border: 2px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 600; }
.quiz-opt:hover { border-color: var(--accent); }
.quiz-opt.right { border-color: var(--success); background: var(--tint); }
.quiz-opt.wrong { border-color: var(--danger); background: #FDEEEE; text-decoration: line-through; opacity: .7; }
.quiz-explain { background: var(--tint); border-radius: 12px; padding: 0.8rem 0.9rem; font-size: 0.95rem !important; }
.steps-mini { list-style: none; padding: 0; display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; margin: 0.6rem 0 0; font-size: 0.88rem; color: var(--text-2); }
.steps-mini b { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: var(--tint); color: var(--accent-dark); align-items: center; justify-content: center; font-size: 0.75rem; margin-right: 4px; }

[hidden] { display: none !important; }

/* Gamification */
.power { margin-bottom: 8px; }
.power-bar { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.power-bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: #E5484D; transition: width 350ms var(--ease), background 350ms; }
.power-bar span[data-level="2"] { background: #F59E0B; }
.power-bar span[data-level="3"] { background: #EAB308; }
.power-bar span[data-level="4"] { background: #2BC4AE; }
.power-bar span[data-level="5"] { background: linear-gradient(90deg, #15A89A, #0E7C72); box-shadow: 0 0 12px rgba(21,168,154,.6); }
.power-label { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.game-rank { font-weight: 700; color: var(--accent-dark); display: inline-flex; align-items: center; gap: 4px; }
.game-rank .ico { width: 16px; height: 16px; }
.rank-card { display: flex; gap: 1.2rem; align-items: center; background: linear-gradient(135deg, #0F2F2B, #15A89A); color: #fff; border-radius: var(--r-xl); padding: 1.2rem 1.3rem; margin-bottom: 1.2rem; box-shadow: var(--shadow); flex-wrap: wrap; }
.rank-card h2 { color: #fff; margin: 0.1rem 0 0.2rem; font-size: 1.6rem; }
.rank-card .muted, .rank-card .small { color: rgba(255,255,255,.82); }
.rank-card .xp-bar { background: rgba(255,255,255,.2); }
.rank-card .xp-bar span { background: linear-gradient(90deg, #F5D76E, #F5B301); }
.rank-info { flex: 1; min-width: 200px; }
.rank-medal { position: relative; width: 74px; height: 74px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFE79A, #F5B301 60%, #B07D00); display: flex; align-items: center; justify-content: center; color: #5A3E00; box-shadow: 0 6px 18px rgba(0,0,0,.25), inset 0 -4px 0 rgba(0,0,0,.15); }
.rank-medal .ico { width: 32px; height: 32px; }
.rank-medal span { position: absolute; bottom: -6px; right: -6px; background: #fff; color: #0F2F2B; font-weight: 800; border-radius: 99px; padding: 2px 8px; font-size: 0.8rem; }
.rank-stats { display: flex; gap: 1rem; }
.rank-stats > span { display: flex; flex-direction: column; align-items: center; background: rgba(255,255,255,.12); border-radius: 14px; padding: 0.5rem 0.8rem; }
.rank-stats strong { font-size: 1.3rem; }
.continue { text-align: center; margin: 0 0 1.2rem; }
.path { position: relative; }
.path::before { content: ""; position: absolute; left: 41px; top: 20px; bottom: 20px; border-left: 3px dashed var(--surface-3); z-index: 0; }
.path .lvl { position: relative; z-index: 1; }
.lvl.done .lvl-node { background: radial-gradient(circle at 35% 30%, #FFE79A, #F5B301 60%, #B07D00); color: #5A3E00; border-color: #F5B301; }
.lvl.boss a { border: 2px solid #E5484D; background: linear-gradient(135deg, #fff, #FFF1F1); }
.lvl.boss .lvl-node { background: #1C2229; color: #fff; border-color: #E5484D; }
.lvl.boss.done .lvl-node { background: radial-gradient(circle at 35% 30%, #FFE79A, #F5B301 60%, #B07D00); }
.lvl-badge { color: var(--accent-dark); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.lvl-badge .ico { width: 14px; height: 14px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.8rem; }
.badge-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.3rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 0.9rem 0.6rem; opacity: 0.55; filter: grayscale(1); }
.badge-item.earned { opacity: 1; filter: none; box-shadow: var(--shadow-soft); }
.medal { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--text-2); }
.earned .medal, .win-badge .medal, .cert-badges .medal { background: radial-gradient(circle at 35% 30%, #FFE79A, #F5B301 60%, #B07D00); color: #5A3E00; box-shadow: 0 4px 10px rgba(176,125,0,.35); }
.medal .ico { width: 24px; height: 24px; vertical-align: 0; }
.win-xp { font-size: 2.2rem; font-weight: 800; color: var(--accent-dark); margin: 0; }
.win-rank { background: var(--surface-2); border-radius: 14px; padding: 0.7rem 0.9rem; margin: 0.6rem 0; }
.win-rank p { margin: 0.1rem 0; }
.win-rank .rank-name { font-size: 1.25rem; font-weight: 800; }
.win-rank.up { background: linear-gradient(135deg, #FFF6D6, #FFE79A); animation: glow 1.4s ease-in-out 2; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgba(245,179,1,.35); } }
.win-badges { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.4rem 0 0.8rem; }
.win-badge { display: flex; align-items: center; gap: 0.7rem; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0.5rem 0.7rem; opacity: 0; animation: badgeIn 500ms var(--ease) forwards; }
.win-badge small { display: block; color: var(--text-2); font-size: 0.75rem; }
@keyframes badgeIn { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
.cert-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; background: linear-gradient(135deg, #FFF6D6, #fff); }
.cert-cta div { flex: 1; } .cert-cta h3, .cert-cta p { margin: 0.1rem 0; }
.cert-page { max-width: 760px; margin: 1rem auto; }
.cert-name { margin-bottom: 1rem; } .cert-name div { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.certificate { text-align: center; padding: 2.4rem 1.6rem; border: 3px double #C9A227; background: linear-gradient(180deg, #fff, #FFFBEF); }
.certificate h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0.3rem 0 0; }
.cert-claim { font-size: 1.3rem; font-weight: 700; color: var(--accent-dark); }
.cert-stats { display: flex; justify-content: center; gap: 1.4rem; flex-wrap: wrap; margin: 1rem 0; }
.cert-badges { display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cert-actions { text-align: center; margin-top: 1rem; }
@media print { .site-header, .site-footer, .cert-name, .cert-actions, .consent, .help-fab { display: none !important; } body { background: #fff; } }
.game > * { min-width: 0; }
.game-top { flex-wrap: wrap; row-gap: 0.3rem; }
@media (max-width: 640px) { .game-top { justify-content: flex-start; column-gap: 0.9rem; } .game-top .game-score { margin-left: auto; } }
.certificate img { display: block; margin: 0 auto 0.4rem; }

/* ====== Thème jeu ====== */
body.play { background: radial-gradient(1200px 500px at 10% -10%, #D9F7F1 0, transparent 60%), radial-gradient(900px 500px at 110% 10%, #EDE7FF 0, transparent 55%), #F4F7FB; }
.btn3d { display: inline-block; font: inherit; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: #fff; background: #15A89A; border: 0; border-radius: 16px; padding: 0.9rem 1.6rem; box-shadow: 0 5px 0 #0E7C72; text-decoration: none; cursor: pointer; transition: transform 80ms, box-shadow 80ms; }
.btn3d:hover { color: #fff; filter: brightness(1.05); }
.btn3d:active { transform: translateY(4px); box-shadow: 0 1px 0 #0E7C72; }
.btn3d.big { font-size: 1.15rem; padding: 1.1rem 2.4rem; }
.game-hero.playful { padding-top: 0.5rem; }
.hero-vizi { animation: float 3s ease-in-out infinite; filter: drop-shadow(0 10px 14px rgba(17,138,127,.25)); }
@keyframes float { 50% { transform: translateY(-8px) rotate(-2deg); } }
.vizi { display: block; }

.rank-card { display: flex; flex-direction: column; gap: 0.9rem; background: linear-gradient(135deg, #0F2F2B 0%, #15A89A 70%, #2BC4AE 100%); color: #fff; border-radius: 26px; padding: 1.1rem 1.2rem 1.2rem; box-shadow: 0 10px 30px rgba(15,47,43,.25); margin-bottom: 1.6rem; position: relative; overflow: hidden; }
.rank-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.08); }
.vizi-wrap { display: flex; align-items: center; gap: 0.6rem; }
.vizi-wrap .vizi { width: 76px; height: 76px; flex: 0 0 auto; animation: float 3s ease-in-out infinite; }
.speech { position: relative; background: #fff; color: #1C2229; border-radius: 16px; padding: 0.6rem 0.8rem; margin: 0; font-weight: 600; font-size: 0.95rem; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.speech::before { content: ""; position: absolute; left: -7px; top: 50%; margin-top: -7px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); }
.rank-kicker { margin: 0; text-transform: uppercase; letter-spacing: .1em; font-size: 0.72rem; font-weight: 800; opacity: .8; }
.rank-info h2 { color: #fff; font-size: 1.9rem; margin: 0 0 0.5rem; }
.rank-card .xp-bar { height: 14px; background: rgba(255,255,255,.18); margin: 0 0 0.7rem; }
.rank-card .xp-bar span { background: linear-gradient(90deg, #FFE27A, #F5B301); box-shadow: 0 0 10px rgba(245,179,1,.6); }
.rank-stats { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rank-stats > span { display: inline-flex; align-items: center; gap: 0.3rem; background: rgba(255,255,255,.14); border-radius: 99px; padding: 0.35rem 0.75rem; font-weight: 700; font-size: 0.88rem; flex-direction: row; }
.rank-stats .ico { width: 16px; height: 16px; }
.rank-stats .st { color: #FFE27A; }

.path-map { list-style: none; padding: 0.4rem 0 0.6rem; margin: 0 auto; max-width: 460px; display: flex; flex-direction: column; gap: 1.7rem; position: relative; }
.stop { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.stop.pos-1 { transform: translateX(26%); } .stop.pos-3 { transform: translateX(-26%); }
.node3d { position: relative; width: 86px; height: 80px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 1.9rem; font-weight: 900; text-decoration: none; transition: transform 80ms, box-shadow 80ms; }
.node3d .ico { width: 36px; height: 36px; vertical-align: 0; stroke-width: 2.2; }
.node3d:active { transform: translateY(5px); }
.c-teal .node3d { background: #15A89A; box-shadow: 0 7px 0 #0E7C72; }
.c-blue .node3d { background: #3B82F6; box-shadow: 0 7px 0 #1D4ED8; }
.c-purple .node3d { background: #8B5CF6; box-shadow: 0 7px 0 #6D28D9; }
.c-orange .node3d { background: #F59E0B; box-shadow: 0 7px 0 #B45309; }
.c-boss .node3d { background: #E5484D; box-shadow: 0 7px 0 #A61B20; width: 100px; height: 92px; }
.stop.done .node3d { background: radial-gradient(circle at 35% 30%, #FFE79A, #F5B301 60%, #C98A00); box-shadow: 0 7px 0 #9A6A00; color: #5A3E00; }
.stop.locked .node3d { background: #D7DDE5; box-shadow: 0 7px 0 #B5BEC9; color: #8A95A3; }
.stop.current .node3d { animation: bounce 1.6s ease-in-out infinite; }
.stop.current .node3d::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 4px solid rgba(21,168,154,.35); animation: ring 1.6s ease-out infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.crown { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: #1C2229; color: #FFE27A; font-size: 0.65rem; font-weight: 900; letter-spacing: .12em; padding: 3px 8px; border-radius: 99px; }
.go-tip { background: #fff; color: #0E7C72; font-weight: 800; font-size: 0.85rem; padding: 0.35rem 0.8rem; border-radius: 12px; border: 2px solid #D7EFEA; margin-bottom: 0.6rem; position: relative; animation: bounce 1.6s ease-in-out infinite; }
.go-tip::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -6px; width: 12px; height: 12px; background: #fff; border-right: 2px solid #D7EFEA; border-bottom: 2px solid #D7EFEA; transform: rotate(45deg); }
.stop-label { margin-top: 0.75rem; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; max-width: 230px; }
.stop-label strong { font-size: 1rem; line-height: 1.25; }
.stop-stars .stars i { font-size: 1.05rem; }
.trophy-name { font-size: 0.82rem; font-weight: 700; color: #9A6A00; display: inline-flex; align-items: center; gap: 3px; }
.trophy-name .ico { width: 14px; height: 14px; }
.lock-tag { font-size: 0.75rem; font-weight: 800; color: #8A95A3; background: #E9EDF2; border-radius: 99px; padding: 2px 9px; margin-top: 2px; }
.feats-title { text-align: center; margin: 1.4rem 0 0.6rem; font-size: 1rem; color: var(--text-2); text-transform: uppercase; letter-spacing: .08em; }
.feats { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.feat { display: inline-flex; align-items: center; gap: 0.45rem; background: #fff; border: 2px solid #E6E9EE; border-radius: 16px; padding: 0.45rem 0.75rem; color: #8A95A3; }
.feat strong { display: block; font-size: 0.88rem; } .feat small { display: block; font-size: 0.72rem; }
.feat.earned { border-color: #F5B301; color: #5A3E00; background: #FFF8DF; }
.feat .ico { width: 20px; height: 20px; }
.cert-cta img { flex: 0 0 auto; }
.cert-cta .btn3d { padding: 0.7rem 1.2rem; }

.win-vizi { margin: -0.4rem auto 0.2rem; width: 84px; height: 84px; animation: hop 700ms ease-out 2; }
@keyframes hop { 30% { transform: translateY(-14px) rotate(-6deg); } 60% { transform: translateY(0) rotate(4deg); } }
.win-trophy { display: flex; align-items: center; justify-content: center; gap: 0.8rem; background: linear-gradient(135deg, #FFF6D6, #FFE79A); border-radius: 18px; padding: 0.8rem; margin: 0.6rem 0; animation: badgeIn 600ms var(--ease) .3s both; }
.win-trophy p { margin: 0; text-align: left; } .win-trophy small { display: block; color: #9A6A00; font-weight: 700; } .win-trophy strong { font-size: 1.2rem; }
.medal.big { width: 64px; height: 64px; } .medal.big .ico { width: 30px; height: 30px; }
.win-badge { justify-content: center; }
.modal-card .btn-accent, .modal-card .btn { border-radius: 16px; }
.stop.pos-1, .stop.pos-3 { transform: none; }
.stop.pos-1 { padding-left: 34%; }
.stop.pos-3 { padding-right: 34%; }
.stop-label { max-width: 210px; }

/* Mini-conversation lisible dans les leçons */
.mini-chat { margin: 1rem 0 0.2rem; background: #F7F7F8; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.mini-chat-bar { display: flex; align-items: center; gap: 0.4rem; background: #fff; border-bottom: 1px solid var(--border); padding: 0.55rem 0.8rem; font-weight: 700; font-size: 0.9rem; }
.mini-chat-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.verdict { margin-left: auto; font-size: 0.78rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.mini-chat.good .verdict { background: #DDF6EF; color: #0E7C72; }
.mini-chat.bad .verdict { background: #FDE8E8; color: #B42318; }
.mini-chat.good { border-color: #9FDCCF; } .mini-chat.bad { border-color: #F5B5B5; }
.mc { margin: 0.7rem 0.7rem; padding: 0.65rem 0.8rem; border-radius: 16px; font-size: 0.95rem; line-height: 1.5; }
.mc p { margin: 0 0 0.45rem; font-size: 0.95rem !important; line-height: 1.5 !important; } .mc p:last-child { margin: 0; }
.mc ul, .mc ol { margin: 0.2rem 0 0.4rem; padding-left: 1.1rem; } .mc li { font-size: 0.95rem !important; }
.mc .who { display: block; font-size: 0.72rem; font-weight: 700; color: var(--text-2); margin-bottom: 0.2rem; }
.mc.user { background: var(--tint); margin-left: 1.6rem; border-bottom-right-radius: 6px; }
.mc.ai { background: #fff; border: 1px solid var(--border); margin-right: 1.6rem; border-bottom-left-radius: 6px; }
.mc-caption { margin: 0 0.8rem 0.8rem; font-size: 0.88rem !important; font-weight: 600; color: var(--text-2); }
.mini-chat.bad .mc-caption { color: #B42318; } .mini-chat.good .mc-caption { color: #0E7C72; }
mark.ing { background: none; padding: 0; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
mark.ing b { display: inline-block; font-size: 0.68rem; font-weight: 900; color: #fff; border-radius: 5px; padding: 0 4px; margin-right: 3px; vertical-align: 1px; }
mark.ing-R { background: #DDEBFF; } mark.ing-R b { background: #3B82F6; }
mark.ing-C { background: #FFF1CC; } mark.ing-C b { background: #D99A00; }
mark.ing-T { background: #DDF6EF; } mark.ing-T b { background: #15A89A; }
mark.ing-F { background: #EDE7FF; } mark.ing-F b { background: #8B5CF6; }
mark.ing-I { background: #FDE8E8; } mark.ing-I b { background: #E5484D; }
.quiz-prompt { background: #F7F7F8; border: 1px solid var(--border); border-radius: 16px; padding: 0.6rem 0 0.1rem; }
.quiz-prompt .mc.user { margin: 0.4rem 0.7rem 0.7rem; }
.quiz-tag { display: inline-block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin: 0 0.8rem; }
.quiz-q { background: none !important; padding: 0.4rem 0 0 !important; font-size: 1.1rem !important; font-weight: 800 !important; }
.quiz-tag.q { display: block; margin: 0 0 0.2rem; color: var(--accent-dark); }
.tour { align-items: flex-end; }
.tour-bubble { margin-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 24px rgba(0,0,0,.18); }
.tour { background: none; z-index: 70; pointer-events: none; }
.tour-bubble { pointer-events: auto; }
.tour-lit { z-index: 45; box-shadow: 0 0 0 4px var(--accent), 0 0 0 100vmax rgba(16,24,40,.5) !important; }
.tour.center { background: rgba(16,24,40,.55); align-items: center; pointer-events: auto; }
.tour-bubble { position: relative; padding-top: 1.1rem; border: 3px solid var(--accent); }
.tour-vizi { position: absolute; top: -40px; right: 14px; width: 64px; height: 64px; animation: float 2.6s ease-in-out infinite; }
.tour.center .tour-bubble { text-align: center; padding-top: 2.4rem; }
.tour.center .tour-vizi { position: absolute; top: -48px; left: 50%; right: auto; margin-left: -40px; width: 80px; height: 80px; }
.tour.center .tour-actions { justify-content: center; gap: 1.2rem; }
.tour.center #tour-text { font-size: 1.08rem; font-weight: 600; }
.tour-bubble { overflow: visible !important; margin-top: 3rem; }
#tour-skip { color: var(--text-2); text-decoration: underline; background: none; border: 0; font: inherit; font-size: 0.9rem; cursor: pointer; }
#sim-send.tour-lit { background: var(--accent) !important; color: #fff !important; border-radius: 99px; }
.ingr.miss { background: #FDE8E8; color: #B42318; border: 1px solid #F5B5B5; }
.ingr.miss::before { content: "✗ "; }

/* Carte objectif */
.objective-card h3 { margin-bottom: 0.4rem; }
.obj-title { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin: 0.6rem 0 0.3rem; color: var(--accent-dark); }
.obj-title.bonus { color: #9A6A00; }
.obj-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.obj details { background: var(--surface-2); border: 2px solid transparent; border-radius: 14px; padding: 0.55rem 0.7rem; transition: border-color 200ms, background 200ms; }
.obj summary { display: flex; align-items: center; gap: 0.55rem; cursor: pointer; list-style: none; font-weight: 700; }
.obj summary::-webkit-details-marker { display: none; }
.obj details p { margin: 0.45rem 0 0; font-size: 0.9rem; }
.obj-mark { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C9D1DB; background: #fff; position: relative; }
.letter.sm { flex: 0 0 26px; width: 26px; height: 26px; font-size: 0.85rem; border-radius: 8px; }
.obj.bonus .letter.sm { background: #D99A00; }
.obj-name { flex: 1; }
.obj-star { color: #C9D1DB; font-size: 1.1rem; }
.obj.ok details { border-color: #9FDCCF; background: #EAF8F4; }
.obj.ok .obj-mark { background: var(--accent); border-color: var(--accent); }
.obj.ok .obj-mark::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.obj.ok.bonus .obj-star { color: #F5B301; }
.obj.ko details { border-color: #F5D3A6; background: #FFF8EC; }
.obj.ko .obj-mark { border-color: #F59E0B; }
.obj.ko .obj-mark::after { content: "+"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #F59E0B; font-weight: 900; font-size: 15px; line-height: 1; }
.obj.pending .obj-mark { border-color: var(--accent-light); border-top-color: transparent; animation: spin .8s linear infinite; }
.score-line { margin: 0.7rem 0 0.2rem; background: var(--tint); border-radius: 12px; padding: 0.5rem 0.7rem; font-size: 0.92rem; }
.flash-hint { animation: glow 0.8s ease-in-out 2; }
.smart-hint { background: #FFF8EC; border: 2px solid #F5D3A6; border-radius: 14px; padding: 0.6rem 0.75rem; margin: 0.3rem 0 0.6rem; }
.smart-hint p { margin: 0; } .smart-hint .guide-example { margin-top: 0.35rem !important; }
.obj-more { display: inline-flex; align-items: center; gap: 2px; font-size: 0.8rem; font-weight: 700; color: var(--accent-dark); background: #fff; border: 1px solid #D7EFEA; border-radius: 99px; padding: 3px 6px 3px 10px; }
.obj-more .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform 200ms; vertical-align: 0; }
.obj details[open] .obj-more .ico { transform: rotate(180deg); }
.obj details[open] .obj-more { background: var(--tint); }
.obj summary:hover .obj-more { border-color: var(--accent); }
.obj .m-close { display: none; } .obj details[open] .m-close { display: inline; } .obj details[open] .m-open { display: none; }

/* Détection en direct */
.live-strip { margin: 8px 0 2px; }
.live-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 5px; }
.live-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lv { font: inherit; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 4px; border-radius: 99px; border: 1px dashed #C9D1DB; background: #fff; color: #8A95A3; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: all 200ms var(--ease); }
.lv b { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; background: #E9EDF2; color: #8A95A3; font-size: 12px; }
.lv.on { border: 1px solid var(--accent); background: var(--tint); color: var(--accent-dark); transform: scale(1.04); }
.lv.on b { background: var(--accent); color: #fff; }
#hint-now { margin: 0.2rem 0 0.4rem; }
.attach-box { padding: 10px 12px 4px; background: #fff; border-bottom: 1px solid var(--border); }
.attach-title { margin: 0 0 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); display: flex; align-items: center; gap: 5px; }
.attach-title .ico { width: 15px; height: 15px; }
.attach { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 8px; background: #F7F7F8; }
.attach summary { display: flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.65rem; cursor: pointer; list-style: none; font-weight: 700; font-size: 0.92rem; }
.attach summary::-webkit-details-marker { display: none; }
.file-ico { flex: 0 0 34px; width: 34px; height: 40px; border-radius: 6px; background: #fff; border: 1px solid #D7DDE5; display: inline-flex; align-items: center; justify-content: center; color: #E5484D; }
.file-ico .ico { width: 18px; height: 18px; vertical-align: 0; }
.file-name { flex: 1; overflow-wrap: anywhere; }
.attach p { margin: 0; padding: 0 0.8rem 0.7rem; font-size: 0.92rem; color: var(--text); }
.attach .m-close { display: none; } .attach[open] .m-close { display: inline; } .attach[open] .m-open { display: none; }
.attach[open] .obj-more .ico { transform: rotate(180deg); }
.attach[open] { background: #fff; border-color: #9FDCCF; }

/* Barre du haut sur téléphone */
.menu-m { display: none; }
@media (max-width: 720px) {
  .header-inner { flex-wrap: nowrap; padding: 0.6rem 0; position: relative; }
  .brand { font-size: 1rem; }
  .nav { flex-wrap: nowrap; gap: 0.2rem; }
  .nav a { padding: 0.4rem 0.75rem; font-size: 0.88rem; }
  body.play .nav-play { display: none; }
  .nav-desk { display: none; }
  .menu-m { display: block; }
  .menu-m summary { list-style: none; cursor: pointer; color: #fff; font-weight: 700; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.16); padding: 0.4rem 0.85rem; border-radius: 99px; }
  .menu-m summary::-webkit-details-marker { display: none; }
  .menu-m summary .ico { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.4; vertical-align: 0; transition: transform 200ms; }
  .menu-m[open] summary .ico { transform: rotate(180deg); }
  .menu-m .nav { position: absolute; right: 0; top: 100%; z-index: 80; flex-direction: column; align-items: stretch; background: #0E7C72; border-radius: 16px; padding: 0.5rem; box-shadow: var(--shadow); min-width: 210px; }
  .menu-m .nav a, .menu-m .nav .link { padding: 0.6rem 0.9rem; border-radius: 10px; text-align: left; }
  .menu-m .nav form { margin: 0; }
}
@media (max-width: 720px) { .menu-m { background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; } }

/* Victoire : barre puis fenêtre compacte */
.win-bar { position: fixed; left: 0.8rem; right: 0.8rem; bottom: calc(0.8rem + env(safe-area-inset-bottom)); z-index: 55; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; background: #0F2F2B; color: #fff; border-radius: 20px; padding: 0.7rem 0.8rem 0.7rem 1.1rem; box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: pop 350ms var(--ease); max-width: 640px; margin: 0 auto; }
.win-bar .stars i { font-size: 1.1rem; }
.win-bar .btn3d { padding: 0.6rem 1rem; font-size: 0.85rem; }
body.modal-open { overflow: hidden; }
.modal { overflow-y: auto; -webkit-overflow-scrolling: touch; align-items: flex-start; padding: 1.2rem 0.8rem; }
.modal-card { max-height: none; margin: auto; padding: 1.2rem 1.1rem 1rem; }
.modal-card h2 { font-size: 1.35rem; margin: 0.2rem 0; }
.win-vizi { width: 64px; height: 64px; }
.win-stars .stars i { font-size: 1.7rem; }
.win-xp { font-size: 1.5rem; }
.win-rank { padding: 0.5rem 0.7rem; margin: 0.4rem 0; }
.win-rank .rank-name { font-size: 1.05rem; }
.win-rank p { font-size: 0.85rem; }
.win-trophy { padding: 0.5rem; margin: 0.4rem 0; gap: 0.6rem; }
.win-trophy .medal.big, .win-trophy .medal { width: 46px; height: 46px; background: radial-gradient(circle at 35% 30%, #FFE79A, #F5B301 60%, #B07D00); color: #5A3E00; }
.win-trophy strong { font-size: 1rem; }
.win-badge { padding: 0.35rem 0.6rem; }
.modal-card .form input { min-width: 0; width: 100%; box-sizing: border-box; }
.modal-card .form input[type="checkbox"] { width: auto; min-width: 0; flex: 0 0 auto; }
.modal-card .consent-check { display: flex; gap: 0.5rem; align-items: flex-start; text-align: left; font-weight: 400; font-size: 0.82rem; }
.modal { z-index: 65; }
body.modal-open .win-bar { display: none; }
.win-bar .btn3d { text-transform: none; letter-spacing: 0; white-space: nowrap; }
.win-rewards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0.5rem 0; }
.win-rewards .win-rank, .win-rewards .win-trophy { margin: 0; flex-direction: column; text-align: center; padding: 0.55rem 0.4rem; }
.win-rewards .win-trophy p { text-align: center; }
.win-rewards .xp-bar { margin: 0.3rem 0 0.2rem; }
.win-rewards .win-rank p.small { display: none; }
.modal-card > p { font-size: 0.92rem; margin: 0.4rem 0; }
.win-xp { margin: 0; }
.win-stars-label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text-2); margin-top: 0.1rem; }
.win-max { font-size: 0.9rem; color: var(--text-2); font-weight: 600; }
.win-rule { margin: 0.2rem 0 0.4rem; }
.wb-pts { font-size: 0.85rem; font-weight: 700; color: #BFF3EA; margin-left: 0.3rem; }
.win-rewards .win-rank p.small { display: block !important; font-size: 0.78rem; margin-top: 0.2rem; }
.ing-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0.9rem 0 -0.3rem; }
.ing-legend .small { flex-basis: 100%; margin-bottom: 2px; }
.ing-legend .ing { display: inline-flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 700; padding: 3px 9px 3px 3px; border-radius: 99px; }
.ing-legend .ing b { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 6px; font-size: 0.72rem; color: #fff; margin: 0; }

/* Mondes */
.world { margin: 0 0 1.8rem; }
.world-banner { display: flex; align-items: center; gap: 0.8rem; border-radius: 20px; padding: 0.85rem 1rem; color: #fff; margin-bottom: 1.1rem; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.world-banner h3 { color: #fff; margin: 0; font-size: 1.15rem; }
.world-banner p { margin: 0; } .world-banner .small { opacity: .9; }
.world-kicker { font-size: 0.7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.world-ico { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.2); display: inline-flex; align-items: center; justify-content: center; }
.world-ico .ico { width: 24px; height: 24px; vertical-align: 0; }
.world-banner > div { flex: 1; }
.world-count { flex: 0 0 auto; text-align: right; font-weight: 800; font-size: 1.05rem; display: flex; flex-direction: column; }
.world-count small { font-size: 0.75rem; font-weight: 700; color: #FFE27A; }
.w-teal .world-banner { background: linear-gradient(135deg, #0E7C72, #15A89A); }
.w-blue .world-banner { background: linear-gradient(135deg, #1D4ED8, #3B82F6); }
.w-purple .world-banner { background: linear-gradient(135deg, #6D28D9, #8B5CF6); }
.w-orange .world-banner { background: linear-gradient(135deg, #B45309, #F59E0B); }
.w-boss .world-banner { background: linear-gradient(135deg, #1C2229, #E5484D); }
.rank-next { margin: 0 0 0.4rem; opacity: .95; }
.offer-world { margin-bottom: 1.2rem; } .offer-world h3 { display: flex; align-items: center; gap: 0.4rem; }
.pill-boss { background: #E5484D; }

/* Vizi coach : bulle de conseil et bouton */
.vizi-tip { display: flex; gap: 0.6rem; align-items: flex-start; background: #0F2F2B; color: #fff; border-radius: 18px; padding: 0.7rem 0.8rem; margin: 0 0 10px; position: relative; box-shadow: 0 8px 20px rgba(15,47,43,.25); }
.vizi-tip.pop { animation: pop 300ms var(--ease); }
.vizi-tip img { flex: 0 0 44px; animation: float 2.6s ease-in-out infinite; }
.vizi-tip-body { flex: 1; }
.vizi-tip-title { margin: 0 0 0.2rem; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #7EE3D2; }
.vizi-tip p { margin: 0; font-size: 0.93rem; line-height: 1.45; }
.vizi-tip .guide-example { background: rgba(255,255,255,.1); color: #BFF3EA; margin-top: 0.35rem !important; }
.vizi-tip .smart-hint { background: none; border: 0; padding: 0; margin: 0; }
.vizi-tip-close { position: absolute; top: 4px; right: 8px; background: none; border: 0; color: #9FB7B3; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.sim-actions { gap: 0.6rem; }
.hint-btn { font: inherit; display: inline-flex; align-items: center; gap: 0.35rem; background: #fff; color: #0E7C72; border: 2px solid #D7EFEA; border-radius: 99px; padding: 0.5rem 0.85rem; font-weight: 700; font-size: 0.86rem; cursor: pointer; position: relative; }
.hint-btn .ico { width: 17px; height: 17px; }
.hint-btn.ready { border-color: #F5B301; background: #FFF8DF; color: #8A5A00; animation: nudge 1.4s ease-in-out infinite; }
.hint-dot { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border-radius: 50%; background: #E5484D; border: 2px solid #fff; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 15% { transform: translateY(-3px) rotate(-3deg); } 30% { transform: translateY(0) rotate(2deg); } }
.coach-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.coach-head h3 { margin: 0; }
.past-hints { margin-top: 0.6rem; background: var(--surface-2); border: 0; border-radius: 12px; padding: 0.4rem 0.7rem; }
.past-hints summary { cursor: pointer; font-weight: 700; font-size: 0.88rem; }
.hint-btn { white-space: nowrap; }
@media (max-width: 640px) { #sim-attempts { display: none; } }
.sim-form .attach-box { padding: 0 0 6px; border: 0; background: none; }
.attach-title { text-transform: none !important; letter-spacing: 0 !important; font-size: 0.85rem !important; color: var(--text) !important; flex-wrap: wrap; }
.attach-title span { font-weight: 500; color: var(--text-2); font-size: 0.8rem; flex-basis: 100%; margin-left: 20px; }
.attach-title .ico { width: 16px; height: 16px; color: var(--accent-dark); }
.sim-form .attach { margin-bottom: 6px; }
.attach-note { display: flex; gap: 0.4rem; align-items: center; font-size: 0.88rem; color: var(--accent-dark); font-weight: 600; margin: 0.4rem 0 0.6rem; }
.attach-note .ico { width: 16px; height: 16px; flex: 0 0 auto; }
.help-fab { top: 74px; bottom: auto; left: auto; right: 12px; width: 36px; height: 36px; font-size: 1.05rem; opacity: .92; }
.win-rewards { display: flex; gap: 0.5rem; }
.win-rewards > div { flex: 1; }
.win-rewards > [hidden] { display: none !important; }
.lock-tag.lead { background: #DDF6EF; color: #0E7C72; }
.unlock .lead { margin-bottom: 1rem; }
.unlock-form { max-width: 440px; margin: 0 auto; text-align: left; padding: 1.2rem; }
.unlock-form input[type="email"] { width: 100%; box-sizing: border-box; min-width: 0; }
.consent-check { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 400; font-size: 0.85rem; }
.consent-check input { width: auto; margin-top: 3px; }

/* Fenêtre de victoire, version jeu */
.win-card { padding: 0 !important; overflow: hidden; max-width: 420px; }
.win-hero { position: relative; background: linear-gradient(160deg, #0F2F2B 0%, #15A89A 70%, #2BC4AE 100%); color: #fff; padding: 1.2rem 1rem 1.1rem; text-align: center; overflow: hidden; }
.win-hero .win-vizi { margin: 0 auto 0.2rem; width: 76px; height: 76px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.win-kicker { margin: 0; font-size: 0.75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #FFE27A; }
.win-hero h2 { color: #fff; font-size: 1.5rem !important; margin: 0.15rem 0 0.4rem !important; }
.win-stars { display: flex; justify-content: center; gap: 0.3rem; }
.win-stars i { font-style: normal; font-size: 2.6rem; color: rgba(255,255,255,.25); line-height: 1; }
.win-stars i.on { color: #FFD43B; text-shadow: 0 0 14px rgba(255,212,59,.7); animation: starPop 500ms cubic-bezier(.3,1.6,.5,1) both; }
@keyframes starPop { 0% { transform: scale(0) rotate(-40deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.win-hero .win-xp { color: #fff; font-size: 2rem; font-weight: 900; margin: 0.3rem 0 0; }
.win-sub { margin: 0.1rem 0 0; font-size: 0.8rem; color: rgba(255,255,255,.85); }
.win-body { padding: 0.9rem 1rem 1rem; text-align: center; }
.win-rewards { margin: 0 0 0.4rem; }
.win-rule { color: var(--text-2); margin: 0.2rem 0 0.6rem; }
.next-card { text-align: left; background: var(--surface-2); border: 2px solid #D7EFEA; border-radius: 18px; padding: 0.8rem 0.9rem; margin: 0.4rem 0 0.4rem; }
.next-kicker { margin: 0; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-dark); }
.next-title { margin: 0.15rem 0 0; font-weight: 800; font-size: 1.05rem; }
.next-tagline { margin: 0.1rem 0 0.6rem; color: var(--text-2); }
.next-card .btn3d { display: block; text-align: center; }
.next-card label[for="lead-email"] { font-size: 0.85rem; }
.win-stay { display: block; margin: 0.6rem auto 0; color: var(--text-2); }
.win-card { background: var(--surface); }
.win-body { background: var(--surface); }
/* Air entre boutons et textes */
.btn + p, .btn3d + p, .btn + .small, .btn3d + .small, form .btn + p, .price-card .btn + p { margin-top: 0.9rem !important; }
p + .btn, p + .btn3d { margin-top: 0.4rem; }

/* Offre, version jeu */
.offer-hero h1 { max-width: 720px; margin-left: auto; margin-right: auto; }
.offer-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.6rem; margin: 0.4rem 0 1.2rem; }
.offer-stats span { background: #fff; border: 2px solid #D7EFEA; border-radius: 16px; padding: 0.5rem 0.9rem; font-size: 0.9rem; color: var(--text-2); }
.offer-stats strong { display: block; font-size: 1.5rem; color: var(--accent-dark); line-height: 1.1; }
.offer-soon { display: inline-block; background: #FFF8DF; border: 2px solid #F5D76E; color: #8A5A00; border-radius: 14px; padding: 0.5rem 0.9rem; font-weight: 600; margin: 0 0 1rem; }
.offer-cta { margin-top: 0.2rem; }
.offer-reassure { max-width: 460px; margin: 0.9rem auto 0 !important; color: var(--text-2); }
.rank-ladder { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; }
@media (max-width: 760px) { .rank-ladder { grid-template-columns: repeat(3, 1fr); } }
.rank-ladder li { background: #fff; border: 2px solid #E6E9EE; border-radius: 16px; padding: 0.7rem 0.4rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.rank-ladder .rung { width: 38px; height: 38px; border-radius: 50%; background: #E9EDF2; color: #8A95A3; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; }
.rank-ladder .rung .ico { width: 20px; height: 20px; vertical-align: 0; }
.rank-ladder li.reached { border-color: #9FDCCF; } .rank-ladder li.reached .rung { background: var(--accent); color: #fff; }
.rank-ladder li.current { border-color: #F5B301; background: #FFF8DF; }
.rank-ladder li:last-child .rung { background: radial-gradient(circle at 35% 30%, #FFE79A, #F5B301 60%, #B07D00); color: #5A3E00; }
.offer-world .offer-levels { margin-top: -0.4rem; }
.offer-levels li { gap: 0.8rem; }
.mini-node { flex: 0 0 38px; width: 38px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 0.95rem; }
.mini-node .ico { width: 18px; height: 18px; vertical-align: 0; }
.mini-node.c-teal { background: #15A89A; box-shadow: 0 4px 0 #0E7C72; } .mini-node.c-blue { background: #3B82F6; box-shadow: 0 4px 0 #1D4ED8; }
.mini-node.c-purple { background: #8B5CF6; box-shadow: 0 4px 0 #6D28D9; } .mini-node.c-orange { background: #F59E0B; box-shadow: 0 4px 0 #B45309; }
.mini-node.c-boss { background: #E5484D; box-shadow: 0 4px 0 #A61B20; }
.offer-levels li.locked .mini-node { background: #D7DDE5; box-shadow: 0 4px 0 #B5BEC9; color: #8A95A3; }
.offer-levels li.done .mini-node { background: radial-gradient(circle at 35% 30%, #FFE79A, #F5B301 60%, #C98A00); box-shadow: 0 4px 0 #9A6A00; color: #5A3E00; }
.crown.inline { position: static; transform: none; flex: 0 0 auto; }
.mini-stars .stars i { font-size: 0.95rem; }
.offer-final { text-align: center; padding: 1.6rem 1.2rem; background: linear-gradient(180deg, #fff, #EAF8F4); }
.offer-final .vizi { margin: 0 auto 0.4rem; }
.offer-price { font-size: 1.1rem; margin: 0 0 0.8rem; } .offer-price strong { font-size: 2.2rem; color: var(--accent-dark); }

/* Accueil d'aiguillage et plan du site */
.chooser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 760px) { .chooser-grid { grid-template-columns: 1fr; } }
.chooser-card { display: flex; flex-direction: column; gap: 0.3rem; text-decoration: none; color: #fff; border-radius: 26px; padding: 1.4rem 1.3rem; box-shadow: 0 12px 30px rgba(0,0,0,.15); transition: transform 150ms var(--ease); }
.chooser-card:hover { transform: translateY(-4px); color: #fff; }
.chooser-card h3 { color: #fff; font-size: 1.35rem; margin: 0 0 0.3rem; }
.chooser-card p { margin: 0; opacity: .95; }
.chooser-card .checks { margin: 0.6rem 0 1rem; } .chooser-card .checks li { color: #fff; }
.chooser-card .btn3d { align-self: flex-start; margin-top: auto; background: #fff; color: #0E7C72; box-shadow: 0 5px 0 rgba(0,0,0,.2); }
.chooser-card .btn3d.dark { color: #1C2229; }
.c-nondev { background: linear-gradient(150deg, #0E7C72, #15A89A 60%, #2BC4AE); }
.c-dev { background: linear-gradient(150deg, #111827, #1F2937 60%, #374151); }
.chooser-ico { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.18); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.4rem; }
.chooser-ico .ico { width: 28px; height: 28px; vertical-align: 0; }
.chooser-kicker { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #FFE27A; }
.link-card { text-decoration: none; color: var(--text); } .link-card:hover { border-color: var(--accent); color: var(--text); }
.cross-card { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; } .cross-card > div { flex: 1; min-width: 220px; } .cross-card h3, .cross-card p { margin: 0.1rem 0; }
.page-head { text-align: center; max-width: 720px; margin: 1.5rem auto 0.5rem; }
.footer-map { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 1.2rem; padding: 1.6rem 0 0.6rem; }
@media (max-width: 860px) { .footer-map { grid-template-columns: 1fr 1fr; } }
.foot-col { display: flex; flex-direction: column; gap: 0.35rem; }
.foot-col a { color: var(--text-2); text-decoration: none; font-size: 0.9rem; } .foot-col a:hover { color: var(--accent-dark); }
.foot-title { margin: 0 0 0.2rem; font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text); }
.foot-copy { padding-bottom: 1.2rem; color: var(--text-2); }
@media (min-width: 721px) { .menu-m { display: none !important; } }
.unlock-next { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; background: linear-gradient(135deg, #1D4ED8, #8B5CF6 55%, #E5484D); color: #fff; border-radius: 26px; padding: 1.4rem 1.5rem; box-shadow: 0 12px 30px rgba(29,78,216,.25); }
.unlock-next .vizi { flex: 0 0 auto; animation: float 3s ease-in-out infinite; }
.unlock-next-text { flex: 1; min-width: 240px; }
.unlock-next h2 { color: #fff; margin: 0.1rem 0 0.4rem; }
.unlock-next p { margin: 0; opacity: .95; }
.unlock-next-cta { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.unlock-next .btn3d { background: #FFD43B; color: #3B2A00; box-shadow: 0 5px 0 #B78A00; }
.unlock-price { font-size: 0.9rem; } .unlock-price strong { font-size: 1.3rem; }
.world-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.6rem; margin: 0 0 1.6rem; }
@media (max-width: 760px) { .world-strip { grid-template-columns: repeat(5, 150px); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; } .ws-card { scroll-snap-align: start; } }
.ws-card { display: flex; flex-direction: column; gap: 0.15rem; color: #fff; text-decoration: none; border-radius: 18px; padding: 0.75rem 0.8rem; box-shadow: 0 6px 16px rgba(0,0,0,.12); transition: transform 150ms var(--ease); }
.ws-card:hover { transform: translateY(-3px); color: #fff; }
.ws-card.w-teal { background: linear-gradient(150deg, #0E7C72, #15A89A); } .ws-card.w-blue { background: linear-gradient(150deg, #1D4ED8, #3B82F6); }
.ws-card.w-purple { background: linear-gradient(150deg, #6D28D9, #8B5CF6); } .ws-card.w-orange { background: linear-gradient(150deg, #B45309, #F59E0B); }
.ws-card.w-boss { background: linear-gradient(150deg, #1C2229, #E5484D); }
.ws-card.locked { filter: saturate(.75); }
.ws-ico { width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.2); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.3rem; }
.ws-ico .ico { width: 18px; height: 18px; vertical-align: 0; }
.ws-num { font-size: 0.68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.ws-card strong { font-size: 0.92rem; line-height: 1.2; min-height: 2.2em; }
.ws-bar { height: 6px; background: rgba(255,255,255,.25); border-radius: 99px; overflow: hidden; margin-top: 0.3rem; } .ws-bar span { display: block; height: 100%; background: #FFD43B; }
.ws-count { font-size: 0.75rem; font-weight: 700; opacity: .9; }
html { scroll-behavior: smooth; } .world { scroll-margin-top: 1rem; }
.rounded-shadow { border-radius: 14px; box-shadow: var(--shadow); }
.game-hero .hero-vizi, .chooser-hero .hero-vizi { margin: 0 auto 0.4rem; }
.xp-bar span, .ws-bar span { width: 0; transition: width 700ms var(--ease); }

/* Accueil : public principal et carte développeurs */
.hero-chips { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.hero-chips li { background: #fff; border: 1px solid #D7EFEA; color: var(--accent-dark); border-radius: 99px; padding: 0.3rem 0.8rem; font-size: 0.85rem; font-weight: 600; }
.chooser-main { display: flex; align-items: center; gap: 1.5rem; color: #fff; border-radius: 28px; padding: 1.6rem 1.6rem; box-shadow: 0 14px 34px rgba(14,124,114,.28); }
.chooser-main h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0.2rem 0 0.5rem; }
.chooser-main p { margin: 0 0 0.6rem; opacity: .95; }
.chooser-main .checks { margin: 0.4rem 0 1.1rem; } .chooser-main .checks li { color: #fff; }
.chooser-main .btn3d { background: #FFD43B; color: #3B2A00; box-shadow: 0 5px 0 #B78A00; }
.chooser-main-text { flex: 1; }
.chooser-vizi { flex: 0 0 auto; animation: float 3s ease-in-out infinite; }
@media (max-width: 760px) { .chooser-vizi { display: none; } }
.chooser-side { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; text-decoration: none; color: #fff; border-radius: 22px; padding: 1rem 1.2rem; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.chooser-side:hover { color: #fff; filter: brightness(1.08); }
.chooser-side > div { flex: 1; } .chooser-side h3 { color: #fff; margin: 0.1rem 0 0.2rem; font-size: 1.05rem; } .chooser-side p { margin: 0; opacity: .9; }
.chooser-side .chooser-ico { margin: 0; flex: 0 0 auto; }
.chooser-arrow { flex: 0 0 auto; opacity: .8; } .chooser-arrow .ico { width: 24px; height: 24px; }
.trust-title { text-align: center; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); margin: 1.6rem 0 0.8rem; }
.trust-logos { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; }
.trust-logos li { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 0.7rem 1.1rem; min-width: 150px; }
.trust-mark { font-weight: 800; letter-spacing: -0.01em; color: #1C2229; font-size: 1rem; }
.trust-logos small { color: var(--text-2); font-size: 0.75rem; }
.dash-game { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: linear-gradient(135deg, #0F2F2B, #15A89A 70%, #2BC4AE); color: #fff; border-radius: 24px; padding: 1.1rem 1.3rem; margin: 0 0 1.4rem; box-shadow: 0 10px 28px rgba(15,47,43,.25); }
.dash-game h2 { color: #fff; margin: 0.1rem 0 0.2rem; font-size: 1.5rem; }
.dash-game p { margin: 0; } .dash-game .small { opacity: .9; }
.dash-game-text { flex: 1; min-width: 220px; }
.dash-game .xp-bar { background: rgba(255,255,255,.2); margin-top: 0.5rem; } .dash-game .xp-bar span { background: linear-gradient(90deg, #FFE27A, #F5B301); }
.dash-game .btn3d { background: #FFD43B; color: #3B2A00; box-shadow: 0 5px 0 #B78A00; }
.ing-legend mark.ing { display: inline-flex; align-items: center; gap: 5px; font-size: 0.86rem; font-weight: 700; padding: 4px 10px 4px 4px; border-radius: 99px; color: #1C2229; }
.ing-legend mark.ing b { margin: 0; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 0.72rem; }

/* Fiches mémo */
.memo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.9rem; margin-top: 1rem; }
.memo-card { color: #fff; text-decoration: none; border-radius: 20px; padding: 1rem 1.1rem; box-shadow: 0 8px 20px rgba(0,0,0,.14); display: flex; flex-direction: column; gap: 0.2rem; transition: transform 150ms var(--ease); }
.memo-card:hover { transform: translateY(-3px); color: #fff; }
.memo-card h3 { color: #fff; margin: 0; } .memo-card p { margin: 0; opacity: .9; }
.memo-card.w-teal { background: linear-gradient(150deg, #0E7C72, #15A89A); } .memo-card.w-blue { background: linear-gradient(150deg, #1D4ED8, #3B82F6); }
.memo-card.w-purple { background: linear-gradient(150deg, #6D28D9, #8B5CF6); } .memo-card.w-orange { background: linear-gradient(150deg, #B45309, #F59E0B); } .memo-card.w-boss { background: linear-gradient(150deg, #1C2229, #E5484D); }
.memo-banner h1 { color: #fff; margin: 0; font-size: 1.6rem; }
.memo { margin: 1.2rem 0; padding: 1.2rem 1.3rem; }
.memo-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.6rem; } .memo-head > div { flex: 1; } .memo-head h2 { margin: 0; font-size: 1.25rem; } .memo-head .kicker { margin: 0; }
.memo-teaches { display: flex; gap: 0.5rem; align-items: flex-start; background: var(--tint); border-radius: 12px; padding: 0.7rem 0.9rem; font-weight: 600; color: var(--accent-dark); }
.memo-teaches .ico { flex: 0 0 auto; margin-top: 2px; }
.memo h3 { font-size: 0.95rem; margin: 1rem 0 0.4rem; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
.memo-ingr { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.memo-ingr li { display: grid; gap: 0.1rem; background: var(--surface-2); border-radius: 12px; padding: 0.6rem 0.8rem; }
.memo-ingr li.bonus { background: #FFF8DF; }
.memo-ingr em { color: var(--accent-dark); font-style: normal; font-size: 0.88rem; }
.memo-model { white-space: pre-wrap; background: #1C2229; color: #EEF0F2; border-radius: 12px; padding: 0.9rem 1rem; font-family: var(--font); font-size: 0.95rem; line-height: 1.5; }
.memo-print { text-align: center; margin: 1.4rem 0; }
@media print { .memo { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; } .memo-head .btn, .memo-print, .breadcrumb { display: none !important; } }
.journee, .journee-rich { max-width: none; margin-left: 0; margin-right: 0; }
.world-banner.w-teal { background: linear-gradient(135deg, #0E7C72, #15A89A); } .world-banner.w-blue { background: linear-gradient(135deg, #1D4ED8, #3B82F6); }
.world-banner.w-purple { background: linear-gradient(135deg, #6D28D9, #8B5CF6); } .world-banner.w-orange { background: linear-gradient(135deg, #B45309, #F59E0B); } .world-banner.w-boss { background: linear-gradient(135deg, #1C2229, #E5484D); }
.memo-head h2 { font-size: 1.15rem; }
.qui-why { margin: 0 0 0.6rem; }
.trust-logos li { padding: 0.8rem 1rem 0.6rem; }
.trust-logos img { height: 42px; width: auto; max-width: 156px; display: block; margin-bottom: 0.2rem; }
.further { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 600; }
.further .ico { width: 16px; height: 16px; }
.live-coach { display: flex; align-items: center; gap: 0.5rem; background: var(--tint); border-radius: 12px; padding: 0.4rem 0.7rem; margin: 0 0 8px; font-size: 0.88rem; color: var(--accent-dark); font-weight: 600; }
.live-coach p { margin: 0; } .live-coach img { flex: 0 0 auto; }
.live-coach.pop { animation: pop 250ms var(--ease); }

/* Carte des mondes : grille de cartes alignées */
.path-map { max-width: none; margin: 0; padding: 1rem 0 0.4rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stop, .stop.pos-1, .stop.pos-3 { transform: none; padding: 0; align-items: stretch; text-align: left; }
.stop-card { display: flex; flex-direction: column; gap: 0.45rem; height: 100%; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); text-decoration: none; color: var(--text); box-shadow: var(--shadow-soft); transition: transform 150ms var(--ease), border-color 150ms; }
.stop-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.stop-card strong { font-size: 1rem; line-height: 1.3; }
.stop-top { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.2rem; }
.stop .node3d, .c-boss .stop .node3d, .stop.c-boss .node3d { flex: 0 0 46px; width: 46px; height: 44px; font-size: 1.15rem; box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.stop .node3d .ico { width: 22px; height: 22px; }
.stop.current .node3d { animation: none; }
.stop.current .node3d::after { display: none; }
.stop-num { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.stop-tag { margin-left: auto; font-size: 0.7rem; font-weight: 800; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.stop-tag.now { background: var(--accent); color: #fff; }
.stop-tag.final { background: #FFF1F1; color: #B42318; border: 1px solid #F5B5B7; }
.stop.current .stop-card { border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--tint); }
.stop.locked .stop-card { background: var(--surface-2); }
.stop.c-boss .stop-card { border-color: #F5B5B7; }
.stop-foot { margin-top: auto; padding-top: 0.3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.stop-foot:empty { display: none; }
@media (max-width: 900px) { .path-map { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .path-map { grid-template-columns: 1fr; gap: 0.7rem; } }

/* Page de commande */
.order { max-width: 720px; margin: 0 auto 2rem; padding: 2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.order .vizi, .order > .pastille { align-self: flex-start; }
.order h1 { margin: 0; }
.order h2 { font-size: 1.1rem; margin: 1.2rem 0 0.2rem; }
.order-price { font-size: 1.05rem; margin: 0.4rem 0 0; }
.order-price strong { font-size: 2rem; margin-right: 0.4rem; }
.order-price span { color: var(--text-2); }
.order-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.order-steps li { display: flex; align-items: center; gap: 0.8rem; }
.order-steps .rung, .sim-howto .rung { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: var(--accent-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.order-action { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.6rem; }
.order-cta { align-self: flex-start; }
.order-form { display: flex; flex-direction: column; gap: 0.6rem; }
.order-form p { margin: 0; }
.order-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.order-row input { flex: 1 1 240px; min-width: 0; }
.order-done { display: flex; gap: 0.8rem; align-items: flex-start; padding: 1rem; border-radius: var(--r-xl); background: var(--tint); }
.order-done p { margin: 0.2rem 0 0; }

/* Simulateur développeur */
.sim-howto { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.sim-howto li { display: flex; gap: 0.8rem; align-items: flex-start; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); }
.sim-howto p { margin: 0.2rem 0 0; color: var(--text-2); }
.exercise-list li.locked { opacity: 0.8; }
.sim-files-note { margin: 0 0 0.5rem; font-size: 0.85rem; color: #B9C0C8; font-family: var(--font); }
.sim-files summary { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.sim-files summary small { margin-left: auto; opacity: 0.7; font-size: 0.75rem; }
@media (max-width: 760px) { .sim-howto { grid-template-columns: 1fr; } .order { padding: 1.3rem; } }
.sim-files details { margin: 6px 0; padding: 8px 12px; background: #1A1E26; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; box-shadow: none; }
.sim-files details[open] { background: #161A21; }
.sim-files summary { color: #E4E8EF; font-size: 12.5px; font-weight: 500; }
.sim-files summary small { color: #8C96A5; font-family: var(--font); }
.sim-files summary .ico { width: 15px; height: 15px; color: #2BC4AE; }
.stop-foot .lock-tag { margin: 0; align-self: flex-start; }
.trust-logos li { width: 190px; min-height: 104px; justify-content: center; }
.trust-logos img { height: 52px; width: auto; max-width: 160px; object-fit: contain; }
.sim-reserved { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; padding: 0.9rem 1.1rem; margin: 0 0 1rem; border-radius: var(--r-xl); background: var(--tint); }
.sim-reserved p { margin: 0; flex: 1 1 280px; }
.sim-reserved > .ico { color: var(--accent-dark); }

/* Vizi AI */
.vizi-promo { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 1.3rem; border: 2px solid var(--tint); background: linear-gradient(135deg, #fff, #F1FBF9); margin: 1rem 0; }
.vizi-promo > div { flex: 1 1 260px; }
.vizi-promo h3 { margin: 0.1rem 0 0.2rem; }
.vizi-promo p { margin: 0; }
.win-vizi { margin: 0.8rem 0 0; text-align: center; color: var(--text-2); }

.vl { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 58px; padding: 0.35rem 0.5rem; border-radius: 12px; border: 2px solid var(--border); background: var(--surface-2); color: var(--text-2); font: inherit; cursor: pointer; transition: background 200ms, color 200ms, border-color 200ms, transform 200ms; }
.vl b { font-size: 1.1rem; line-height: 1; }
.vl small { font-size: 0.66rem; font-weight: 600; }
.vl.on { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); box-shadow: 0 3px 0 var(--accent-dark); }
.vl[data-l="R"].on { background: #3B82F6; border-color: #3B82F6; box-shadow: 0 3px 0 #1D4ED8; }
.vl[data-l="C"].on { background: #D99A00; border-color: #D99A00; box-shadow: 0 3px 0 #A06F00; }
.vl[data-l="T"].on { background: #15A89A; border-color: #15A89A; box-shadow: 0 3px 0 #0E7C72; }
.vl[data-l="F"].on { background: #8B5CF6; border-color: #8B5CF6; box-shadow: 0 3px 0 #6D28D9; }
.vl[data-l="I"].on { background: #E5484D; border-color: #E5484D; box-shadow: 0 3px 0 #A61B20; }
.vizi-letters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.vl-status { margin-left: auto; font-size: 0.82rem; font-weight: 700; color: var(--text-2); }
.vl-mini { display: inline-flex; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px; align-items: center; justify-content: center; background: var(--tint); color: var(--accent-dark); font-weight: 800; }

.vizi-hero h1 { max-width: 760px; margin-left: auto; margin-right: auto; }
.vizi-demo { max-width: 760px; margin: 0 auto; padding: 1.3rem; display: flex; flex-direction: column; gap: 0.9rem; }
.vizi-demo .vl { cursor: default; }
.vizi-demo-text { margin: 0; font-size: 1.05rem; line-height: 1.7; }
.vizi-demo-text mark { background: transparent; border-bottom: 3px solid; padding: 0 1px; color: inherit; }
.vizi-demo-text mark[data-l="R"] { border-color: #3B82F6; }
.vizi-demo-text mark[data-l="C"] { border-color: #D99A00; }
.vizi-demo-text mark[data-l="T"] { border-color: #15A89A; }
.vizi-demo-text mark[data-l="F"] { border-color: #8B5CF6; }
.vizi-demo-coach { display: flex; gap: 0.7rem; align-items: flex-start; background: var(--tint); border-radius: 14px; padding: 0.8rem 1rem; }
.vizi-demo-coach p { margin: 0; }
.vizi-checks { display: inline-block; text-align: left; margin: 0.4rem auto 1rem; }

.vizi-app { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.vizi-side { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: 0.8rem; }
.vizi-new { justify-content: center; }
.vizi-history { background: var(--surface); }
.vizi-history ul { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 60vh; overflow: auto; }
.vizi-history li a { display: block; padding: 0.45rem 0.6rem; border-radius: 10px; text-decoration: none; color: var(--text); font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vizi-history li a:hover, .vizi-history li.on a { background: var(--tint); color: var(--accent-dark); }
.vizi-clear { margin-top: 0.6rem; }
.vizi-main { display: flex; flex-direction: column; gap: 0.8rem; min-width: 0; }
.vizi-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.vizi-head h1 { margin: 0; font-size: 1.5rem; }
.vizi-head-side { display: flex; align-items: center; gap: 1rem; }
.vizi-quota { font-size: 0.82rem; font-weight: 700; color: var(--accent-dark); background: var(--tint); padding: 0.3rem 0.7rem; border-radius: 99px; }
.vizi-log { display: flex; flex-direction: column; gap: 1rem; min-height: 280px; }
.vizi-empty { text-align: center; padding: 1.5rem 0.5rem; }
.vizi-empty h2 { margin: 0.5rem 0 0.2rem; }
.vizi-template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin-top: 1rem; text-align: left; }
.vizi-tpl { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.9rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); font: inherit; color: var(--text); cursor: pointer; text-align: left; transition: border-color 150ms, transform 150ms; }
.vizi-tpl:hover { border-color: var(--accent); transform: translateY(-2px); }
.vizi-tpl small { color: var(--accent-dark); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.vturn { display: flex; gap: 0.6rem; align-items: flex-start; }
.vturn.user { justify-content: flex-end; }
.vturn.user .vturn-bubble { background: var(--accent); color: #fff; border-radius: 18px 18px 4px 18px; white-space: pre-wrap; max-width: 80%; }
.vturn.assistant .vturn-bubble { background: var(--surface); border: 1px solid var(--border); border-radius: 18px 18px 18px 4px; max-width: 88%; }
.vturn-avatar { width: 36px; height: 36px; flex: 0 0 36px; }
.vturn-bubble { padding: 0.8rem 1rem; line-height: 1.55; overflow-wrap: anywhere; }
.vturn-bubble p { margin: 0 0 0.6rem; }
.vturn-bubble p:last-of-type { margin-bottom: 0; }
.vturn-bubble ul, .vturn-bubble ol { margin: 0.3rem 0 0.6rem; padding-left: 1.3rem; }
.vturn-bubble h4 { margin: 0.6rem 0 0.3rem; }
.vturn.note { justify-content: center; }
.vturn.note .vturn-bubble { color: var(--text-2); font-size: 0.9rem; font-style: italic; }
.vturn.note.error .vturn-bubble { color: #B42318; font-style: normal; background: #FFF1F1; border-radius: 12px; }
.vturn.typing .vturn-bubble::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.vturn-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; padding-top: 0.6rem; border-top: 1px dashed var(--border); }
.chip-btn { font: inherit; font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.7rem; border-radius: 99px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; }
.chip-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.vizi-composer { background: var(--surface); border: 2px solid var(--border); border-radius: var(--r-xl); padding: 0.8rem; display: flex; flex-direction: column; gap: 0.6rem; position: sticky; bottom: 0.6rem; box-shadow: var(--shadow-soft); transition: border-color 250ms, box-shadow 250ms; }
.vizi-composer.complete { border-color: var(--accent); box-shadow: 0 0 0 4px var(--tint); }
.vizi-composer textarea { width: 100%; border: 0; resize: vertical; min-height: 96px; font: inherit; font-size: 1rem; background: transparent; outline: none; padding: 0.3rem; }
.vl-tip { margin: 0; padding: 0.6rem 0.8rem; border-radius: 12px; background: var(--surface-2); display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.vizi-actions { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.vizi-actions #vizi-send { margin-left: auto; }
.vizi-models { position: relative; border: 0; padding: 0; margin: 0; background: none; }
.vizi-models summary { list-style: none; cursor: pointer; }
.vizi-models summary::-webkit-details-marker { display: none; }
.vizi-models-list { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 20; width: 300px; max-height: 360px; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 30px rgba(16,24,40,.15); padding: 0.6rem; }
.vizi-models-list p { margin: 0.5rem 0.4rem 0.2rem; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.7rem; font-weight: 700; }
.vizi-tpl-line { display: block; width: 100%; text-align: left; font: inherit; font-size: 0.9rem; padding: 0.45rem 0.6rem; border: 0; border-radius: 8px; background: none; cursor: pointer; color: var(--text); }
.vizi-tpl-line:hover { background: var(--tint); }
.vizi-advice, .vizi-sensitive, .vizi-fill-card { background: var(--surface); border: 2px solid var(--tint); border-radius: var(--r-xl); padding: 1rem 1.1rem; }
.vizi-sensitive { border-color: #F5B5B7; background: #FFF8F8; }
.vizi-sensitive p { margin: 0 0 0.6rem; }
.vizi-advice-head { display: flex; gap: 0.7rem; align-items: flex-start; }
.vizi-advice-head p { margin: 0.4rem 0 0; font-weight: 600; }
.vizi-advice-list { list-style: none; padding: 0; margin: 0.8rem 0; display: flex; flex-direction: column; gap: 0.5rem; }
.vizi-advice-list li { display: flex; gap: 0.6rem; align-items: flex-start; }
.vizi-version { margin: 0.3rem 0 0.8rem; padding: 0.7rem 0.9rem; border-left: 4px solid var(--accent); background: var(--surface-2); border-radius: 0 10px 10px 0; white-space: pre-wrap; }
.vizi-fill-card { display: flex; flex-direction: column; gap: 0.6rem; }
.vizi-fill-card h3 { margin: 0; }
.vizi-fill-card label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 600; font-size: 0.9rem; }
.vizi-fill-actions { display: flex; gap: 0.5rem; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 860px) {
  .vizi-app { grid-template-columns: 1fr; }
  .vizi-side { position: static; }
  .vizi-history:not([open]) ul { display: none; }
  .vizi-template-grid { grid-template-columns: 1fr 1fr; }
  .vl { min-width: 48px; padding: 0.3rem 0.35rem; }
  .vl-status { width: 100%; margin-left: 0; }
}
@media (max-width: 520px) { .vizi-template-grid { grid-template-columns: 1fr; } .vizi-models-list { width: min(300px, 86vw); } }
.vizi-empty .vizi { display: block; margin: 0 auto; }
.vizi-head .link { color: var(--text-2); }
.vizi-head .link:hover { color: #B42318; }
.vizi-history .link { color: var(--text-2); }
.offer-final .btn3d.big { align-self: center; width: auto; display: inline-flex; }

/* Une couleur par lettre, identique dans la leçon, le niveau et Vizi AI */
.letter[data-l="R"], .obj.bonus .letter.sm[data-l="R"], .lv.on[data-l="R"] b { background: #3B82F6; }
.letter[data-l="C"], .obj.bonus .letter.sm[data-l="C"], .lv.on[data-l="C"] b { background: #D99A00; }
.letter[data-l="T"], .obj.bonus .letter.sm[data-l="T"], .lv.on[data-l="T"] b { background: #15A89A; }
.letter[data-l="F"], .obj.bonus .letter.sm[data-l="F"], .lv.on[data-l="F"] b { background: #8B5CF6; }
.letter[data-l="I"], .obj.bonus .letter.sm[data-l="I"], .lv.on[data-l="I"] b { background: #E5484D; }
.lv.on[data-l="R"] { border-color: #3B82F6; background: #DDEBFF; color: #1D4ED8; }
.lv.on[data-l="C"] { border-color: #D99A00; background: #FFF1CC; color: #8A6100; }
.lv.on[data-l="F"] { border-color: #8B5CF6; background: #EDE7FF; color: #6D28D9; }
.lv.on[data-l="I"] { border-color: #E5484D; background: #FDE8E8; color: #B42318; }

.streak { display: inline-flex; align-items: center; gap: 5px; background: #FFF4D6; color: #8A6100; font-weight: 800; }
.streak.waiting { background: rgba(255,255,255,.18); color: inherit; font-weight: 700; }

.before-after { margin-top: 1rem; background: var(--surface); }
.before-after summary { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; cursor: pointer; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 0.9rem; }
.ba-grid blockquote { margin: 0.3rem 0; padding: 0.7rem 0.9rem; background: var(--surface-2); border-radius: 12px; border-left: 4px solid #C9D1DB; white-space: pre-wrap; font-size: 0.92rem; }
.ba-after blockquote { border-left-color: var(--accent); background: var(--tint); }
.ba-label { margin: 0; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); }
@media (max-width: 640px) { .ba-grid { grid-template-columns: 1fr; } }
.vizi-promo.card { flex-direction: row; text-align: left; }
.vizi-promo > div { min-width: 0; }
.vizi-promo .vizi { margin: 0; flex: 0 0 auto; }
@media (max-width: 640px) {
  .vizi-promo.card { flex-direction: column; align-items: flex-start; }
  .vizi-promo > div { flex: 0 0 auto; }
}

/* Pages de vente */
.sales-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 2rem; align-items: start; margin: 0.5rem 0 1rem; }
.sales-intro h1 { margin-bottom: 0.4rem; }
.sales-intro .vizi { display: block; margin-bottom: 0.4rem; }
.sales-stats { justify-content: flex-start; margin: 1rem 0 1.2rem; }
.for-who { margin-top: 1rem; }
.for-who h2 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.price-card { position: sticky; top: 1rem; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.7rem; border: 2px solid var(--accent); box-shadow: 0 18px 40px rgba(16, 24, 40, .10); }
.price-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-dark); background: var(--tint); padding: 0.3rem 0.7rem; border-radius: 99px; }
.price-card .order-price { margin: 0.2rem 0 0; }
.price-card .order-price strong { font-size: 2.6rem; }
.price-note { margin: -0.5rem 0 0.2rem; color: var(--text-2); }
.price-card .checks { margin: 0.2rem 0; }
.price-card .order-cta, .price-card .order-form button { width: 100%; text-align: center; justify-content: center; }
.price-card .order-form input { width: 100%; }
.btn-big { padding: 0.95rem 1.4rem; font-size: 1.05rem; }
.trust-mini { list-style: none; margin: 0.3rem 0 0; padding: 0.8rem 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.35rem; color: var(--text-2); }
.trust-mini li { display: flex; gap: 0.4rem; align-items: flex-start; }
.trust-mini .ico { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 2px; color: var(--accent-dark); }
.inv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.inv-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem; }
.inv-card h3 { margin: 0.1rem 0 0.3rem; }
.inv-card p { margin: 0; color: var(--text-2); }
.inv-list { margin: 0.7rem 0 0; padding: 0.5rem 0.8rem; background: var(--surface-2); border: 0; }
.inv-list summary { font-weight: 700; font-size: 0.88rem; color: var(--accent-dark); cursor: pointer; }
.inv-list ol { margin: 0.5rem 0 0.2rem; padding-left: 1.3rem; font-size: 0.92rem; display: flex; flex-direction: column; gap: 0.2rem; }
.sales-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.sales-shots.single { grid-template-columns: minmax(0, 860px); justify-content: center; }
.sales-shots .shot img { width: 100%; border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 10px 28px rgba(16,24,40,.10); }
.sales-pair .card { padding: 1.4rem; }
.sales-pair h2 { font-size: 1.2rem; }
.final-action { max-width: 420px; margin: 0.8rem auto 0; display: flex; flex-direction: column; align-items: stretch; gap: 0.5rem; }
.final-action .order-cta { text-align: center; }
@media (max-width: 900px) {
  .sales-hero { grid-template-columns: 1fr; }
  .price-card { position: static; }
  .inv-grid, .sales-shots { grid-template-columns: 1fr; }
}
.inv-card.card { flex-direction: row; } .inv-card .pastille { flex: 0 0 auto; margin: 0; }

.buy-bar { position: sticky; bottom: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(16,24,40,.08); }
.buy-bar-inner { max-width: 1200px; margin: 0 auto; padding: 0.7rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.buy-bar p { margin: 0; line-height: 1.35; }
.buy-bar p span { color: var(--text-2); font-size: 0.92rem; }
.buy-bar .btn3d, .buy-bar .btn { white-space: nowrap; padding: 0.65rem 1.2rem; }
@media (max-width: 640px) { .buy-bar p span { display: none; } .buy-bar-inner { padding: 0.6rem 0.8rem; } .buy-bar p { font-size: 0.9rem; } }
.sales-visual { margin-top: 1.2rem; }
.sales-visual img { width: 100%; border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 14px 34px rgba(16,24,40,.12); }
.win-skip { text-align: center; margin: 0.8rem 0 0; color: var(--text-2); }

.sim-howto { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .sim-howto { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sim-howto { grid-template-columns: 1fr; } }
.mastery { border: 2px solid var(--tint); }
.mastery-delivery { background: #161A21; color: #D7DCE6; padding: 0.8rem 1rem; border-radius: 10px; font-size: 12.5px; white-space: pre-wrap; max-height: 260px; overflow: auto; }
.mastery-options { display: flex; flex-direction: column; gap: 0.45rem; }
.mastery-options label { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.55rem 0.7rem; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; background: var(--surface); }
.mastery-options label:has(input:checked) { border-color: var(--accent); background: var(--tint); }
.mastery-options button { align-self: flex-start; margin-top: 0.3rem; }
.mastery-result { margin: 0.7rem 0 0; padding: 0.6rem 0.8rem; border-radius: 10px; background: var(--surface-2); }
.mastery-result.ok { background: var(--tint); color: var(--accent-dark); }
.mastery-result.ko { background: #FFF1F1; color: #B42318; }
.mastery-tag { display: inline-block; margin-left: 0.4rem; font-size: 0.72rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: #FFF4D6; color: #8A6100; }
.mastery-tag.done { background: var(--tint); color: var(--accent-dark); }

.vizi-demo-label { margin: 0; color: var(--text-2); font-weight: 600; }
.vizi-demo-text { line-height: 2; }
.vizi-demo-legend { margin: 0; color: var(--text-2); }
.vizi-demo .vl { min-width: 74px; padding: 0.5rem 0.6rem; }
.vizi-demo .vl b { font-size: 1.35rem; }
.vizi-demo .vl small { font-size: 0.74rem; }
.buy-bar-inner { width: 100%; }

.chooser-cta { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; flex: 0 0 auto; text-align: center; }
.chooser-cta .small { opacity: 0.85; }
@media (max-width: 760px) { .chooser-cta { width: 100%; } .chooser-cta .btn3d { width: 100%; text-align: center; } }
@media (max-width: 760px) { .chooser-main { flex-direction: column; align-items: stretch; } }
.buy-bar { width: 100%; align-self: stretch; }
.buy-bar-inner { box-sizing: border-box; }

.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2.5rem; align-items: center; padding: 2.5rem 0 1.5rem; }
.home-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 0.6rem; }
.home-hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1.2rem 0; }
.hero-chips.left { justify-content: flex-start; padding: 0; }
.home-hero-shot { position: relative; margin: 0; }
.home-hero-shot > img:first-child { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 24px 50px rgba(16,24,40,.16); transform: perspective(1400px) rotateY(-6deg); }
.home-hero-vizi { position: absolute; left: -28px; bottom: -24px; width: 96px; height: 96px; animation: float 3s ease-in-out infinite; }
@media (max-width: 860px) { .home-hero { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1.5rem; } .home-hero-shot > img:first-child { transform: none; } .home-hero-vizi { width: 64px; height: 64px; left: -8px; bottom: -16px; } }
/* Repérage pendant la frappe : une lettre trouvée s'allume toujours en vert, la couleur signifie « c'est bon ». */
.lv.on[data-l] { border-color: var(--accent); background: var(--tint); color: var(--accent-dark); }
.lv.on[data-l] b { background: var(--accent); color: #fff; }

.win-bar-actions { display: flex; align-items: center; gap: 0.6rem; flex: 0 0 auto; }
.win-rewards-btn { font: inherit; font-weight: 700; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.4); border-radius: 99px; padding: 0.55rem 0.9rem; cursor: pointer; }
.win-rewards-btn:hover { background: rgba(255,255,255,.12); }
#win-continue { background: #FFD43B; color: #3B2A00; box-shadow: 0 5px 0 #B78A00; text-transform: none; letter-spacing: 0; white-space: nowrap; }
@media (max-width: 600px) { .win-bar { flex-wrap: wrap; } .win-bar-actions { width: 100%; justify-content: space-between; } }
.obj-nudge { font-style: italic; color: var(--text-2); }

/* Fenêtre de victoire : la réponse de l'IA d'abord, des étoiles qui se remplissent, un pied propre */
.win-stars i { color: rgba(255,255,255,.28); transition: color 200ms; }
.win-stars i.on { animation: starFill 600ms cubic-bezier(.3,1.6,.5,1) both; }
@keyframes starFill { 0% { transform: scale(1); color: rgba(255,255,255,.28); } 40% { transform: scale(1.45) rotate(-12deg); color: #FFD43B; } 100% { transform: scale(1) rotate(0); color: #FFD43B; } }
.win-answer { text-align: left; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 0.7rem 0.8rem; margin: 0 0 0.8rem; }
.win-answer-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-dark); margin-bottom: 0.4rem; }
.win-answer pre { margin: 0; white-space: pre-wrap; font-family: var(--font); font-size: 0.9rem; line-height: 1.5; max-height: 190px; overflow: auto; color: var(--text); }
.win-vizi-ai { display: flex; align-items: center; gap: 0.6rem; width: 100%; box-sizing: border-box; margin: 0.6rem 0 0; padding: 0.6rem 0.8rem; border-radius: 12px; background: var(--tint); color: var(--text); text-decoration: none; text-align: left; font-size: 0.88rem; line-height: 1.4; }
.win-vizi-ai img { flex: 0 0 32px; }
.win-vizi-ai:hover { color: var(--accent-dark); }
.win-foot { display: flex; justify-content: center; margin-top: 0.7rem; }
.win-stay { font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--text-2); background: none; border: 1px solid var(--border); border-radius: 99px; padding: 0.45rem 1rem; cursor: pointer; }
.win-stay:hover { color: var(--text); border-color: var(--text-2); }

.upgrade-card { margin-top: 1rem; padding: 1.1rem 1.2rem; border-radius: 20px; background: linear-gradient(160deg, #FFFDF4, #FFF4D6); border: 2px solid #F5D77A; box-shadow: 0 10px 26px rgba(183,138,0,.12); }
.upgrade-head { display: flex; gap: 0.7rem; align-items: center; margin-bottom: 0.5rem; }
.upgrade-head .pastille { background: #FFE9A8; color: #8A6100; }
.upgrade-head h3 { margin: 0.1rem 0 0; font-size: 1.05rem; }
.upgrade-card .checks { margin: 0.4rem 0 0.8rem; }
.upgrade-cta { display: block; text-align: center; background: #FFD43B; color: #3B2A00; box-shadow: 0 5px 0 #B78A00; }
.upgrade-card .muted { margin: 0.6rem 0 0; text-align: center; }
.lesson ~ .upgrade-card, main > .upgrade-card { max-width: 920px; margin: 1.6rem auto 0; }

.vizi-demo { text-align: center; }
.vizi-demo .vizi-letters { justify-content: center; }
.vizi-demo-text mark.ing { border-bottom: 0; }
.vizi-demo-coach { text-align: left; }

.vizi-demo.compact { max-width: 680px; padding: 1rem 1.2rem; }
.vizi-demo.compact .vl { min-width: 56px; padding: 0.35rem 0.45rem; }
.vizi-demo.compact .vl b { font-size: 1.05rem; }
.vizi-demo.compact .vl small { font-size: 0.66rem; }
.vizi-demo.compact .vizi-demo-text { font-size: 0.98rem; }
@media (max-width: 860px) {
  .home-hero-text { text-align: center; }
  .home-hero-actions { flex-direction: column; gap: 0.5rem; }
  .home-hero-actions .btn3d { width: 100%; text-align: center; }
  .hero-chips.left { justify-content: center; }
}

.teaser { margin: 0.6rem 0 0; color: var(--accent-dark); font-weight: 600; display: flex; align-items: center; gap: 0.4rem; }
.guided-open { font: inherit; font-size: 0.88rem; font-weight: 700; color: var(--accent-dark); background: var(--tint); border: 1px dashed var(--accent); border-radius: 12px; padding: 0.5rem 0.8rem; margin: 0 0 0.5rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; }
.guided { background: var(--surface); border: 2px solid var(--tint); border-radius: 14px; padding: 0.8rem; margin: 0 0 0.6rem; display: flex; flex-direction: column; gap: 0.5rem; }
.guided-title { margin: 0; font-weight: 700; font-size: 0.9rem; color: var(--accent-dark); display: flex; gap: 0.4rem; align-items: center; }
.guided label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.85rem; font-weight: 600; }
.guided input { font: inherit; padding: 0.55rem 0.7rem; border: 1px solid var(--border); border-radius: 10px; }
.guided-actions { display: flex; justify-content: space-between; align-items: center; }
.tip-action { margin-top: 0.5rem; }
@media (max-width: 980px) {
  .sim { display: flex; flex-direction: column; }
  .sim .sim-right { order: -1; }
}

@media (max-width: 980px) {
  .sim .sim-right { display: contents; }
  .sim .sim-right > * { order: 3; }
  .sim .sim-right > .kicker, .sim .sim-right > h1, .sim .sim-right > .brief { order: 1; }
  .sim .sim-left { order: 2; }
  .sim > * { margin-bottom: 0.9rem; }
}
@media (max-width: 980px) { .sim { align-items: stretch; } }
