*, *::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; } }

/* ===================== Illustration hero (SVG inline) ===================== */
.hero-illu { margin: 0; position: relative; }
.hero-illu svg { width: 100%; height: auto; display: block; overflow: visible; }
.hero-illu figcaption { margin-top: 0.9rem; font-size: 0.85rem; line-height: 1.6; color: rgba(243,237,226,0.62); border-left: 2px solid var(--orange-hi); padding-left: 0.9rem; max-width: 420px; }
.illu-card, .illu-tag { filter: drop-shadow(0 18px 30px rgba(0,0,0,0.35)); }
.illu-card { animation: illuFloat 7s ease-in-out infinite; }
.illu-tag { animation: illuFloat 6s 1s ease-in-out infinite; }
.illu-node { transform-box: fill-box; transform-origin: center; animation: pop 0.6s var(--d, 0s) cubic-bezier(.2,.7,.2,1) both; }
.illu-path { stroke-dashoffset: 600; animation: dash 1.6s 0.2s ease-out forwards; }
@keyframes illuFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes dash { to { stroke-dashoffset: 0; } }
@media (max-width: 960px) { .hero-illu { max-width: 440px; } }
@media (prefers-reduced-motion: reduce) { .illu-card, .illu-tag, .illu-node, .illu-path { animation: none; stroke-dashoffset: 0; } }

/* ===================== Capsule animée (boucle 14 s) ===================== */
.illu-path { animation: dash 1.6s 0.2s ease-out forwards, march 1.2s linear infinite 1.8s; }
@keyframes march { to { stroke-dashoffset: -14; } }
.k-play { transform-box: fill-box; transform-origin: center; animation: kPlay 14s infinite; }
.k-scrub, .k-prog, .k-comp { transform-box: fill-box; transform-origin: left center; }
.k-scrub { animation: kScrub 14s infinite; }
.k-prog { animation: kProg 14s infinite; }
.k-opt { animation: kOpt 14s infinite; }
.k-opt1 { --o: 0; } .k-opt2 { --o: 1; } .k-opt3 { --o: 2; }
.k-opt1 { animation-name: kOpt1; } .k-opt2 { animation-name: kOpt2; } .k-opt3 { animation-name: kOpt3; }
.k-sel { animation: kSel 14s infinite; }
.k-dot { animation: kDot 14s infinite; }
.k-fb { animation: kFb 14s infinite; }
.k-btn { transform-box: fill-box; transform-origin: center; animation: kBtn 14s infinite; }
.k-step { animation: kStepA 14s infinite; }
.k-step2 { animation-name: kStepB; } .k-step3 { animation-name: kStepC; }
.k-node { animation: kNode 14s infinite; }
.k-badge { transform-box: fill-box; transform-origin: center; animation: kBadge 14s infinite; }
.k-ring { transform-box: fill-box; transform-origin: center; animation: kRing 14s infinite; }
.k-comp { animation: kComp 14s infinite; }
.k-comp-t1 { animation: kT1 14s infinite; } .k-comp-t2 { animation: kT2 14s infinite; }

