/* Adventný kalendár OUI! 2026 — identité OUI! francúzština */
:root {
  --bg: #EDECE8; --paper: #FFFDF8; --paper-2: #F7F4EC; --ink: #241F1C; --muted: #6F6960; --line: #E0DACF;
  --pink: #E947ED; --pink-deep: #B81BBD; --pink-soft: #FBE4FB;
  --yellow: #E9BC32; --yellow-soft: #F7EAD0;
  --wrong: #A8372B; --wrong-soft: #F6E3DF; --right: #1D7348; --right-soft: #E2F0E6;
  --fir: #2F4A3F;
  --display: "Montserrat", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
  --script: "Allison", "Brush Script MT", cursive;
  --r-sm: 12px; --r: 18px; --r-lg: 28px;
  --shadow: 0 1px 2px rgba(80,55,10,.05), 0 10px 22px rgba(80,55,10,.06);
  --shadow-lift: 0 2px 4px rgba(80,55,10,.06), 0 18px 40px rgba(80,55,10,.12);
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.62; color: var(--ink);
  background: radial-gradient(900px 520px at 50% -6%, rgba(233,188,50,.28), transparent 60%), var(--bg);
  min-height: 100vh; overflow-x: hidden;
}
/* grain organique, très léger */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--pink-deep); }
.wrap { position: relative; z-index: 1; width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.script { font-family: var(--script); font-weight: 400; color: var(--pink); letter-spacing: 0; }
.kicker { font-family: var(--display); font-weight: 700; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--pink-deep); }

