*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #12241A;          /* nuit forêt (= --night neosen.io) */
  --navy-deep: #0D1A12;     /* footer / bandes (= footer neosen.io) */
  --brand: #42624A;         /* vert sauge (= --sage / --brand neosen.io) */
  --brand-deep: #2C3F2E;
  --orange: #B5824E;        /* accent terre (= --accent neosen.io) */
  --orange-hi: #D9A05B;     /* accent clair sur fond nuit (= --woodhi) */
  --mint: #9FD8B4;
  --orange-soft: rgba(181,130,78,0.10);
  --paper: #F3EDE2;         /* papier (= --paper neosen.io) */
  --paper-alt: #EDE7DA;
  --white: #FFFFFF;
  --ink: #222820;
  --text: #262920;
  --text-2: #5C6053;
  --muted: #8A8C7E;
  --line: #E4DFD2;
  --line-dark: rgba(243,237,226,0.12);
  --r-sm: 10px; --r-md: 16px;
  --shadow: 0 10px 34px rgba(45,52,54,0.08);
}
html { scroll-behavior: smooth; }
body { font-family: 'Hanken Grotesk', system-ui, sans-serif; color: var(--text); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: 'Bricolage Grotesque', 'Hanken Grotesk', sans-serif; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
.label { font-family: 'Spline Sans Mono', ui-monospace, monospace; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 1rem; }
.wrap { max-width: 1140px; margin: 0 auto; }
section { padding: 5.5rem 3rem; }

/* labels sur fond nuit */
.hero .label, .band .label { color: var(--mint); }

/* NAV */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 1rem 3rem; background: rgba(13,26,18,0.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-dark); }
.logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--paper); font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.25rem; letter-spacing: 0.06em; }
.logo img { width: 34px; height: 34px; border-radius: 8px; }
.nav-links { display: flex; gap: 2.2rem; align-items: center; list-style: none; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: rgba(243,237,226,0.78); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--paper); }
.nav-cta { background: var(--brand); color: var(--white) !important; padding: 0.6rem 1.3rem; border-radius: 999px; font-weight: 600; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--paper); transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO */
.hero { background: var(--navy); color: var(--paper); padding: 10rem 3rem 6rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: 62vw; height: 62vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(closest-side, rgba(159,216,180,0.16), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 4rem; align-items: end; }
.hero h1 { color: var(--paper); }
.hero h1 em { font-style: normal; color: var(--orange-hi); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(243,237,226,0.82); max-width: 640px; margin-top: 1.6rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }
.btn { display: inline-block; padding: 0.9rem 1.7rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: transform 0.2s, background 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { border: 1px solid rgba(243,237,226,0.35); color: var(--paper); }
.hero-side { border-left: 2px solid var(--orange-hi); padding-left: 1.5rem; }
.hero-side p { font-size: 0.95rem; color: rgba(243,237,226,0.72); line-height: 1.7; }
.hero-side strong { color: var(--paper); display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.05rem; margin-bottom: 0.4rem; }

/* EXPERTISES */
.expertises { background: var(--paper); }
.exp-head { max-width: 720px; margin-bottom: 3rem; }
.exp-head p { color: var(--text-2); margin-top: 1rem; font-size: 1.02rem; }
.exp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.exp { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.8rem 1.8rem 1.6rem; display: flex; flex-direction: column; gap: 0.7rem; transition: transform 0.25s, box-shadow 0.25s; }
.exp:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.exp .num { font-family: 'Spline Sans Mono', monospace; font-size: 0.78rem; color: var(--orange); letter-spacing: 0.1em; }
.exp p { font-size: 0.92rem; color: var(--text-2); line-height: 1.7; }

/* BANDE */
.band { background: var(--navy-deep); color: var(--paper); }
.band .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem 4rem; align-items: start; }
.band h2 { color: var(--paper); }
.band p { color: rgba(243,237,226,0.78); font-size: 1rem; line-height: 1.8; margin-bottom: 1rem; }
.band a.more { color: var(--mint); font-weight: 600; text-decoration: none; }

/* PROSE (page Qui sommes-nous) */
.prose-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem 4rem; align-items: start; }
.prose p { font-size: 1rem; line-height: 1.8; color: var(--text-2); margin-bottom: 1.1rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.alt { background: var(--white); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.fact { border-top: 2px solid var(--brand); padding-top: 1rem; }
.fact b { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.05rem; color: var(--ink); margin-bottom: 0.3rem; }
.fact span { font-size: 0.9rem; color: var(--text-2); line-height: 1.6; }

/* CONTACT */
.contact { background: var(--paper-alt); }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; margin-top: 2rem; max-width: 760px; }
.contact-cards div { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1.3rem 1.5rem; font-size: 0.95rem; color: var(--text-2); line-height: 1.7; }
.contact-cards b { display: block; color: var(--ink); margin-bottom: 0.2rem; }
.contact-cards a { color: var(--brand-deep); font-weight: 600; text-decoration: none; }

/* FOOTER */
footer { background: var(--navy-deep); color: rgba(243,237,226,0.7); padding: 3.5rem 3rem 2rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
.foot p { font-size: 0.88rem; line-height: 1.7; margin-top: 0.8rem; max-width: 320px; }
.foot h4 { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(243,237,226,0.5); margin-bottom: 1rem; font-weight: 600; }
.foot ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.foot a { font-size: 0.9rem; color: rgba(243,237,226,0.75); text-decoration: none; }
.foot a:hover { color: var(--paper); }
.foot-bottom { max-width: 1140px; margin: 2.5rem auto 0; padding-top: 1.2rem; border-top: 1px solid var(--line-dark); font-size: 0.8rem; color: rgba(243,237,226,0.45); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* MODALE */
.overlay { position: fixed; inset: 0; background: rgba(13,26,18,0.6); display: none; align-items: center; justify-content: center; z-index: 200; padding: 1.5rem; }
.overlay.open { display: flex; }
.modal { background: var(--paper); color: var(--text); border-radius: var(--r-md); max-width: 680px; width: 100%; max-height: 85vh; overflow: auto; padding: 2rem 2.2rem; box-shadow: 0 30px 80px rgba(0,0,0,0.35); position: relative; }
.modal h3 { margin-bottom: 1.2rem; }
.modal h5 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin: 1.4rem 0 0.5rem; }
.modal p { font-size: 0.92rem; line-height: 1.7; color: var(--text-2); margin-bottom: 0.4rem; }
.modal .close { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 1rem; }

/* RESPONSIVE */
@media (max-width: 860px) {
  section { padding: 3.5rem 1.5rem; }
  nav { padding: 0.9rem 1.5rem; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy-deep); padding: 0.8rem 1.5rem 1.4rem; border-bottom: 1px solid var(--line-dark); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.8rem 0; font-size: 1rem; }
  .nav-links .nav-cta { text-align: center; margin-top: 0.6rem; }
  .hero { padding: 7rem 1.5rem 4rem; }
  .hero .wrap, .band .wrap, .prose-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-side { border-left: 0; border-top: 2px solid var(--orange-hi); padding: 1.2rem 0 0; }
  footer { padding: 3rem 1.5rem 1.5rem; }
  .foot { grid-template-columns: 1fr; gap: 2rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

/* ===================== HOME v2 (07/09) : hero QCM jouable + parcours ===================== */
h1, h2 { font-family: 'DM Serif Display', 'Bricolage Grotesque', serif; font-weight: 400; letter-spacing: 0; }
.hero-v2 .wrap { align-items: center; grid-template-columns: 1.05fr 0.95fr; }
.hero-v2 h1 { font-size: clamp(2.5rem, 5.2vw, 4.3rem); line-height: 1.04; }
.hero-v2 h1 em { color: var(--orange-hi); }
.hero-v2 .hero-lead { max-width: 560px; }
.rise { opacity: 0; transform: translateY(18px); animation: rise 0.8s cubic-bezier(.2,.7,.2,1) forwards; }
.rise:nth-child(2) { animation-delay: 0.12s; } .rise:nth-child(3) { animation-delay: 0.24s; } .rise:nth-child(4) { animation-delay: 0.36s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* QCM jouable */
.qcm { background: var(--paper); color: var(--text); border-radius: var(--r-md); padding: 1.6rem 1.7rem 1.4rem; box-shadow: 0 30px 80px rgba(0,0,0,0.45); position: relative; opacity: 0; transform: translateY(24px) rotate(-0.6deg); animation: rise 0.9s 0.3s cubic-bezier(.2,.7,.2,1) forwards; }
.qcm-head { display: flex; justify-content: space-between; align-items: center; font-family: 'Spline Sans Mono', monospace; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.qcm-head b { color: var(--brand); font-weight: 500; }
.qcm-bar { height: 4px; background: var(--line); border-radius: 2px; margin: 0.9rem 0 1.2rem; overflow: hidden; }
.qcm-bar i { display: block; height: 100%; width: 0; background: var(--brand); transition: width 0.5s cubic-bezier(.2,.7,.2,1); }
.qcm-q { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.12rem; color: var(--ink); line-height: 1.35; margin-bottom: 1rem; min-height: 3em; }
.qcm-opts { display: grid; gap: 0.55rem; }
.qcm-opt { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.8rem 0.95rem; font: inherit; font-size: 0.93rem; color: var(--text); cursor: pointer; display: flex; gap: 0.7rem; align-items: center; transition: border-color 0.2s, background 0.2s, transform 0.15s; }
.qcm-opt:hover:not([disabled]) { border-color: var(--brand); transform: translateX(3px); }
.qcm-opt:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.qcm-opt .k { font-family: 'Spline Sans Mono', monospace; font-size: 0.72rem; color: var(--text-2); width: 1.2rem; flex-shrink: 0; }
.qcm-opt.ok { border-color: var(--brand); background: rgba(66,98,74,0.10); }
.qcm-opt.ko { border-color: var(--orange); background: rgba(181,130,78,0.12); }
.qcm-opt[disabled] { cursor: default; }
.qcm-fb { font-size: 0.86rem; color: var(--text-2); line-height: 1.55; margin-top: 0.9rem; min-height: 2.6em; }
.qcm-fb strong { color: var(--ink); }
.qcm-next { margin-top: 0.6rem; background: var(--brand); color: var(--white); border: 0; border-radius: 999px; padding: 0.6rem 1.2rem; font: inherit; font-weight: 600; font-size: 0.88rem; cursor: pointer; visibility: hidden; }
.qcm-next.show { visibility: visible; }
.qcm-next:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.qcm-result { display: none; }
.qcm.done .qcm-play { display: none; } .qcm.done .qcm-result { display: block; }
.skill { margin-top: 0.9rem; }
.skill span { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-2); margin-bottom: 0.3rem; }
.skill i { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.skill i b { display: block; height: 100%; width: 0; background: var(--brand); transition: width 0.9s 0.2s cubic-bezier(.2,.7,.2,1); }
.qcm-stamp { position: absolute; top: -14px; right: 18px; background: var(--orange-hi); color: var(--night, #12241A); font-family: 'Spline Sans Mono', monospace; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.35rem 0.7rem; border-radius: 999px; transform: rotate(3deg); }

/* Ticker */
.ticker { background: var(--brand-deep); color: var(--paper); overflow: hidden; padding: 0.85rem 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.ticker-track { display: flex; gap: 3rem; width: max-content; animation: ticker 48s linear infinite; font-family: 'Spline Sans Mono', monospace; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.ticker-track span::before { content: '◆'; color: var(--orange-hi); margin-right: 1rem; font-size: 0.6rem; vertical-align: 2px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Parcours : 3 temps sur un rail */
.parcours { background: var(--paper); }
.parcours .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem 5rem; align-items: start; }
.parcours-sticky { position: sticky; top: 6rem; }
.parcours-sticky p { color: var(--text-2); margin-top: 1rem; line-height: 1.75; }
.rail { position: relative; padding-left: 2.6rem; }
.rail::before { content: ''; position: absolute; left: 0.62rem; top: 0.4rem; bottom: 0.4rem; width: 2px; background: var(--line); }
.rail::after { content: ''; position: absolute; left: 0.62rem; top: 0.4rem; width: 2px; height: var(--fill, 0%); background: var(--brand); transition: height 0.2s linear; }
.station { position: relative; padding-bottom: 3.2rem; }
.station:last-child { padding-bottom: 0; }
.station::before { content: attr(data-n); position: absolute; left: -2.6rem; top: 0; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); color: var(--text-2); font-family: 'Spline Sans Mono', monospace; font-size: 0.6rem; display: flex; align-items: center; justify-content: center; transition: background 0.3s, border-color 0.3s, color 0.3s; }
.station.lit::before { background: var(--brand); border-color: var(--brand); color: var(--white); }
.station h3 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 1.7rem; margin-bottom: 0.35rem; }
.station > p { color: var(--text-2); margin-bottom: 1.2rem; max-width: 520px; }
.station-cards { display: grid; gap: 0.9rem; }
.sc { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.2rem 1.4rem; display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 1rem; align-items: start; opacity: 0; transform: translateY(14px); transition: opacity 0.6s, transform 0.6s; }
.station.lit .sc { opacity: 1; transform: none; }
.station.lit .sc:nth-child(2) { transition-delay: 0.1s; } .station.lit .sc:nth-child(3) { transition-delay: 0.2s; }
.sc h4 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.02rem; color: var(--ink); line-height: 1.3; }
.sc p { grid-column: 1; font-size: 0.88rem; color: var(--text-2); line-height: 1.6; }
.sc .tag { grid-row: 1 / span 2; align-self: center; font-family: 'Spline Sans Mono', monospace; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); background: rgba(66,98,74,0.08); padding: 0.35rem 0.6rem; border-radius: 999px; white-space: nowrap; }

/* Bande : grand chiffre typographique */
.band-v2 .wrap { align-items: center; }
.band-v2 .big { font-family: 'DM Serif Display', serif; font-size: clamp(3rem, 7vw, 6rem); line-height: 0.95; color: var(--paper); }
.band-v2 .big em { font-style: italic; color: var(--mint); }

@media (max-width: 960px) {
  .hero-v2 .wrap, .parcours .wrap { grid-template-columns: 1fr; }
  .parcours-sticky { position: static; }
  .qcm { transform: none; animation-name: rise; }
}
@media (prefers-reduced-motion: reduce) {
  .rise, .qcm { animation: none; opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .sc { opacity: 1; transform: none; transition: none; }
}

/* ===================== HOME v3 (07/09) : axe ingénierie pédagogique + capsule ===================== */
.capsule { background: var(--paper); color: var(--text); border-radius: var(--r-md); padding: 1.5rem 1.6rem 1.4rem; box-shadow: 0 30px 80px rgba(0,0,0,0.45); position: relative; opacity: 0; transform: translateY(24px); animation: rise 0.9s 0.3s cubic-bezier(.2,.7,.2,1) forwards; }
.cap-head { display: flex; justify-content: space-between; align-items: center; font-family: 'Spline Sans Mono', monospace; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 1rem; }
.cap-head b { color: var(--brand); font-weight: 500; }
.cap-body { display: grid; grid-template-columns: 150px 1fr; gap: 1.2rem; align-items: stretch; }
.cap-pill { display: flex; flex-direction: column; gap: 4px; }
.cap-layer { border: 0; font: inherit; cursor: pointer; text-align: left; padding: 0.55rem 0.7rem; background: var(--white); border: 1px solid var(--line); color: var(--text-2); font-size: 0.78rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 0.4rem; transition: background 0.2s, color 0.2s, transform 0.2s; }
.cap-layer:first-child { border-radius: 40px 40px 6px 6px; padding-top: 0.9rem; }
.cap-layer:last-child { border-radius: 6px 6px 40px 40px; padding-bottom: 0.9rem; }
.cap-layer small { font-family: 'Spline Sans Mono', monospace; font-weight: 400; font-size: 0.62rem; color: var(--muted); }
.cap-layer:hover { transform: translateX(3px); }
.cap-layer:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.cap-layer.on { background: var(--brand); color: var(--white); border-color: var(--brand); }
.cap-layer.on small { color: rgba(255,255,255,0.75); }
.cap-detail { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; }
.cap-detail .label { margin-bottom: 0.4rem; font-size: 0.66rem; }
.cap-detail h4 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: 0.5rem; line-height: 1.3; }
.cap-detail p { font-size: 0.88rem; color: var(--text-2); line-height: 1.6; }
.cap-detail .ex { margin-top: auto; padding-top: 0.8rem; border-top: 1px dashed var(--line); font-size: 0.82rem; color: var(--text-2); }
.cap-detail .ex b { color: var(--brand); font-family: 'Spline Sans Mono', monospace; font-weight: 500; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 0.25rem; }
.cap-foot { margin-top: 1rem; font-size: 0.8rem; color: var(--text-2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.4rem; }
.cap-foot span b { color: var(--ink); }

/* étapes de conception : rail réutilisé, cartes en ligne */
.method .station h3 { font-size: 1.55rem; }
.method .station > p { max-width: 560px; }
.deliv { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.deliv span { font-size: 0.78rem; color: var(--brand-deep); background: rgba(66,98,74,0.08); border: 1px solid rgba(66,98,74,0.15); padding: 0.3rem 0.7rem; border-radius: 999px; }
.station.lit .deliv span { opacity: 1; }

/* section évaluation : QCM sur fond nuit */
.eval { background: var(--navy); color: var(--paper); }
.eval .wrap { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 3rem 5rem; align-items: center; }
.eval .label { color: var(--mint); }
.eval h2 { color: var(--paper); }
.eval > .wrap > div > p { color: rgba(243,237,226,0.78); line-height: 1.8; margin-top: 1rem; }
.eval .qcm { animation: none; opacity: 1; transform: none; }

/* sept expertises : grille compacte */
.exp-mini .exp-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.exp-mini .exp { padding: 1.3rem 1.4rem; gap: 0.4rem; }
.exp-mini .exp h3 { font-size: 1rem; }
.exp-mini .exp.focus { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.exp-mini .exp .tag { font-family: 'Spline Sans Mono', monospace; font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }

@media (max-width: 960px) {
  .eval .wrap { grid-template-columns: 1fr; }
  .cap-body { grid-template-columns: 1fr; }
  .cap-pill { flex-direction: row; flex-wrap: wrap; }
  .cap-layer { flex: 1 1 30%; border-radius: 8px !important; padding: 0.55rem 0.6rem !important; }
}
@media (prefers-reduced-motion: reduce) { .capsule { animation: none; opacity: 1; transform: none; } }

/* ===================== HOME v4 : conception + gamification + IA + générateur d'examens ===================== */
.hero-v2::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: linear-gradient(rgba(159,216,180,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(159,216,180,0.07) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 30%, transparent 75%); }
.hero-v2 .wrap { z-index: 2; }
.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.4rem; }
.chip { font-size: 0.78rem; font-weight: 600; padding: 0.4rem 0.8rem; border-radius: 999px; border: 1px solid rgba(243,237,226,0.22); color: rgba(243,237,226,0.85); }
.chip.ia { border-color: rgba(159,216,180,0.5); color: var(--mint); }
.chip.ia::before, .ia-tag::before { content: '✦ '; }
.ia-tag { font-family: 'Spline Sans Mono', monospace; font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); background: rgba(159,216,180,0.25); padding: 0.15rem 0.45rem; border-radius: 999px; margin-left: 0.3rem; vertical-align: middle; }
.cap-layer.reward { background: linear-gradient(90deg, rgba(217,160,91,0.18), var(--white)); }
.cap-layer.reward.on { background: var(--orange); border-color: var(--orange); }

/* Générateur d'examens */
.gen { background: var(--paper); color: var(--text); border-radius: var(--r-md); padding: 1.5rem 1.6rem 1.4rem; box-shadow: 0 30px 80px rgba(0,0,0,0.45); position: relative; }
.gen-head { display: flex; justify-content: space-between; align-items: center; font-family: 'Spline Sans Mono', monospace; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 1rem; }
.gen-head b { color: var(--brand); font-weight: 500; }
.gen-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 0.9rem; }
.gen-form label { font-size: 0.74rem; font-weight: 600; color: var(--text-2); display: flex; flex-direction: column; gap: 0.3rem; }
.gen-form label.full { grid-column: 1 / -1; }
.gen-form select, .gen-form input[type=range] { font: inherit; font-size: 0.9rem; color: var(--ink); }
.gen-form select { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0.6rem 0.7rem; }
.gen-form input[type=range] { accent-color: var(--brand); width: 100%; }
.gen-form output { font-family: 'Spline Sans Mono', monospace; font-weight: 400; color: var(--brand); font-size: 0.78rem; }
.gen-btn { margin-top: 1rem; width: 100%; background: var(--brand); color: var(--white); border: 0; border-radius: 999px; padding: 0.8rem 1.2rem; font: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer; transition: background 0.2s, transform 0.15s; }
.gen-btn:hover { background: var(--brand-deep); transform: translateY(-1px); }
.gen-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.gen-out { margin-top: 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1rem 1.1rem; display: none; }
.gen-out.show { display: block; animation: rise 0.5s cubic-bezier(.2,.7,.2,1); }
.gen-out .id { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.gen-out .id b { font-family: 'Bricolage Grotesque', sans-serif; font-size: 1.02rem; color: var(--ink); }
.gen-out .id span { font-family: 'Spline Sans Mono', monospace; font-size: 0.7rem; color: var(--text-2); letter-spacing: 0.06em; }
.gen-themes { margin: 0.8rem 0 0.6rem; display: grid; gap: 0.4rem; }
.gt { display: grid; grid-template-columns: 1fr 3fr auto; gap: 0.6rem; align-items: center; font-size: 0.8rem; color: var(--text-2); }
.gt i { display: block; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.gt i b { display: block; height: 100%; width: 0; background: var(--brand); transition: width 0.7s cubic-bezier(.2,.7,.2,1); }
.gt em { font-style: normal; font-family: 'Spline Sans Mono', monospace; font-size: 0.72rem; color: var(--ink); }
.gen-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.gen-meta span { font-size: 0.76rem; background: rgba(66,98,74,0.08); color: var(--brand-deep); padding: 0.3rem 0.65rem; border-radius: 999px; }
.gen-sample { margin-top: 0.8rem; border-top: 1px dashed var(--line); padding-top: 0.7rem; font-size: 0.8rem; color: var(--text-2); line-height: 1.6; }
.gen-sample b { display: block; font-family: 'Spline Sans Mono', monospace; font-weight: 500; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 0.3rem; }
.gen-again { margin-top: 0.7rem; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 0.5rem 1rem; font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.gen-again:hover { border-color: var(--brand); }
.gen-again:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Leviers : gamification + IA */
.levers { background: var(--paper-alt); }
.levers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.lever { border-radius: var(--r-md); padding: 2rem; position: relative; overflow: hidden; min-height: 320px; display: flex; flex-direction: column; }
.lever h3 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 1.8rem; margin: 0.4rem 0 0.8rem; }
.lever p { font-size: 0.95rem; line-height: 1.7; }
.lever ul { list-style: none; margin-top: 1.2rem; display: grid; gap: 0.5rem; font-size: 0.9rem; }
.lever li::before { content: '▸ '; color: var(--orange-hi); }
.lever.game { background: var(--navy); color: var(--paper); }
.lever.game .label { color: var(--orange-hi); }
.lever.game h3 { color: var(--paper); }
.lever.game p, .lever.game li { color: rgba(243,237,226,0.82); }
.lever.ia { background: var(--white); border: 1px solid var(--line); }
.lever.ia .label { color: var(--brand); }
.lever.ia li::before { color: var(--brand); }
.lever.ia p, .lever.ia li { color: var(--text-2); }
.badges { display: flex; gap: 0.6rem; margin-top: auto; padding-top: 1.4rem; flex-wrap: wrap; }
.badge { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Spline Sans Mono', monospace; font-size: 0.62rem; text-align: center; line-height: 1.1; border: 2px solid rgba(243,237,226,0.25); color: rgba(243,237,226,0.7); }
.badge.won { border-color: var(--orange-hi); color: var(--orange-hi); background: rgba(217,160,91,0.12); box-shadow: 0 0 22px rgba(217,160,91,0.25); }
.ia-note { margin-top: auto; padding-top: 1.2rem; font-size: 0.82rem; color: var(--text-2); border-top: 1px dashed var(--line); }
.ia-note strong { color: var(--ink); }

@media (max-width: 960px) {
  .levers-grid { grid-template-columns: 1fr; }
  .gen-form { grid-template-columns: 1fr; }
  .cap-layer.reward { flex: 1 1 100%; }
}

/* ===================== HOME v5 : sujet d'examen rendu + visite gamifiée ===================== */
.hero-v2::after { opacity: 0.35; }
.gen-btn.busy { background: var(--navy); cursor: progress; }
.gen-btn.busy::before { content: '✦ '; color: var(--mint); }
.paper { margin-top: 0.9rem; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 1.1rem 1.2rem; font-size: 0.84rem; color: var(--text); box-shadow: 0 2px 0 var(--line), 0 6px 0 -3px var(--paper-alt); position: relative; }
.paper::before { content: 'Page 1'; position: absolute; top: 0.5rem; right: 0.9rem; font-family: 'Spline Sans Mono', monospace; font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.paper-head { display: flex; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; padding-bottom: 0.6rem; border-bottom: 2px solid var(--ink); }
.paper-head b { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 1rem; color: var(--ink); }
.paper-head span { font-size: 0.74rem; color: var(--text-2); }
.paper-meta { display: flex; gap: 0.4rem; align-items: flex-start; flex-wrap: wrap; }
.paper-meta span { font-family: 'Spline Sans Mono', monospace; font-size: 0.66rem; border: 1px solid var(--line); padding: 0.2rem 0.5rem; border-radius: 4px; color: var(--text-2); }
.paper-cand { font-size: 0.74rem; color: var(--text-2); margin: 0.6rem 0 0.4rem; display: flex; gap: 0.5rem; align-items: baseline; flex-wrap: wrap; }
.paper-cand i { flex: 1 1 120px; border-bottom: 1px dotted var(--muted); height: 0.9em; }
.paper-cand i.s { flex: 0 1 90px; }
.pq { padding: 0.7rem 0 0.4rem; border-top: 1px dashed var(--line); }
.pq-h { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.7rem; margin-bottom: 0.25rem; }
.pq-h b { font-family: 'Spline Sans Mono', monospace; font-weight: 500; color: var(--brand); letter-spacing: 0.06em; text-transform: uppercase; }
.pq-h span { color: var(--muted); text-align: right; }
.pq p { color: var(--ink); line-height: 1.5; margin-bottom: 0.4rem; }
.pq ul { list-style: none; display: grid; gap: 0.25rem; padding-left: 0.2rem; }
.pq li { display: flex; gap: 0.5rem; align-items: baseline; color: var(--text-2); font-size: 0.82rem; }
.pq .box { width: 11px; height: 11px; border: 1.5px solid var(--text-2); border-radius: 2px; flex-shrink: 0; transform: translateY(1px); }
.pq em { font-style: normal; font-family: 'Spline Sans Mono', monospace; font-size: 0.72rem; color: var(--ink); }
.pq.qro .lines { display: grid; gap: 0.7rem; margin-top: 0.4rem; }
.pq.qro .lines i { display: block; border-bottom: 1px dotted var(--muted); height: 0.9em; }
.paper-more { margin-top: 0.7rem; padding-top: 0.5rem; border-top: 1px dashed var(--line); font-size: 0.74rem; color: var(--muted); font-style: italic; }

.xp { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; width: 220px; background: rgba(13,26,18,0.92); color: var(--paper); border: 1px solid rgba(243,237,226,0.14); border-radius: 14px; padding: 0.7rem 0.85rem; backdrop-filter: blur(10px); box-shadow: 0 14px 40px rgba(0,0,0,0.35); transition: transform 0.25s; }
.xp.bump { transform: scale(1.04); }
.xp-top { display: flex; justify-content: space-between; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 0.82rem; }
.xp-top span:last-child { color: var(--orange-hi); }
.xp-bar { height: 5px; background: rgba(243,237,226,0.15); border-radius: 3px; margin: 0.45rem 0; overflow: hidden; }
.xp-bar i { display: block; height: 100%; width: 0; background: var(--mint); transition: width 0.5s cubic-bezier(.2,.7,.2,1); }
.xp-foot { display: flex; justify-content: space-between; align-items: center; font-size: 0.66rem; color: rgba(243,237,226,0.55); font-family: 'Spline Sans Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.xp-badge { color: var(--orange-hi); font-size: 0.9rem; margin-left: 0.15rem; animation: pop 0.5s cubic-bezier(.2,.7,.2,1); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.xp-toast { position: fixed; left: 50%; bottom: 1.4rem; transform: translate(-50%, 20px); opacity: 0; z-index: 95; background: var(--orange-hi); color: var(--navy); font-weight: 600; font-size: 0.86rem; padding: 0.7rem 1.1rem; border-radius: 999px; box-shadow: 0 12px 30px rgba(0,0,0,0.3); transition: opacity 0.3s, transform 0.3s; pointer-events: none; max-width: 90vw; text-align: center; }
.xp-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 960px) { .xp { width: 170px; right: 0.8rem; bottom: 0.8rem; padding: 0.55rem 0.7rem; } .xp-foot span:first-child { display: none; } }
@media (prefers-reduced-motion: reduce) { .xp, .xp-badge, .xp-toast { transition: none; animation: none; } }