/* 0-30 % : lecture vidéo · 30-50 % : QCM · 50-57 % : validation · 57-75 % : récompense · 75-100 % : pause */
@keyframes kPlay { 0%, 4% { opacity: 1; transform: scale(1); } 6%, 28% { opacity: 0.25; transform: scale(0.85); } 30%, 100% { opacity: 1; transform: scale(1); } }
@keyframes kScrub { 0% { transform: scaleX(0); } 28%, 100% { transform: scaleX(1); } }
@keyframes kProg { 0%, 4% { transform: scaleX(0.33); } 28%, 56% { transform: scaleX(0.66); } 60%, 100% { transform: scaleX(1); } }
@keyframes kOpt1 { 0%, 30% { opacity: 0; } 34%, 100% { opacity: 1; } }
@keyframes kOpt2 { 0%, 33% { opacity: 0; } 37%, 100% { opacity: 1; } }
@keyframes kOpt3 { 0%, 36% { opacity: 0; } 40%, 100% { opacity: 1; } }
@keyframes kSel { 0%, 45% { fill: #FFFFFF; stroke: #E4DFD2; } 48%, 100% { fill: rgba(66,98,74,0.14); stroke: #42624A; } }
@keyframes kDot { 0%, 45% { fill: none; } 48%, 100% { fill: #42624A; } }
@keyframes kFb { 0%, 54% { opacity: 0; } 58%, 100% { opacity: 1; } }
@keyframes kBtn { 0%, 49% { opacity: 0.55; transform: scale(1); } 51% { opacity: 1; transform: scale(1.06); } 54%, 100% { opacity: 1; transform: scale(1); } }
@keyframes kStepA { 0%, 29% { opacity: 1; } 31%, 100% { opacity: 0; } }
@keyframes kStepB { 0%, 30% { opacity: 0; } 32%, 55% { opacity: 1; } 57%, 100% { opacity: 0; } }
@keyframes kStepC { 0%, 56% { opacity: 0; } 58%, 100% { opacity: 1; } }
@keyframes kNode { 0%, 58% { fill: #24402F; } 61%, 100% { fill: #D9A05B; } }
@keyframes kBadge { 0%, 62% { transform: scale(0); opacity: 0; } 66% { transform: scale(1.15); opacity: 1; } 69%, 100% { transform: scale(1); opacity: 1; } }
@keyframes kRing { 0%, 64% { transform: scale(1); opacity: 0; } 66% { opacity: 0.9; } 78%, 100% { transform: scale(2.2); opacity: 0; } }
@keyframes kComp { 0%, 66% { transform: scaleX(0.64); } 72%, 100% { transform: scaleX(0.72); } }
@keyframes kT1 { 0%, 68% { opacity: 0.85; } 70%, 100% { opacity: 0; } }
@keyframes kT2 { 0%, 68% { opacity: 0; } 70%, 100% { opacity: 0.85; } }
@media (prefers-reduced-motion: reduce) {
  .k-play, .k-scrub, .k-prog, .k-opt, .k-sel, .k-dot, .k-fb, .k-btn, .k-step, .k-node, .k-badge, .k-ring, .k-comp, .k-comp-t1, .k-comp-t2, .illu-path { animation: none !important; }
  .k-opt, .k-fb, .k-step3, .k-comp-t2, .k-badge { opacity: 1; transform: none; } .k-step1, .k-step2, .k-comp-t1 { opacity: 0; } .k-scrub { transform: none; }
}

/* Sept expertises : 4 + 3, plus de case vide */
@media (min-width: 961px) {
  .expertises:not(.exp-mini) .exp-grid { grid-template-columns: repeat(12, 1fr); }
  .expertises:not(.exp-mini) .exp { grid-column: span 3; }
  .expertises:not(.exp-mini) .exp:nth-child(n+5) { grid-column: span 4; }
}

/* ===================== Qui sommes-nous : atelier de conception animé (boucle 14 s) ===================== */
.w-obj, .w-cap, .w-eval, .w-ia, .w-check, .w-note, .w-role, .w-link, .w-line { animation-duration: 14s; animation-iteration-count: infinite; animation-timing-function: ease-out; }
.w-obj { animation-name: wIn; }
.w-link { stroke-dashoffset: 40; animation-name: wLink; }
.w-l2 { animation-name: wLink2; }
.w-c1 { animation-name: wCap1; } .w-c2 { animation-name: wCap2; } .w-c3 { animation-name: wCap3; }
.w-eval { animation-name: wEval; }
.w-ia { animation-name: wIa; }
.w-line { transform-box: fill-box; transform-origin: left center; }
.w-ln1 { animation-name: wLn1; } .w-ln2 { animation-name: wLn2; } .w-ln3 { animation-name: wLn3; }
.w-note { transform-box: fill-box; transform-origin: center; animation-name: wNote; }
.w-check { animation-name: wCheck; }
.w-r1 { animation-name: wR1; } .w-r2 { animation-name: wR2; } .w-r3 { animation-name: wR3; }
.w-cnt { animation: wK0 14s infinite; }
.w-k1 { animation-name: wK1; } .w-k2 { animation-name: wK2; } .w-k3 { animation-name: wK3; }
@keyframes wIn { 0% { opacity: 0; } 5%, 100% { opacity: 1; } }
@keyframes wLink { 0%, 6% { stroke-dashoffset: 40; opacity: 0; } 10%, 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes wLink2 { 0%, 30% { stroke-dashoffset: 40; opacity: 0; } 34%, 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes wCap1 { 0%, 10% { opacity: 0; } 14%, 100% { opacity: 1; } }
@keyframes wCap2 { 0%, 17% { opacity: 0; } 21%, 100% { opacity: 1; } }
@keyframes wCap3 { 0%, 24% { opacity: 0; } 28%, 100% { opacity: 1; } }
@keyframes wEval { 0%, 34% { opacity: 0; } 38%, 100% { opacity: 1; } }
@keyframes wIa { 0%, 42% { opacity: 0; } 46%, 100% { opacity: 1; } }
@keyframes wLn1 { 0%, 46% { transform: scaleX(0); } 52%, 100% { transform: scaleX(1); } }
@keyframes wLn2 { 0%, 50% { transform: scaleX(0); } 57%, 100% { transform: scaleX(1); } }
@keyframes wLn3 { 0%, 55% { transform: scaleX(0); } 61%, 100% { transform: scaleX(1); } }
@keyframes wNote { 0%, 64% { opacity: 0; transform: scale(0.6); } 68%, 100% { opacity: 1; transform: scale(1); } }
@keyframes wCheck { 0%, 74% { opacity: 0; } 78%, 100% { opacity: 1; } }
@keyframes wR1 { 0%, 8% { opacity: 0; } 12%, 100% { opacity: 1; } }
@keyframes wR2 { 0%, 62% { opacity: 0; } 66%, 100% { opacity: 1; } }
@keyframes wR3 { 0%, 76% { opacity: 0; } 80%, 100% { opacity: 1; } }
@keyframes wK0 { 0%, 13% { opacity: 1; } 14%, 100% { opacity: 0; } }
@keyframes wK1 { 0%, 13% { opacity: 0; } 14%, 20% { opacity: 1; } 21%, 100% { opacity: 0; } }
@keyframes wK2 { 0%, 20% { opacity: 0; } 21%, 27% { opacity: 1; } 28%, 100% { opacity: 0; } }
@keyframes wK3 { 0%, 27% { opacity: 0; } 28%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .w-obj, .w-cap, .w-eval, .w-ia, .w-check, .w-note, .w-role, .w-link, .w-line, .w-cnt { animation: none !important; opacity: 1; transform: none; stroke-dashoffset: 0; }
  .w-k0, .w-k1, .w-k2 { opacity: 0; }
}

/* ===================== Sept expertises : vitrine (une vignette animée par expertise) ===================== */
.showcase .exp-head { margin-bottom: 4rem; }
.show { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem 4.5rem; align-items: center; padding: 3.2rem 0; border-top: 1px solid var(--line); }
.show:nth-of-type(even) .show-fig { order: 2; }
.show-fig { margin: 0; border-radius: 20px; box-shadow: 0 24px 60px rgba(18,36,26,0.18); overflow: hidden; }
.show-fig svg { display: block; width: 100%; height: auto; }
.show-txt .num { font-family: 'Spline Sans Mono', monospace; font-size: 0.78rem; letter-spacing: 0.14em; color: var(--orange); }
.show-txt h3 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; margin: 0.6rem 0 1rem; color: var(--ink); }
.show-txt p { font-size: 1rem; line-height: 1.75; color: var(--text-2); }
.show-txt .deliv { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.3rem; padding: 0; }
.show-txt .deliv li { font-size: 0.82rem; color: var(--brand-deep); background: rgba(66,98,74,0.08); border: 1px solid rgba(66,98,74,0.15); padding: 0.35rem 0.8rem; border-radius: 999px; }
/* animations douces, 8 s, en boucle */
.e-fill, .e-bar { transform-box: fill-box; transform-origin: left center; animation: eGrow 8s infinite ease-out; }
.e-f2 { animation-delay: 0.4s; } .e-f3 { animation-delay: 0.8s; }
.e-fill { --w: 1; } .e-f2 { --w: 0.55; } .e-f3 { --w: 0.2; }
.e-b1 { --w: 0.84; } .e-b2 { --w: 0.58; } .e-b3 { --w: 0.76; } .e-b4 { --w: 0.91; }
.e-b2 { animation-delay: 0.3s; } .e-b3 { animation-delay: 0.6s; } .e-b4 { animation-delay: 0.9s; }
@keyframes eGrow { 0% { transform: scaleX(0); } 25%, 100% { transform: scaleX(var(--w, 1)); } }
.e-pulse circle { animation: ePulse 2s infinite; } @keyframes ePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.e-frame { animation: eFrame 8s infinite; } .e-k2 { animation-delay: 2s; } .e-k3 { animation-delay: 4s; } .e-k4 { animation-delay: 6s; }
@keyframes eFrame { 0%, 22% { opacity: 1; } 25%, 100% { opacity: 0.45; } }
.e-wave rect { transform-box: fill-box; transform-origin: center; animation: eWave 1.2s infinite ease-in-out; }
.e-wave rect:nth-child(odd) { animation-delay: 0.3s; } .e-wave rect:nth-child(3n) { animation-delay: 0.6s; }
@keyframes eWave { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.45); } }
.e-node, .e-edge, .e-step, .e-q, .e-paper, .e-tile, .e-badge, .e-reco { animation-duration: 8s; animation-iteration-count: infinite; animation-timing-function: ease-out; }
.e-n1 { animation-name: eIn0; } .e-e1 { animation-name: eIn1; } .e-n2 { animation-name: eIn2; } .e-e2 { animation-name: eIn3; } .e-n3 { animation-name: eIn4; }
@keyframes eIn0 { 0% { opacity: 0; } 6%, 100% { opacity: 1; } }
@keyframes eIn1 { 0%, 8% { opacity: 0; } 14%, 100% { opacity: 1; } }
@keyframes eIn2 { 0%, 14% { opacity: 0; } 22%, 100% { opacity: 1; } }
@keyframes eIn3 { 0%, 24% { opacity: 0; } 30%, 100% { opacity: 1; } }
@keyframes eIn4 { 0%, 32% { opacity: 0; } 40%, 100% { opacity: 1; } }
.e-dot { animation: eDot 8s infinite ease-in-out; }
@keyframes eDot { 0%, 5% { cx: 60px; } 25%, 30% { cx: 160px; } 50%, 55% { cx: 260px; } 75%, 100% { cx: 360px; } }
.e-s1 { animation-name: eIn0; } .e-s2 { animation-name: eIn2; } .e-s3 { animation-name: eIn3; } .e-s4 { animation-name: eIn5; } .e-badge { animation-name: eIn6; }
@keyframes eIn5 { 0%, 70% { opacity: 0.35; } 78%, 100% { opacity: 1; } }
@keyframes eIn6 { 0%, 80% { opacity: 0; } 88%, 100% { opacity: 1; } }
.e-t1 { animation-name: eIn0; } .e-t2 { animation-name: eIn1; } .e-t3 { animation-name: eIn2; }
.e-q1 { animation-name: eIn0; } .e-q2 { animation-name: eIn1; } .e-q3 { animation-name: eIn2; } .e-q4 { animation-name: eIn3; }
.e-arrow { animation: eIn4 8s infinite; }
.e-paper { transform-box: fill-box; transform-origin: center; animation-name: ePaper; }
@keyframes ePaper { 0%, 44% { opacity: 0; transform: translateY(12px); } 52%, 100% { opacity: 1; transform: none; } }
.e-reco { animation-name: eIn5; }
@media (max-width: 960px) {
  .show { grid-template-columns: 1fr; gap: 1.6rem; padding: 2.4rem 0; }
  .show:nth-of-type(even) .show-fig { order: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .e-fill, .e-bar, .e-pulse circle, .e-frame, .e-wave rect, .e-node, .e-edge, .e-step, .e-q, .e-paper, .e-tile, .e-badge, .e-reco, .e-arrow, .e-dot { animation: none !important; opacity: 1; transform: scaleX(var(--w, 1)); }
}

/* Vitrine : les constructions se jouent UNE fois, à l'apparition à l'écran (plus de disparition en boucle) */
.show .e-fill, .show .e-bar, .show .e-node, .show .e-edge, .show .e-step, .show .e-q, .show .e-paper, .show .e-tile, .show .e-badge, .show .e-reco, .show .e-arrow, .show .e-dot { animation-iteration-count: 1; animation-fill-mode: forwards; animation-play-state: paused; }
.show.on .e-fill, .show.on .e-bar, .show.on .e-node, .show.on .e-edge, .show.on .e-step, .show.on .e-q, .show.on .e-paper, .show.on .e-tile, .show.on .e-badge, .show.on .e-reco, .show.on .e-arrow, .show.on .e-dot { animation-play-state: running; }
.show .e-node, .show .e-edge, .show .e-q, .show .e-paper, .show .e-tile, .show .e-badge, .show .e-arrow { opacity: 0; }
.show .e-s4, .show .e-reco { opacity: 0.35; }
.show .e-fill, .show .e-bar { transform: scaleX(0); }
@keyframes eDot { 0%, 5% { cx: 60px; } 25%, 30% { cx: 160px; } 50%, 55% { cx: 260px; } 75%, 100% { cx: 360px; } }
@media (prefers-reduced-motion: reduce) { .show .e-node, .show .e-edge, .show .e-q, .show .e-paper, .show .e-tile, .show .e-badge, .show .e-arrow, .show .e-s4, .show .e-reco { opacity: 1; } }

/* Lecteur : illustration avec lent mouvement de caméra (preview) */
.k-scene { transform-box: fill-box; transform-origin: 55% 45%; animation: kScene 14s ease-in-out infinite alternate; }
@keyframes kScene { from { transform: scale(1); } to { transform: scale(1.08) translate(-1.5%, -1%); } }
@media (prefers-reduced-motion: reduce) { .k-scene { animation: none; } }

/* Hero : AUCUNE animation (demande 08/09) : états finaux figés */
.hero-illu .k-play, .hero-illu .k-scrub, .hero-illu .k-prog, .hero-illu .k-opt, .hero-illu .k-sel, .hero-illu .k-dot, .hero-illu .k-fb, .hero-illu .k-btn, .hero-illu .k-step, .hero-illu .k-node, .hero-illu .k-badge, .hero-illu .k-ring, .hero-illu .k-comp, .hero-illu .k-comp-t1, .hero-illu .k-comp-t2, .hero-illu .illu-path, .hero-illu .illu-card, .hero-illu .illu-tag, .hero-illu .illu-node, .hero-illu .k-scene { animation: none !important; }
.hero-illu .k-opt, .hero-illu .k-fb, .hero-illu .k-step3, .hero-illu .k-comp-t2, .hero-illu .k-badge, .hero-illu .illu-node { opacity: 1; transform: none; }
.hero-illu .k-step1, .hero-illu .k-step2, .hero-illu .k-comp-t1, .hero-illu .k-ring { opacity: 0; }
.hero-illu .k-scrub, .hero-illu .k-prog, .hero-illu .k-comp { transform: scaleX(1); }
.hero-illu .k-sel { fill: rgba(66,98,74,0.14); stroke: #42624A; } .hero-illu .k-dot { fill: #42624A; } .hero-illu .k-node { fill: #D9A05B; } .hero-illu .illu-path { stroke-dashoffset: 0; }

/* Storyboard : lecteur carré éclatant (boucle 9 s) */
.p-img { transform-box: fill-box; transform-origin: 50% 55%; animation: pZoom 9s ease-in-out infinite; }
@keyframes pZoom { 0% { transform: scale(1.12); } 45%, 100% { transform: scale(1); } }
.p-shine { animation: pShine 9s ease-in-out infinite; }
@keyframes pShine { 0%, 10% { transform: skewX(-18deg) translateX(0); } 45%, 100% { transform: skewX(-18deg) translateX(560px); } }
.p-sparks circle { transform-box: fill-box; transform-origin: center; animation: pSpark 2.4s ease-in-out infinite; }
.p-sparks circle:nth-child(2n) { animation-delay: .6s; } .p-sparks circle:nth-child(3n) { animation-delay: 1.2s; }
@keyframes pSpark { 0%, 100% { transform: scale(0.4) translateY(0); opacity: 0.2; } 50% { transform: scale(1.4) translateY(-6px); opacity: 1; } }
.p-play { transform-box: fill-box; transform-origin: center; animation: pPulse 2.2s ease-in-out infinite; }
@keyframes pPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.p-ring { transform-box: fill-box; transform-origin: center; animation: pRing 2.2s ease-out infinite; }
@keyframes pRing { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.9); opacity: 0; } }
.p-prog { transform-box: fill-box; transform-origin: left center; animation: pProg 9s linear infinite; }
@keyframes pProg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .p-img, .p-shine, .p-sparks circle, .p-play, .p-ring, .p-prog { animation: none !important; } .p-shine { opacity: 0; } }