/* ---------- Bandeau démo ---------- */
.demo-bar { position: relative; z-index: 5; background: var(--ink); color: var(--paper); text-align: center; font-family: var(--display); font-weight: 600; font-size: .82rem; padding: 10px 16px; }
.demo-bar a { color: var(--yellow); text-decoration: none; margin-left: 8px; white-space: nowrap; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 20; transition: background .3s, box-shadow .3s; }
.top.scrolled { background: rgba(237,236,232,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 rgba(36,31,28,.06); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; }
.brand b { font-family: var(--display); font-weight: 800; font-size: 1rem; letter-spacing: -.01em; }
.brand span { font-family: var(--display); font-weight: 500; color: var(--muted); font-size: .92rem; }
.prog { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: .85rem; color: var(--muted); }
.prog svg { width: 34px; height: 34px; transform: rotate(-90deg); }
.prog .track { stroke: var(--line); }
.prog .val { stroke: var(--pink-deep); transition: stroke-dashoffset .8s var(--ease); }
.prog b { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(20px, 5vw, 56px) 0 clamp(40px, 7vw, 88px); }
.hero h1 { margin: 14px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 11vw, 8.6rem); line-height: .86; letter-spacing: -.055em; }
.hero h1 .script { display: block; font-size: .8em; line-height: .9; margin: -.06em 0 0 .18em; transform: rotate(-4deg); transform-origin: left; letter-spacing: 0; }
.hero .lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 33ch; margin: 26px 0 26px; line-height: 1.55; }
.hero .lead strong { color: var(--ink); font-weight: 800; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.status-note { font-family: var(--display); font-weight: 600; font-size: .9rem; color: var(--muted); }
.status-note b { color: var(--ink); }
.count { display: inline-flex; gap: 6px; }
.count span { display: grid; place-items: center; min-width: 58px; padding: 8px 10px 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1; }
.count small { display: block; font-size: .58rem; font-weight: 700; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin-top: 5px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-family: var(--display); font-weight: 600; font-size: .78rem; color: var(--ink); white-space: nowrap; }
.pill.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill.pink { background: var(--pink-soft); border-color: #F3C4F4; color: var(--pink-deep); }

.hero-fig { position: relative; margin: 0; }
.hero-fig .ph { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lift); background: #2a2622; }
.hero-fig .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.hero-fig:hover .ph img { transform: scale(1.0); }
.hero-fig figcaption { position: absolute; left: 18px; bottom: 18px; color: var(--paper); font-family: var(--display); font-weight: 600; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.seal { position: absolute; top: -26px; right: -18px; width: 124px; height: 124px; animation: spin 26s linear infinite; }
.seal text { font-family: var(--display); font-weight: 800; font-size: 10.4px; letter-spacing: .28em; fill: var(--ink); }
.seal .core { fill: var(--pink); }
.seal-logo { position: absolute; top: 6px; right: 13px; width: 66px; height: 66px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 999px; padding: 14px 24px; background: var(--ink); color: var(--paper); font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: -.005em; text-decoration: none; transition: transform .2s var(--ease), background .2s, box-shadow .2s; box-shadow: 0 6px 16px rgba(36,31,28,.18); }
.btn:hover { transform: translateY(-1px); background: #000; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.pink { background: var(--pink-deep); box-shadow: 0 6px 16px rgba(184,27,189,.28); }
.btn.pink:hover { background: #9E159F; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.small { padding: 10px 16px; font-size: .84rem; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); transition: background .2s, transform .2s; flex: none; }
.icon-btn:hover { background: var(--paper-2); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Section ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-head h2 { margin: 6px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.04em; line-height: 1; }
.sec-head h2 .script { font-size: 1.15em; margin-left: .1em; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--display); font-weight: 600; font-size: .78rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }

/* ---------- Grille des portes ---------- */
.grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 170px; gap: 14px; grid-auto-flow: dense; }
.door { position: relative; border: 0; padding: 0; background: none; perspective: 1100px; border-radius: var(--r); text-align: left; -webkit-tap-highlight-color: transparent; }
.door.big { grid-column: span 2; grid-row: span 2; }
.door.wide { grid-column: span 2; }
.door .in, .door .leaf { position: absolute; inset: 0; border-radius: var(--r); }
.door .in { background: var(--paper-2); box-shadow: inset 0 3px 14px rgba(60,40,10,.16); padding: 16px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.door .in .t { font-family: var(--display); font-weight: 700; font-size: .98rem; line-height: 1.2; letter-spacing: -.01em; }
.door.big .in .t { font-size: 1.35rem; }
.door .in .n { font-family: var(--display); font-weight: 800; font-size: .7rem; letter-spacing: .14em; color: var(--muted); }
.door .in .st { font-family: var(--display); font-weight: 700; font-size: .76rem; color: var(--pink-deep); display: flex; align-items: center; gap: 6px; }
.door .in .st svg { width: 16px; height: 16px; }
.door .in .st.go { color: var(--ink); }
.door .in .sc { position: absolute; right: 12px; bottom: 6px; font-family: var(--script); font-size: 2.4rem; color: var(--pink); opacity: .5; line-height: 1; pointer-events: none; }
.door .leaf { transform-origin: left center; transition: transform .85s var(--ease), box-shadow .85s; backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: 14px 16px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; box-shadow: 0 1px 1px rgba(60,40,10,.06), 0 8px 18px rgba(60,40,10,.08); }
.door .leaf::after { content: ""; position: absolute; inset: 7px; border-radius: calc(var(--r) - 6px); border: 1.5px dashed currentColor; opacity: .16; pointer-events: none; }
.door:hover .leaf { transform: rotateY(-7deg); box-shadow: 8px 12px 26px rgba(60,40,10,.16); }
.door.opening .leaf { transform: rotateY(-112deg); box-shadow: 20px 10px 30px rgba(60,40,10,.12); }
.door.open .leaf { display: none; }
.door:not(.open) .in { visibility: hidden; }
.door.opening .in { visibility: visible; }
.door:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.d-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; position: relative; z-index: 1; }
.d-date { font-family: var(--display); font-weight: 700; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.d-num { font-family: var(--display); font-weight: 800; font-size: 3.6rem; line-height: .8; letter-spacing: -.06em; position: relative; z-index: 1; }
.door.big .d-num { font-size: 7.4rem; }
.door.wide .d-num { font-size: 4.2rem; }
.d-script { font-family: var(--script); font-size: 1.75rem; line-height: 1; position: absolute; right: 14px; top: 38px; z-index: 1; transform: rotate(-5deg); transform-origin: right; opacity: .95; white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: clip; padding: 4px 2px; }
.door.big .d-script, .door.wide .d-script { top: auto; bottom: 16px; font-size: 2.2rem; }
.door.big .d-script { font-size: 2.9rem; right: 20px; bottom: 20px; }
.d-lock { width: 16px; height: 16px; opacity: .55; }
.d-today { font-family: var(--display); font-weight: 800; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--pink); color: #fff; }
.door.today .leaf { box-shadow: 0 0 0 3px var(--pink), 0 10px 30px rgba(233,71,237,.35); animation: glow 2.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 3px var(--pink), 0 10px 40px rgba(233,71,237,.55); } }
.door.shake { animation: shake .45s; }
@keyframes shake { 20%,60% { transform: translateX(-5px) rotate(-.6deg); } 40%,80% { transform: translateX(5px) rotate(.6deg); } }

/* styles de portes */
.s-paper .leaf { background: var(--paper); color: var(--ink); }
.s-paper .d-script { color: var(--pink); }
.s-ink .leaf { background: var(--ink); color: var(--paper); }
.s-ink .d-num { color: var(--yellow); }
.s-ink .d-script { color: var(--pink); }
.s-soft .leaf { background: var(--pink-soft); color: var(--pink-deep); }
.s-soft .d-script { color: var(--ink); opacity: .8; }
.s-yellow .leaf { background: var(--yellow-soft); color: var(--ink); }
.s-yellow .d-script { color: var(--pink-deep); }
.s-pink .leaf { background: var(--pink-deep); color: #fff; }
.s-pink .d-script { color: var(--yellow-soft); }
.s-fir .leaf { background: var(--fir); color: var(--yellow-soft); }
.s-fir .d-num { color: var(--yellow-soft); }
.s-fir .d-script { color: var(--yellow); }
.s-photo .leaf { color: #fff; background: #2a2622 center / cover no-repeat; }
.s-photo .leaf::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,14,.15) 0%, rgba(20,16,14,0) 35%, rgba(20,16,14,.55) 100%); }
.s-photo .leaf::after { opacity: .35; }
.s-photo .d-script { color: #fff; }
.done-dot { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--pink-deep); color: #fff; flex: none; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.s-pink .done-dot, .s-soft .done-dot { background: var(--ink); }
.door.is-done .d-num { opacity: .9; }
.d-seen { font-family: var(--display); font-weight: 700; font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.done-dot svg { width: 13px; height: 13px; }

/* ---------- Comment ça marche ---------- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: clamp(56px, 8vw, 96px) 0; }
.how > div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.how .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--pink); color: #fff; font-family: var(--display); font-weight: 800; box-shadow: 0 3px 0 rgba(184,27,189,.35); margin-bottom: 14px; }
.how h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; }
.how p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- Carnet ---------- */
.notebook { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); margin-bottom: clamp(56px, 8vw, 96px); }
.notebook .empty { color: var(--muted); margin: 0; }
.nb-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 28px; margin-top: 18px; }
.nb-day h4 { margin: 12px 0 6px; font-family: var(--display); font-weight: 800; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pink-deep); }
.nb-row { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.nb-row button { border: 0; background: none; padding: 0; text-align: left; font-weight: 800; color: var(--ink); }
.nb-row button:hover { color: var(--pink-deep); }
.nb-row span { color: var(--muted); margin-left: auto; text-align: right; }

/* ---------- Promo / fin ---------- */
.outro { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); color: var(--paper); margin-bottom: 56px; box-shadow: var(--shadow-lift); }
.outro .txt { padding: clamp(28px, 5vw, 56px); }
.outro h2 { margin: 10px 0 14px; font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.02; letter-spacing: -.035em; }
.outro p { color: #CFC8BE; margin: 0 0 24px; }
.outro .kicker { color: var(--yellow); }
.outro .btn { background: var(--paper); color: var(--ink); }
.outro .ph { min-height: 280px; background: center 40% / cover no-repeat; }
footer { padding: 28px 0 48px; color: var(--muted); font-family: var(--display); font-size: .8rem; font-weight: 600; text-align: center; }
footer .heart { color: var(--pink-deep); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 100; transform: translate(-50%, 30px); opacity: 0; background: var(--ink); color: var(--paper); padding: 13px 20px; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: .88rem; box-shadow: 0 12px 30px rgba(0,0,0,.25); transition: all .35s var(--ease); pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast em { font-style: normal; color: var(--yellow); }

/* =====================================================================
   Feuille du jour
   ===================================================================== */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(36,31,28,.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.overlay.show { opacity: 1; }
.sheet { position: fixed; z-index: 51; left: 50%; top: 22px; bottom: 22px; width: min(860px, calc(100% - 32px)); transform: translate(-50%, 40px) scale(.98); opacity: 0; transition: transform .5s var(--ease), opacity .35s; background: radial-gradient(700px 360px at 50% -4%, rgba(233,188,50,.22), transparent 60%), var(--bg); border-radius: var(--r-lg); box-shadow: 0 30px 80px rgba(0,0,0,.3); overflow: hidden; display: flex; flex-direction: column; }
.sheet.show { transform: translate(-50%, 0) scale(1); opacity: 1; }
.sheet-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgba(36,31,28,.07); background: rgba(237,236,232,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); flex: none; }
.sheet-bar .mid { font-family: var(--display); font-weight: 700; font-size: .8rem; color: var(--muted); }
.sheet-bar .grp { display: flex; gap: 6px; align-items: center; }
.speed { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 12px; font-family: var(--display); font-weight: 700; font-size: .76rem; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 clamp(16px, 5vw, 56px) 48px; overscroll-behavior: contain; }
.day-hero { padding: clamp(24px, 5vw, 44px) 0 8px; position: relative; }
.day-hero h2 { margin: 12px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 6.4vw, 3.7rem); line-height: .98; letter-spacing: -.045em; max-width: 14ch; }
.day-hero .script { display: block; font-size: clamp(2.6rem, 7vw, 4rem); line-height: 1; margin: 2px 0 0 4px; transform: rotate(-3deg); transform-origin: left; }
.day-hero .meta { margin-top: 18px; }
.intro { font-size: 1.08rem; line-height: 1.68; margin: 26px 0 8px; }
.intro p { margin: 0 0 14px; }
.intro p:first-child::first-letter { font-family: var(--script); font-weight: 400; float: left; font-size: 4.6rem; line-height: .7; padding: 14px 10px 0 0; color: var(--pink); }
.say { display: inline; border: 0; padding: 0 1px; background: none; font-weight: 800; color: var(--pink-deep); text-decoration: underline; text-decoration-style: dotted; text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; }
.say:hover { background: var(--pink-soft); border-radius: 4px; }
.recipe { background: var(--yellow-soft); border: 1px solid #ECD9A6; border-radius: var(--r); padding: 20px 22px; margin: 18px 0; box-shadow: var(--shadow); }
.recipe h4 { margin: 0 0 10px; font-family: var(--display); font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.recipe ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 24px; }
.recipe li { padding: 4px 0; border-bottom: 1px dashed #E2CC94; break-inside: avoid; }

/* activité */
.act { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(18px, 3.4vw, 28px); margin: 22px 0; }
.act-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.act-num { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--pink); color: #fff; font-family: var(--display); font-weight: 800; box-shadow: 0 3px 0 rgba(184,27,189,.35); }
.act.is-done .act-num { background: var(--right); box-shadow: 0 3px 0 rgba(29,115,72,.3); }
.act-head h3 { margin: 4px 0 2px; font-family: var(--display); font-weight: 700; font-size: 1.18rem; letter-spacing: -.015em; line-height: 1.25; display: inline-block; border-bottom: 3px solid var(--pink); padding-bottom: 2px; }
.act-head p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.badge-done { display: inline-flex; gap: 6px; align-items: center; margin-left: 8px; font-family: var(--display); font-weight: 700; font-size: .72rem; color: var(--right); vertical-align: 3px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.end { justify-content: flex-end; }
.row.center { justify-content: center; }
.mt { margin-top: 16px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.result { text-align: center; padding: 10px 0 4px; }
.result .big { font-family: var(--display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.04em; line-height: 1; }
.result .big small { font-size: .45em; color: var(--muted); letter-spacing: 0; }
.result p { margin: 8px 0 14px; color: var(--muted); }

/* quiz */
.q-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.q-count { font-family: var(--display); font-weight: 700; font-size: .75rem; letter-spacing: .1em; color: var(--muted); }
.q-bar { flex: 1; height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; max-width: 220px; }
.q-bar i { display: block; height: 100%; background: var(--pink); transition: width .4s var(--ease); }
.q-text { font-family: var(--display); font-weight: 700; font-size: 1.22rem; line-height: 1.3; letter-spacing: -.015em; margin: 6px 0 16px; }
.q-say { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; }
.play-big { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); box-shadow: 0 8px 20px rgba(36,31,28,.22); transition: transform .2s var(--ease); flex: none; }
.play-big:hover { transform: scale(1.05); }
.play-big svg { width: 26px; height: 26px; }
.play-big.playing { background: var(--pink-deep); }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper-2); font-weight: 700; font-size: 1.02rem; line-height: 1.35; transition: border-color .15s, background .15s, transform .15s; }
.opt:hover:not([disabled]) { border-color: var(--ink); background: var(--paper); }
.opt .k { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); font-family: var(--display); font-weight: 800; font-size: .72rem; color: var(--muted); }
.opt.ok { border-color: var(--right); background: var(--right-soft); color: #134d30; }
.opt.ok .k { background: var(--right); color: #fff; border-color: var(--right); }
.opt.ko { border-color: var(--wrong); background: var(--wrong-soft); color: #7a271e; animation: shake .4s; }
.opt.ko .k { background: var(--wrong); color: #fff; border-color: var(--wrong); }
.opt[disabled] { cursor: default; }
.opts.tf { grid-template-columns: 1fr 1fr; }
.opts.tf .opt { justify-content: center; font-family: var(--display); }
.why { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: linear-gradient(180deg, var(--yellow-soft), #FFF8EA); border: 1px solid #ECD9A6; font-size: .95rem; line-height: 1.5; }
.why.good { background: var(--right-soft); border-color: #BFDDC9; }
.why b { font-family: var(--display); }

/* cartes */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; }
.fc { position: relative; height: 128px; perspective: 900px; border: 0; padding: 0; background: none; }
.fc .f, .fc .b { position: absolute; inset: 0; border-radius: 16px; display: flex; flex-direction: column; justify-content: center; padding: 14px 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .6s var(--ease); text-align: left; }
.fc .f { background: var(--paper-2); border: 1.5px solid var(--line); }
.fc .b { background: var(--ink); color: var(--paper); transform: rotateY(180deg); }
.fc.flip .f { transform: rotateY(-180deg); }
.fc.flip .b { transform: rotateY(0); }
.fc .w { font-family: var(--display); font-weight: 700; font-size: 1.06rem; letter-spacing: -.01em; line-height: 1.2; }
.fc .art { font-weight: 800; color: var(--pink-deep); }
.fc .b .w { color: var(--yellow); }
.fc .ex { font-size: .82rem; opacity: .7; margin-top: 4px; }
.fc .spk { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); z-index: 2; }
.fc .spk svg { width: 15px; height: 15px; }
.fc .tap { position: absolute; left: 16px; bottom: 10px; font-size: .7rem; font-family: var(--display); font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* tri */
.sort-stage { display: grid; place-items: center; padding: 10px 0 4px; }
.sort-card { min-width: min(320px, 100%); text-align: center; padding: 26px 22px; border-radius: 20px; background: var(--paper-2); border: 1.5px solid var(--line); font-family: var(--display); font-weight: 800; font-size: 1.7rem; letter-spacing: -.02em; position: relative; transition: transform .35s var(--ease), opacity .35s; }
.sort-card.out-0 { transform: translateX(-60px) rotate(-6deg); opacity: 0; }
.sort-card.out-1 { transform: translateY(40px); opacity: 0; }
.sort-card.out-2 { transform: translateX(60px) rotate(6deg); opacity: 0; }
.sort-card .spk { margin: 10px auto 0; }
.buckets { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin-top: 18px; }
.bucket { padding: 16px 10px; border-radius: 16px; border: 1.5px solid var(--ink); background: var(--paper); font-family: var(--display); font-weight: 800; font-size: 1.05rem; transition: background .15s, color .15s; }
.bucket:hover { background: var(--ink); color: var(--paper); }
.sort-log { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; justify-content: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .88rem; background: var(--paper-2); border: 1px solid var(--line); }
.chip.ok { background: var(--right-soft); border-color: #BFDDC9; color: #134d30; }
.chip.ko { background: var(--wrong-soft); border-color: #E9BDB5; color: #7a271e; }

/* association */
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.match .col { display: grid; gap: 10px; align-content: start; }
.tile { width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper-2); font-weight: 700; font-size: .98rem; line-height: 1.3; min-height: 52px; transition: all .18s; }
.tile.fr { font-family: var(--display); font-weight: 700; }
.tile:hover:not([disabled]) { border-color: var(--ink); }
.tile.sel { border-color: var(--pink-deep); background: var(--pink-soft); box-shadow: 0 0 0 3px rgba(233,71,237,.18); }
.tile.ok { border-color: var(--right); background: var(--right-soft); color: #134d30; opacity: .75; }
.tile.ko { border-color: var(--wrong); background: var(--wrong-soft); animation: shake .4s; }

/* phrases à reconstruire */
.build { min-height: 58px; border-radius: 14px; border: 1.5px dashed #CFC5B3; background: var(--paper-2); padding: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.build.ok { border-style: solid; border-color: var(--right); background: var(--right-soft); }
.build.ko { border-style: solid; border-color: var(--wrong); background: var(--wrong-soft); animation: shake .4s; }
.pool { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; min-height: 44px; }
.word { padding: 9px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font-family: var(--display); font-weight: 700; font-size: 1rem; box-shadow: 0 2px 0 var(--line); transition: transform .15s; }
.word:hover { transform: translateY(-1px); border-color: var(--ink); }
.build .word { background: #fff; }
.sk-line { font-size: .95rem; color: var(--muted); margin-bottom: 10px; }
.sk-line b { color: var(--ink); }

/* étapes */
.steps { display: grid; gap: 8px; }
.step { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper-2); transition: all .2s; }
.step:hover:not([disabled]) { border-color: var(--ink); }
.step .no { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px dashed #CFC5B3; font-family: var(--display); font-weight: 800; font-size: .8rem; color: var(--muted); }
.step.on .no { background: var(--ink); border: 0; color: var(--paper); }
.step.on { background: var(--paper); }
.step.ok { border-color: var(--right); background: var(--right-soft); }
.step.ok .no { background: var(--right); }
.step.ko { border-color: var(--wrong); background: var(--wrong-soft); }
.step.ko .no { background: var(--wrong); }
.step .tx { font-weight: 700; line-height: 1.35; }
.step .tx small { display: block; font-weight: 600; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.step.chat-V .tx::before { content: "Predavač · "; font-family: var(--display); font-size: .72rem; letter-spacing: .06em; color: var(--pink-deep); text-transform: uppercase; }
.step.chat-C .tx::before { content: "Ty · "; font-family: var(--display); font-size: .72rem; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }

/* texte à trous */
.gap-text { font-size: 1.08rem; line-height: 2.25; }
.gap-sel { appearance: none; -webkit-appearance: none; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--paper) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23241F1C' stroke-width='1.6'/></svg>") right 9px center no-repeat; padding: 3px 26px 3px 10px; font-family: var(--display); font-weight: 700; font-size: .98rem; color: var(--ink); max-width: 100%; }
.gap-sel.ok { border-color: var(--right); background-color: var(--right-soft); color: #134d30; }
.gap-sel.ko { border-color: var(--wrong); background-color: var(--wrong-soft); color: #7a271e; }

/* écoute */
.player { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 18px; background: var(--ink); color: var(--paper); }
.player .play-big { background: var(--pink); }
.player b { font-family: var(--display); display: block; font-size: 1rem; }
.player span { font-size: .85rem; color: #CFC8BE; }
.lines { display: grid; gap: 6px; margin: 14px 0 6px; transition: filter .4s; }
.lines.blur { filter: blur(6px); user-select: none; pointer-events: none; }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; }
.line.cur { background: var(--pink-soft); }
.line .who { font-family: var(--display); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pink-deep); }
.line .who.b { color: var(--muted); }
.line .icon-btn { width: 32px; height: 32px; }
.line .icon-btn svg { width: 14px; height: 14px; }
.reveal { border: 0; background: none; font-family: var(--display); font-weight: 700; font-size: .82rem; color: var(--pink-deep); padding: 6px 0; display: inline-flex; gap: 6px; align-items: center; }
.reveal svg { width: 16px; height: 16px; }
.subq { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }

/* vrai/faux texte */
.read-text { background: var(--paper-2); border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; font-size: 1.04rem; line-height: 1.7; border-left: 3px solid var(--yellow); }
.read-text span { cursor: pointer; border-radius: 4px; transition: background .15s; }
.read-text span:hover, .read-text span.cur { background: var(--pink-soft); }
.source { font-size: .78rem; color: var(--muted); font-family: var(--display); font-weight: 600; margin-top: 8px; }

/* parler */
.speak-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.speak-item:last-child { border-bottom: 0; }
.speak-item .fr { font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.speak-item .sk { color: var(--muted); font-size: .9rem; }
.speak-item .tp { font-size: .84rem; color: var(--pink-deep); font-weight: 700; }
.speak-item .ctrl { display: flex; gap: 8px; }
.mic { background: var(--pink-deep); color: #fff; border-color: var(--pink-deep); }
.mic.rec { animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(233,71,237,.55); } 100% { box-shadow: 0 0 0 16px rgba(233,71,237,0); } }
.heard { grid-column: 1 / -1; font-size: .92rem; padding: 10px 12px; border-radius: 12px; background: var(--paper-2); }
.heard.good { background: var(--right-soft); }
.heard.mid { background: var(--yellow-soft); }
.heard.bad { background: var(--wrong-soft); }
.self { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); }
.self .chip { cursor: pointer; }
.self .chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* choix multiple (pick) */
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper-2); font-family: var(--display); font-weight: 700; font-size: .98rem; transition: all .15s; }
.pick.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pick.ok { background: var(--right); color: #fff; border-color: var(--right); }
.pick.ko { background: var(--wrong); color: #fff; border-color: var(--wrong); text-decoration: line-through; }
.pick.miss { border-style: dashed; border-color: var(--right); color: var(--right); }

/* memory */
.mem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mc { position: relative; aspect-ratio: 1 / .78; border: 0; padding: 0; background: none; perspective: 700px; }
.mc .f, .mc .b { position: absolute; inset: 0; border-radius: 14px; display: grid; place-items: center; padding: 8px; text-align: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .45s var(--ease); font-weight: 800; font-size: .92rem; line-height: 1.2; }
.mc .f { background: var(--ink); color: var(--yellow); font-family: var(--script); font-size: 2rem; font-weight: 400; }
.mc .b { background: var(--paper-2); border: 1.5px solid var(--line); transform: rotateY(180deg); }
.mc .b.fr { font-family: var(--display); font-weight: 700; }
.mc.up .f { transform: rotateY(-180deg); }
.mc.up .b { transform: rotateY(0); }
.mc.ok .b { background: var(--right-soft); border-color: var(--right); color: #134d30; }

/* scène */
.scene-q { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: var(--paper); margin-bottom: 12px; font-family: var(--display); font-weight: 700; }
.scene-q .icon-btn { background: transparent; color: var(--paper); border-color: rgba(255,255,255,.25); }
.scene-q .c { margin-left: auto; font-size: .72rem; letter-spacing: .1em; color: var(--yellow); white-space: nowrap; }
.scene-wrap { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #F7F4EC; }
.scene-svg { width: 100%; height: auto; display: block; }
.scene-svg [data-t], .scene-svg [data-name] { cursor: pointer; }
.scene-svg [data-t]:hover { filter: brightness(1.08) drop-shadow(0 0 6px rgba(233,71,237,.6)); }
.scene-svg .found { filter: drop-shadow(0 0 0 transparent); }
.scene-svg .found-ring { fill: none; stroke: var(--right); stroke-width: 4; stroke-dasharray: 6 5; }
.scene-fb { min-height: 26px; margin-top: 10px; font-weight: 700; font-size: .95rem; }

/* écrire */
.bank { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bank button { padding: 7px 12px; border-radius: 999px; border: 1px dashed #CFC5B3; background: var(--paper-2); font-weight: 700; font-size: .88rem; }
.bank button:hover { border-style: solid; border-color: var(--pink-deep); color: var(--pink-deep); }
.write { width: 100%; min-height: 170px; resize: vertical; border-radius: 14px; border: 1.5px solid var(--line); padding: 14px 16px; font: 500 1.04rem/1.75 var(--body); color: var(--ink); background: var(--paper) repeating-linear-gradient(180deg, transparent 0 calc(1.75em - 1px), #EFE9DD calc(1.75em - 1px) 1.75em); background-attachment: local; background-position: 0 14px; }
.write:focus { outline: none; border-color: var(--ink); }
.model { white-space: pre-wrap; background: var(--pink-soft); border-radius: 14px; padding: 14px 16px; margin-top: 12px; font-size: 1rem; line-height: 1.65; }
.wc { font-family: var(--display); font-weight: 700; font-size: .75rem; color: var(--muted); }

/* vidéo */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #111 center / cover no-repeat; border: 0; padding: 0; width: 100%; display: block; }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55)); }
.video .pb { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 74px; height: 74px; border-radius: 50%; background: rgba(255,253,248,.95); color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .2s var(--ease); }
.video:hover .pb { transform: translate(-50%, -50%) scale(1.06); }
.video .pb svg { width: 28px; height: 28px; margin-left: 4px; }
.video .vt { position: absolute; left: 16px; bottom: 12px; right: 16px; z-index: 2; color: #fff; font-family: var(--display); font-weight: 700; text-align: left; font-size: .95rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.tasks { display: grid; gap: 6px; margin-top: 14px; }
.task { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--paper-2); cursor: pointer; font-size: .96rem; line-height: 1.45; }
.task input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #CFC5B3; background: var(--paper); margin: 0; display: grid; place-items: center; cursor: pointer; }
.task input:checked { background: var(--pink-deep); border-color: var(--pink-deep); }
.task input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

/* anagramme */
.ana-hint { font-size: .95rem; color: var(--muted); margin-bottom: 12px; }
.ana-hint b { color: var(--ink); }
.slots, .letters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.slot, .letter { width: 46px; height: 54px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.4rem; }
.slot { border: 1.5px dashed #CFC5B3; background: var(--paper-2); }
.slot.full { border-style: solid; border-color: var(--ink); background: #fff; }
.slots.ok .slot { border-color: var(--right); background: var(--right-soft); color: var(--right); }
.slots.ko .slot { border-color: var(--wrong); background: var(--wrong-soft); animation: shake .4s; }
.letters { margin-top: 14px; }
.letter { border: 1.5px solid var(--ink); background: var(--paper); box-shadow: 0 3px 0 var(--ink); transition: transform .12s; }
.letter:active { transform: translateY(3px); box-shadow: none; }
.letter.used { visibility: hidden; }

/* diplôme */
.diploma { position: relative; margin-top: 16px; background: var(--paper); border-radius: 18px; padding: clamp(24px, 5vw, 48px) clamp(20px, 5vw, 48px); text-align: center; border: 1px solid var(--line); box-shadow: inset 0 0 0 10px var(--paper), inset 0 0 0 11.5px var(--pink); overflow: hidden; }
.diploma .lg { width: 66px; height: 66px; margin: 0 auto 6px; }
.diploma h4 { margin: 8px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 4.4vw, 2.6rem); letter-spacing: -.04em; line-height: 1; }
.diploma .script { font-size: clamp(2.6rem, 7vw, 4.2rem); line-height: 1.1; display: block; margin: 12px 0 2px; }
.diploma p { margin: 6px auto; max-width: 44ch; color: var(--muted); }
.diploma .sig { display: flex; justify-content: space-between; align-items: end; margin-top: 26px; font-family: var(--display); font-weight: 600; font-size: .78rem; color: var(--muted); text-align: left; gap: 16px; }
.diploma .sig .script { font-size: 2.2rem; margin: 0; color: var(--ink); }
.dip-input { width: 100%; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); font: 700 1.05rem var(--body); background: var(--paper); color: var(--ink); }
.dip-input:focus { outline: none; border-color: var(--ink); }
.promo { margin-top: 16px; padding: 18px 20px; border-radius: 16px; background: var(--ink); color: var(--paper); display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; }
.promo code { font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: .12em; color: var(--yellow); padding: 6px 12px; border: 1.5px dashed var(--yellow); border-radius: 10px; }
.promo .btn { background: var(--paper); color: var(--ink); }

/* conseil */
.tip { position: relative; margin: 30px 0 18px; padding: clamp(22px, 4vw, 32px); border-radius: var(--r); background: var(--ink); color: var(--paper); overflow: hidden; }
.tip .kicker { color: var(--yellow); }
.tip p { margin: 10px 0 0; font-size: 1.06rem; line-height: 1.6; position: relative; z-index: 1; }
.tip .q { position: absolute; right: 22px; top: 4px; font-family: var(--display); font-weight: 800; font-size: 5.5rem; color: var(--pink); opacity: .45; line-height: 1; }

/* fin de journée */
.finish { text-align: center; padding: 26px 16px 8px; position: relative; }
.finish .hint { color: var(--muted); font-size: .95rem; margin: 0 auto; max-width: 40ch; }
.dots { display: flex; justify-content: center; gap: 6px; margin: 14px 0; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: background .3s; }
.dots i.on { background: var(--right); }
.stamp { display: inline-grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; border: 3px solid var(--pink-deep); color: var(--pink-deep); transform: rotate(-10deg); position: relative; margin: 6px auto 4px; }
.stamp::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px dashed var(--pink-deep); opacity: .6; }
.stamp b { font-family: var(--script); font-size: 3.4rem; font-weight: 400; line-height: .9; display: block; }
.stamp span { font-family: var(--display); font-weight: 800; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; display: block; }
.stamp.anim { animation: stampIn .55s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes stampIn { from { transform: rotate(-10deg) scale(2.2); opacity: 0; } to { transform: rotate(-10deg) scale(1); opacity: 1; } }
.next-day { margin-top: 18px; font-family: var(--display); font-weight: 600; font-size: .92rem; color: var(--muted); }
.next-day b { color: var(--ink); }

/* porte d'accès */
.gate { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(36,31,28,.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.gate-card { width: min(440px, 100%); background: var(--paper); border-radius: var(--r-lg); padding: 32px 28px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.gate-card img { width: 66px; height: 66px; margin: 0 auto 12px; }
.gate-card h3 { margin: 6px 0 6px; font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.03em; }
.gate-card p { margin: 0 0 18px; color: var(--muted); font-size: .96rem; }
.gate-card input { text-align: center; text-transform: uppercase; letter-spacing: .18em; font-family: var(--display); font-weight: 800; }
.gate-card .err { color: var(--wrong); font-weight: 700; font-size: .88rem; min-height: 22px; margin: 8px 0 0; }
.gate-card .btn { width: 100%; margin-top: 6px; }
.gate-card .buy { display: block; margin-top: 16px; font-family: var(--display); font-weight: 700; font-size: .85rem; }

/* impression du diplôme */
#print-root { display: none; }
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body.printing > *:not(#print-root) { display: none !important; }
  body.printing::before { display: none; }
  body.printing { background: #fff; }
  body.printing #print-root { display: block; }
  #print-root .diploma { box-shadow: inset 0 0 0 10px #fff, inset 0 0 0 11.5px #E947ED; border: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; padding: 18mm; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-fig { order: -1; }
  .hero-fig .ph { aspect-ratio: 5 / 4; }
  .seal { width: 100px; height: 100px; top: -18px; right: -6px; }
  .seal-logo { width: 54px; height: 54px; top: 5px; right: 11px; }
  .how { grid-template-columns: 1fr; }
  .outro { grid-template-columns: 1fr; }
  .outro .ph { min-height: 220px; order: -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 116px; gap: 10px; }
  .d-num { font-size: 2.6rem; }
  .door.big .d-num { font-size: 5.2rem; }
  .door.wide .d-num { font-size: 3rem; }
  .d-script { font-size: 1.3rem; right: 8px; top: 28px; }
  .door.wide .d-script { font-size: 1.6rem; bottom: 10px; }
  .door.big .d-script { font-size: 2.1rem; bottom: 14px; }
  .door .leaf { padding: 11px 12px; }
  .d-date { font-size: .58rem; letter-spacing: .12em; }
  .door:not(.big):not(.wide) .dd { display: none; }
  .door .in { padding: 12px; }
  .door .in .t { font-size: .84rem; }
  .door.big .in .t { font-size: 1.1rem; }
  .door .in .sc { display: none; }
  .brand span { display: none; }
  .sheet { top: 10px; bottom: 0; width: 100%; border-radius: 22px 22px 0 0; transform: translate(-50%, 60px); }
  .sheet.show { transform: translate(-50%, 0); }
  .match { gap: 8px; }
  .tile { font-size: .88rem; padding: 10px 11px; }
  .mem { grid-template-columns: repeat(3, 1fr); }
  .line { grid-template-columns: 1fr auto; }
  .line .who { grid-column: 1 / -1; margin-bottom: -6px; }
  .recipe ul { columns: 1; }
  .slot, .letter { width: 40px; height: 48px; font-size: 1.2rem; }
  .speak-item { grid-template-columns: 1fr; }
  .opts.tf { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
