@import url("icons/style.css");
@font-face { font-family: "Geist"; src: url("fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("fonts/roboto-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --paper: #fdfdfb; --ink: #0b1330; --muted: #5a6280; --faint: #9aa0b5;
  --blue: #0a2a9a; --blue-fill: var(--blue); --blue-2: #3a5ad8; --rule: rgba(58,90,216,.16); --rule-2: rgba(58,90,216,.07);
  --margin: rgba(214,69,58,.55); --line: rgba(11,19,48,.1);
  --out: cubic-bezier(.23,1,.32,1); --inout: cubic-bezier(.65,0,.35,1);
  --w: 1080px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Geist", system-ui, sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--w); margin: 0 auto; padding-inline: 24px; position: relative; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.04em; }
h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.04; max-width: 16ch; }
.hand { font-family: "Caveat", cursive; font-weight: 600; color: var(--blue); letter-spacing: 0; }
.note { display: inline-block; font-size: 30px; line-height: 1; transform: rotate(-2deg); }
section { position: relative; padding-block: 84px; }

/* Papier Seyès */
.paper { position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(90deg, var(--rule) 1px, transparent 1px), linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(var(--rule-2) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px, 8px 8px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 80%, transparent); }
.margin { position: absolute; top: 0; bottom: 0; left: max(16px, calc(50% - var(--w) / 2 - 20px)); width: 2px; background: var(--margin); transform-origin: top; z-index: -1; }

/* Traits d'encre dessinés */
.ink { position: absolute; pointer-events: none; overflow: visible; }
.ink path { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mark { position: relative; display: inline-block; white-space: nowrap; }
.mark .ink.circle { left: -6%; top: -14%; width: 112%; height: 128%; }
.mark .ink.under { left: -2%; bottom: -12%; width: 104%; height: 14px; }

/* ── Navigation ── */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 30; }
.nav .bar { max-width: calc(var(--w) - 16px); margin: 0 auto; height: 60px; padding: 0 10px 0 12px; display: flex; align-items: center; justify-content: space-between; border-radius: 14px;
  background: rgba(253,253,251,.78); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 0 0 1px var(--line), 0 14px 30px -20px rgba(10,42,154,.35); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: .06em; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav nav { display: flex; gap: 2px; }
.nav nav a { padding: 8px 14px; border-radius: 10px; font-size: 15px; color: var(--muted); white-space: nowrap; transition: color .25s ease, background-color .25s ease; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 12px; background: var(--blue-fill); color: #fff; font-weight: 500; font-size: 15px; white-space: nowrap; transition: transform 160ms var(--out); }
.btn i { font-size: 17px; transition: transform .3s var(--out); }
.btn:active { transform: scale(.97); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn.line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) and (pointer: fine) {
  .nav nav a:hover { color: var(--ink); background: rgba(10,42,154,.05); }
  .btn:hover i { transform: translate(3px,-2px); }
}
.burger { display: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: rgba(10,42,154,.06); position: relative; cursor: pointer; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .45s var(--out); }
.burger span:first-child { transform: translateY(-4px); } .burger span:last-child { transform: translateY(4px); }
.menu-open .burger span:first-child { transform: rotate(45deg); } .menu-open .burger span:last-child { transform: rotate(-45deg); }
.overlay { position: fixed; inset: 0; z-index: 25; background: rgba(253,253,251,.95); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); display: flex; flex-direction: column; justify-content: center; padding: 0 32px; gap: 6px; opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.overlay a { font-size: 36px; font-weight: 600; letter-spacing: -.03em; transform: translateY(24px); opacity: 0; transition: transform .6s var(--out), opacity .6s var(--out); }
.menu-open .overlay { opacity: 1; pointer-events: auto; }
.menu-open .overlay a { transform: none; opacity: 1; transition-delay: calc(60ms + var(--i) * 50ms); }

/* ── Hero ── */
.hero { min-height: 100dvh; display: grid; align-items: center; padding-block: 120px 96px; overflow: hidden; isolation: isolate; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; width: 100%; }
.hero .note { font-size: 32px; }
h1 { font-size: clamp(46px, 6.4vw, 88px); line-height: 1; letter-spacing: -.05em; margin-top: 14px; }
h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em 0 .12em; margin: -.06em 0 -.12em; }
h1 .w > span { display: inline-block; }
.hero p { color: var(--muted); font-size: 19px; max-width: 42ch; margin: 28px 0 36px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sticker { position: relative; justify-self: center; width: min(320px, 80%); aspect-ratio: 1; }
.sticker .logo { position: absolute; inset: 0; transform: rotate(-5deg); filter: drop-shadow(0 30px 40px rgba(10,42,154,.35)); }
.sticker .logo img { width: 100%; height: 100%; border-radius: 22%; }
.tape { position: absolute; width: 44%; height: 16%; left: 28%; top: -6%; background: rgba(255,241,196,.9); box-shadow: 0 2px 6px rgba(0,0,0,.08); transform: rotate(-9deg); z-index: 2;
  -webkit-mask-image: linear-gradient(90deg, transparent 0 3%, #000 3% 97%, transparent 97%); mask-image: linear-gradient(90deg, transparent 0 3%, #000 3% 97%, transparent 97%); }
.sticker .hand { position: absolute; right: -14%; bottom: -18%; font-size: 30px; transform: rotate(-6deg); white-space: nowrap; }
.sticker .ink.arrow { right: 36%; bottom: -20%; width: 70px; height: 50px; }
.doodle { position: absolute; color: var(--blue); opacity: .38; font-size: 44px; z-index: -1; }
.d1 { left: 6%; top: 18%; transform: rotate(-12deg); } .d2 { right: 8%; top: 14%; transform: rotate(10deg); } .d3 { left: 44%; bottom: 10%; transform: rotate(6deg); font-size: 38px; }
.d4 { right: 4%; bottom: 20%; transform: rotate(-8deg); } .d5 { left: 30%; top: 12%; font-size: 34px; } .d6 { left: 3%; bottom: 16%; transform: rotate(14deg); font-size: 36px; }

/* ── L'entreprise ── */
.about p.big { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.28; letter-spacing: -.03em; font-weight: 500; margin: 22px 0 0; max-width: 28ch; }
.facts { margin-top: 72px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.facts div { padding: 26px 18px 0 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts b { display: block; font-size: 42px; font-weight: 600; letter-spacing: -.05em; line-height: 1; color: var(--blue); }
.facts span { color: var(--muted); font-size: 14.5px; }

/* ── Ce que nous faisons ── */
.jobs { margin-top: 56px; border-top: 1px solid var(--line); }
.job { display: grid; grid-template-columns: 80px 1fr 1.2fr; gap: 28px; align-items: start; padding: 34px 0; border-bottom: 1px solid var(--line); }
.job .ico { position: relative; width: 64px; height: 64px; display: grid; place-items: center; font-size: 30px; color: var(--blue); }
.job .ico .ink { inset: -4px; width: 72px; height: 72px; }
.job h3 { font-size: 26px; line-height: 1.12; letter-spacing: -.03em; }
.job p { margin: 0; color: var(--muted); }
.job .hand { display: block; font-size: 24px; margin-top: 6px; }

/* ── Notre domaine ── */
.domain { overflow: hidden; isolation: isolate; }
.domain .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 30px; }
.checks li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.checks .box { width: 32px; height: 32px; border: 2px solid var(--ink); border-radius: 6px; position: relative; margin-top: 4px; background: var(--paper); }
.checks .box .ink { left: 2px; top: -8px; width: 34px; height: 30px; }
.checks b { display: block; font-size: 21px; letter-spacing: -.02em; }
.checks span { color: var(--muted); }
.stamp { margin-top: 56px; width: 190px; height: 190px; border-radius: 50%; border: 3px double var(--blue); display: grid; place-items: center; text-align: center; color: var(--blue); transform: rotate(-12deg); font-weight: 700; letter-spacing: .12em; font-size: 15px; line-height: 1.3; opacity: .9; background: radial-gradient(circle, rgba(58,90,216,.06), transparent 70%); }
.stamp div { border-top: 2px solid var(--blue); border-bottom: 2px solid var(--blue); padding: 8px 4px; }
.stamp small { display: block; font-size: 10px; letter-spacing: .2em; font-weight: 600; margin-top: 4px; }

/* ── Produits : fiches bristol ── */
.cards { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.card { position: relative; background: #fff; border-radius: 6px; padding: 30px 32px 30px 40px; box-shadow: 0 1px 2px rgba(11,19,48,.06), 0 30px 60px -30px rgba(10,42,154,.35);
  background-image: linear-gradient(transparent 79px, var(--margin) 79px, var(--margin) 81px, transparent 81px), repeating-linear-gradient(transparent 0 31px, var(--rule) 31px 32px);
  background-position: 0 0, 0 96px; transition: transform .6s var(--out), box-shadow .6s var(--out); }
.card.c1 { transform: rotate(-1.6deg); } .card.c2 { transform: rotate(1.4deg); margin-top: 40px; }
.card .top { display: flex; align-items: center; gap: 14px; height: 36px; margin-bottom: 30px; }
.card .top img, .card .top svg { width: 40px; height: 40px; border-radius: 10px; }
.card .top span { font-size: 13px; color: var(--muted); }
.card h3 { font-size: 30px; letter-spacing: -.03em; line-height: 32px; }
.card p { margin: 0; color: var(--muted); line-height: 32px; }
.card ul { list-style: none; margin: 0 0 32px; padding: 0; }
.card li { line-height: 32px; display: flex; gap: 10px; align-items: center; }
.card li i { color: var(--blue); }
.card .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue); line-height: 32px; }
.card .go i { transition: transform .3s var(--out); }
.clip { position: absolute; top: -18px; right: 34px; font-size: 44px; color: #8b93ad; transform: rotate(8deg); }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: rotate(0deg) translateY(-8px); box-shadow: 0 1px 2px rgba(11,19,48,.06), 0 44px 70px -30px rgba(10,42,154,.45); }
  .card:hover .go i { transform: translateX(4px); }
}

/* ── Contact ── */
.contact { overflow: hidden; isolation: isolate; padding-block: 110px 100px; }
.contact h2 { font-size: clamp(44px, 7vw, 100px); max-width: 12ch; letter-spacing: -.055em; }
.contact .mail { display: inline-block; margin-top: 44px; font-size: clamp(22px, 2.6vw, 32px); font-weight: 500; }
.contact .cta { margin-top: 44px; }
footer .wrap { padding-block: 32px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer nav { display: flex; gap: 6px 22px; flex-wrap: wrap; }
footer nav a { display: inline-block; padding-block: 4px; }
footer .brand { padding-block: 4px; }

/* ── Mouvement ── */
.px { will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
  .margin { animation: margin 1.4s var(--inout) both .1s; }
  @keyframes margin { from { transform: scaleY(0); } }
  .sticker .logo { animation: stick .9s var(--out) both .5s; }
  @keyframes stick { from { transform: rotate(8deg) scale(1.12); opacity: 0; } }
  .tape { animation: tape .5s var(--out) both 1.2s; }
  @keyframes tape { from { transform: rotate(-9deg) scaleX(.6); opacity: 0; } }
  h1 .w > span { transform: translateY(105%); animation: up 1s var(--out) forwards; animation-delay: calc(200ms + var(--i) * 60ms); }
  @keyframes up { to { transform: none; } }
  .fade { opacity: 0; animation: fade .9s var(--out) forwards; animation-delay: calc(700ms + var(--i, 0) * 100ms); }
  @keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .rv { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--out), transform 1s var(--out); transition-delay: calc(var(--d, 0) * 60ms); }
  .rv.in { opacity: 1; transform: none; }
  .ink path { transition: stroke-dashoffset var(--dur, 900ms) var(--inout) var(--delay, 0ms); }
  .stamp.rv { transform: rotate(-12deg) scale(1.35); opacity: 0; transition: transform .45s cubic-bezier(.34,1.4,.64,1) .2s, opacity .2s ease .2s; }
  .stamp.rv.in { transform: rotate(-12deg) scale(1); opacity: .9; }
  .card.c1.rv { transform: rotate(-6deg) translateY(60px); } .card.c2.rv { transform: rotate(6deg) translateY(60px); }
  .card.c1.rv.in { transform: rotate(-1.6deg); } .card.c2.rv.in { transform: rotate(1.4deg); }
}
@media (prefers-reduced-motion: reduce) { .px { translate: none !important; } }

/* ── Mobile ── */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  section { padding-block: 72px; }
  .nav { top: 8px; } .nav .bar { margin: 0 8px; }
  .nav nav, .nav .bar .end > .btn { display: none; } .burger { display: block; }
  .hero { padding-block: 104px 64px; min-height: 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero .wrap > div:first-child { padding-left: 14px; }
  .sticker { width: 200px; }
  .sticker .hand { right: -40%; font-size: 26px; }
  .doodle { display: none; } .d2, .d4 { display: block; font-size: 30px; }
  .margin { left: 10px; }
  .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(3) { border-left: 0; padding-left: 0; } .facts div:nth-child(n+3) { margin-top: 20px; } .facts b { font-size: 34px; }
  .job { grid-template-columns: 56px 1fr; gap: 16px; } .job > p { grid-column: 2; }
  .job .ico { width: 48px; height: 48px; font-size: 24px; } .job .ico .ink { width: 56px; height: 56px; }
  .domain .grid, .cards { grid-template-columns: 1fr; gap: 40px; }
  .card.c2 { margin-top: 0; }
  .stamp { width: 150px; height: 150px; font-size: 12px; }
}

/* ═══════════ Composants des pages produit ═══════════ */
.nav nav a[aria-current="page"] { color: var(--blue); background: rgba(10,42,154,.07); }
.crumb { font-size: 14px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.crumb a { color: var(--blue); }
.lead { color: var(--muted); font-size: 19px; max-width: 50ch; margin: 22px 0 0; }
.sec-head { max-width: 760px; }
.pill-soon { display: inline-block; font-family: "Caveat"; font-weight: 700; font-size: 22px; color: #b3402c; transform: rotate(-4deg); }

/* Bulletin scotché (hero École) */
.doc { position: relative; justify-self: center; width: min(400px, 100%); background: #fff; padding: 34px 30px 30px; border-radius: 4px; transform: rotate(2.5deg);
  box-shadow: 0 1px 2px rgba(11,19,48,.08), 0 40px 70px -30px rgba(10,42,154,.4); font-size: 14px; }
.doc .tape { top: -14px; left: 34%; width: 32%; height: 30px; }
.doc header { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.doc header b { display: block; font-size: 17px; letter-spacing: -.02em; }
.doc header small { color: var(--muted); }
.doc header svg { width: 38px; height: 38px; flex: none; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; }
.doc th { text-align: left; font-weight: 400; color: var(--faint); font-size: 12px; padding: 4px 0; }
.doc td { padding: 8px 0; border-top: 1px solid var(--line); }
.doc td:not(:first-child), .doc th:not(:first-child) { text-align: right; }
.doc footer { display: flex; justify-content: flex-start; align-items: end; gap: 28px; }
.doc .avg small { color: var(--muted); display: block; font-size: 12px; }
.doc .avg b { font-size: 36px; letter-spacing: -.05em; line-height: 1; }
.doc .qr { width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; font-size: 50px; color: var(--ink); }
.doc .seal { position: absolute; right: -34px; bottom: -38px; width: 128px; height: 128px; border-radius: 50%; border: 3px double #1f7a47; color: #1f7a47; display: grid; place-items: center; text-align: center; font-weight: 700; font-size: 12px; letter-spacing: .14em; transform: rotate(-14deg); background: rgba(31,122,71,.05); }
.doc .seal i { display: block; font-size: 24px; margin-bottom: 2px; }
.doc .hand-note { position: absolute; left: -26px; top: -52px; font-size: 28px; transform: rotate(-6deg); white-space: nowrap; }

/* Journée d'école */
.day { display: grid; grid-template-columns: 4fr 6fr; gap: 56px; margin-top: 56px; }
.steps { min-width: 0; }
.step { min-height: 68vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s ease; }
.step.on { opacity: 1; }
.step .time { font-family: "Caveat"; font-weight: 700; color: var(--blue); font-size: 58px; line-height: 1; transform: rotate(-3deg); display: inline-block; }
.step h3 { font-size: 26px; line-height: 1.15; margin: 14px 0 10px; letter-spacing: -.03em; }
.step p { margin: 0; color: var(--muted); max-width: 38ch; }
.sticky { position: sticky; top: 16vh; height: 66vh; }
.bar-t { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bar-t strong { font-weight: 600; font-size: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: rgba(10,42,154,.06); color: var(--blue); white-space: nowrap; }
.chip.ok { background: #e4f3ea; color: #1f7a47; } .chip.warn { background: #fbeed8; color: #9a5b00; } .chip.bad { background: #fbe6e1; color: #b3402c; }
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.row > div { min-width: 0; }
.row small { display: block; color: var(--faint); font-size: 12.5px; }
.av { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: rgba(10,42,154,.07); color: var(--blue); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(11,19,48,.04); }
.seg i { font-style: normal; font-size: 12px; padding: 4px 9px; border-radius: 999px; color: var(--faint); }
.seg i.p { background: #1f7a47; color: #fff; } .seg i.r { background: #d38a1c; color: #fff; } .seg i.a { background: #b3402c; color: #fff; }
.bigv { font-size: 40px; font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.track { height: 6px; border-radius: 99px; background: rgba(10,42,154,.08); overflow: hidden; }
.track b { display: block; height: 100%; width: var(--p); background: var(--blue-fill); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--out) .25s; }
.tt { display: grid; grid-template-columns: 50px repeat(5, 1fr); gap: 5px; font-size: 12px; }
.tt span { padding: 9px 7px; border-radius: 6px; background: rgba(10,42,154,.04); color: var(--muted); min-height: 38px; }
.tt .h { background: none; color: var(--faint); min-height: 0; padding: 4px 0; }
.tt .c { background: rgba(10,42,154,.1); color: var(--ink); } .tt .conf { background: #fbe6e1; color: #b3402c; box-shadow: inset 0 0 0 1px #b3402c; }
.qrw { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; }
.qrbox { aspect-ratio: 1; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; position: relative; overflow: hidden; }
.qrbox i { font-size: 92px; }
.scan { position: absolute; left: 0; right: 0; top: 12%; height: 2px; background: var(--blue-2); box-shadow: 0 0 14px 3px rgba(58,90,216,.5); }
table.bul { width: 100%; border-collapse: collapse; }
.bul th { text-align: left; font-weight: 400; color: var(--faint); font-size: 12px; padding-bottom: 6px; }
.bul td { padding: 8px 0; border-top: 1px solid var(--line); }
.bul td:not(:first-child), .bul th:not(:first-child) { text-align: right; }

/* Sommaire (modules, outils) */
.toc { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 64px; }
.toc-group .hand { font-size: 30px; display: inline-block; transform: rotate(-2deg); margin-bottom: 6px; }
.toc-row { display: flex; align-items: baseline; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.toc-row b { font-weight: 600; white-space: nowrap; }
.toc-row .dots { flex: 1; border-bottom: 2px dotted rgba(10,42,154,.3); transform: translateY(-4px); min-width: 20px; }
.toc-row span { color: var(--muted); font-size: 15px; text-align: right; max-width: 60%; }

/* Rôles */
.roles { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.roles span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 15px; }
.roles i { color: var(--blue); font-size: 18px; }

/* Fiches bristol : 3e variante */
.cards.three { grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card.c3 { transform: rotate(-.8deg); margin-top: 20px; }
.card .top i.big { font-size: 34px; color: var(--blue); }
.card.plain { cursor: default; }

/* Post-it */
.postits { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 36px; }
.postit { width: 190px; min-height: 170px; padding: 20px 18px; background: #fff3b4; box-shadow: 0 18px 30px -18px rgba(90,70,0,.45); font-family: "Caveat"; font-weight: 600; font-size: 25px; line-height: 1.1; color: #3a3000; transform: rotate(var(--r, -2deg)); }
.postit i { font-size: 30px; display: block; margin-bottom: 8px; color: #6b5a00; }
.postit small { display: block; font-size: 19px; color: #6b5a00; margin-top: 8px; }

/* Téléphone + résolveur (hero Élève) */
.phone-wrap { position: relative; justify-self: center; }
.phone { position: relative; width: 290px; height: 590px; border-radius: 46px; border: 3px solid transparent; background: linear-gradient(#050506, #050506) padding-box, linear-gradient(150deg, #6a4757, #3a2430 22%, #4b2f3d 48%, #2e1c26 72%, #5e3f4e) border-box; padding: 9px; box-shadow: 0 0 0 .5px #1a0f15, inset 0 0 0 1px rgba(255,255,255,.06), 0 60px 90px -40px rgba(10,20,60,.55); transform: rotate(3deg); }
/* Coque type iPhone (titane prune foncé) : cadre en bordure dégradée, bord noir fin,
   Dynamic Island en ::after, boutons en ::before. Les boutons sont des fonds positionnés
   sur une bande plus large que la coque : action, volume + et volume − à gauche, marche à
   droite (proportions d'un iPhone 15 Pro) ; le milieu, transparent, est caché par la coque. */
.phone::before { content: ""; position: absolute; z-index: -1; top: 118px; left: -6px; right: -6px; height: 150px; pointer-events: none; background:
  linear-gradient(90deg, #2c1a23, #5d3d4c 60%, #7a5465) left 0 top 0 / 4px 26px no-repeat,
  linear-gradient(90deg, #2c1a23, #5d3d4c 60%, #7a5465) left 0 top 48px / 4px 44px no-repeat,
  linear-gradient(90deg, #2c1a23, #5d3d4c 60%, #7a5465) left 0 top 104px / 4px 44px no-repeat,
  linear-gradient(270deg, #2c1a23, #5d3d4c 60%, #7a5465) right 0 top 62px / 4px 70px no-repeat; }
.phone::after { content: ""; position: absolute; z-index: 3; top: 14px; left: 50%; width: 24%; height: 21px; transform: translateX(-50%); border-radius: 11px; background: radial-gradient(circle at 76% 50%, #1d2a44 0 2px, #0a0d14 3.5px, #000 5px) #000; }
.phone .tape { top: -14px; left: 34%; width: 32%; height: 28px; z-index: 3; }
.scr { height: 100%; border-radius: 35px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.scr header { background: var(--blue-fill); color: #fff; padding: 36px 18px 14px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.scr header b { font-size: 16px; }
.scr .body { padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.input { border-radius: 12px; background: #f1f3fa; padding: 10px 12px; min-height: 42px; display: flex; align-items: center; gap: 2px; overflow: hidden; }
.typed { color: #4a5270; white-space: nowrap; overflow: hidden; font-size: 12px; font-family: ui-monospace, monospace; }
.caret { width: 1.5px; height: 15px; background: var(--blue-fill); flex: none; }
.kind { align-self: flex-start; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: #e7ecff; color: var(--blue); opacity: 0; transition: opacity .4s ease; }
.kind.on { opacity: 1; }
.formula { font-size: 17px; min-height: 46px; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .5s ease; }
.formula.on { opacity: 1; }
.st { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #f5f6fb; font-size: 13px; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--out), transform .5s var(--out); }
.st.on { opacity: 1; transform: none; }
.st .n { width: 20px; height: 20px; border-radius: 99px; display: grid; place-items: center; background: #e7ecff; color: var(--blue); font-size: 10px; font-weight: 600; }
.st.res { background: var(--blue-fill); color: #fff; } .st.res .n { background: rgba(255,255,255,.2); color: #fff; }
.tabbar { margin-top: auto; display: flex; justify-content: space-around; padding: 10px 6px 16px; border-top: 1px solid #eef0f6; color: #9aa1b8; font-size: 20px; }
.tabbar i.on { color: var(--blue); }
img.mascot { width: auto; max-width: none; }
.phone-wrap .mascot { position: absolute; left: -150px; bottom: -10px; height: 280px; z-index: 2; }
.phone-wrap .hand { position: absolute; right: -36px; top: -64px; font-size: 28px; transform: rotate(5deg); white-space: nowrap; }
.phone-wrap .ink.arrow { right: -70px; top: 125px; width: 70px; height: 50px; transform: scaleX(-1); }

/* Grille d'outils */

/* Blocs deux colonnes */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .visual { position: relative; }
.five { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.five span { padding: 8px 14px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.five span b { font-family: "Caveat"; color: var(--blue); font-size: 22px; line-height: 1; }
.bubble { position: relative; background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: 0 0 0 1px var(--line), 0 30px 50px -30px rgba(10,42,154,.35); max-width: 360px; font-size: 15px; }
.bubble.me { margin-left: auto; background: var(--blue-fill); color: #fff; }
.bubble + .bubble { margin-top: 14px; }
.bubble small { display: block; font-size: 12px; opacity: .6; margin-bottom: 4px; }

/* Jeux */
.multi { margin-top: 56px; display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.code { display: flex; gap: 8px; }
.code span { width: 60px; height: 74px; border-radius: 12px; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 38px; font-weight: 700; color: var(--blue); }
.modes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.modes span { padding: 7px 13px; border-radius: 999px; background: rgba(10,42,154,.06); color: var(--blue); font-size: 14px; }
.contest-row { margin-top: 56px; display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; }
.contest-row img { width: 220px; mix-blend-mode: multiply; filter: brightness(1.06) contrast(1.1); transform: rotate(-10deg); }

/* Hors ligne : tableau à cocher */
.offline { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.offline li { list-style: none; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.offline ul { margin: 0; padding: 0; }
.offline .box { width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 5px; position: relative; background: var(--paper); }
.offline .box .ink { left: 1px; top: -6px; width: 26px; height: 23px; }
.offline li.no { color: var(--muted); }
.offline li.no .box { border-color: var(--faint); }
.offline li.no small { color: var(--faint); margin-left: 6px; }

/* Tarifs */
.prices { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card b.p { display: block; font-size: 34px; letter-spacing: -.04em; line-height: 32px; color: var(--blue); margin-bottom: 0; }

/* Mobile des composants */
@media (max-width: 900px) {
  .doc { width: 100%; transform: rotate(1.5deg); } .doc .hand-note { display: none; } .doc .seal { right: -8px; bottom: -30px; width: 104px; height: 104px; font-size: 10px; }
  .day { grid-template-columns: 1fr; gap: 0; margin-top: 36px; } .sticky { display: none; }
  .step { min-height: 0; opacity: 1; margin-bottom: 56px; } .step .time { font-size: 46px; }
  .seg i { padding: 3px 6px; font-size: 11px; } .row { grid-template-columns: 28px 1fr auto; gap: 10px; } .row small { display: none; }
  .tt { grid-template-columns: 38px repeat(5, 1fr); font-size: 10px; } .tt span { padding: 7px 3px; }
  .qrw { grid-template-columns: 90px 1fr; } .qrbox i { font-size: 68px; }
  .toc { grid-template-columns: 1fr; } .toc-row { flex-wrap: wrap; } .toc-row .dots { display: none; } .toc-row span { text-align: left; max-width: none; width: 100%; }
  .cards.three, .prices { grid-template-columns: 1fr; } .card.c3 { margin-top: 0; }
  .phone { width: 256px; height: 530px; } .phone-wrap .mascot { left: -40px; height: 170px; } .phone-wrap .hand, .phone-wrap .ink.arrow { display: none; }
  .split, .offline, .multi, .contest-row { grid-template-columns: 1fr; gap: 32px; }
  .contest-row img { width: 160px; }
  .code span { width: 52px; height: 64px; font-size: 32px; }
  .postit { width: calc(50% - 11px); min-height: 150px; font-size: 22px; }
}
@media (prefers-reduced-motion: no-preference) {
  .doc .seal.rv { transform: rotate(-14deg) scale(1.5); opacity: 0; transition: transform .45s cubic-bezier(.34,1.4,.64,1) .2s, opacity .2s ease .2s; }
  .doc .seal.rv.in { transform: rotate(-14deg) scale(1); opacity: 1; }
  .postit.rv { transform: rotate(var(--r, -2deg)) translateY(40px) scale(.96); }
  .postit.rv.in { transform: rotate(var(--r, -2deg)); }
  @keyframes scan { to { transform: translateY(90px); } }
  .caret { animation: blink 1s steps(1) infinite; } @keyframes blink { 50% { opacity: 0; } }
}
@media (hover: hover) and (pointer: fine) {
  .cards .card.rv.in:hover { transform: rotate(0deg) translateY(-8px); box-shadow: 0 1px 2px rgba(11,19,48,.06), 0 44px 70px -30px rgba(10,42,154,.45); }
}
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.two.center { align-items: center; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; gap: 36px; } }
.revcard { position: relative; background: #fff; border-radius: 6px; padding: 30px 32px; transform: rotate(-2deg); box-shadow: 0 1px 2px rgba(11,19,48,.06), 0 40px 70px -30px rgba(10,42,154,.4);
  background-image: repeating-linear-gradient(transparent 0 35px, var(--rule) 35px 36px); background-position: 0 58px; }
.revcard .tape { top: -14px; left: 36%; width: 28%; height: 28px; }
.revcard .hand { font-size: 28px; }
.revcard .f { font-size: 20px; line-height: 36px; min-height: 36px; }
.revcard .mascot { position: absolute; right: -60px; bottom: -40px; height: 190px; }
@media (max-width: 900px) { .revcard .mascot { height: 130px; right: -12px; bottom: -30px; } }

@media (max-width: 900px) { .dl-m { display: none; } }
/* Kofi et Afi ensemble (appel « Télécharge OptiScol Élève ») : à droite du titre, sous le texte sur mobile */
.dl-kids { position: absolute; right: max(8px, calc(50% - 700px)); bottom: 20px; width: min(560px, 40vw); height: auto; pointer-events: none; }
@media (max-width: 900px) { .dl-kids { position: static; display: block; width: min(100%, 440px); margin: 32px auto 0; } }

/* ═══════════ Niveau 1 : scènes animées ═══════════ */
.paper-card { position: relative; background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(11,19,48,.06), 0 40px 80px -40px rgba(10,42,154,.45); }
.paper-card > .tape { top: -14px; left: 40%; width: 22%; height: 28px; }
.stampx { position: absolute; display: grid; place-items: center; text-align: center; border-radius: 50%; font-weight: 700; letter-spacing: .14em; line-height: 1.25; pointer-events: none; opacity: 0; }
.stampx.green { border: 3px double #1f7a47; color: #1f7a47; background: rgba(31,122,71,.05); }
.stampx.blue { border: 3px double var(--blue); color: var(--blue); background: rgba(58,90,216,.05); }
.stampx.red { border: 3px double #b3402c; color: #b3402c; background: rgba(179,64,44,.05); }
.stampx small { display: block; font-size: .72em; letter-spacing: .2em; font-weight: 600; }
.seq-fade { transition: opacity .35s ease; }
.seq-fade.out { opacity: 0; }
.ln-list { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: n; display: flex; flex-direction: column; gap: 14px; }
.ln-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: baseline; }
.ln-list li::before { counter-increment: n; content: counter(n); font-family: "Caveat"; font-weight: 700; font-size: 30px; line-height: 1; color: var(--blue); }
.ln-list b { display: block; font-size: 19px; letter-spacing: -.02em; }
.ln-list b { color: var(--ink); }
.ln-list li > span > span { color: var(--muted); font-size: 15.5px; }
.checks.sm { gap: 20px; margin-top: 36px; }
.checks.sm b { font-size: 18px; }
.checks.sm span { font-size: 15.5px; }
.tagline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tagline span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 14.5px; }
.tagline i { color: var(--blue); font-size: 17px; }

/* ── Rentrée : scène au défilement ── */
.rentree { padding-bottom: 40px; }
.rt-track { position: relative; height: 260vh; margin-top: 24px; } /* 380vh laissait un long vide sous les étapes */
.rt-stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.rt-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; width: 100%; }
.rt-steps { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: flex; flex-direction: column; gap: 6px; }
.rt-steps::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 2px; background: rgba(10,42,154,.1); border-radius: 2px; }
.rt-steps::after { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 2px; background: var(--blue-fill); border-radius: 2px; transform-origin: top; transform: scaleY(var(--p, 0)); }
.rt-steps li { position: relative; padding: 10px 0; opacity: .32; transition: opacity .4s ease; }
.rt-steps li::before { content: ""; z-index: 1; position: absolute; left: -26px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px rgba(10,42,154,.25); transition: box-shadow .3s ease, background-color .3s ease; }
.rt-steps li.on, .rt-steps li.done { opacity: 1; }
.rt-steps li.on::before { box-shadow: inset 0 0 0 2px var(--blue); background: #fff; }
.rt-steps li.done::before { background: var(--blue-fill); box-shadow: none; }
.rt-steps li.done { opacity: .6; }
.rt-steps b { display: flex; align-items: baseline; gap: 10px; font-size: 19px; letter-spacing: -.02em; }
.rt-steps b em { font-family: "Caveat"; font-style: normal; font-weight: 700; color: var(--blue); font-size: 26px; line-height: 1; }
.rt-steps span { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.rt-board { padding: 30px 30px 26px; transform: rotate(-.6deg); font-size: 14.5px; }
.rt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.rt-head b { font-size: 17px; letter-spacing: -.02em; }
.yr { position: relative; display: inline-flex; align-items: baseline; gap: 10px; }
.yr .old { position: relative; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .4s ease; }
.yr .old .ink { left: -4%; top: 30%; width: 108%; height: 40%; }
.yr .old .ink path { stroke: #b3402c; }
.yr .new { font-size: 28px; line-height: 1; clip-path: inset(0 100% 0 0); transition: clip-path .8s var(--inout) .3s; }
.s1 .yr .old { color: var(--faint); }
.s1 .yr .new { clip-path: inset(0 0 0 0); }
.rt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 16px 0 8px; font-size: 12.5px; color: var(--faint); }
.rt-cols span:last-child { transition: color .4s ease; }
.s2 .rt-cols span:last-child { color: var(--blue); }
.rt-area { position: relative; height: 216px; }
.rt-area::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed rgba(10,42,154,.2); }
.fiche { position: absolute; left: 0; top: calc(var(--i) * 54px); width: calc(50% - 10px); height: 46px; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 0 10px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 8px 16px -12px rgba(10,42,154,.4); transition: transform .9s var(--inout); transition-delay: calc(var(--i) * 90ms); z-index: 1; }
.fiche .av { width: 30px; height: 30px; font-size: 11px; }
.fiche div { min-width: 0; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fiche div small { display: block; color: var(--faint); font-size: 11.5px; }
.fiche .chip { opacity: 0; transform: scale(1.3) rotate(-6deg); transition: opacity .2s ease, transform .35s cubic-bezier(.34,1.4,.64,1); transition-delay: calc(700ms + var(--i) * 90ms); }
.s2 .fiche.up { transform: translateX(calc(100% + 20px)); }
.s2 .fiche .chip { opacity: 1; transform: none; }
.rt-panel { position: relative; height: 150px; margin-top: 14px; border-top: 1px solid var(--line); }
.ly { position: absolute; inset: 14px 0 0; display: flex; flex-direction: column; gap: 2px; opacity: 0; filter: blur(4px); transform: translateY(6px); transition: opacity .2s ease, filter .2s ease, transform .25s ease; pointer-events: none; }
.rt-board:not(.s3) .ly.i, .s3:not(.s4) .ly.t, .s4:not(.s5) .ly.f, .s5 .ly.r { opacity: 1; filter: none; transform: none; transition: opacity .5s var(--out) .15s, filter .4s ease .15s, transform .6s var(--out) .15s; }
.ly .hand { font-size: 26px; }
.ly p { margin: 4px 0 0; color: var(--muted); }
.ly .row { padding: 7px 0; grid-template-columns: 26px 1fr auto; }
.ly .row:first-child { border-top: 0; }
.ly .av { width: 26px; height: 26px; font-size: 13px; }
.ly.r { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; align-content: start; }
.ly.r div { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; }
.ly.r .box { width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 4px; position: relative; }
.ly.r .box .ink { left: 0; top: -6px; width: 24px; height: 21px; }
.ly.r b { font-size: 20px; letter-spacing: -.03em; display: block; line-height: 1.1; }
.ly.r small { color: var(--muted); font-size: 12.5px; }
.rt-stamp { right: -40px; bottom: -52px; width: 150px; height: 150px; font-size: 12px; transform: rotate(-12deg) scale(1.5); transition: transform .45s cubic-bezier(.34,1.4,.64,1), opacity .2s ease; z-index: 3; }
.rt-stamp b { display: block; font-size: 17px; letter-spacing: .06em; }
.s5 .rt-stamp { opacity: 1; transform: rotate(-12deg) scale(1); transition-delay: .5s; }
.rt-cap { display: none; }

/* ── Emploi du temps : glisser-déposer ── */
.edt { padding: 26px 26px 22px; font-size: 13px; }
.edt-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.edt-head strong { font-size: 16px; }
.views { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(11,19,48,.04); }
.views i { font-style: normal; font-size: 12px; padding: 4px 10px; border-radius: 999px; color: var(--muted); }
.views i.on { background: #fff; color: var(--blue); box-shadow: 0 1px 3px rgba(11,19,48,.12); }
.edt-pal { display: flex; align-items: center; gap: 8px; margin: 16px 0 14px; padding: 10px 12px; border-radius: 10px; background: rgba(10,42,154,.035); border: 1px dashed rgba(10,42,154,.22); }
.edt-pal > span:first-child { font-family: "Caveat"; font-weight: 700; color: var(--blue); font-size: 20px; margin-right: 4px; }
.course { display: inline-flex; flex-direction: column; padding: 6px 10px; border-radius: 7px; background: rgba(10,42,154,.1); color: var(--ink); font-size: 12px; line-height: 1.25; white-space: nowrap; }
.course small { color: var(--muted); font-size: 11px; }
.course.alt { background: #fbeed8; } .course.alt2 { background: #e4f3ea; }
.edt-grid { display: grid; grid-template-columns: 46px repeat(5, 1fr); gap: 5px; }
.edt-grid > span { min-height: 44px; border-radius: 7px; background: rgba(10,42,154,.035); padding: 5px 6px; font-size: 11.5px; line-height: 1.25; color: var(--muted); transition: background-color .25s ease, box-shadow .25s ease; }
.edt-grid > span.h { background: none; min-height: 0; padding: 2px 0; color: var(--faint); }
.edt-grid > span.f { background: rgba(10,42,154,.1); color: var(--ink); }
.edt-grid > span.f small, .edt-grid > span.good small { display: block; color: var(--muted); font-size: 10.5px; }
.edt-grid > span.bad { background: #fbe6e1; box-shadow: inset 0 0 0 1.5px #b3402c; }
.edt-grid > span.good { background: #e4f3ea; box-shadow: inset 0 0 0 1.5px #1f7a47; color: var(--ink); }
.edt-grid > span .placed { display: block; animation: none; }
.edt-status { position: relative; height: 40px; margin-top: 14px; }
.edt-status > div { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; font-size: 13.5px; opacity: 0; filter: blur(3px); transition: opacity .2s ease, filter .2s ease; }
.edt-status > div.on { opacity: 1; filter: none; transition: opacity .45s var(--out), filter .35s ease; }
.edt-status i { font-size: 20px; }
.edt-status .bad { color: #b3402c; } .edt-status .good { color: #1f7a47; } .edt-status .idle { color: var(--muted); }
.ghost { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; box-shadow: 0 16px 30px -12px rgba(10,42,154,.5); opacity: 0; }
.cursor { position: absolute; left: 0; top: 0; z-index: 6; transition: opacity .25s ease; font-size: 26px; color: var(--ink); pointer-events: none; opacity: 0; filter: drop-shadow(0 2px 2px rgba(0,0,0,.15)); }

/* ── Paie : bulletin de paie ── */
.slip { width: min(430px, 100%); justify-self: center; padding: 30px 30px 26px; transform: rotate(1.4deg); font-size: 14px; }
.slip header { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.slip header b { display: block; font-size: 17px; letter-spacing: -.02em; }
.slip header small { color: var(--muted); }
.slip header svg { width: 36px; height: 36px; flex: none; }
.slip .ln { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.slip .ln:first-of-type { border-top: 0; }
.slip .ln.sub { font-weight: 600; border-top: 1.5px solid var(--ink); }
.slip .ln.minus span:last-child { color: #b3402c; }
.slip .ln small { color: var(--faint); font-size: 12px; margin-left: 6px; }
.slip .net { display: flex; justify-content: space-between; align-items: end; margin-top: 10px; padding-top: 12px; border-top: 2px solid var(--ink); }
.slip .net small { color: var(--muted); display: block; font-size: 12px; }
.slip .net b { font-size: 34px; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.slip .net b em { font-style: normal; }
.slip .net b span { font-size: 15px; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.slip .lettres { font-family: "Caveat"; font-weight: 600; color: var(--blue); font-size: 22px; line-height: 1.15; margin-top: 8px; clip-path: inset(0 100% 0 0); }
.wf { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-top: 16px; font-size: 11.5px; }
.wf span { padding: 3px 8px; border-radius: 999px; color: var(--faint); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s ease, color .3s ease, box-shadow .3s ease; }
.wf i { color: var(--faint); font-size: 10px; }
.wf span.on { background: var(--blue-fill); color: #fff; box-shadow: none; }
.slip .paid { right: 20px; top: auto; bottom: 78px; width: 124px; height: 124px; font-size: 12px; transform: rotate(12deg) scale(1.5); transition: transform .45s cubic-bezier(.34,1.4,.64,1), opacity .2s ease; }
.slip .paid b { display: block; font-size: 20px; letter-spacing: .1em; }
.slip .hand-note { position: absolute; left: -40px; bottom: -46px; font-size: 26px; transform: rotate(-5deg); white-space: nowrap; opacity: 0; transition: opacity .6s ease; }

/* ── Comptabilité : journal ── */
.ledger-wrap { position: relative; padding-top: 72px; }
.ledger { padding: 26px 26px 20px; font-size: 13px; transform: rotate(-.5deg); }
.ledger .title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.ledger .title b { font-size: 16px; letter-spacing: -.02em; }
.ledger .title span { color: var(--muted); font-size: 12.5px; }
.jr { width: 100%; border-collapse: collapse; margin-top: 6px; font-variant-numeric: tabular-nums; }
.jr th { text-align: left; font-weight: 400; color: var(--faint); font-size: 11.5px; padding: 8px 6px 6px; }
.jr td { padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.jr td:nth-child(4), .jr td:nth-child(5), .jr th:nth-child(4), .jr th:nth-child(5) { text-align: right; width: 72px; border-left: 1px solid rgba(214,69,58,.35); }
.jr td:first-child { color: var(--faint); width: 42px; }
.jr td b { font-weight: 600; margin-right: 4px; }
.jr tr.old td { color: var(--faint); }
.jr tr.old td b { color: var(--muted); }
.jr tr.nw td { clip-path: inset(0 100% 0 0); transition: clip-path .7s var(--inout); }
.jr tr.nw td:nth-child(2) { transition-delay: 60ms; } .jr tr.nw td:nth-child(3) { transition-delay: 120ms; } .jr tr.nw td:nth-child(4) { transition-delay: 180ms; } .jr tr.nw td:nth-child(5) { transition-delay: 240ms; }
.bal { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1.5px solid var(--ink); }
.bal .ok { display: inline-flex; align-items: center; gap: 8px; color: #1f7a47; font-weight: 600; opacity: 0; transition: opacity .4s ease; }
.lockline { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(11,19,48,.035); opacity: .35; transition: opacity .4s ease; }
.lockline .lk { position: relative; width: 28px; height: 28px; font-size: 24px; color: var(--ink); }
.lockline .lk i { position: absolute; inset: 0; transition: opacity .25s ease, transform .35s var(--out); }
.lockline .lk .ph-lock { opacity: 0; transform: translateY(-3px); }
.lockline code { font-family: ui-monospace, monospace; font-size: 11.5px; color: var(--muted); }
.receipt { position: absolute; right: -22px; top: -34px; z-index: 3; width: 210px; padding: 14px 16px 12px; background: #fffdf5; border-radius: 3px; font-size: 12px; line-height: 1.45; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 20px 34px -18px rgba(90,70,0,.45); transform: rotate(5deg) translate(60px, -30px); opacity: 0; transition: transform .9s var(--out), opacity .4s ease; }
.outs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.outs span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; border-radius: 6px 6px 0 0; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 14.5px; border-top: 3px solid var(--c, var(--blue)); }
.outs i { color: var(--c, var(--blue)); font-size: 17px; }

/* états des séquences (ajoutés par cahier.js) */
.slip .ln, .slip .net { opacity: 0; transform: translateY(6px); transition: opacity .45s var(--out), transform .55s var(--out); }
.slip.p1 .ln:nth-of-type(1), .slip.p2 .ln:nth-of-type(2), .slip.p3 .ln:nth-of-type(3), .slip.p4 .ln:nth-of-type(4), .slip.p5 .ln:nth-of-type(5), .slip.p6 .ln:nth-of-type(6), .slip.p7 .ln:nth-of-type(7), .slip.p8 .net { opacity: 1; transform: none; }
.slip.p9 .lettres { clip-path: inset(0 0 0 0); transition: clip-path 1.4s var(--inout); }
.slip.p10 .wf span:nth-of-type(1), .slip.p11 .wf span:nth-of-type(2), .slip.p12 .wf span:nth-of-type(3), .slip.p13 .wf span:nth-of-type(4), .slip.p14 .wf span:nth-of-type(5) { background: var(--blue-fill); color: #fff; box-shadow: none; }
.slip.p13 .paid { opacity: 1; transform: rotate(12deg) scale(1); }
.slip.p14 .hand-note { opacity: 1; }
.ledger-wrap.p1 .receipt { opacity: 1; transform: rotate(5deg); }
.ledger-wrap.p2 .jr tr.nw1 td, .ledger-wrap.p3 .jr tr.nw2 td { clip-path: inset(0 0 0 0); }
.ledger-wrap.p2 .receipt { transform: rotate(3deg) translateY(-8px); }
.ledger-wrap.p4 .bal .ok { opacity: 1; }
.ledger-wrap.p5 .lockline { opacity: 1; }
.ledger-wrap.p5 .lk .ph-lock-open { opacity: 0; transform: translateY(3px); }
.ledger-wrap.p5 .lk .ph-lock { opacity: 1; transform: none; }

/* ── Élève : photo d'exercice ── */
.cam .scr { position: relative; background: #111; }
.cam .lyr { position: absolute; inset: 0; display: flex; flex-direction: column; transition: opacity .25s ease, filter .25s ease; }
.cam .view { padding: 42px 0 0; }
.cam .view .top { color: #fff; font-size: 13px; text-align: center; opacity: .8; }
.cam .frame { position: relative; margin: 26px auto 0; width: 236px; height: 300px; perspective: 700px; }
.cam .sheet { position: absolute; inset: 14px 4px; background: #fdfdfb; border-radius: 3px; transform: rotateX(8deg) rotate(-4deg); padding: 22px 16px 16px 30px; font-family: "Caveat"; font-weight: 600; color: #1d2a7a; font-size: 21px; line-height: 26px;
  background-image: linear-gradient(90deg, transparent 22px, var(--margin) 22px, var(--margin) 23.5px, transparent 23.5px), repeating-linear-gradient(transparent 0 25px, var(--rule) 25px 26px); background-position: 0 0, 0 20px; box-shadow: 0 20px 30px -10px rgba(0,0,0,.6); }
.cam .sheet .big { font-size: 27px; margin-top: 6px; display: block; }
.cam .br { position: absolute; width: 30px; height: 30px; border-color: #fff; border-style: solid; border-width: 0; transition: transform .6s var(--out), border-color .3s ease; }
.cam .br.a { left: 0; top: 0; border-left-width: 3px; border-top-width: 3px; border-top-left-radius: 8px; transform: translate(-14px, -18px); }
.cam .br.b { right: 0; top: 0; border-right-width: 3px; border-top-width: 3px; border-top-right-radius: 8px; transform: translate(14px, -18px); }
.cam .br.c { left: 0; bottom: 0; border-left-width: 3px; border-bottom-width: 3px; border-bottom-left-radius: 8px; transform: translate(-14px, 18px); }
.cam .br.d { right: 0; bottom: 0; border-right-width: 3px; border-bottom-width: 3px; border-bottom-right-radius: 8px; transform: translate(14px, 18px); }
.cam .sweep { position: absolute; left: 6px; right: 6px; top: 20px; height: 2px; background: #7fa0ff; box-shadow: 0 0 16px 4px rgba(127,160,255,.6); opacity: 0; }
.cam .shutter { margin: auto auto 26px; width: 58px; height: 58px; border-radius: 50%; border: 3px solid #fff; display: grid; place-items: center; transition: transform 160ms var(--out); }
.cam .shutter::after { content: ""; width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.cam .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam .read { background: #fff; opacity: 0; filter: blur(6px); }
.cam .read .body { gap: 8px; }

.cam .lbl { font-size: 11px; color: var(--faint); margin-top: 2px; }


.cam .st { padding: 7px 10px; }
.cam.p1 .br { transform: none; border-color: #7fa0ff; }
.cam.p2 .sweep { animation: sweep 1.1s var(--inout) forwards; }
@keyframes sweep { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(250px); } }
.cam.p3 .shutter { transform: scale(.9); }
.cam.p3 .flash { animation: flash .45s ease-out; }
@keyframes flash { 0% { opacity: 0; } 20% { opacity: .85; } 100% { opacity: 0; } }
.cam.p4 .view { opacity: 0; filter: blur(6px); }
.cam.p4 .read { opacity: 1; filter: none; transition: opacity .5s var(--out) .1s, filter .4s ease .1s; }

.cam-wrap { position: relative; justify-self: center; }
.cam-wrap .hand { position: absolute; left: -10px; bottom: -56px; font-size: 26px; transform: rotate(-6deg); white-space: nowrap; }
.cam-wrap .mascot { position: absolute; right: -150px; bottom: -20px; height: 250px; z-index: 2; }

/* ── Élève : lecture à voix haute ── */
.reader { padding: 28px 30px 22px; transform: rotate(1deg); }
.rd-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); font-size: 13px; color: var(--muted); }
.rd-head b { color: var(--ink); font-size: 16px; letter-spacing: -.02em; }
.rd-text { margin: 10px 0 18px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.rd-text small, .rd-pdf small { display: block; margin-bottom: 4px; font-family: "Caveat", cursive; font-size: 19px; line-height: 1.1; color: var(--blue); }
.rd-pdf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin-top: 12px; padding: 8px 12px 10px; border-radius: 8px; background: rgba(10,42,154,.04); font-size: 17px; color: var(--ink); }
.rd-pdf small { flex-basis: 100%; margin: 0; }
.rd-text .ph { border-radius: 4px; padding: 1px 2px; margin: 0 -2px; transition: background-color .25s ease, color .25s ease; }
.rd-text .ph.read { color: var(--ink); }
.rd-text .ph.now { background: #fff1a8; color: var(--ink); box-shadow: 0 0 0 2px #fff1a8; }
.player { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.pbtn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--blue-fill); color: #fff; display: grid; place-items: center; font-size: 20px; cursor: pointer; transition: transform 160ms var(--out); }
.pbtn:active { transform: scale(.94); }
.wave { display: flex; align-items: center; gap: 3px; height: 28px; }
.wave i { width: 3px; height: 100%; border-radius: 3px; background: var(--blue-2); transform: scaleY(.18); transform-origin: center; }
.playing .wave i { animation: wv .9s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -97ms); }
@keyframes wv { 0% { transform: scaleY(.15); } 50% { transform: scaleY(var(--h, .8)); } 100% { transform: scaleY(.3); } }
.pchip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 6px 11px; border-radius: 999px; background: rgba(10,42,154,.06); color: var(--blue); border: 0; font-family: inherit; cursor: pointer; font-variant-numeric: tabular-nums; transition: transform 160ms var(--out); }
.pchip:active { transform: scale(.96); }
.pchip.muted { background: rgba(11,19,48,.04); color: var(--muted); cursor: default; }
.reader .hand { position: absolute; right: -20px; top: -46px; font-size: 26px; transform: rotate(4deg); white-space: nowrap; }

/* ── Élève : librairie ── */
.shelf-scene { position: relative; padding: 40px 10px 0; }
.books { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 14px; height: 230px; }
.book { position: relative; width: 104px; height: var(--hgt, 170px); border-radius: 3px 8px 8px 3px; background: var(--bc); color: #fff; padding: 14px 12px 12px 18px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: inset 6px 0 0 rgba(0,0,0,.18), inset 7px 0 0 rgba(255,255,255,.12), 0 16px 22px -14px rgba(11,19,48,.6); transform-origin: bottom center; transition: transform .7s var(--out), box-shadow .7s var(--out); font-size: 12px; line-height: 1.2; }
.book b { font-size: 14px; letter-spacing: -.01em; line-height: 1.15; }
.book small { opacity: .75; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.book .rib { position: absolute; right: 14px; top: -2px; width: 12px; height: 0; background: #f2c14e; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); transition: height .5s var(--out) .2s; }
.book .own { position: absolute; left: 50%; top: 42%; width: 88px; height: 88px; margin: -44px 0 0 -44px; font-size: 10px; background: rgba(255,255,255,.9); transform: rotate(-14deg) scale(1.5); transition: transform .4s cubic-bezier(.34,1.4,.64,1), opacity .2s ease; }
.book .own b { font-size: 13px; letter-spacing: .12em; }
.shelf { height: 10px; margin: 0 -10px; border-radius: 3px; background: linear-gradient(#d8c3a0, #bfa37a); box-shadow: 0 12px 20px -10px rgba(90,60,20,.5); }
.buy { position: absolute; right: -6px; top: -84px; width: 220px; padding: 16px; font-size: 13px; z-index: 4; opacity: 0; transform: translateY(14px) rotate(2deg); transition: opacity .35s ease, transform .6s var(--out); }
.buy b { display: block; font-size: 14px; letter-spacing: -.01em; }
.buy small { color: var(--muted); }
.buy .pay { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; border-radius: 10px; background: var(--blue-fill); color: #fff; transition: transform 160ms var(--out); }
.buy .done { margin-top: 10px; opacity: 0; transition: opacity .3s ease; }
.shelf-scene.p1 .book.pick { transform: translateY(-26px) rotate(-4deg) scale(1.04); box-shadow: inset 6px 0 0 rgba(0,0,0,.18), 0 34px 40px -20px rgba(11,19,48,.6); }
.shelf-scene.p2 .buy { opacity: 1; transform: rotate(2deg); }
.shelf-scene.p3 .buy .pay { transform: scale(.96); }
.shelf-scene.p4 .buy .done { opacity: 1; }
.shelf-scene.p5 .book.pick .own { opacity: 1; transform: rotate(-14deg) scale(1); }
.shelf-scene.p6 .book.pick { transform: none; }
.shelf-scene.p6 .book.pick .rib, .book.owned .rib { height: 34px; }
.shelf-scene.p6 .buy { opacity: 0; transform: translateY(-8px) rotate(2deg); }
.shelf-scene .hand { position: absolute; left: 8px; top: 0; font-size: 26px; transform: rotate(-4deg); }

/* ── Élève : planning de révision ── */
.plan { padding: 24px 24px 20px; font-size: 12px; }
.plan-tabs { position: relative; display: flex; gap: 4px; margin-bottom: 14px; }
.plan-tabs button { border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--muted); padding: 6px 10px 10px; cursor: pointer; transition: color .2s ease; }
.plan-tabs button.on { color: var(--ink); font-weight: 600; }
.plan-tabs .ul { position: absolute; left: 0; bottom: 0; height: 3px; width: 1px; border-radius: 3px; background: var(--blue-fill); transform-origin: left; transition: transform .5s var(--out); }
.pg { display: grid; grid-template-columns: 34px repeat(7, 1fr); gap: 0 4px; }
.pg .dh { text-align: center; color: var(--faint); font-size: 11.5px; padding-bottom: 6px; }
.pg .hours { position: relative; height: 300px; }
.pg .hours span { position: absolute; right: 6px; font-size: 10.5px; color: var(--faint); transform: translateY(-50%); }
.pg .col { position: relative; height: 300px; border-radius: 6px; background: repeating-linear-gradient(transparent 0 42.36px, rgba(10,42,154,.07) 42.36px 42.86px), rgba(10,42,154,.02); }
.blk { position: absolute; left: 2px; right: 2px; border-radius: 5px; padding: 3px 4px; font-size: 10.5px; line-height: 1.15; overflow: hidden; }
.blk.sch { background: repeating-linear-gradient(135deg, rgba(11,19,48,.06) 0 4px, rgba(11,19,48,.1) 4px 8px); color: var(--muted); opacity: 0; transition: opacity .5s ease; transition-delay: calc(var(--i) * 40ms); }
.plan.p1 .blk.sch { opacity: 1; }
.blk.rev { background: var(--blue-fill); color: #fff; opacity: 0; transform: translateY(6px) scale(.96); transition: opacity .35s var(--out), transform .45s var(--out); transition-delay: calc(var(--i) * 60ms); }
.blk.rev.on { opacity: 1; transform: none; }
.blk.rev.gone { opacity: 0; transform: scale(.96); transition: opacity .15s ease, transform .15s ease; transition-delay: 0ms; }
.legend { display: flex; gap: 16px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.toast { position: absolute; right: -18px; top: -26px; z-index: 4; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; width: 250px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 0 0 1px var(--line), 0 24px 40px -18px rgba(10,42,154,.5); font-size: 12.5px; line-height: 1.35; opacity: 0; transform: translateY(-12px); transition: opacity .35s ease, transform .6s var(--out); }
.toast .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--blue-fill); color: #fff; display: grid; place-items: center; font-size: 18px; }
.toast b { display: block; font-size: 13px; }
.toast small { color: var(--faint); }
.plan.p3 .toast { opacity: 1; transform: none; }
.plan.p3 .toast .ic i { animation: ring 2.8s ease .4s infinite; transform-origin: top center; }
@keyframes ring { 0%, 32%, 100% { transform: rotate(0); } 8% { transform: rotate(14deg); } 24% { transform: rotate(-14deg); } }

/* Mouvement réduit : états finaux */
@media (prefers-reduced-motion: reduce) {
  .fiche, .fiche .chip, .ly, .yr .new, .rt-stamp, .slip .ln, .slip .net, .slip .lettres, .jr tr.nw td, .receipt, .book, .buy, .blk, .toast, .cam .lyr, .cam .br { transition: none !important; }
  .rt-track { height: auto; } .rt-stage { position: relative; height: auto; padding-block: 24px; }
}

/* Mobile */
@media (max-width: 900px) {
  .rt-track { height: 240vh; }
  .rt-stage { height: 100dvh; align-items: flex-start; padding-top: 84px; }
  .rt-grid { grid-template-columns: 1fr; gap: 18px; }
  .rt-steps { display: none; }
  .rt-cap { display: block; position: relative; height: 64px; }
  .rt-cap div { position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; }
  .rt-cap div.on { opacity: 1; }
  .rt-cap b { display: flex; gap: 8px; align-items: baseline; font-size: 18px; letter-spacing: -.02em; }
  .rt-cap b em { font-family: "Caveat"; font-style: normal; font-weight: 700; color: var(--blue); font-size: 26px; }
  .rt-cap span { color: var(--muted); font-size: 14px; }
  .rt-board { padding: 22px 16px 18px; transform: none; font-size: 13px; }
  .rt-area { height: 200px; } .fiche { top: calc(var(--i) * 50px); height: 44px; width: calc(50% - 6px); grid-template-columns: 1fr; padding: 0 8px; gap: 0; } .fiche .av { display: none; } .s2 .fiche.up { transform: translateX(calc(100% + 12px)); }
  .fiche .chip { position: absolute; right: -4px; top: -8px; font-size: 10.5px; padding: 2px 7px; }
  .rt-cols { gap: 12px; }
  .rt-panel { height: 170px; }
  .ly.r { grid-template-columns: 1fr 1fr; gap: 8px 12px; } .ly.r b { font-size: 17px; }
  .rt-stamp { right: -6px; bottom: -26px; width: 118px; height: 118px; font-size: 10px; } .rt-stamp b { font-size: 14px; }
  .edt { padding: 18px 12px; } .edt-grid { grid-template-columns: 34px repeat(5, 1fr); gap: 3px; } .edt-grid > span { font-size: 10px; padding: 4px 3px; min-height: 40px; } .edt-grid > span.f small, .edt-grid > span.good small { display: none; }
  .edt-pal { flex-wrap: wrap; } .views { display: none; } .edt-status { height: 52px; } .edt-status > div { font-size: 12.5px; }
  .slip { transform: none; padding: 24px 18px; } .slip .paid { right: 8px; top: auto; bottom: 96px; width: 100px; height: 100px; font-size: 10px; } .slip .paid b { font-size: 16px; } .slip .hand-note { display: none; }
  .ledger { padding: 20px 12px; transform: none; } .jr { font-size: 11.5px; } .jr th:nth-child(3), .jr td:nth-child(3) { display: none; } .jr td:nth-child(4), .jr td:nth-child(5), .jr th:nth-child(4), .jr th:nth-child(5) { width: 58px; }
  .receipt { position: relative; right: auto; top: auto; margin: 0 0 18px auto; }
  .ledger-wrap { padding-top: 0; }
  .cam-wrap .hand, .cam-wrap .mascot { display: none; }
  .reader { padding: 22px 18px; transform: none; } .reader .hand { display: none; } .rd-text { font-size: 16px; }
  .books { gap: 8px; height: 200px; } .book { width: 62px; padding: 10px 7px 8px 11px; font-size: 10px; } .book b { font-size: 11px; } .book small { font-size: 8.5px; } .book .own { width: 70px; height: 70px; margin: -35px 0 0 -35px; font-size: 8px; } .book .own b { font-size: 11px; }
  .buy { position: relative; top: auto; right: auto; width: auto; margin-top: 20px; transform: none; }
  .shelf-scene.p2 .buy, .shelf-scene.p6 .buy { transform: none; } .shelf-scene.p6 .buy { opacity: 1; }
  .plan { padding: 18px 10px 16px; } .plan-tabs button { font-size: 12px; padding: 6px 6px 10px; } .pg { grid-template-columns: 28px repeat(7, 1fr); gap: 0 2px; } .pg .col, .pg .hours { height: 260px; } .blk { font-size: 0; padding: 0; } 
  .pg .col { background: repeating-linear-gradient(transparent 0 36.6px, rgba(10,42,154,.07) 36.6px 37.14px), rgba(10,42,154,.02); }
  .toast { position: relative; right: auto; top: auto; width: auto; margin-bottom: 14px; }
  .outs { margin-top: 32px; }
}

.cam.out .lyr { opacity: 0 !important; transition: opacity .3s ease !important; }
main > section { overflow-x: clip; }
@media (max-width: 900px) {
  .receipt { transform: rotate(3deg) translateY(24px); }
  .ledger-wrap.p1 .receipt, .ledger-wrap.p2 .receipt { transform: rotate(2deg); }
  .buy { top: auto; right: auto; }
  .cam-wrap .hand { display: none; }
}
@media (max-width: 900px) {
  .rt-cap { height: 70px; margin-bottom: 22px; }
  .rt-head b { font-size: 15px; } .yr { gap: 6px; } .yr .old { font-size: 12px; white-space: nowrap; } .yr .new { font-size: 22px; white-space: nowrap; }
}
.book small { white-space: nowrap; overflow: hidden; }
.slip .lettres { max-width: 64%; }

/* ═══════════ Niveau 2 ═══════════ */
/* ── Retards : facture et règle graduée ── */
.late { padding: 28px 28px 24px; font-size: 14px; transform: rotate(.8deg); }
.late .inv-h { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.late .inv-h b { display: block; font-size: 16px; letter-spacing: -.02em; }
.late .inv-h small { color: var(--muted); }
.late .stt { position: relative; display: inline-grid; justify-items: end; }
.late .stt .chip { grid-area: 1 / 1; opacity: 0; transition: opacity .3s ease; }
.late .stt .chip.a { opacity: 1; }
.late.p3 .stt .chip.a, .late.p6 .stt .chip.b { opacity: 0; } .late.p3 .stt .chip.b { opacity: 1; } .late.p6 .stt .chip.c { opacity: 1; }
.late .ln { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.late .ln:first-of-type { border-top: 0; }
.late .ln small { color: var(--faint); font-size: 12px; margin-left: 6px; }
.late .ln.pen span:last-child { color: #b3402c; }
.late .rn { font-family: "Caveat"; font-weight: 700; font-size: 22px; line-height: 1; color: #b3402c; margin-right: 10px; opacity: 0; transform: translateY(4px) rotate(-4deg); display: inline-block; transition: opacity .3s ease, transform .5s var(--out); }
.late.p3 .rn.r1, .late.p4 .rn.r2 { opacity: 1; transform: rotate(-4deg); }
.late .tot { position: relative; display: flex; justify-content: space-between; align-items: end; padding-top: 12px; border-top: 2px solid var(--ink); }
.late .tot small { color: var(--muted); font-size: 12px; display: block; }
.late .tot b { font-size: 30px; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.late .tot .ink { left: -2%; top: 40%; width: 104%; height: 30%; }
.late .tot .ink path { stroke: var(--blue); }
.ruler { position: relative; height: 92px; margin-top: 26px; }
.ruler .base { position: absolute; left: 0; right: 0; top: 46px; height: 22px; border-top: 2px solid var(--ink);
  background: repeating-linear-gradient(90deg, rgba(11,19,48,.35) 0 1px, transparent 1px 12px) top / 100% 7px no-repeat, repeating-linear-gradient(90deg, rgba(11,19,48,.5) 0 1px, transparent 1px 60px) top / 100% 12px no-repeat; }
.ruler .grace { position: absolute; left: 12%; width: 12%; top: 32px; height: 14px; border-radius: 3px 3px 0 0; background: repeating-linear-gradient(135deg, rgba(31,122,71,.14) 0 4px, rgba(31,122,71,.28) 4px 8px); }
.ruler .rl { position: absolute; top: 72px; transform: translateX(-50%); font-size: 11.5px; color: var(--muted); white-space: nowrap; text-align: center; line-height: 1.2; }
.ruler .rl b { display: block; color: var(--ink); font-weight: 600; }
.ruler .rl.edge { transform: none; } .ruler .rl.end { transform: translateX(-100%); text-align: right; }
.ruler .bell { position: absolute; top: 4px; transform: translateX(-50%) scale(.7); opacity: .25; font-size: 18px; color: var(--muted); transition: opacity .3s ease, transform .4s cubic-bezier(.34,1.4,.64,1), color .3s ease; }
.late.p1 .bell.b1, .late.p1 .bell.b2, .late.p2 .bell.b3, .late.p2 .bell.b4 { opacity: 1; transform: translateX(-50%); color: #9a5b00; }
.late.p1 .bell.b2 { transition-delay: .9s; } .late.p2 .bell.b3 { transition-delay: .3s; } .late.p2 .bell.b4 { transition-delay: .9s; }
.ruler .mk { position: absolute; inset: 0; transform: translateX(var(--x, 0%)); transition: transform 1.3s var(--inout); pointer-events: none; }
.ruler .mk .dot { position: absolute; left: -7px; top: 39px; width: 14px; height: 14px; border-radius: 50%; background: #b3402c; box-shadow: 0 0 0 4px rgba(179,64,44,.15); }
.ruler .mk .dc { position: absolute; left: 0; top: 16px; transform: translateX(-50%); font-family: "Caveat"; font-weight: 700; font-size: 20px; color: #b3402c; line-height: 1; white-space: nowrap; }
.late.p1 .mk { --x: 12%; } .late.p2 .mk { --x: 24%; } .late.p3 .mk { --x: 60%; } .late.p4 .mk { --x: 98%; }
.late .rcp { position: absolute; right: -26px; bottom: 108px; width: 200px; padding: 12px 14px 10px; background: #fffdf5; border-radius: 3px; font-size: 12px; line-height: 1.45; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 20px 34px -18px rgba(90,70,0,.45); transform: rotate(-4deg) translate(40px, 20px); opacity: 0; transition: transform .8s var(--out), opacity .35s ease; z-index: 3; }
.late.p5 .rcp { opacity: 1; transform: rotate(-4deg); }
.late .solde { right: 30px; top: 70px; width: 120px; height: 120px; font-size: 12px; transform: rotate(-10deg) scale(1.5); transition: transform .45s cubic-bezier(.34,1.4,.64,1), opacity .2s ease; z-index: 4; }
.late .solde b { display: block; font-size: 20px; letter-spacing: .1em; }
.late.p6 .solde { opacity: 1; transform: rotate(-10deg) scale(1); }

/* ── Cartes scolaires ──
   Les deux modèles de l'app : 1 = recto verso à bandeaux, 2 = en-tête officiel.
   Tout est en em : la taille de la carte se règle d'un seul font-size sur .idc. */
.deck-wrap { position: relative; }
.deck-bar { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.deck-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(11,19,48,.05); }
.deck-tabs button { border: 0; font: inherit; font-size: 13px; padding: 6px 14px; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; transition: background-color .2s ease, color .2s ease, transform 160ms var(--out); }
.deck-tabs button small { opacity: .7; }
.deck-tabs button:active { transform: scale(.96); }
.deck-tabs button.on { background: var(--blue-fill); color: #fff; box-shadow: 0 6px 14px -8px rgba(10,42,154,.8); }
.deck-sw { display: flex; gap: 6px; }
.deck-sw button { width: 20px; height: 20px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(11,19,48,.12); transition: transform .2s var(--out), box-shadow .2s ease; }
.deck-sw button.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--a); transform: scale(1.1); }
.deck { --c1: #0a2a9a; --c2: #3a6cf0; --c3: #e8eeff; position: relative; height: 410px; perspective: 1600px; }
.deck .slot { position: absolute; left: 50%; top: 18px; width: 400px; height: 16px; margin-left: -200px; border-radius: 8px; background: #1b2140; box-shadow: inset 0 3px 6px rgba(0,0,0,.5); }
.deck .slot::after { content: ""; position: absolute; left: 12px; right: 12px; top: 6px; height: 3px; border-radius: 3px; background: #05070f; }
.idc { font-size: 16.5px; position: absolute; left: 50%; top: 104px; width: 25em; height: 15.77em; margin-left: -12.5em; transform-style: preserve-3d; transform: translateY(-110px) scale(.9); opacity: 0; transition: transform 1s var(--out), opacity .4s ease; transition-delay: calc(var(--i) * 110ms); z-index: var(--z); }
.deck.p1 .idc { opacity: 1; transform: translate(var(--tx), var(--ty)) rotate(var(--r)) scale(.92); }
.deck.p2 .idc.front { transform: translate(0, -4px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) scale(1.04); transition-delay: 0ms; cursor: pointer; }
.deck.p2 .idc.front.tilt { transition: transform .15s linear; }
.idc .in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s var(--inout); }
.idc.flip .in { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; border-radius: .85em; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fff; color: #0b1330; line-height: 1.25; box-shadow: 0 0 0 1px rgba(11,19,48,.07), 0 1px 2px rgba(0,0,0,.08), 0 26px 44px -24px rgba(10,20,60,.65); }
.face.ver { transform: rotateY(180deg); }
.face > * { position: absolute; }
.deck:not(.m2) .face.m2, .deck.m2 .face.m1 { display: none; }
.face .up { text-transform: uppercase; }

/* Pièces communes */
.idc .crest { width: 2.3em; height: 2.5em; }
.idc .crest .s { fill: var(--c1); transition: fill .5s ease; } .idc .crest .b { fill: #fff; } .idc .crest .t { fill: #f2c94c; }
.idc .ph { display: block; border-radius: .45em; overflow: hidden; background: linear-gradient(180deg, var(--c3), #fff); box-shadow: inset 0 0 0 .1em var(--c1); transition: box-shadow .5s ease; }
.idc .ph svg { width: 100%; height: 100%; display: block; }
.idc .ph svg path, .idc .ph svg circle { fill: var(--c1); opacity: .28; transition: fill .5s ease; }
.idc .qr { background: #fff; padding: .22em; border-radius: .25em; }
.idc .qr svg { display: block; width: 100%; height: 100%; }
.idc .qr path { fill: #0b1330; }
.idc .sig svg { display: block; width: 5.2em; height: 1.7em; overflow: visible; }
.idc .sig path { fill: none; stroke: var(--c1); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 0; transition: stroke .5s ease; }
.idc .sig small { display: block; border-top: 1px solid rgba(11,19,48,.25); padding-top: .25em; font-size: .46em; font-weight: 700; letter-spacing: .14em; text-align: center; color: #0b1330; }
/* Guillochis de sécurité et filigrane */
.face .guil { inset: 0; opacity: .5; background: repeating-radial-gradient(circle at 105% 115%, transparent 0 .55em, color-mix(in srgb, var(--c1) 7%, transparent) .55em .6em), repeating-radial-gradient(circle at -10% -20%, transparent 0 .7em, color-mix(in srgb, var(--c1) 5%, transparent) .7em .75em); }
.face .wm { width: 8em; height: 8.7em; left: 50%; top: 50%; margin: -4.35em 0 0 -4em; opacity: .05; }
.face .wm .b, .face .wm .t { fill: var(--c1); } .face .wm .s { fill: none; stroke: var(--c1); stroke-width: 1.2; }
/* Hologramme et reflet */
.face .holo { width: 1.9em; height: 1.9em; border-radius: 50%; background: conic-gradient(from 0deg, #ffd1f0, #c8f1ff, #d9ffd6, #fff5c2, #e6d4ff, #ffd1f0); box-shadow: inset 0 0 0 .12em rgba(255,255,255,.8), 0 .1em .3em rgba(0,0,0,.18); display: grid; place-items: center; opacity: .95; }
.face .holo::after { content: "★"; font-size: .75em; color: rgba(10,42,154,.45); }
.face .shine { inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.75) 48%, rgba(255,255,255,.2) 54%, transparent 62%); transform: translateX(-120%); mix-blend-mode: soft-light; }
.face .shine::before { content: ""; position: absolute; inset: 0; background: inherit; mix-blend-mode: normal; opacity: .5; }

/* ── Modèle 1 : recto ── */
.m1 .top { left: 1.05em; top: .95em; display: flex; align-items: center; gap: .55em; max-width: 12.5em; }
.m1 .sch b { display: block; font-size: .64em; font-weight: 800; letter-spacing: .02em; line-height: 1.15; }
.m1 .sch small { display: block; margin-top: .3em; font-size: .44em; color: #6b7390; letter-spacing: .03em; }
.m1 .flag { top: 0; right: 0; width: 11.2em; height: 3.7em; padding: .75em 1.1em 0 0; text-align: right; color: #fff; background: linear-gradient(115deg, var(--c1), var(--c2)); clip-path: polygon(1.9em 0, 100% 0, 100% 100%, 0 100%); transition: background .5s ease; }
.m1 .flag b { display: block; font-size: .8em; font-weight: 800; letter-spacing: .14em; }
.m1 .flag small { display: block; margin-top: .35em; font-size: .5em; letter-spacing: .28em; opacity: .85; }
.m1 .pcol { left: 1.05em; top: 4.35em; width: 5.3em; }
.m1 .pcol .ph { width: 5.3em; height: 6.5em; }
.m1 .mat { display: block; margin-top: .45em; text-align: center; font-size: .5em; letter-spacing: .06em; color: #6b7390; white-space: nowrap; }
.m1 .mat b { color: var(--c1); font-size: 1.2em; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.m1 .holo { left: 5.35em; top: 3.75em; width: 1.6em; height: 1.6em; }
.m1 .fields { left: 7.35em; top: 4.35em; right: 1.1em; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .52em .9em; }
.m1 .fields div.w { grid-column: 1 / -1; }
.idc dt { font-size: .44em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #8b92ab; }
.idc dd { margin: .12em 0 0; font-size: .7em; font-weight: 700; white-space: nowrap; letter-spacing: -.005em; }
.idc dd.red { color: #d6453a; font-variant-numeric: tabular-nums; }
.m1 .foot { left: 0; bottom: 0; width: 13.6em; height: 2.35em; padding: 0 2em 0 1.05em; display: flex; flex-direction: column; justify-content: center; gap: .15em; color: #fff; font-size: 1em; background: linear-gradient(100deg, var(--c1), var(--c2)); clip-path: polygon(0 0, calc(100% - 1.9em) 0, 100% 100%, 0 100%); transition: background .5s ease; }
.m1 .foot span { font-size: .47em; white-space: nowrap; opacity: .95; }
.m1 .foot i { font-size: 1.1em; vertical-align: -.12em; margin-right: .3em; }
.m1.rec .sig { right: 1.1em; bottom: .7em; }
/* ── Modèle 1 : verso ── */
.m1 .flag.l { left: 0; right: auto; width: 13.6em; padding: 0 0 0 1.1em; display: flex; align-items: center; text-align: left; clip-path: polygon(0 0, 100% 0, calc(100% - 1.9em) 100%, 0 100%); }
.m1 .flag.l b { font-size: .7em; }
.m1 .dates { right: 2.2em; top: 1.8em; text-align: right; font-size: .5em; color: #6b7390; line-height: 1.8; }
.m1 .dates b { color: #0b1330; font-variant-numeric: tabular-nums; }
.idc .rules { left: 1.2em; right: 1.3em; top: 4.6em; margin: 0; padding: 0; list-style: none; display: grid; gap: .55em; }
.idc .rules li { position: relative; padding-left: 1.2em; font-size: .52em; line-height: 1.45; color: #2b3352; }
.idc .rules li::before { content: ""; position: absolute; left: .1em; top: .42em; width: .55em; height: .55em; border-radius: 50%; background: var(--c1); box-shadow: 0 0 0 .2em var(--c3); transition: background-color .5s ease; }
.m1 .ctc { left: 1.2em; bottom: .75em; margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .18em .6em; }
.m1 .ctc dt { font-size: .42em; align-self: center; }
.m1 .ctc dd { margin: 0; font-size: .5em; font-weight: 600; }
.m1 .ctc dd.lk { color: var(--c1); }
.m1 .band { right: 0; bottom: 0; width: 12.4em; height: 3.7em; padding: 0 .55em 0 2.6em; display: flex; align-items: center; justify-content: space-between; gap: .5em; color: #fff; background: linear-gradient(100deg, var(--c1), var(--c2)); clip-path: polygon(1.9em 0, 100% 0, 100% 100%, 0 100%); transition: background .5s ease; }
.m1 .band b { font-size: .52em; letter-spacing: .06em; line-height: 1.3; }
.m1 .band .qr { position: static; width: 3em; height: 3em; }

/* ── Modèle 2 : en-tête officiel ── */
.face.m2 { background: linear-gradient(135deg, var(--c1), var(--c2)); transition: background .5s ease; }
.m2 .id-card { inset: .32em; border-radius: .6em; background: #fff; overflow: hidden; }
.m2 .id-card > * { position: absolute; }
.m2 .hd { left: .8em; right: .8em; top: .55em; display: grid; grid-template-columns: 2.6em 1fr 2.6em; align-items: center; gap: .4em; text-align: center; }
.m2 .hd .fl { width: 2.6em; height: 1.72em; border-radius: .15em; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.m2 .hd .fl svg { display: block; width: 100%; height: 100%; }
.m2 .hd .crest { justify-self: end; }
.m2 .hd .rp { display: block; font-size: .52em; font-weight: 800; letter-spacing: .12em; }
.m2 .hd .dv { display: block; font-size: .42em; font-style: italic; color: #6b7390; margin-top: .15em; }
.m2 .hd .nm { display: block; font-size: .72em; font-weight: 800; letter-spacing: .02em; color: var(--c1); margin-top: .22em; transition: color .5s ease; }
.m2 .hd .id-tt { display: inline-block; margin-top: .3em; padding: .28em .9em; border-radius: 99em; font-size: .46em; font-weight: 700; letter-spacing: .18em; color: #fff; background: var(--c1); transition: background-color .5s ease; }
.m2 .rule { left: .8em; right: .8em; top: 4.5em; height: .14em; border-radius: 1em; background: linear-gradient(90deg, var(--c1), var(--c2) 70%, transparent); }
.m2 .ph { left: .85em; top: 5.05em; width: 5em; height: 6.1em; }
.m2 .mat2 { left: 1.7em; top: 22.7em; width: 10em; text-align: center; font-size: .5em; color: #6b7390; white-space: nowrap; }
.m2 .mat2 b { display: block; font-size: 1.25em; color: #0b1330; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.m2 .id-rows { left: 6.5em; top: 5.05em; right: 4.9em; margin: 0; display: grid; gap: .38em; }
.m2 .id-rows div { display: flex; align-items: baseline; gap: .35em; }
.m2 .id-rows dt { font-size: .44em; width: 11.5em; flex: none; white-space: nowrap; }
.m2 .id-rows dd { margin: 0; font-size: .64em; }
.m2 .id-rows .id-yr dd { color: var(--c1); transition: color .5s ease; }
.m2 .qr { right: .8em; top: 7.4em; width: 3.7em; height: 3.7em; box-shadow: 0 0 0 1px rgba(11,19,48,.1); }
.m2 .holo { right: 1.7em; top: 5.05em; }
.m2 .micro { left: 0; right: 0; bottom: 1.25em; text-align: center; font-size: .36em; letter-spacing: .08em; color: #8b92ab; text-transform: uppercase; }
/* ── Modèle 2 : verso ── */
.m2 .vh { left: .9em; right: .9em; top: .75em; display: flex; justify-content: space-between; align-items: center; }
.m2 .vh b { font-size: .62em; font-weight: 800; letter-spacing: .04em; color: var(--c1); transition: color .5s ease; }
.m2 .vh small { font-size: .46em; color: #6b7390; font-variant-numeric: tabular-nums; }
.m2 .id-card .rules { top: 2.4em; right: 5.4em; left: .95em; gap: .4em; }
.m2 .urg { left: .95em; top: 7.6em; right: 5.4em; padding: .45em .6em; border-radius: .45em; background: #fff4f2; box-shadow: inset .18em 0 0 #d6453a; }
.m2 .urg dt { color: #d6453a; }
.m2 .urg dd { margin-top: .15em; font-size: .6em; }
.m2 .ver .qr, .m2 .id-card .qr.big { right: .9em; top: 2.5em; width: 4.2em; height: 4.2em; }
.m2 .id-vrf { right: 2.25em; top: 17.4em; width: 10.5em; text-align: center; font-size: .4em; line-height: 1.3; color: #6b7390; }
.m2 .id-card .sig { right: 1em; bottom: .75em; }
.m2 .id-stamp { right: 5.6em; bottom: .35em; width: 3.6em; height: 3.6em; color: var(--c1); opacity: .7; transform: rotate(-14deg); mix-blend-mode: multiply; transition: color .5s ease; }
.m2 .id-stamp svg { width: 100%; height: 100%; overflow: visible; }
.m2 .id-stamp text { font-size: 6.2px; font-weight: 700; letter-spacing: .6px; fill: currentColor; }
.m2 .id-stamp circle { fill: none; stroke: currentColor; }
.m2 .signer { left: 2.07em; bottom: 1.74em; font-size: .46em; color: #6b7390; line-height: 1.5; }
.m2 .signer b { color: #0b1330; }

/* ── Animations : la carte de devant se remplit, une fois ── */
@media (prefers-reduced-motion: no-preference) {
  .idc.fill .ph { animation: idPh .7s var(--out) .15s both; }
  .idc.fill .fields > div, .idc.fill .id-rows > div { animation: idF .5s var(--out) both; animation-delay: calc(.45s + var(--k, 0) * 110ms); }
  .idc.fill .holo { animation: idHolo .7s cubic-bezier(.34,1.5,.64,1) 1.3s both; }
  .idc.fill .qr svg { animation: idQr .9s var(--inout) 1.05s both; }
  .idc.fill .sig path { stroke-dashoffset: 200; animation: idSig 1.2s var(--inout) 1.5s forwards; }
  .idc.fill .shine { animation: idShine 1.1s var(--inout) 2.35s both; }
  .idc.fill .flag, .idc.fill .foot, .idc.fill .band { animation: idBand .7s var(--out) both; }
  .idc.fill .foot, .idc.fill .band { animation-delay: .1s; }
  .idc.back-in .ver .rules li { animation: idF .45s var(--out) both; animation-delay: calc(.5s + var(--k, 0) * 120ms); }
  .idc.back-in .ver .urg { animation: idF .45s var(--out) .9s both; }
  .idc.back-in .id-stamp { animation: idStamp .5s cubic-bezier(.34,1.5,.64,1) 1.2s both; }
  .idc.back-in .ver .shine { animation: idShine 1.1s var(--inout) 1.4s both; }
}
@keyframes idPh { from { opacity: 0; transform: scale(.92); filter: blur(4px); } }
@keyframes idF { from { opacity: 0; transform: translateY(.35em); } }
@keyframes idHolo { from { opacity: 0; transform: scale(.3) rotate(-120deg); } }
@keyframes idQr { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes idSig { to { stroke-dashoffset: 0; } }
@keyframes idShine { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes idBand { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); } }
@keyframes idStamp { from { opacity: 0; transform: rotate(-14deg) scale(1.8); } }
@media (min-width: 901px) and (max-width: 1240px) { .idc { font-size: 14px; } .deck { height: 370px; } }
.deck-foot { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: -6px; }
.deck-foot button { display: inline-flex; align-items: center; gap: 6px; border: 0; font: inherit; font-size: 13px; padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--blue); cursor: pointer; box-shadow: 0 0 0 1px var(--line), 0 6px 14px -10px rgba(10,42,154,.6); transition: transform 160ms var(--out); }
.deck-foot button:active { transform: scale(.96); }
.deck-foot button i { font-size: 15px; transition: transform .6s var(--inout); }
.deck-foot button[aria-pressed="true"] i { transform: rotateY(180deg); }
.deck-foot small { font-size: 12.5px; color: var(--faint); }

/* ── Copie de BAC ── */
.copie { padding: 26px 30px 30px 92px; transform: rotate(-1deg); font-family: "Caveat"; font-weight: 600; color: #1d2a7a; font-size: 23px; line-height: 34px;
  background-image: linear-gradient(90deg, transparent 70px, var(--margin) 70px, var(--margin) 72px, transparent 72px), repeating-linear-gradient(transparent 0 33px, var(--rule) 33px 34px); background-position: 0 0, 0 60px; }
.copie .cp-h { font-family: "Geist"; font-weight: 500; font-size: 12.5px; color: var(--muted); line-height: 1.3; height: 60px; margin: -26px 0 0 -62px; padding-top: 22px; display: flex; justify-content: space-between; }
.copie .cp-h b { color: var(--ink); font-weight: 600; }
.copie .cl { display: block; min-height: 34px; clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--inout); }
.copie .cl .katex { font-size: .82em; color: #1d2a7a; }
.copie .num { position: absolute; left: 40px; color: #b3402c; }
.copie.p1 .cl.c1, .copie.p2 .cl.c2, .copie.p3 .cl.c3, .copie.p4 .cl.c4, .copie.p5 .cl.c5, .copie.p8 .cl.c6 { clip-path: inset(0 -5% 0 0); }
.copie .tv { display: block; width: 100%; max-width: 380px; height: auto; margin: 2px 0 6px; overflow: visible; }
.copie .tv text { font-family: "Caveat"; font-weight: 600; font-size: 21px; fill: #1d2a7a; opacity: 0; transition: opacity .5s ease; }
.copie.p6 .tv text.t1, .copie.p7 .tv text.t2 { opacity: 1; }
.copie .tv .ink path, .copie .tv path { fill: none; stroke: #1d2a7a; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.copie .grade { position: absolute; right: 26px; top: 14px; width: 104px; height: 70px; }
.copie .grade span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 36px; color: #c0392b; transform: rotate(-6deg); opacity: 0; transition: opacity .3s ease .5s; }
.copie .grade .ink { inset: -6px; width: 116px; height: 82px; }
.copie .grade .ink path { stroke: #c0392b; stroke-width: 2.4; }
.copie.p9 .grade span { opacity: 1; }
.copie .prof { position: absolute; right: 30px; bottom: 16px; color: #c0392b; font-size: 24px; transform: rotate(-4deg); opacity: 0; transition: opacity .5s ease .9s; }
.copie.p9 .prof { opacity: 1; }

/* ── Concours national ── */
.contest { margin-top: 48px; padding: 30px 34px 34px; }
.frise { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.frise::before, .frise::after { content: ""; position: absolute; left: 8.33%; right: 8.33%; top: 21px; height: 2px; border-radius: 2px; }
.frise::before { background: repeating-linear-gradient(90deg, rgba(10,42,154,.22) 0 6px, transparent 6px 11px); }
.frise::after { background: var(--blue-fill); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .9s var(--inout); }
.st6 { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13.5px; color: var(--faint); transition: color .3s ease; }
.st6 i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 21px; background: var(--paper); box-shadow: inset 0 0 0 2px rgba(10,42,154,.18); color: var(--faint); transition: background-color .35s ease, box-shadow .35s ease, color .35s ease, transform .45s cubic-bezier(.34,1.4,.64,1); }
.st6.done { color: var(--muted); } .st6.done i { background: rgba(10,42,154,.08); box-shadow: none; color: var(--blue); }
.st6.on { color: var(--ink); font-weight: 600; } .st6.on i { background: var(--blue-fill); color: #fff; box-shadow: 0 10px 20px -8px rgba(10,42,154,.6); transform: scale(1.1); }
.cpanels { position: relative; height: 300px; margin-top: 26px; }
.cp { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; opacity: 0; filter: blur(5px); transform: translateY(8px); transition: opacity .25s ease, filter .25s ease, transform .3s ease; pointer-events: none; }
.cp.on { opacity: 1; filter: none; transform: none; transition: opacity .6s var(--out) .1s, filter .5s ease .1s, transform .7s var(--out) .1s; pointer-events: auto; }
.cp h3 { font-size: 28px; letter-spacing: -.03em; line-height: 1.1; }
.cp p { margin: 10px 0 0; color: var(--muted); max-width: 40ch; }
.cp .hand { font-size: 26px; display: block; margin-bottom: 6px; }
.mini { background: #fff; border-radius: 14px; padding: 20px; box-shadow: 0 0 0 1px var(--line), 0 30px 50px -30px rgba(10,42,154,.45); font-size: 14px; }
.mini .bar-t strong { font-size: 15px; }
.resv .chip.ok { opacity: 0; transform: scale(.9); transition: opacity .3s ease 1.3s, transform .4s var(--out) 1.3s; }
.cp.on .resv .chip.ok { opacity: 1; transform: none; }
.resv .btn { width: 100%; justify-content: center; margin-top: 14px; }
.cp.on .resv .btn { animation: press .3s var(--out) .9s; }
@keyframes press { 50% { transform: scale(.96); } }
.cd { display: flex; gap: 10px; justify-content: center; }
.cd div { text-align: center; }
.cd b { display: grid; place-items: center; width: 74px; height: 86px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 40px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; box-shadow: inset 0 -43px 0 rgba(255,255,255,.04); }
.cd span { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.q .qt { height: 4px; border-radius: 4px; background: rgba(10,42,154,.1); overflow: hidden; margin: 10px 0 14px; }
.q .qt b { display: block; height: 100%; background: #d38a1c; transform-origin: left; }
.cp.on .q .qt b { animation: drain 7s linear forwards; }
@keyframes drain { from { transform: scaleX(.8); } to { transform: scaleX(.25); } }
.q .ask { font-size: 17px; margin-bottom: 12px; }
.q .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.q .opts > span { padding: 9px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; transition: background-color .3s ease, box-shadow .3s ease, color .3s ease; }
.q .opts > span > b { color: var(--faint); margin-right: 6px; font-weight: 600; }
.cp.on .q .opts > span.sel { background: var(--blue-fill); color: #fff; box-shadow: none; transition-delay: 1.2s; }
.cp.on .q .opts > span.sel > b { color: rgba(255,255,255,.7); transition: color .3s ease 1.2s; }
.stages { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stages span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 14.5px; opacity: .35; transform: translateY(6px); transition: opacity .4s ease, transform .5s var(--out); }
.stages span i { font-size: 18px; color: #1f7a47; }
.stages span.fin { box-shadow: inset 0 0 0 2px var(--blue); } .stages span.fin i { color: var(--blue); }
.stages > i { color: var(--faint); }
.cp.on .stages span { opacity: 1; transform: none; }
.cp.on .stages span:nth-of-type(2) { transition-delay: .35s; } .cp.on .stages span:nth-of-type(3) { transition-delay: .7s; }
.rank .row { grid-template-columns: 30px 1fr auto; padding: 8px 0; }
.rank .row .av { width: 30px; height: 30px; }
.rank .row.me { margin: 4px -10px 0; padding: 8px 10px; border-radius: 10px; background: rgba(10,42,154,.07); border-top: 0; }
.rank .me b { color: var(--blue); }
.cert { position: relative; padding: 26px 26px 22px; text-align: center; background: #fff; border-radius: 6px; box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 7.5px rgba(184,146,42,.7), 0 30px 50px -30px rgba(10,42,154,.45); }
.cert small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.cert .hand { font-size: 38px; line-height: 1.1; margin: 8px 0 4px; }
.cert p { margin: 0 auto; font-size: 13.5px; max-width: 30ch; color: var(--muted); }
.cert img { position: absolute; right: -26px; bottom: -34px; width: 118px; mix-blend-mode: multiply; filter: brightness(1.06) contrast(1.1); transform: rotate(-12deg) scale(1.4); opacity: 0; transition: transform .45s cubic-bezier(.34,1.4,.64,1) .8s, opacity .2s ease .8s; }
.cp.on .cert img { opacity: 1; transform: rotate(-12deg); }

@media (prefers-reduced-motion: reduce) {
  .late *, .idc, .idc .in, .copie .cl, .copie .tv text, .copie .grade span, .copie .prof, .cp, .st6 i, .frise::after { transition: none !important; animation: none !important; }
}
@media (max-width: 900px) {
  .late { padding: 22px 16px; transform: none; } .late .rcp { right: 4px; bottom: 110px; width: 170px; } .late .solde { right: 8px; top: 64px; width: 96px; height: 96px; font-size: 10px; } .late .solde b { font-size: 16px; }
  .ruler .rl { font-size: 10px; } .ruler .rl.mid2 { display: none; }
  .deck { height: 318px; } .idc { font-size: 13px; top: 84px; } .deck .slot { width: 300px; margin-left: -150px; }
  .copie { padding: 22px 14px 26px 58px; font-size: 20px; transform: none; background-image: linear-gradient(90deg, transparent 44px, var(--margin) 44px, var(--margin) 46px, transparent 46px), repeating-linear-gradient(transparent 0 33px, var(--rule) 33px 34px); }
  .copie .cp-h { margin-left: -44px; flex-direction: column; } .copie .grade { right: 6px; top: 4px; transform: scale(.8); } .copie .num { left: 20px; } .copie .prof { right: 12px; bottom: 8px; font-size: 20px; }
  .contest { padding: 20px 14px 22px; } .frise { grid-template-columns: repeat(6, 1fr); } .st6 { font-size: 0; gap: 0; } .st6 i { width: 36px; height: 36px; font-size: 17px; } .frise::before, .frise::after { top: 17px; }
  .cpanels { height: 470px; } .cp { grid-template-columns: 1fr; gap: 18px; align-content: start; } .cp h3 { font-size: 23px; }
  .cd b { width: 60px; height: 72px; font-size: 32px; } .cd { gap: 6px; }
  .cert img { right: -6px; width: 90px; }
}
.book .price { font-style: normal; font-size: 11px; font-weight: 600; align-self: flex-start; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.22); white-space: nowrap; }
@media (max-width: 900px) { .book .price { font-size: 8.5px; padding: 1px 5px; } }
.late .inv-h + .ln { border-top: 0; }
.copie { padding-bottom: 66px; }
.copie .grade { right: 40px; } .copie .grade span { font-size: 30px; }
.copie .prof { bottom: 20px; }
@media (max-width: 900px) { .copie { padding-bottom: 58px; } .copie .grade { right: 8px; } }
@media (max-width: 900px) { .late .ln small { display: none; } .late .rn { font-size: 17px; margin-right: 5px; } .late .rcp { bottom: 118px; } }

/* ═══════════ Niveau 3 ═══════════ */
/* ── Intercalaires de classeur (changement de page) ── */
.binder { position: fixed; right: 0; top: 50%; z-index: 20; display: none; flex-direction: column; gap: 6px; transform: translateY(-50%); }
.binder a { --c: var(--blue); display: flex; align-items: center; gap: 10px; writing-mode: vertical-rl; padding: 18px 11px 18px 9px; border-radius: 12px 0 0 12px; background: var(--c); color: #fff; font-size: 13.5px; font-weight: 500; letter-spacing: .02em;
  box-shadow: -6px 8px 18px -10px rgba(11,19,48,.5); transform: translateX(12px); transition: transform .45s var(--out), box-shadow .45s var(--out); }
.binder a i { font-size: 17px; writing-mode: horizontal-tb; }
.binder a { --c: #1B2266; } .binder a.eco { --c: #4A5BD0; } .binder a.ele { --c: #0a2a9a; }
.binder a[aria-current="page"] { transform: translateX(0); box-shadow: -10px 10px 22px -10px rgba(11,19,48,.55); }
.binder a:active { transform: translateX(2px) scale(.98); }
@media (hover: hover) and (pointer: fine) { .binder a:hover { transform: translateX(0); } }
@media (min-width: 1240px) { .binder { display: flex; } }
@media (prefers-reduced-motion: no-preference) {
  .binder a { animation: tab .8s var(--out) both; animation-delay: calc(900ms + var(--i) * 80ms); }
  @keyframes tab { from { transform: translateX(100%); } }
}

/* ── Page qui se tourne ── */
.turn { display: none; position: fixed; inset: 0; z-index: 60; transform-origin: left center; pointer-events: none; background-color: var(--paper);
  background-image: linear-gradient(90deg, transparent calc(50% - var(--w) / 2 - 20px), var(--margin) calc(50% - var(--w) / 2 - 20px), var(--margin) calc(50% - var(--w) / 2 - 18px), transparent calc(50% - var(--w) / 2 - 18px)), linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px; box-shadow: -40px 0 80px rgba(11,19,48,.18); }
.turn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,19,48,.12), transparent 30%); }
.turn img { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 22px; }
.turn-in .turn { display: block; }

/* ── FAQ en marge ── */
.faq { margin-top: 48px; border-top: 1px solid var(--line); }
.qa { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.qa .q { position: relative; font-family: "Caveat"; font-weight: 700; font-size: 27px; line-height: 1.15; color: var(--blue); padding-right: 28px; }
.qa .q .ink { right: -6px; top: 10px; width: 30px; height: 16px; }
.qa .a { margin: 0; color: var(--muted); max-width: 58ch; font-size: 16.5px; }
.qa .a b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .qa { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; } .qa .q { font-size: 25px; } .qa .q .ink { display: none; } }

/* ── Formulaire de démonstration ── */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.form { position: relative; padding: 32px 32px 28px; transform: rotate(.6deg); }
.form .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; transition: opacity .25s ease, filter .25s ease; }
.form .f { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.form .f.wide { grid-column: 1 / -1; }
.form label { font-size: 13px; color: var(--muted); }
.form input, .form select, .form textarea { appearance: none; -webkit-appearance: none; width: 100%; border: 0; border-radius: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink); padding: 8px 0 9px; border-bottom: 1.5px solid rgba(11,19,48,.2); outline: none; }
.form textarea { resize: vertical; min-height: 64px; line-height: 1.5; }
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 22px; }
.form input::placeholder, .form textarea::placeholder { color: var(--faint); }
.form .u { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue-fill); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--out); pointer-events: none; }
.form .f:focus-within .u { transform: scaleX(1); }
.form .f.bad input, .form .f.bad select { border-bottom-color: #b3402c; }
.form .f.bad .u { background: #b3402c; }
.form .err { position: absolute; right: 0; top: -6px; font-family: "Caveat"; font-weight: 700; font-size: 19px; color: #b3402c; opacity: 0; transform: translateY(4px) rotate(-3deg); transition: opacity .2s ease, transform .3s var(--out); pointer-events: none; white-space: nowrap; }
.form .f.bad .err { opacity: 1; transform: rotate(-3deg); }
.form .send { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.form .send small { color: var(--faint); font-size: 13px; max-width: 30ch; }
.form .btn { border: 0; cursor: pointer; font-family: inherit; }
.form .sent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 32px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .3s ease, transform .5s var(--out); }
.form .sent .tick { position: relative; width: 84px; height: 84px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(31,122,71,.35); }
.form .sent .tick .ink { left: 18px; top: 16px; width: 50px; height: 46px; }
.form .sent .tick .ink path { stroke: #1f7a47; stroke-width: 4; }
.form .sent h3 { font-size: 28px; letter-spacing: -.03em; }
.form .sent p { margin: 0; color: var(--muted); max-width: 36ch; }
.form .sent button { border: 0; background: none; font: inherit; color: var(--blue); cursor: pointer; margin-top: 6px; text-decoration: underline; text-underline-offset: 4px; }
.form.done .fields, .form.done .send { opacity: 0; filter: blur(4px); pointer-events: none; }
.form.done .sent { opacity: 1; transform: none; pointer-events: auto; transition-delay: .15s; }
.form .hand-note { position: absolute; left: -30px; top: -46px; font-size: 26px; transform: rotate(-5deg); white-space: nowrap; }
.demo .contact-alt { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.demo .contact-alt a { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; }
.demo .contact-alt i { color: var(--blue); font-size: 22px; }
@media (max-width: 900px) {
  .demo { grid-template-columns: 1fr; gap: 40px; }
  .form { padding: 24px 18px; transform: none; } .form .fields { grid-template-columns: 1fr; gap: 18px; } .form .hand-note { display: none; }
}
.form .err { top: auto; bottom: -24px; right: auto; left: 0; font-size: 18px; transform: translateY(-4px) rotate(-2deg); }
.form .f.bad .err { transform: rotate(-2deg); }
.form .fields { row-gap: 30px; }
@media (min-width: 901px) { .demo { grid-template-columns: 1fr 1.08fr; } }

/* Menu mobile : sections de la page, puis les autres pages */
.overlay { gap: 4px; }
.overlay .ol-h { font-family: "Caveat"; font-weight: 700; font-size: 22px; color: var(--blue); margin: 14px 0 2px; transform: translateY(24px); opacity: 0; transition: transform .6s var(--out), opacity .6s var(--out); }
.overlay .ol-h:first-child { margin-top: 0; }
.overlay .ol-pages { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.overlay a.sm { font-size: 22px; font-weight: 500; color: var(--muted); }
.overlay a.btn { align-self: flex-start; margin-top: 22px; font-size: 16px; font-weight: 500; letter-spacing: 0; }
.menu-open .overlay .ol-h { transform: none; opacity: 1; transition-delay: calc(60ms + var(--i) * 50ms); }

/* ═══════════ Écrans de l'app OptiScol Élève (fidèles aux captures) ═══════════ */
.scr.app { position: relative; background: #F8F9FA; color: #191C1D; font-family: "Roboto", system-ui, sans-serif; letter-spacing: 0; }
.app .sb { display: flex; justify-content: space-between; align-items: center; height: 26px; padding: 6px 22px 0 26px; font-size: 10px; font-weight: 500; color: #fff; background: #2236A0; }
.app .sb span:last-child { display: flex; gap: 4px; align-items: center; }
.app .sb.light { background: #F8F9FA; color: #191C1D; }
.app .ab { display: grid; grid-template-columns: 22px 1fr 20px 12px; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: #2236A0; color: #fff; font-size: 16px; }
.app .ab b { text-align: center; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; }
.app .ab.title { background: #F8F9FA; color: #191C1D; grid-template-columns: 22px 1fr 18px 18px; }
.app .ab.title b { text-align: left; letter-spacing: -.01em; font-size: 14.5px; }
.app .ab.title i:not(:first-child) { color: #2236A0; }
.app .pills { display: flex; align-items: center; gap: 12px; padding: 9px 10px 7px; color: #9aa0ad; font-size: 15px; overflow: hidden; white-space: nowrap; }
.app .pills .on { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 11px; border-radius: 13px; background: #2236A0; color: #fff; font-size: 10.5px; font-weight: 600; }
.app .pills .on i { font-size: 13px; }
.app .seg { display: flex; margin: 0 8px; padding: 3px; border-radius: 12px; background: #EEF0F3; font-size: 9.5px; font-weight: 500; color: #4a4f5a; }
.app .seg span { flex: 1; text-align: center; padding: 6px 2px; border-radius: 9px; white-space: nowrap; }
.app .seg span.on { background: #2236A0; color: #fff; }
.app .pane { padding: 8px 10px; display: flex; flex-direction: column; gap: 7px; }
.app .blk-card { background: #F1F2F5; border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.app .lab { font-size: 7.5px; font-weight: 600; letter-spacing: .24em; color: #6b7080; text-transform: uppercase; }
.app .field { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 8px; border-radius: 12px; background: #fff; overflow: hidden; }
.app .field .fx { color: #2236A0; font-weight: 700; font-size: 10px; white-space: nowrap; }
.app .field .typed { font-family: "Roboto", system-ui, sans-serif; color: #191C1D; font-size: 11.5px; }
.app .go { display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border-radius: 14px; background: #2236A0; color: #fff; font-size: 11px; font-weight: 600; transition: transform 160ms var(--out), filter 160ms ease; }
.app .go.press { transform: scale(.96); filter: brightness(1.15); }
.app .sol { background: #fff; border-radius: 16px; box-shadow: inset 0 0 0 1px #ECEEF2; padding: 9px 10px; display: flex; flex-direction: column; gap: 5px; }
.app .sol > b { color: #2236A0; font-size: 10.5px; font-weight: 700; }
.app .sol .formula { min-height: 30px; font-size: 13px; }
.app .sol .st { background: #F3F4F5; padding: 5px 8px; font-size: 10.5px; border-radius: 10px; }
.app .sol .st .n { background: #E3E7FA; color: #2236A0; }
.app .sol .st.res { background: #2236A0; color: #fff; }
.app .kind { align-self: flex-start; margin: 0 2px; font-size: 9px; background: #E3E7FA; color: #2236A0; }
.app .nav5 { position: absolute; left: 8px; right: 8px; bottom: 8px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 2px 5px; border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: 0 0 0 1px #ECEEF2, 0 8px 18px -10px rgba(0,0,0,.25); text-align: center; color: #9aa0ad; font-size: 7.5px; }
.app .nav5 span { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.app .nav5 i { font-size: 15px; }
.app .nav5 .on { color: #2236A0; font-weight: 700; }
.app .nav5 .on::after { content: ""; width: 12px; height: 2.5px; border-radius: 2px; background: #2236A0; margin-top: 1px; }
.app .banner { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 12px; background: #E3E7FA; color: #2236A0; font-size: 9.5px; font-weight: 500; }
/* Programme d'étude */
.app .tabs2 { position: relative; display: grid; grid-template-columns: 1fr 1fr; text-align: center; border-bottom: 1px solid #DADDE3; }
.app .tabs2 button { border: 0; background: none; font: inherit; padding: 6px 0 8px; font-size: 11.5px; color: #3b3f48; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.app .tabs2 button i { font-size: 17px; }
.app .tabs2 button.on { color: #2236A0; font-weight: 500; }
.app .tabs2 .ul { position: absolute; bottom: -1px; left: 0; width: 50%; height: 3px; border-radius: 3px 3px 0 0; background: #2236A0; transform: translateX(var(--tx, 0%)) scaleX(.5); transition: transform .45s var(--out); }
.app .wk { display: flex; justify-content: space-between; padding: 8px 12px 4px; font-size: 9.5px; color: #4a4f5a; }
.app .wk b { color: #2236A0; font-variant-numeric: tabular-nums; }
.app .wkbar { margin: 0 12px; height: 4px; border-radius: 4px; background: #E3E5EA; overflow: hidden; }
.app .wkbar i { display: block; height: 100%; width: 100%; background: #2236A0; transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .6s var(--out); }
.app .days { display: flex; justify-content: space-between; padding: 10px 8px 6px; }
.app .days button { border: 0; background: none; font: inherit; width: 33px; padding: 5px 0 6px; border-radius: 10px; font-size: 9.5px; font-weight: 600; color: #191C1D; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.app .days button::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #2236A0; }
.app .days button.on { background: #2236A0; color: #fff; }
.app .days button.on::after { background: #fff; }
.app .tl { position: relative; padding: 2px 10px 60px 12px; display: flex; flex-direction: column; gap: 7px; }
.app .it { display: grid; grid-template-columns: 34px 1fr; gap: 6px; opacity: 0; transform: translateY(8px); transition: opacity .35s var(--out), transform .45s var(--out); transition-delay: calc(var(--i) * 70ms); }
.app .it.on { opacity: 1; transform: none; }
.app .it .t { position: relative; font-size: 8.5px; font-weight: 700; padding-top: 2px; }
.app .it .t::after { content: ""; position: absolute; left: 11px; top: 16px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--c); background: #F8F9FA; }
.app .it .t::before { content: ""; position: absolute; left: 16px; top: 26px; bottom: -14px; width: 1.5px; background: #E0E2E7; }
.app .it .cd2 { display: grid; grid-template-columns: 30px 1fr 18px; gap: 8px; align-items: center; padding: 8px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #F0F1F4, 0 6px 14px -10px rgba(0,0,0,.18); }
.app .it .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--bg); color: var(--c); font-size: 15px; }
.app .it b { display: block; font-size: 11px; font-weight: 600; color: #3b3f48; }
.app .it small { color: var(--c); font-size: 9px; font-weight: 600; font-variant-numeric: tabular-nums; }
.app .it .ck { width: 17px; height: 17px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #C5C8D0; display: grid; place-items: center; color: #fff; font-size: 11px; transition: background-color .25s ease, box-shadow .25s ease; }
.app .it .ck i { opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .3s cubic-bezier(.34,1.4,.64,1); }
.app .it.done .ck { background: #2236A0; box-shadow: none; } .app .it.done .ck i { opacity: 1; transform: none; }
.app .it.done b { text-decoration: line-through; color: #9aa0ad; }
.app .fab { position: absolute; right: 10px; bottom: 12px; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 12px; background: #2236A0; color: #fff; font-size: 11px; font-weight: 600; box-shadow: 0 10px 20px -8px rgba(34,54,160,.7); }
.app .gen { display: flex; flex-direction: column; gap: 7px; padding: 10px 10px 60px; }
.app .gen p { margin: 0; font-size: 9.5px; color: #4a4f5a; }
.app .tpl { padding: 9px 10px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #ECEEF2; opacity: 0; transform: translateY(8px); transition: opacity .35s var(--out), transform .45s var(--out), box-shadow .25s ease; transition-delay: calc(var(--i) * 80ms); }
.app .tpl.on { opacity: 1; transform: none; }
.app .tpl.pick { box-shadow: inset 0 0 0 2px #2236A0; }
.app .tpl b { display: block; font-size: 11px; color: #191C1D; }
.app .tpl span { display: block; font-size: 9px; color: #6b7080; margin-top: 2px; line-height: 1.35; }
.app .tpl em { display: inline-block; margin-top: 6px; font-style: normal; font-size: 9px; font-weight: 600; color: #fff; background: #2236A0; padding: 4px 10px; border-radius: 9px; transition: transform 160ms var(--out); }
.app .tpl.pick em { transform: scale(.95); }
.app .view2 { position: absolute; left: 0; right: 0; top: 150px; bottom: 0; overflow: hidden; transition: opacity .25s ease, filter .25s ease; }
.app .view2.off { opacity: 0; filter: blur(4px); pointer-events: none; }
.app .notif { position: absolute; left: 8px; right: 8px; top: 30px; z-index: 5; display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 16px; background: #fff; box-shadow: 0 16px 30px -8px rgba(0,0,0,.4), 0 0 0 1px #E3E5EA; font-size: 9.5px; line-height: 1.3; transform: translateY(-140%); opacity: 0; transition: transform .6s var(--out), opacity .3s ease; }
.app .notif.on { transform: none; opacity: 1; }
.app .notif .ni { width: 26px; height: 26px; border-radius: 8px; background: #2236A0; display: grid; place-items: center; }
.app .notif .ni img { width: 18px; height: 18px; border-radius: 4px; }
.app .notif small { color: #6b7080; font-size: 8.5px; }
.app .notif b { font-size: 10px; }
.plan-phone { position: relative; justify-self: center; }
.plan-phone .phone { transform: rotate(-2deg); }
@media (prefers-reduced-motion: reduce) { .app .it, .app .tpl, .app .notif, .app .tabs2 .ul { transition: none !important; } }

.cam .view { background: #111; }
.app .field .raw { background: none; padding: 0; font-size: 11px; color: #4a4f5a; }
.cam .norm { display: none; padding: 0; font-size: 12px; text-align: left; opacity: 1; }
.cam.p5 .raw { display: none; } .cam.p5 .norm { display: block; animation: fade .4s var(--out); }
.cam .read .pane { gap: 7px; }
.cam .read { filter: none; }
.app .it.sch .cd2 { background: #F3F4F5; box-shadow: none; }
.app .it.sch b { color: #6b7080; }

/* ═══════════ Documents d'OptiScol École (gabarits réels : reçu, bulletin de paie) ═══════════ */
.doc2 { --acc: #1D4ED8; font-family: "Roboto", system-ui, sans-serif; color: #222; letter-spacing: 0; }
.doc2 .d-rule { height: 2px; background: var(--acc); margin: 6px 0 9px; }
.slip.doc2 { width: min(460px, 100%); padding: 24px 24px 18px; font-size: 10.5px; }
.doc2 .d-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.doc2 .d-sch { display: flex; align-items: center; gap: 8px; }
.doc2 .d-sch svg { width: 30px; height: 30px; flex: none; }
.doc2 .d-sch b { display: block; color: var(--acc); font-size: 13px; font-weight: 800; }
.doc2 .d-sch small, .doc2 small { color: #8a8f98; font-size: 9px; }
.doc2 .d-ttl { text-align: right; display: flex; flex-direction: column; font-size: 9.5px; line-height: 1.4; }
.doc2 .d-ttl b { font-size: 14px; font-weight: 800; letter-spacing: .06em; }
.doc2 .d-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.doc2 .d-boxes > div { background: #f4f5f7; border-radius: 6px; padding: 8px 9px; display: flex; flex-direction: column; gap: 2px; font-size: 9.5px; }
.doc2 .d-boxes em, .rc em { font-style: normal; color: var(--acc); font-weight: 700; font-size: 9px; letter-spacing: .06em; }
.doc2 .d-boxes b { font-size: 12px; }
.doc2 .d-boxes small { font-size: 9px; }
.doc2 .d-tab { width: 100%; border-collapse: collapse; margin-top: 9px; font-size: 9.5px; font-variant-numeric: tabular-nums; }
.doc2 .d-tab th { background: var(--acc); color: #fff; font-weight: 600; padding: 5px 6px; text-align: right; }
.doc2 .d-tab th:first-child, .doc2 .d-tab td:first-child { text-align: left; }
.doc2 .d-tab td { padding: 4.5px 6px; text-align: right; }
.doc2 .d-tab tr.alt td { background: #f4f5f7; }
.doc2 .d-tab tr.sec td { background: #eef0f3; color: #6b7280; font-weight: 700; font-size: 8.5px; text-transform: uppercase; padding: 3px 6px; }
.doc2 .d-tab tr.tot td { background: #eef0f3; font-weight: 700; }
.slip.doc2 .d-net { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; padding: 8px 11px; border-radius: 6px; background: var(--acc); color: #fff; border: 0; }
.slip.doc2 .d-net b { font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.slip.doc2 .d-net strong { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.slip.doc2 .d-net em { font-style: normal; }
.slip.doc2 .d-let { font-family: "Roboto", system-ui, sans-serif; font-weight: 400; font-size: 9px; font-style: italic; color: #8a8f98; line-height: 1.4; margin-top: 4px; max-width: none; }
.slip.doc2 .d-let b { color: #222; }
.doc2 .d-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 10px; padding-top: 7px; border-top: 1px solid #e3e6ea; }
.doc2 .d-qr { display: flex; align-items: center; gap: 6px; } .doc2 .d-qr i { font-size: 34px; color: #222; } .doc2 .d-qr small { font-size: 7.5px; line-height: 1.3; }
.doc2 .d-sig { display: flex; flex-direction: column; align-items: center; gap: 2px; } .doc2 .d-sig i { width: 120px; height: 18px; border-bottom: 1px solid #8a8f98; } .doc2 .d-sig small { font-size: 7.5px; }
.slip.doc2 .wf { margin-top: 10px; font-family: "Geist", system-ui, sans-serif; }
.slip.doc2 .d-tab tbody tr { opacity: 0; transition: opacity .4s var(--out); }
.slip.doc2.p1 tr.r1, .slip.doc2.p2 tr.r2, .slip.doc2.p3 tr.r3, .slip.doc2.p4 tr.r4, .slip.doc2.p5 tr.r5, .slip.doc2.p6 tr.r6, .slip.doc2.p7 tr.r7 { opacity: 1; }
.slip.doc2 .paid { right: 30px; top: auto; bottom: 52px; }
/* Reçu (gabarit compact) */
.rc { width: 262px; padding: 14px 14px 12px; background: #fff; border-radius: 4px; font-size: 9px; line-height: 1.35; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 22px 36px -18px rgba(10,20,60,.45); }
.rc::after { display: none; }
.rc .rc-h { display: flex; justify-content: space-between; align-items: center; }
.rc .rc-h b { display: block; color: var(--acc); font-size: 22px; font-weight: 800; line-height: 1; }
.rc .rc-h small { font-size: 7.5px; font-weight: 700; letter-spacing: .1em; }
.rc .rc-h svg { width: 26px; height: 26px; }
.rc .d-rule { margin: 5px 0 6px; }
.rc .rc-sch b { display: block; font-size: 10px; } .rc .rc-sch small { font-size: 7.5px; font-style: italic; }
.rc .rc-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px; margin-top: 6px; }
.rc .rc-grid table { background: #f4f5f7; border-radius: 5px; padding: 5px 6px; font-size: 8px; border-collapse: separate; }
.rc .rc-grid td { padding: 0 4px 0 0; white-space: nowrap; } .rc .rc-grid td:first-child { color: #8a8f98; } .rc .rc-grid td:last-child { font-weight: 600; }
.rc .rc-grid div { display: flex; flex-direction: column; gap: 1px; } .rc .rc-grid div b { font-size: 10px; } .rc .rc-grid small { font-size: 7.5px; font-style: italic; }
.rc .rc-tab { width: 100%; border-collapse: collapse; margin-top: 7px; font-size: 8.5px; }
.rc .rc-tab th { background: var(--acc); color: #fff; padding: 4px 6px; text-align: left; font-weight: 600; } .rc .rc-tab th:last-child, .rc .rc-tab td:last-child { text-align: right; }
.rc .rc-tab td { padding: 5px 6px; }
.rc .rc-tot { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; margin-top: 6px; }
.rc .rc-tot small { font-size: 7.5px; } .rc .rc-tot small b { color: #222; }
.rc .rc-tot span { display: inline-flex; gap: 12px; align-items: center; padding: 5px 10px; border-radius: 4px; background: var(--acc); color: #fff; }
.rc .rc-tot span b { font-size: 8px; letter-spacing: .06em; } .rc .rc-tot span strong { font-size: 12px; font-weight: 800; }
.rc .rc-let { margin-top: 4px; font-size: 7.5px; font-style: italic; color: #8a8f98; } .rc .rc-let b { color: #222; }
.ledger-wrap .receipt.rc { top: -44px; right: -30px; }
.late .rcp.rc { bottom: -170px; right: -30px; width: 262px; padding: 14px 14px 12px; background: #fff; border-radius: 4px; font-size: 9px; }
@media (max-width: 900px) { .slip.doc2 { padding: 20px 12px 14px; font-size: 9.5px; } .doc2 .d-ttl b { font-size: 12px; } .doc2 .d-tab { font-size: 8.5px; } .doc2 .d-tab td, .doc2 .d-tab th { padding: 4px 3px; } .slip.doc2 .paid { bottom: 56px; right: 14px; } .late .rcp.rc { position: relative; right: auto; bottom: auto; margin: 18px 0 0 auto; } }
#retards { padding-bottom: 220px; }
@media (max-width: 900px) { #retards { padding-bottom: 88px; } }

/* ── Élève : TD en direct ── */
.app .lv { background: #fff; border-radius: 16px; padding: 9px 10px; box-shadow: 0 0 0 1px #F0F1F4, 0 6px 14px -10px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 2px; font-size: 9.5px; color: #6b7080; }
.app .lv b { font-size: 11px; color: #191C1D; }
.app .lv-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px; }
.app .lv-h small { font-size: 9px; font-weight: 600; color: #2236A0; font-variant-numeric: tabular-nums; }
.app .badge { display: inline-flex; align-items: center; gap: 5px; font-size: 8px; font-weight: 700; letter-spacing: .04em; color: #fff; background: #E53935; padding: 3px 7px; border-radius: 999px; }
.app .badge i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.app .badge.soon { background: #EEF0F3; color: #6b7080; }
.app .lv .join { margin-top: 7px; height: 28px; }
.app .lv.on-air { box-shadow: 0 0 0 1.5px #E53935, 0 10px 20px -12px rgba(229,57,53,.5); }
.app .joining { position: absolute; left: 0; right: 0; top: 26px; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #0D121E; color: #fff; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.app .joining .spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: #7fa0ff; }
.app .joining .ok { display: inline-flex; align-items: center; gap: 6px; color: #7ee2a8; font-size: 11px; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .5s var(--out); }
.live.p1 .notif { transform: none; opacity: 1; }
.live.p2 .notif { transform: translateY(-140%); opacity: 0; }
.live.p3 .join { transform: scale(.96); filter: brightness(1.15); }
.live.p4 .joining { opacity: 1; }
.live.p5 .joining .ok { opacity: 1; transform: none; }
.live.p5 .joining .spin { border-top-color: #7ee2a8; }
.live.out .pane, .live.out .joining, .memo.out .pane { opacity: 0; transition: opacity .3s ease; }
@media (prefers-reduced-motion: no-preference) {
  .app .badge i { animation: onair 1.2s ease-in-out infinite; }
  @keyframes onair { 50% { opacity: .25; } }
  .live.p4 .joining .spin { animation: spin .8s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
}

/* ── Élève : mémorisation (Leitner) ── */
.memo .boxes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 2px 0 4px; }
.memo .boxes span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 36px; border-radius: 10px; background: #EEF0F3; font-size: 12px; font-weight: 700; color: #6b7080; transition: background-color .3s ease, color .3s ease, transform .35s cubic-bezier(.34,1.4,.64,1); }
.memo .boxes small { font-size: 6.5px; font-weight: 500; }
.memo .boxes [data-b="2"] { background: #E3E7FA; color: #2236A0; }
.memo.p4 .boxes [data-b="2"] { background: #EEF0F3; color: #6b7080; }
.memo.p4 .boxes [data-b="3"] { background: #2236A0; color: #fff; transform: scale(1.08); }
.memo .flip { perspective: 900px; height: 170px; transition: transform .7s var(--inout), opacity .5s ease; }
.memo .fc { position: relative; height: 100%; transform-style: preserve-3d; transition: transform .7s var(--inout); }
.memo .fr, .memo .bk { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px #ECEEF2, 0 14px 26px -16px rgba(0,0,0,.3); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.memo .bk { transform: rotateY(180deg); background: #F4F6FF; box-shadow: 0 0 0 1.5px #2236A0, 0 14px 26px -16px rgba(34,54,160,.4); }
.memo .fq { font-size: 15px; }
.memo .fr small, .memo .bk small { font-size: 8.5px; color: #9aa0ad; }
.memo.p1 .flip { transform: translateY(-4px); }
.memo.p2 .fc { transform: rotateY(180deg); }
.memo.p4 .flip { transform: translate(18px, -150px) scale(.14); opacity: 0; }
.memo .ans { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.memo .ans span { display: flex; align-items: center; justify-content: center; gap: 5px; height: 32px; border-radius: 12px; font-size: 10.5px; font-weight: 600; transition: transform 160ms var(--out), filter 160ms ease; }
.memo .ans .no { background: #FDECEC; color: #C62828; } .memo .ans .yes { background: #2236A0; color: #fff; }
.memo.p3 .ans .yes { transform: scale(.95); filter: brightness(1.15); }
.memo .mast { display: flex; justify-content: space-between; font-size: 9.5px; color: #4a4f5a; margin-top: 4px; }
.memo .mast b { color: #2236A0; font-variant-numeric: tabular-nums; }
.memo .wkbar { margin: 0; }
.memo.p5 .wkbar i { --p: .325 !important; }

/* Jeux : cinq cartes */
.app .streak { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; margin-top: 4px; padding: 10px; border-radius: 16px; background: linear-gradient(90deg, #FFF3E0, #FFF8EC); box-shadow: inset 0 0 0 1px #FFE0B2; }
.app .streak > i { font-size: 22px; color: #F57C00; }
.app .streak b { display: block; font-size: 11px; color: #E65100; } .app .streak small { font-size: 8.5px; color: #F57C00; }
.app .streak .dots7 { display: flex; gap: 3px; } .app .streak .dots7 i { width: 7px; height: 7px; border-radius: 50%; background: #FFE0B2; } .app .streak .dots7 i.d { background: #F57C00; }
.app .today { display: grid; grid-template-columns: 26px 1fr 12px; gap: 8px; align-items: center; padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px #F0F1F4; color: #2236A0; }
.app .today > i:first-child { font-size: 20px; } .app .today b { display: block; font-size: 11px; color: #191C1D; } .app .today small { font-size: 8.5px; color: #6b7080; }

/* ═══════════ Interface web d'OptiScol École (d'après les captures, en bleu) ═══════════ */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; background: #eef0f3; color: #374151; white-space: nowrap; }
.pill i { font-size: 13px; }
.pill.ok { background: #dcfce7; color: #15803d; } .pill.bad { background: #fee2e2; color: #b91c1c; } .pill.warn { background: #fef3c7; color: #b45309; }
@media (min-width: 901px) { .day .sticky { height: auto; top: 22vh; align-self: start; } }

/* ── Vrai logo OptiScol (SVG) ── */
.brand img { width: 34px; height: 35px; border-radius: 0; object-fit: contain; }
.sticker .logo { display: grid; place-items: center; border-radius: 22%; background: #fff; box-shadow: 0 1px 2px rgba(11,19,48,.06); padding: 13%; }
.sticker .logo img { width: 100%; height: 100%; border-radius: 0; object-fit: contain; }
.turn img { width: 96px; height: 100px; margin: -50px 0 0 -48px; border-radius: 0; object-fit: contain; }
/* Accueil : photo d'atelier en polaroïd scotché, logo en autocollant */
.sticker.shot { width: min(380px, 94%); aspect-ratio: auto; margin: 0; }
.shot-pic { position: relative; background: #fff; padding: 10px 10px 0; border-radius: 4px; transform: rotate(-3deg);
  box-shadow: 0 1px 2px rgba(11,19,48,.08), 0 40px 70px -30px rgba(10,42,154,.45); }
.shot-pic > img { width: 100%; height: auto; border-radius: 2px; }
.sticker.shot figcaption.hand { position: static; display: block; text-align: center; font-size: 25px; line-height: 1; padding: 12px 0 14px; transform: rotate(-1deg); }
.shot .tape { top: -16px; left: 30%; width: 40%; height: 34px; }
.shot-logo { position: absolute; right: -22px; top: -26px; width: 78px; height: 78px; padding: 12px; border-radius: 22%; background: #fff; transform: rotate(9deg);
  box-shadow: 0 1px 2px rgba(11,19,48,.08), 0 18px 30px -14px rgba(10,42,154,.45); z-index: 3; }
.shot-logo img { width: 100%; height: 100%; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) {
  .shot-pic { animation: shotIn .9s var(--out) both .45s; }
  .shot-logo { animation: shotLogo .6s cubic-bezier(.34,1.5,.64,1) both 1.35s; }
  .sticker.shot figcaption.hand { opacity: 0; animation: fade .8s var(--out) forwards 1.6s; }
  @keyframes shotIn { from { transform: rotate(6deg) translateY(30px) scale(1.06); opacity: 0; } }
  @keyframes shotLogo { from { transform: rotate(-20deg) scale(.3); opacity: 0; } }
}
@media (max-width: 900px) { .sticker.shot { width: min(320px, 86%); } .shot-logo { width: 62px; height: 62px; right: -14px; top: -20px; padding: 10px; } }
/* Écran de la page qui tourne : logo qui se pose, cercle d'encre qui tourne autour.
   --turn-t (posé dans <head>) reprend l'animation où l'autre page l'avait laissée. */
.turn .turn-mk { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.turn .turn-lg { position: relative; width: 156px; height: 156px; display: grid; place-items: center; }
.turn .turn-lg img { position: static; width: 84px; height: 88px; margin: 0; filter: drop-shadow(0 16px 18px rgba(10,42,154,.28)); }
.turn-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.turn-ring path { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.turn-mk b { font-size: 14px; font-weight: 700; letter-spacing: .24em; color: var(--ink); margin-top: 4px; }
.turn-mk .hand { font-size: 25px; line-height: 1; margin-top: -4px; }
.turn-mk .hand i { font-style: normal; }
@media (prefers-reduced-motion: no-preference) {
  .turn-lg img { animation: turnPop .55s cubic-bezier(.34,1.5,.64,1) both, turnBob 2s ease-in-out infinite; animation-delay: var(--turn-t, 0ms), calc(var(--turn-t, 0ms) + .55s); }
  .turn-ring { animation: turnSpin 7s linear infinite; animation-delay: var(--turn-t, 0ms); }
  .turn-ring path { animation: turnInk 1.6s var(--inout) infinite; animation-delay: calc(var(--turn-t, 0ms) + .15s); }
  .turn-mk b, .turn-mk .hand { animation: turnUp .5s var(--out) both; animation-delay: calc(var(--turn-t, 0ms) + .2s); }
  .turn-mk .hand { animation-delay: calc(var(--turn-t, 0ms) + .32s); }
  .turn-mk .hand i { animation: turnDot 1.2s ease-in-out infinite; animation-delay: var(--turn-t, 0ms); }
  .turn-mk .hand i:nth-child(2) { animation-delay: calc(var(--turn-t, 0ms) + .2s); } .turn-mk .hand i:nth-child(3) { animation-delay: calc(var(--turn-t, 0ms) + .4s); }
  @keyframes turnPop { from { transform: scale(.4) rotate(-14deg); opacity: 0; } }
  @keyframes turnBob { 0%, 100% { translate: 0 0; rotate: -3deg; } 50% { translate: 0 -7px; rotate: 3deg; } }
  @keyframes turnSpin { to { rotate: 360deg; } }
  @keyframes turnInk { 0% { stroke-dashoffset: 100; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
  @keyframes turnUp { from { opacity: 0; transform: translateY(8px); } }
  @keyframes turnDot { 0%, 70%, 100% { opacity: .15; } 35% { opacity: 1; } }
}
.card .top img { border-radius: 0; object-fit: contain; }

/* Finition : états figés lisibles quand les animations sont réduites */
@media (prefers-reduced-motion: reduce) {
  .live .joining, .live .notif { display: none; }
  .memo .flip { transform: none !important; opacity: 1 !important; }
  .memo .fc { transform: rotateY(180deg); }
}
/* Finition : fenêtre de l'interface web plus grande */
@media (min-width: 901px) { .day { grid-template-columns: 3.2fr 6.8fr; gap: 48px; } }

/* ═══════════ Flux : composants reliés par des lignes animées ═══════════ */
.flow { position: relative; isolation: isolate; }
.fl-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.fl-e path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fl-e .trk { stroke: rgba(58,90,216,.22); stroke-width: 1.3; stroke-dasharray: 2 5; }
.fl-e .ln { stroke: var(--blue-2); stroke-width: 1.8; }
.fl-e .ar { stroke: var(--blue-2); stroke-width: 1.8; opacity: 0; transition: opacity .25s ease; }
.fl-e .dot { fill: var(--blue-2); opacity: 0; filter: drop-shadow(0 0 4px rgba(58,90,216,.9)); }
.fl-e.on .ar, .fl-e.on .dot { opacity: 1; }
.fl-e.no .ln, .fl-e.no .ar { stroke: #c0392b; }
.fl-e.no .ln { stroke-dasharray: 5 5 !important; stroke-dashoffset: 0 !important; opacity: 0; transition: opacity .5s ease; }
.fl-e.no.on .ln { opacity: .85; }
.fl-e.no .trk { stroke: rgba(192,57,43,.2); }
.fl-e.no .dot { display: none; } /* un refus ne transporte rien : pas de point */
.fl-e.ok .ln, .fl-e.ok .ar { stroke: #1f7a47; } .fl-e.ok .dot { fill: #1f7a47; filter: drop-shadow(0 0 4px rgba(31,122,71,.8)); }
.fl-e.gold .ln, .fl-e.gold .ar { stroke: #b7791f; } .fl-e.gold .dot { fill: #b7791f; filter: drop-shadow(0 0 4px rgba(183,121,31,.8)); }
.fe { display: none; }
.fl-l { position: absolute; z-index: 2; transform: translate(-50%, -50%) rotate(-2deg) scale(.9); font-family: "Caveat", cursive; font-weight: 600; font-size: 17px; line-height: 1; color: var(--blue); background: var(--paper); padding: 1px 6px 3px; border-radius: 6px; white-space: nowrap; opacity: 0; transition: opacity .35s ease, transform .5s var(--out); pointer-events: none; }
.fl-l.on { opacity: 1; transform: translate(-50%, -50%) rotate(-2deg); }
.fl-e.no + .fl-l, .fl-l.red { color: #c0392b; }

.fn { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 13px; font-size: 13.5px; line-height: 1.3; opacity: .5; filter: saturate(.3); transform: translateY(3px);
  transition: opacity .45s var(--out), filter .45s ease, transform .6s var(--out), border-color .45s ease, box-shadow .45s ease; }
.fn.on { opacity: 1; filter: none; transform: none; border-color: rgba(58,90,216,.4); box-shadow: 0 1px 2px rgba(11,19,48,.05), 0 14px 30px -18px rgba(10,42,154,.45); }
.fn > i { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(58,90,216,.09); color: var(--blue); font-size: 18px; transition: background .4s ease, color .4s ease; }
.fn.on > i { background: var(--blue-fill); color: #fff; }
.fn b { display: block; font-weight: 600; font-size: 13.5px; letter-spacing: -.01em; }
.fn small { display: block; color: var(--muted); font-size: 11.5px; }
.fn.red { border-style: dashed; } .fn.red.on { border-color: rgba(192,57,43,.55); box-shadow: none; } .fn.red > i { background: rgba(192,57,43,.1); color: #c0392b; } .fn.red.on > i { background: #c0392b; color: #fff; }
.fn.green.on > i { background: #1f7a47; color: #fff; } .fn.green > i { color: #1f7a47; background: rgba(31,122,71,.1); }
.fn .chip { display: inline-block; margin-top: 3px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 600; background: #FFF3DC; color: #9a5b00; transition: background .4s ease, color .4s ease; }
.fn .chip.done:not(.bad) { background: #E3F4E8; color: #1f7a47; }
.fn code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: var(--blue); }
.fn.hub { flex-direction: column; align-items: stretch; padding: 14px; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .fn, .fl-l { transition: none; } }
/* Circuit d'un paiement */
.f-pay { display: grid; margin-top: 48px; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 64px; row-gap: 26px; align-items: center;
  grid-template-areas: ". . fac imp" "enc lig rec ." "ref . jrn arg"; }
.f-pay .amt { display: block; margin-top: 3px; font-weight: 600; font-size: 12.5px; color: var(--blue); font-variant-numeric: tabular-nums; }
.f-pay .jt { margin-top: 4px; border-collapse: collapse; font-size: 10.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.f-pay .jt th { font-weight: 500; color: var(--faint); text-align: left; padding: 0 8px 1px 0; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; }
.f-pay .jt td { padding: 1px 8px 1px 0; color: var(--ink); } .f-pay .jt td:not(:first-child) { text-align: right; }
.f-pay .fn > div { min-width: 0; flex: 1; }
@media (max-width: 900px) { .f-pay { grid-template-columns: 1fr 1fr; column-gap: 26px; row-gap: 34px; grid-template-areas: "enc ref" "lig rec" "fac jrn" "imp arg"; } }
@media (max-width: 480px) { .f-pay { column-gap: 14px; } .f-pay .fn { flex-direction: column; align-items: flex-start; padding: 10px; gap: 6px; } .f-pay .fn > i { width: 28px; height: 28px; font-size: 16px; } }
.fn.gold > i { color: #9a5b00; background: rgba(183,121,31,.12); } .fn.gold.on > i { background: #b7791f; color: #fff; } .fn.gold.on { border-color: rgba(183,121,31,.45); }
.fn.green.on { border-color: rgba(31,122,71,.4); }
/* Comptabilité : le journal au centre */
.f-hub { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 110px; align-items: center; margin-top: 90px; }
.f-hub .col-s, .f-hub .col-o { display: flex; flex-direction: column; gap: 14px; }
.f-hub .col-o { gap: 26px; }
.hub-cap { position: absolute; left: 0; top: -44px; margin: 0; font-size: 22px; transform: rotate(-2deg); }
.fn.hub { padding: 16px; gap: 12px; }
.hub-t { display: flex; gap: 10px; align-items: center; } .hub-t > i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(58,90,216,.09); color: var(--blue); font-size: 21px; transition: background .4s ease, color .4s ease; }
.fn.hub.on .hub-t > i { background: var(--blue-fill); color: #fff; } .hub-t b { font-size: 16px; }
.hub-n { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #F4F6FC; }
.hub-n strong { font-size: 26px; font-weight: 600; letter-spacing: -.03em; color: var(--blue); font-variant-numeric: tabular-nums; white-space: nowrap; } .hub-n span { font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.hub-b { display: flex; flex-wrap: wrap; gap: 6px; } .hub-b span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: #E3F4E8; color: #1f7a47; font-size: 11px; font-weight: 600; } .hub-b span:last-child { background: #EEF0F6; color: var(--muted); }
@media (max-width: 900px) {
  .f-hub { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 30px; row-gap: 46px; margin-top: 70px; }
  .f-hub .col-o { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .f-hub .col-o .fn { flex-direction: column; align-items: flex-start; padding: 8px; gap: 6px; } .f-hub .col-o small { display: none; } .f-hub .col-o b { font-size: 12px; }
  .hub-n { flex-direction: column; align-items: flex-start; gap: 2px; }
}
@media (max-width: 620px) {
  .f-hub { column-gap: 22px; } .f-hub .col-s .fn { padding: 8px; gap: 8px; } .f-hub .col-s small { display: none; } .f-hub .fn > i { width: 28px; height: 28px; font-size: 16px; }
  .hub-cap { font-size: 19px; top: -38px; }
}
/* Circuit de la paie */
.f-paie { display: grid; margin-top: 96px; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 40px; row-gap: 14px; align-items: center;
  grid-template-areas: ". . . . v1 . ." "p1 p2 p3 p4 v2 p5 p6" ". . . . v3 . ."; }
.f-paie .fn { flex-direction: column; align-items: flex-start; gap: 7px; padding: 10px; }
.f-paie .fn b { font-size: 13px; } .f-paie .fn small { font-size: 11px; }
@media (max-width: 900px) {
  .f-paie { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 18px; row-gap: 34px; grid-template-areas: "p1 . ." "p2 p3 p4" "v1 v2 v3" "p5 p6 ."; margin-top: 80px; }
}
/* Premier lancement */
.f-boot { display: grid; margin-top: 110px; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 26px; row-gap: 40px; align-items: center;
  grid-template-areas: "b0 b1 b2 b3 b4 b5 sv" ". rs rs . . . ." ". dm dm . . . ."; }
.f-boot [data-id="dm"] { flex-direction: row; align-items: center; }
.f-boot .fn { flex-direction: column; align-items: flex-start; gap: 7px; padding: 10px; }
.f-boot .fn b { font-size: 13px; } .f-boot .fn small { font-size: 11px; }
.f-boot [data-id="rs"] { flex-direction: row; align-items: center; }
@media (max-width: 900px) {
  .f-boot { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 30px; row-gap: 26px; grid-template-areas: "b0 ." "b1 rs" "b2 ." "b3 dm" "b4 ." "b5 ." "sv sv"; margin-top: 90px; }
  .f-boot [data-id="rs"], .f-boot [data-id="dm"] { flex-direction: column; align-items: flex-start; }
}
/* Accueil de l'app, annoté — d'après accueil.page.dart, home_sections.dart, hero_banner_card.dart */
.f-home { display: grid; grid-template-columns: minmax(0, 1fr) 290px minmax(0, 1fr); column-gap: 90px; align-items: center; margin-top: 56px; }
.f-home .fl-svg { z-index: 3; }
.f-home .col-l, .f-home .col-r { display: flex; flex-direction: column; gap: 150px; }
.f-home .col-l { padding-top: 10px; } .f-home .col-r { padding-top: 120px; }
.phone.flat { transform: none; }
.fn.call { align-items: flex-start; } .fn.call small { font-size: 12.5px; margin-top: 2px; }
.fn .num, .fa[data-n]::before { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-fill); color: #fff; font: 600 12px/1 "Geist", system-ui, sans-serif; }
.fa { position: relative; transition: box-shadow .45s ease; }
.fa[data-n]::before { content: attr(data-n); position: absolute; z-index: 2; top: -8px; left: -8px; width: 18px; height: 18px; font-size: 10px; box-shadow: 0 0 0 2px #fff; opacity: 0; transform: scale(.6); transition: opacity .3s ease, transform .45s cubic-bezier(.34,1.56,.64,1); }
.fa.on[data-n]::before { opacity: 1; transform: none; }
/* Pas de cadre autour des zones visées dans les écrans : la ligne et la pastille suffisent. */
.scr.home { position: relative; }
.home .hm-ban { position: relative; height: 199px; border-radius: 0 0 17px 17px; background: #0246DF center / cover no-repeat; background-position: 85% 35%; color: #fff; box-shadow: 0 6px 12px -4px rgba(2,70,223,.35); }
.home .sb.clear, .home .ab.clear { background: none; } .home .sb.clear { height: 17px; padding-top: 3px; } .home .ab.clear { position: absolute; top: 17px; left: 0; right: 0; height: 39px; }
.home .ab.clear b { font-family: "Outfit", sans-serif; font-weight: 700; letter-spacing: .12em; font-size: 12px; }
.home .ab .pf { position: relative; display: grid; font-size: 16px; } .home .ab .pf em { position: absolute; top: -5px; right: -9px; padding: 0 3px; border-radius: 6px; background: #FFA000; color: #fff; font: 700 6.5px/1.5 "Roboto", sans-serif; }
.home .ban-tx { position: absolute; top: 44px; left: 0; padding: 0 14px; width: 80%; font-family: "Outfit", sans-serif; text-shadow: 0 1px 6px rgba(2,40,140,.35); }
.home .ban-tx b { display: block; font-size: 14.5px; font-weight: 900; line-height: 1.1; letter-spacing: -.02em; } .home .ban-tx b span { color: #FFC800; }
.home .ban-tx small { display: block; width: 78%; margin: 4px 0 7px; font-size: 8px; line-height: 1.25; color: rgba(255,255,255,.92); }
.home .ban-tx .cta { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 16px; background: #fff; color: #1E3A8A; font-size: 8.5px; font-weight: 800; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.home .streak { position: absolute; left: 14px; right: 14px; bottom: 8px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); text-shadow: 0 1px 3px rgba(2,40,140,.45); display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 11px; background: rgba(255,255,255,.15); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); font-family: "Outfit", sans-serif; }
.home .streak .fl { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #FFD000, #FF9100); box-shadow: 0 2px 4px rgba(255,145,0,.4); font-size: 11px; }
.home .streak.on .fl { animation: flick 1.2s ease-in-out infinite; }
@keyframes flick { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.12, .94) rotate(-6deg); } 60% { transform: scale(.95, 1.08) rotate(5deg); } }
.home .streak .tx b { display: block; font-size: 8.5px; font-weight: 800; } .home .streak .tx small { display: block; font-size: 7px; color: rgba(255,255,255,.85); }
.home .streak .vs { width: 1px; height: 17px; background: rgba(255,255,255,.25); }
.home .streak .wk { flex: 1; display: flex; justify-content: space-around; } .home .streak .wk span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 6.5px; font-weight: 600; color: rgba(255,255,255,.9); } .home .streak .wk em { font-style: normal; } .home .streak .today em { font-weight: 900; }
.home .streak .wk i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.18); transition: background .3s ease; }
.home .streak .wk i.d0 { background: #FFC800; box-shadow: 0 0 3px rgba(255,200,0,.5); } .home .streak .wk i.nd { background: rgba(255,255,255,.45); }
.home .streak.on .wk i.nd { background: #FFC800; box-shadow: 0 0 3px rgba(255,200,0,.5); animation: pop .5s cubic-bezier(.34,1.56,.64,1) .9s both; transition-delay: .9s; }
@keyframes pop { from { transform: scale(.3); } to { transform: none; } }
.home .hm { display: flex; flex-direction: column; gap: 6px; padding: 8px 11px 0; }
.hm-cst { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border-radius: 14px; background: linear-gradient(90deg, #1E3A8A, #2563EB); color: #fff; box-shadow: 0 4px 10px -4px rgba(37,99,235,.3); }
.hm-cst .ic { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 9px; background: rgba(255,255,255,.15); color: #FACC15; font-size: 15px; }
.hm-cst div { flex: 1; min-width: 0; } .hm-cst small { display: block; font: 700 7px "Outfit", sans-serif; color: rgba(255,255,255,.7); letter-spacing: .03em; } .hm-cst b { display: block; font: 700 9.5px "Outfit", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hm-cst em { font-style: normal; font-size: 7.5px; color: rgba(255,255,255,.85); }
.hm-h { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 11px; } .hm-h b { font-weight: 700; }
.hm-h .q { color: #9C27B0; font-size: 14px; } .hm-h .rest { margin-left: auto; padding: 2px 6px; border-radius: 7px; background: rgba(255,152,0,.15); color: #F57C00; font-size: 7.5px; font-weight: 700; }
.hm-quiz { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #ECEEF2; }
.hm-quiz .qi { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 7px; background: rgba(156,39,176,.1); color: #9C27B0; font-size: 14px; }
.hm-quiz div { flex: 1; } .hm-quiz b { display: block; font-size: 9px; font-weight: 600; } .hm-quiz small { display: block; font-size: 7.5px; color: #45464F; line-height: 1.35; }
.hm-quiz .play { flex: none; width: 19px; height: 19px; border-radius: 50%; background: #1835A9; position: relative; transition: transform 160ms var(--out); }
.hm-quiz .play::after { content: ""; position: absolute; left: 7.5px; top: 5.5px; border-left: 6px solid #fff; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.hm-quiz.on .play { animation: tapIn 2.4s var(--out) .6s infinite; } @keyframes tapIn { 0%, 42%, 100% { transform: none; } 21% { transform: scale(.82); } }
.hm-h.big { margin-top: 4px; } .hm-h.big b { color: #1835A9; font-size: 11px; } .hm-h .star { color: #FFC107; font-size: 13px; line-height: 1; }
.hm-sc { display: flex; justify-content: space-between; padding: 2px 3px 3px; border-radius: 12px; }
.hm-sc span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 7px; font-weight: 700; }
.hm-sc i { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; font-size: 16px; background: color-mix(in srgb, currentColor 10%, transparent); }
.hm-sc .c1 { color: #1835A9; } .hm-sc .c2 { color: #6750A4; } .hm-sc .c3 { color: #FF4081; } .hm-sc .c4 { color: #3F51B5; } .hm-sc .c5 { color: #673AB7; }
.hm-sc.on i { animation: pop .5s cubic-bezier(.34,1.56,.64,1) calc(var(--i) * 110ms) both; }
.hm-h.res { margin-top: 8px; } .hm-h.res b { font-size: 11px; } .hm-h.res .bk { color: #2196F3; font-size: 14px; } .hm-h.res span { margin-left: auto; display: flex; align-items: center; gap: 1px; font-size: 7.5px; color: #8b909c; } .hm-h.res span em { font-style: normal; color: #1835A9; font-weight: 600; }
.hm-doc { display: flex; min-height: 70px; border-radius: 8px 16px 16px 8px; background: #fff; overflow: hidden; box-shadow: 0 5px 10px -4px rgba(0,0,0,.08), inset 0 0 0 1px rgba(197,197,212,.1); }
.hm-doc .cov { position: relative; flex: none; width: 70px; padding: 6px 5px; background: linear-gradient(90deg, #eaeaea 0 3px, #fbfbf8 3px); overflow: hidden; }
.hm-doc .cov b { display: block; font: 700 6px/1.15 "Geist", sans-serif; letter-spacing: .08em; text-align: center; color: #333; } .hm-doc .cov small { display: block; margin-top: 3px; font-size: 4.5px; text-align: center; color: #666; border: .5px solid #999; }
.hm-doc .cov i { position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); font-size: 24px; color: #6d7a8a; }
.hm-doc .inf { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 7px 10px; }
.hm-doc .bought { align-self: flex-start; display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 6px; background: rgba(56,142,60,.12); color: #388E3C; font-size: 7px; font-weight: 700; letter-spacing: .04em; }
.hm-doc .inf b { font-size: 9px; font-weight: 500; line-height: 1.25; }
.hm-fab { position: absolute; right: 11px; bottom: 64px; z-index: 3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #1835A9; color: #fff; font-size: 20px; box-shadow: 0 4px 10px -3px rgba(24,53,169,.6); transition: transform .35s var(--out); }
.hm-fab i { transition: transform .35s var(--out); }
.f-home.p5 .hm-fab i { transform: rotate(45deg); }
.home .dial { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; gap: 8px; padding: 0 11px 110px; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.f-home.p5 .home .dial { opacity: 1; }
.home .dial span { display: flex; align-items: center; gap: 7px; opacity: 0; transform: translateY(10px) scale(.95); transition: opacity .25s ease, transform .4s var(--out); }
.f-home.p5 .home .dial span { opacity: 1; transform: none; transition-delay: calc(var(--i) * 60ms + 100ms); }
.home .dial em { font-style: normal; padding: 5px 9px; border-radius: 13px; background: #fff; color: #1E293B; font-size: 8.5px; font-weight: 600; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.home .dial i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: #fff; font-size: 15px; box-shadow: 0 4px 10px -3px rgba(0,0,0,.35); }
.home .dial .g1 { background: linear-gradient(135deg, #0F4D25, #10B981); } .home .dial .g2 { background: linear-gradient(135deg, #6366F1, #8B5CF6); } .home .dial .g3 { background: linear-gradient(135deg, #4F46E5, #7C3AED); } .home .dial .g4 { background: linear-gradient(135deg, #F59E0B, #EA580C); }
.app .nav6 { position: absolute; left: 11px; right: 11px; bottom: 8px; z-index: 3; display: grid; grid-template-columns: repeat(6, 1fr); height: 50px; align-content: center; border-radius: 22px; background: rgba(248,249,250,.85); backdrop-filter: blur(7px); box-shadow: 0 0 0 1px rgba(197,197,212,.15), 0 7px 14px rgba(0,0,0,.1); text-align: center; color: rgba(69,70,79,.5); font-size: 6.5px; font-weight: 500; }
.app .nav6 span { display: flex; flex-direction: column; align-items: center; gap: 2px; } .app .nav6 i { font-size: 16px; }
.app .nav6 .on { color: #1835A9; font-weight: 700; } .app .nav6 .on i { font-size: 17px; } .app .nav6 .on::after { content: ""; width: 9px; height: 2px; border-radius: 2px; background: #1835A9; margin-top: 1px; }
@media (max-width: 900px) {
  .f-home { grid-template-columns: 1fr 1fr; row-gap: 26px; column-gap: 14px; }
  .f-home .phone { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: 290px; height: 590px; }
  .f-home .col-l, .f-home .col-r { display: contents; }
  .f-home .fn.call { opacity: 1; filter: none; transform: none; padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { .home .streak .fl, .hm-sc i, .hm-quiz .play, .home .streak .wk i { animation: none !important; } }
/* Quiz interactifs — d'après quizes.page.dart, quiz_screen.page.dart, exercice_apc.page.dart.
   cahier.js pose data-m (écran) puis t1, t2… (sous-étapes) sur .qz */
.f-quiz { display: grid; grid-template-columns: minmax(0, 410px) 290px; justify-content: center; column-gap: 130px; align-items: center; margin-top: 56px; }
.f-quiz .fl-svg { z-index: 0; } .f-quiz .phone { z-index: 1; }
.qg { position: relative; z-index: 1; overflow: hidden; border-radius: 28px; background: #F8FAFC; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(10,20,60,.35); font-family: "Outfit", "Roboto", system-ui, sans-serif; letter-spacing: 0; color: #0F172A; }
.qg-ban { position: relative; height: 176px; padding: 16px 18px; background: #0C38B1 center / cover no-repeat; color: #fff; }
.qg-ban .bk { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: #fff; color: #0C38B1; font-size: 18px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.qg-ban b { display: block; margin-top: 10px; font-size: 25px; font-weight: 900; letter-spacing: .02em; line-height: 1.1; }
.qg-ban .ul { display: block; width: 40px; height: 4px; margin: 4px 0 7px; border-radius: 2px; background: #FACC15; }
.qg-ban small { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.95); }
.qg-tabs { position: relative; display: flex; margin: -22px 18px 0; padding: 5px; border-radius: 22px; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.qg-tabs span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 0; border-radius: 18px; color: #64748B; font-size: 13px; font-weight: 700; }
.qg-tabs span.on { background: linear-gradient(90deg, #3B82F6, #1D4ED8); color: #fff; box-shadow: 0 3px 8px rgba(59,130,246,.3); }
.qg-list { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 11px; }
.qg-stats { display: flex; justify-content: space-around; align-items: center; padding: 12px 0; border-radius: 18px; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.04); }
.qg-stats span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: #64748B; }
.qg-stats b { display: flex; align-items: center; gap: 5px; font-size: 17px; font-weight: 700; color: #0F172A; line-height: 1; } .qg-stats b i { font-size: 14px; } .qg-stats em { font-style: normal; font-variant-numeric: tabular-nums; }
.qg-stats .sep { width: 1px; height: 28px; background: #F1F5F9; }
.qe { position: relative; display: flex; align-items: center; gap: 12px; padding: 0 12px 0 0; border-radius: 18px; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.04); font-family: "Outfit", "Roboto", sans-serif; }
.qe .bar { align-self: stretch; width: 6px; border-radius: 18px 0 0 18px; background: var(--a); }
.qe .ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: 11px 0; border-radius: 14px; color: #fff; font-size: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--a) 82%, #fff), color-mix(in srgb, var(--a) 78%, #000)); box-shadow: 0 3px 8px color-mix(in srgb, var(--a) 30%, transparent); }
.qe > div { flex: 1; min-width: 0; padding: 10px 0; }
.qe b { display: flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.qe b em { font-style: normal; padding: 2px 7px; border-radius: 7px; background: var(--a); color: #fff; font-size: 9px; font-weight: 900; letter-spacing: .05em; }
.qe small { display: block; margin-top: 2px; font-size: 11px; line-height: 1.25; color: #64748B; }
.qe .ch { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #F8FAFC; box-shadow: inset 0 0 0 1px #F1F5F9; color: var(--a); font-size: 16px; }
.qe.fn { border: 0; opacity: 1; filter: none; transform: none; line-height: 1.3; }
.qe.fn > i.bar, .qe.fn.on > i.bar { display: block; width: 6px; height: auto; border-radius: 18px 0 0 18px; background: var(--a); }
.qe.fn.on { box-shadow: 0 3px 12px rgba(0,0,0,.04); }
.phone.fa.on { box-shadow: 0 60px 90px -40px rgba(10,20,60,.55); }
@keyframes tap { 50% { transform: scale(.95); } }
.scr.qz { position: relative; --pri: #1835A9; }
.qz .qs { position: absolute; inset: 26px 0 0; display: flex; flex-direction: column; gap: 7px; padding: 2px 11px 12px; opacity: 0; transform: translateX(14px); transition: opacity .3s ease, transform .45s var(--out); pointer-events: none; overflow: hidden; }
.qz[data-m="1"] .s1, .qz[data-m="2"] .s2, .qz[data-m="3"] .s3, .qz[data-m="4"] .s4 { opacity: 1; transform: none; transition: opacity .45s ease .15s, transform .6s var(--out) .15s; }
.qz .qh { display: flex; align-items: center; gap: 10px; height: 32px; font-size: 15px; } .qz .qh b { flex: 1; text-align: center; font-size: 14.5px; font-weight: 700; margin-right: 25px; }
.qz .qh.left { gap: 12px; } .qz .qh.left b { text-align: left; font-family: "Outfit", "Roboto", sans-serif; font-size: 13px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qz .pl { display: flex; align-items: center; gap: 8px; margin: 0 6px; padding: 5px 9px; border-radius: 12px; background: rgba(225,227,228,.3); box-shadow: inset 0 0 0 1px rgba(197,197,212,.1); }
.qz .pl .av { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--pri); color: #fff; font-size: 13px; }
.qz .pl small { display: block; font-size: 7px; color: #45464F; } .qz .pl b { font-size: 11px; }
.qz .pl .sc { margin-left: auto; display: grid; grid-template-columns: auto auto; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 9px; background: rgba(255,193,7,.1); color: #FF8F00; font-size: 11px; font-weight: 700; } .qz .sc > i { color: #FFC107; }
.qz .sc em { font-style: normal; grid-area: 1 / 2; transition: opacity .25s ease; } .qz .sc .o, .qz.t1 .sc .z { opacity: 0; } .qz.t1 .sc .o { opacity: 1; }
.qz .pr { display: flex; justify-content: space-between; align-items: center; margin: 0 16px; font-size: 8.5px; font-weight: 700; color: #45464F; } .qz .pr .t { color: var(--pri); }
.qz .s3 .pr, .qz .s4 .pr { margin: 2px 0 0; } .qz .pr .q { color: var(--pri); font-size: 9px; }
.qz .bar { height: 5px; margin: -3px 16px 2px; border-radius: 6px; background: #E1E3E4; overflow: hidden; } .qz .bar i { display: block; height: 100%; border-radius: 6px; background: var(--pri); }
.qz .qq { margin: 4px 0 2px; padding: 12px 10px; border-radius: 16px; background: rgba(225,227,228,.4); box-shadow: inset 0 0 0 1px rgba(197,197,212,.15); text-align: center; font-size: 11px; font-weight: 700; line-height: 1.4; }
.qz .op { position: relative; display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 5px 10px; border-radius: 14px; background: rgba(225,227,228,.3); box-shadow: inset 0 0 0 1px rgba(197,197,212,.1); font-size: 10.5px; font-weight: 500; transition: box-shadow .25s ease, background .25s ease, transform .2s ease, color .25s ease; }
.qz .op .l { display: grid; place-items: center; flex: none; width: 21px; height: 21px; border-radius: 50%; background: #E1E3E4; font-size: 9px; font-weight: 700; color: #45464F; transition: background .25s ease, color .25s ease; }
.qz .op .katex { font-size: 1.05em; }
.qz .op > i { position: absolute; right: 9px; color: #43A047; font-size: 19px; opacity: 0; transform: scale(0); transition: opacity .2s ease, transform .5s cubic-bezier(.34,1.8,.64,1); }
.qz.t1 .op.ok { background: rgba(24,53,169,.08); box-shadow: inset 0 0 0 2px #66BB6A; transform: scale(1.02); color: var(--pri); font-weight: 700; }
.qz.t1 .op.ok .l { background: var(--pri); color: #fff; } .qz.t1 .op.ok > i { opacity: 1; transform: none; }
.qz .xpl { align-self: flex-end; display: flex; align-items: center; gap: 5px; margin-top: 6px; padding: 6px 10px; border-radius: 11px; background: rgba(160,210,196,.3); color: #004C41; font-size: 9.5px; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .4s var(--out); }
.qz.t2 .xpl { opacity: 1; transform: none; } .qz.t3 .xpl { animation: tap .4s var(--out); }
.qz .nx { margin-top: 8px; display: grid; place-items: center; height: 38px; border-radius: 14px; background: #E1E3E4; color: #45464F; font-size: 11px; font-weight: 700; transition: background .3s ease, color .3s ease, box-shadow .3s ease; }
.qz.t1 .nx { background: linear-gradient(90deg, #1835A9, rgba(24,53,169,.8)); color: #fff; box-shadow: 0 4px 12px rgba(24,53,169,.3); }
.qz .kofi { position: absolute; left: 8px; bottom: 8px; width: 50px; opacity: 0; transform: translateY(10px) scale(.8); transform-origin: bottom left; transition: opacity .3s ease, transform .5s cubic-bezier(.34,1.56,.64,1); }
.qz.t1 .kofi { opacity: 1; transform: none; }
.qz .sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 8px 14px 14px; border-radius: 22px 22px 0 0; background: #F8F9FA; box-shadow: 0 -12px 30px -10px rgba(0,0,0,.35); transform: translateY(105%); transition: transform .45s var(--out); font-size: 10px; line-height: 1.55; }
.qz.t4 .sheet { transform: none; }
.qz .sheet .grab { display: block; width: 30px; height: 3px; margin: 0 auto 8px; border-radius: 2px; background: #C5C5D4; }
.qz .sheet .ex { display: flex; align-items: center; gap: 6px; font-size: 7.5px; font-weight: 700; letter-spacing: .22em; color: rgba(69,70,79,.5); } .qz .sheet .ex i { color: var(--pri); font-size: 14px; }
.qz .sheet p { margin: 6px 0 10px; } .qz .sheet .got { display: grid; place-items: center; height: 30px; border-radius: 12px; background: rgba(55,79,194,.4); color: var(--pri); font-weight: 600; font-size: 10.5px; }
.qz .chip { padding: 3px 8px; border-radius: 7px; font-size: 7.5px; font-weight: 700; } .chip.or { background: rgba(255,152,0,.1); color: #FF9800; } .chip.pu { background: rgba(156,39,176,.1); color: #9C27B0; }
.qz .fb { margin-top: 6px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px rgba(197,197,212,.15); font-size: 10.5px; font-weight: 500; line-height: 1.65; }
.qz .hole, .qz .bd { display: inline-grid; } .qz .hole { font-weight: 700; }
.qz .hole em, .qz .bd em { grid-area: 1 / 1; font-style: normal; transition: opacity .25s ease; } .qz .hole em + em, .qz .bd em + em { opacity: 0; }
.qz.t1 .h1 em:first-child, .qz.t2 .h2 em:first-child, .qz.t1 .b1 em:first-child, .qz.t2 .b2 em:first-child { opacity: 0; }
.qz.t1 .h1 em + em, .qz.t2 .h2 em + em, .qz.t1 .b1 em + em, .qz.t2 .b2 em + em { opacity: 1; }
.qz .badges { display: flex; gap: 6px; margin-top: 8px; }
.qz .bd { padding: 2px 9px; border-radius: 7px; background: #E1E3E4; box-shadow: inset 0 0 0 1px rgba(197,197,212,.31); font-size: 10px; font-weight: 700; color: #45464F; transition: background .25s ease, box-shadow .25s ease; } .qz .bd em + em { color: var(--pri); }
.qz.t1 .b1, .qz.t2 .b2 { background: rgba(24,53,169,.1); box-shadow: inset 0 0 0 1px var(--pri); }
.qz .sel { font-size: 8.5px; color: #45464F; } .qz .pick { display: flex; flex-direction: column; gap: 5px; }
.qz .chips { display: flex; flex-wrap: wrap; gap: 5px; } .qz .chips .c { padding: 5px 10px; border-radius: 10px; background: rgba(24,53,169,.06); box-shadow: inset 0 0 0 1px rgba(24,53,169,.31); color: var(--pri); font-size: 10px; font-weight: 500; transition: color .25s ease, background .25s ease, box-shadow .25s ease; }
.qz.t1 .c.k1, .qz.t2 .c.k2 { background: #E1E3E4; box-shadow: inset 0 0 0 1px rgba(197,197,212,.2); color: rgba(69,70,79,.4); text-decoration: line-through; }
.qz .vf { display: grid; place-items: center; height: 34px; border-radius: 12px; background: rgba(25,28,29,.12); color: rgba(25,28,29,.38); font-size: 10.5px; font-weight: 700; transition: background .3s ease, color .3s ease; }
.qz .vf.next { background: var(--pri); color: #fff; }
.qz .good { display: flex; align-items: center; gap: 7px; padding: 9px 10px; border-radius: 10px; background: rgba(76,175,80,.1); color: #4CAF50; font-weight: 700; font-size: 10.5px; } .qz .good i { font-size: 16px; }
.qz .expl { padding: 10px; border-radius: 12px; background: rgba(33,150,243,.05); font-size: 9.5px; line-height: 1.5; } .qz .expl b { display: block; margin-bottom: 4px; font-size: 7.5px; letter-spacing: .22em; color: #2196F3; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* Remplissage : t1, t2 = deux réponses choisies ; t3 = Vérifier ; t4 = correction */
.qz.t2 .s3 .vf:not(.next) { background: var(--pri); color: #fff; } .qz.t3 .s3 .vf:not(.next) { animation: tap .4s var(--out); }
.qz .s3 .good, .qz .s3 .expl, .qz .s3 .next, .qz.t4 .s3 .pick, .qz.t4 .s3 .badges, .qz.t4 .s3 .vf:not(.next) { display: none; }
.qz.t4 .s3 .good, .qz.t4 .s3 .expl, .qz.t4 .s3 .next { display: flex; animation: rise .4s var(--out) both; } .qz.t4 .s3 .next { display: grid; } .qz.t4 .s3 .expl { display: block; }
/* Problème : t1 = Commencer ; t2 = étape 1 ; t3 = réponse tapée ; t4 = Vérifier ; t5 = Correct */
.qz .sp { padding: 11px 12px; border-radius: 16px; background: linear-gradient(90deg, #7B1FA2, #AB47BC); color: #fff; } .qz .sp small { display: block; font-size: 7px; font-weight: 700; letter-spacing: .22em; color: rgba(255,255,255,.7); } .qz .sp b { display: block; margin: 3px 0 6px; font-size: 12px; }
.qz .sp div { display: flex; flex-wrap: wrap; gap: 4px; } .qz .sp span { padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.24); font-size: 7.5px; font-weight: 500; }
.qz .intro, .qz .stepv { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.qz .ctx { padding: 10px; border-radius: 13px; background: #F8F9FA; box-shadow: inset 0 0 0 1px rgba(197,197,212,.15); } .qz .ctx > span { display: flex; align-items: center; gap: 5px; font-size: 7.5px; font-weight: 700; letter-spacing: .2em; color: #45464F; } .qz .ctx > span i { color: var(--pri); font-size: 12px; }
.qz .ctx p { margin: 5px 0 0; font-size: 9.5px; line-height: 1.55; }
.qz .steps3 { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; background: rgba(156,39,176,.06); color: #9C27B0; font-size: 10.5px; font-weight: 600; } .qz .steps3 i { font-size: 15px; }
.qz .go.pu { height: 34px; border-radius: 13px; background: #9C27B0; font-size: 11px; font-weight: 700; } .qz.t1 .go.pu { animation: tap .4s var(--out); }
.qz .stepv, .qz.t2 .intro { display: none; } .qz.t2 .stepv { display: flex; animation: rise .45s var(--out) both; }
.qz .pt { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .qz .pt b { color: #9C27B0; font-size: 11.5px; font-weight: 700; }
.qz .pt span { display: flex; align-items: center; gap: 4px; flex: none; padding: 4px 7px; border-radius: 8px; background: rgba(156,39,176,.1); box-shadow: inset 0 0 0 1px rgba(156,39,176,.31); color: #9C27B0; font-size: 8.5px; font-weight: 700; }
.qz .stp { display: flex; justify-content: space-between; align-items: center; font-size: 9px; font-weight: 700; color: #9C27B0; } .qz .stp .dots { display: flex; gap: 4px; } .qz .stp .dots i { width: 7px; height: 7px; border-radius: 50%; background: #C5C5D4; } .qz .stp .dots i.on { background: #9C27B0; }
.qz.t5 .stp .dots i.on { background: #4CAF50; }
.qz .bar.pu { margin: -3px 0 2px; height: 3px; } .qz .bar.pu i { width: 33.3%; background: #9C27B0; }
.qz .qq.sm { text-align: left; font-weight: 500; font-size: 10px; background: #F8F9FA; }
.qz .inp { position: relative; height: 36px; padding: 0 12px; border-radius: 13px; background: #F8F9FA; box-shadow: inset 0 0 0 1px rgba(197,197,212,.25); display: flex; align-items: center; font-size: 10.5px; }
.qz .inp .ph { color: #8b909c; } .qz .inp .val { position: absolute; left: 12px; font-weight: 600; clip-path: inset(0 100% 0 0); }
.qz.t3 .inp .ph { opacity: 0; } .qz.t3 .inp .val { clip-path: inset(0 0 0 0); transition: clip-path .7s steps(4); }
.qz.t3 .stepv .vf:not(.next) { background: var(--pri); color: #fff; } .qz.t4 .stepv .vf:not(.next) { animation: tap .4s var(--out); }
.qz .s4 .good, .qz .s4 .next, .qz.t5 .stepv .vf:not(.next) { display: none; }
.qz.t5 .s4 .good { display: flex; animation: rise .4s var(--out) both; } .qz.t5 .s4 .next { display: grid; animation: rise .4s var(--out) .1s both; }
@media (max-width: 900px) {
  .f-quiz { grid-template-columns: minmax(0, 410px); justify-content: center; row-gap: 30px; }
  .f-quiz .phone { justify-self: center; width: 290px; height: 590px; }
}
@media (prefers-reduced-motion: reduce) { .qz * { animation: none !important; } }

/* Inéquation */
.flow[data-solo] .fl-e .trk { opacity: 0; transition: opacity .3s ease; } .flow[data-solo] .fl-e.on .trk { opacity: 1; }
/* Formulaire — d'après recherche_bottom_sheet.dart (ouvert par le bouton + de l'accueil) */
.scr.fo { position: relative; background: #F8F9FA; }
.fo-bg { height: 200px; border-radius: 0 0 17px 17px; background: #0246DF center / cover no-repeat; background-position: 85% 35%; }
.fo-fab { position: absolute; right: 11px; bottom: 64px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #1835A9; color: #fff; font-size: 20px; transition: transform .2s var(--out); }
.fo.p1 .fo-fab { transform: scale(.9); }
.fo-bar { position: absolute; inset: 0; z-index: 2; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .35s ease; }
.fo.p1 .fo-bar { opacity: 1; }
.fo-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 75%; display: flex; flex-direction: column; padding: 7px 11px 0; border-radius: 20px 20px 0 0; background: #F8F9FA; box-shadow: 0 -4px 14px rgba(0,0,0,.2); transform: translateY(102%); transition: transform .5s cubic-bezier(.32,.72,0,1); overflow: hidden; }
.fo.p1 .fo-sheet { transform: none; }
.fo-sheet .grab { display: block; align-self: center; width: 27px; height: 3px; border-radius: 7px; background: #C5C5D4; margin-bottom: 7px; }
.fo .srow { display: flex; gap: 6px; }
.fo .sfield { flex: 1; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px; border-radius: 11px; background: rgba(225,227,228,.5); box-shadow: inset 0 0 0 1px rgba(197,197,212,.4); transition: box-shadow .25s ease; } .fo .sfield > i { color: #1835A9; font-size: 14px; }
.fo.p2 .sfield { box-shadow: inset 0 0 0 1.5px #1835A9; }
.fo .sx { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 11px; background: rgba(225,227,228,.5); color: #45464F; font-size: 14px; }
.fo .q { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; height: 20px; font-size: 9.5px; }
.fo .q em { font-style: normal; white-space: nowrap; } .fo .q .ph { color: #45464F; font-size: 8.5px; overflow: hidden; text-overflow: ellipsis; } .fo .q .tx { position: absolute; left: 0; color: #191C1D; clip-path: inset(0 100% 0 0); }
.fo .q .caret { position: absolute; left: 0; width: 1.5px; height: 12px; background: #1835A9; opacity: 0; }
.fo.p2 .q .ph { opacity: 0; } .fo.p2 .q .tx { clip-path: inset(0 0 0 0); transition: clip-path .8s steps(7); }
.fo.p2 .q .caret { opacity: 1; left: 36px; transition: left .8s steps(7); animation: blink 1s steps(1) infinite .8s; }
.fo .cats { display: flex; gap: 5px; margin: 8px 0 6px; overflow: hidden; white-space: nowrap; }
.fo .cats span { display: inline-flex; align-items: center; gap: 3px; padding: 5px 9px; border-radius: 10px; background: rgba(225,227,228,.35); font-size: 8.5px; font-weight: 500; color: #191C1D; } .fo .cats .on { background: #1835A9; color: #fff; font-weight: 700; } .fo .cats i { font-size: 10px; }
.fo .lst { display: flex; flex-direction: column; padding: 2px 0; }
.fo .fi { display: grid; grid-template-rows: 1fr; margin-bottom: 6px; transition: grid-template-rows .5s var(--out), margin .5s var(--out), opacity .3s ease; }
.fo .fi > div { overflow: hidden; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px rgba(197,197,212,.25), 0 2px 5px rgba(0,0,0,.03); }
.fo.p3 .fi.drop { grid-template-rows: 0fr; margin-bottom: 0; opacity: 0; }
.fo .fr { display: grid; grid-template-columns: 24px 1fr auto 12px; align-items: center; gap: 7px; padding: 7px 8px; }
.fo .sg { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: rgba(55,79,194,.12); color: #1835A9; font-size: 13px; }
.fo .fr b { font-size: 9px; font-weight: 600; line-height: 1.3; } .fo .tag { padding: 2px 5px; border-radius: 6px; background: rgba(55,79,194,.5); color: #1835A9; font-size: 6.5px; font-weight: 700; }
.fo .fr .car { font-size: 11px; color: #45464F; transition: transform .4s var(--out); }
.fo .fx { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--out); }
.fo .fx > div { overflow: hidden; display: flex; align-items: center; gap: 6px; margin: 0 8px; padding: 0 9px; border-radius: 8px; background: rgba(55,79,194,.15); font-size: 9px; transition: padding .55s var(--out), margin .55s var(--out); }
.fo .fx > div > span { flex: 1; overflow: hidden; } .fo .fx > div > i { color: #1835A9; font-size: 12px; }
.fo.p4 .k1 .fx, .fo.p5 .k2 .fx { grid-template-rows: 1fr; } .fo.p4 .k1 .fx > div, .fo.p5 .k2 .fx > div { padding: 8px 9px; margin: 0 8px 8px; }
.fo.p4 .k1 .car, .fo.p5 .k2 .car { transform: rotate(180deg); }
.fo .katex { font-size: 1em; }
#formulaire .phone-wrap { position: relative; }
.fo-note { position: absolute; left: -110px; top: 40px; font-size: 26px; transform: rotate(-6deg); }
@media (max-width: 900px) { .fo-note { display: none; } }
/* Accueil : notre activité */
.f-act { display: grid; margin-top: 48px; grid-template-columns: repeat(20, minmax(0, 1fr)); column-gap: 10px; row-gap: 70px; align-items: stretch;
  grid-template-areas: "v1 v1 v1 v1 v2 v2 v2 v2 v3 v3 v3 v3 v4 v4 v4 v4 v5 v5 v5 v5" "o1 o1 o1 o1 o1 o2 o2 o2 o2 o2 o3 o3 o3 o3 o3 o4 o4 o4 o4 o4"; }
.f-act > .fn[data-id^="v"] { margin-right: 26px; }
.f-act > .fn[data-id="v5"] { margin-right: 0; }
.f-act > .fn[data-id^="o"] { margin: 0 6px; align-items: flex-start; }
@media (max-width: 900px) {
  .f-act { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 36px; row-gap: 16px; align-items: center;
    grid-template-areas: "v1 ." "v2 o1" "v3 o2" "v4 o3" "v5 o4"; }
  .f-act > .fn { margin: 0 !important; }
}
@media (max-width: 620px) { .f-act { column-gap: 24px; } .f-act > .fn { padding: 8px; gap: 8px; } .f-act > .fn > i { width: 28px; height: 28px; font-size: 16px; } .f-act > .fn[data-id^="v"] small { display: none; } }
@media (prefers-reduced-motion: reduce) { .qz *, .fo * { transition-delay: 0s !important; transition-duration: 0s !important; } }
/* Traits tracés : pointillés qui défilent vers la carte d'arrivée */
.fl-e.on .ln { animation: march .9s linear infinite; }
@keyframes march { from { stroke-dashoffset: 13; } to { stroke-dashoffset: 0; } }
.fl-e .dot { r: 2.8; }
@media (prefers-reduced-motion: reduce) { .fl-e.on .ln { animation: none; } }
/* Héros Élève : la languette et la feuille « Résolveur Mathématique » */
.scr.sv { position: relative; }
.app .ab.title2 { grid-template-columns: 22px 1fr 22px; background: #1835A9; } .app .ab.title2 b { letter-spacing: 0; font-size: 12px; }
.sv .mt-tabs { display: flex; align-items: center; gap: 2px; padding: 6px 8px; overflow: hidden; white-space: nowrap; font-size: 8.5px; font-weight: 600; color: rgba(25,28,29,.6); }
.sv .mt-tabs span { padding: 5px 7px; border-radius: 12px; } .sv .mt-tabs .on { display: inline-flex; align-items: center; gap: 4px; background: #1835A9; color: #fff; } .sv .mt-tabs .on i { font-size: 12px; }
.sv .seg { margin: 0 6px; background: rgba(225,227,228,.3); }
.sv .seg span.on { background: #1835A9; }
.sv .bg-card { margin: 10px; padding: 12px; border-radius: 14px; background: rgba(225,227,228,.3); display: flex; flex-direction: column; gap: 8px; } .sv .bg-card .field { height: 34px; }
.sv .tongue { position: absolute; left: -16px; top: 46%; z-index: 4; display: grid; place-items: center; padding-left: 12px; width: 32px; height: 37px; border-radius: 0 11px 11px 0; background: rgba(24,53,169,.62); color: #fff; font-size: 14px; transition: background .25s ease, transform .2s ease; }
.sv .tongue.tap { background: rgba(24,53,169,.95); transform: scale(.94); }
.sv .barrier { position: absolute; inset: 0; z-index: 5; background: rgba(0,0,0,.54); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.sv.open .barrier { opacity: 1; }

/* Photo : lecture confirmée dans un dialogue, puis résolution — d'après smart_solver_panel.dart (_proposerTexteOcr) */
.cam .read { background: rgba(0,0,0,.54); }
.cam .read .sb { background: transparent; }
.cam .read .ocr { opacity: 0; transition: opacity .3s ease; font-size: 11px; }
.cam .dlg-bg { position: absolute; inset: 0; z-index: 7; background: rgba(0,0,0,.4); transition: opacity .3s ease; }
.cam .dlg { position: absolute; z-index: 8; left: 18px; right: 18px; top: 150px; padding: 16px 16px 10px; border-radius: 22px; background: #F3F4F5; box-shadow: 0 12px 30px rgba(0,0,0,.3); transform-origin: center; transition: opacity .25s ease, transform .3s var(--out); }
.cam .dlg b { display: block; font-size: 12.5px; font-weight: 700; } .cam .dlg p { margin: 7px 0 9px; font-size: 8.5px; line-height: 1.45; color: #45464F; }
.cam .dlg .tf { position: relative; min-height: 46px; padding: 8px 10px; border-radius: 4px; box-shadow: inset 0 0 0 1px #75767F; font: 10px/1.4 "Roboto Mono", ui-monospace, monospace; color: #191C1D; }
.cam .dlg .tf span { position: absolute; left: 10px; top: 8px; transition: opacity .3s ease; } .cam .dlg .norm { opacity: 0; } .cam .dlg .norm em { font-style: normal; background: rgba(24,53,169,.14); border-radius: 3px; color: #1835A9; }
.cam .dlg .act { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; font-size: 9.5px; font-weight: 600; } .cam .dlg .act span { padding: 7px 10px; border-radius: 16px; color: #1835A9; }
.cam .dlg .act .use { background: #1835A9; color: #fff; transition: transform 160ms var(--out), filter .2s ease; }
.cam.p5 .dlg .raw { opacity: 0; } .cam.p5 .dlg .norm { opacity: 1; }
.cam.p6 .dlg .use { box-shadow: 0 0 0 3px rgba(24,53,169,.2); }
.cam.p7 .dlg .use { transform: scale(.94); filter: brightness(1.15); }
.cam.p7 .dlg, .cam.p7 .dlg-bg { opacity: 0; } .cam.p7 .dlg { transform: scale(.95); }
.cam.p7 .read { background: rgba(0,0,0,.54); } .cam.p7 .read .ocr { opacity: 1; }
.sv .mt-tabs { display: flex; align-items: center; gap: 2px; padding: 6px 8px; overflow: hidden; white-space: nowrap; font-size: 8.5px; font-weight: 600; color: rgba(25,28,29,.6); }
.app .seg.five { margin: 0 6px; background: rgba(225,227,228,.3); overflow: hidden; } .app .seg.five span { flex: none; padding: 6px 7px; } .app .seg.five span.on { background: #1835A9; }
.app .seg.five { display: flex; flex-wrap: nowrap; gap: 0; padding: 3px; border: 0; } .app .seg.five span { flex: none; padding: 6px 8px; font-size: 9px; font-weight: 500; line-height: 1.2; border: 0; border-radius: 9px; box-shadow: none; background: none; color: #45464F; } .app .seg.five span.on { background: #1835A9; color: #fff; font-weight: 700; }
/* Mémo du chapitre — d'après coursDownload.page.dart et memorisation.page.dart */
.memo2 { background: #F8F9FA; }
.memo2 .lc-h { display: grid; grid-template-columns: 18px 1fr 18px; align-items: center; gap: 10px; height: 36px; padding: 0 12px; font-size: 14px; } .memo2 .lc-h b { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; } .memo2 .lc-h .dl { color: #1835A9; }
.memo2 .lc-tabs { margin: 2px 12px 8px; padding: 3px; border-radius: 17px; background: #F3F4F5; box-shadow: 0 3px 7px rgba(0,0,0,.04); overflow: hidden; }
.memo2 .rail { display: flex; transform: translateX(-118px); }
.memo2 .rail span { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 6px 11px; border-radius: 14px; font-size: 9px; font-weight: 500; color: rgba(69,70,79,.7); } .memo2 .rail i { font-size: 10px; }
.memo2 .rail .on { background: #1835A9; color: #fff; font-weight: 700; box-shadow: 0 3px 7px rgba(24,53,169,.3); }
.memo2 .mm { display: flex; flex-direction: column; gap: 8px; padding: 0 11px; }
.mm-top { display: flex; align-items: center; gap: 9px; padding: 13px; border-radius: 14px; background: linear-gradient(90deg, #004C41, rgba(0,76,65,.7)); color: #fff; }
.mm-top > i { font-size: 19px; opacity: .8; } .mm-top div { flex: 1; } .mm-top small { display: block; font-size: 7px; font-weight: 700; letter-spacing: .2em; opacity: .7; } .mm-top b { font-size: 12.5px; }
.mm-top span { padding: 4px 7px; border-radius: 7px; background: rgba(255,255,255,.2); font-size: 7px; }
.dc { padding: 11px 12px; border-radius: 14px; background: #F8F9FA; box-shadow: inset 0 0 0 1px rgba(197,197,212,.15); transition: background .3s ease, box-shadow .3s ease, transform .2s ease; }
.dh { display: flex; align-items: center; gap: 7px; } .dh .n { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 6px; background: rgba(24,53,169,.1); color: #1835A9; font-size: 8.5px; font-weight: 700; }
.dh b { flex: 1; font-size: 11px; font-weight: 700; color: #1835A9; }
.dh .bx { display: inline-grid; } .dh .bx em { grid-area: 1 / 1; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: #fff; font-style: normal; font-size: 8px; font-weight: 700; transition: opacity .3s ease, transform .45s cubic-bezier(.34,1.56,.64,1); }
.dh .b0 { background: #E53935; } .dh .b1 { background: #FB8C00; } .dh .b3 { background: #FDD835; } .dh .b4 { background: #7CB342; } .dh .b5 { background: #2E7D32; }
.dh .b4, .dh .b0 { opacity: 0; transform: scale(.4); }
.dc .hint { display: flex; align-items: center; gap: 3px; margin-top: 5px; font-size: 7.5px; color: rgba(69,70,79,.25); } .dc .hint i { font-size: 10px; }
.dc .rv2 { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--out); } .dc .rv2 > div { overflow: hidden; }
.dc .df { margin-top: 9px; padding: 9px; border-radius: 10px; background: #F8F9FA; font-size: 10.5px; }
.dc .btns { display: flex; gap: 7px; margin-top: 8px; } .dc .btns span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 6px 0; border-radius: 16px; font-size: 9px; font-weight: 600; transition: transform .18s var(--out), filter .2s ease; }
.dc .btns .no { color: #E53935; box-shadow: inset 0 0 0 1px rgba(229,57,53,.5); } .dc .btns .yes { background: #7CB342; color: #fff; }
/* p1 tap 1 · p2 révélée · p3 Je savais · p4 refermée, boîte 3→4 · p5 carte 2 révélée · p6 À revoir · p7 refermée, boîte 2→1 */
.memo2.p1:not(.p4) .c1, .memo2.p5:not(.p7) .c2 { background: rgba(24,53,169,.06); box-shadow: inset 0 0 0 1px rgba(24,53,169,.2), 0 4px 12px rgba(24,53,169,.08); }
.memo2.p1:not(.p2) .c1, .memo2.p5:not(.p6) .c2 { transform: scale(.98); }
.memo2.p2:not(.p4) .c1 .rv2, .memo2.p5:not(.p7) .c2 .rv2 { grid-template-rows: 1fr; }
.memo2.p2:not(.p4) .c1 .hint, .memo2.p5:not(.p7) .c2 .hint { display: none; }
.memo2.p3:not(.p4) .c1 .yes { transform: scale(.94); filter: brightness(1.1); } .memo2.p6:not(.p7) .c2 .no { transform: scale(.94); background: rgba(229,57,53,.08); }
.memo2.p4 .c1 .b3, .memo2.p7 .c2 .b1 { opacity: 0; transform: scale(.4); } .memo2.p4 .c1 .b4, .memo2.p7 .c2 .b0 { opacity: 1; transform: none; }
.five { flex-wrap: wrap; }
/* TD en direct — d'après live_calendar.page.dart, live_indicators.dart, notification_service.dart */
.live2 { position: relative; background: #F8F9FA; }
.live2 .notif { position: absolute; z-index: 5; left: 8px; right: 8px; top: 8px; display: flex; gap: 8px; padding: 8px 10px; border-radius: 14px; background: rgba(255,255,255,.97); box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); font-size: 8.5px; line-height: 1.35; transform: translateY(-140%); opacity: 0; transition: transform .5s var(--out), opacity .3s ease; }
.live2 .notif .ni img { width: 20px; height: 20px; border-radius: 5px; } .live2 .notif small { color: #6b7080; font-size: 7px; } .live2 .notif b { font-size: 9px; } .live2 .notif span span { color: #45464F; }
.live2.p1 .notif { transform: none; opacity: 1; } .live2.p2 .notif { transform: translateY(-140%); opacity: 0; }
.lv-ab { display: grid; grid-template-columns: 18px 1fr 18px; align-items: center; gap: 10px; padding: 4px 12px 6px; font-size: 14px; } .lv-ab b { display: block; font-size: 13px; font-weight: 700; } .lv-ab small { font-size: 8px; font-weight: 500; color: rgba(24,53,169,.7); } .lv-ab .rf { color: #1835A9; }
.live2 .cal { margin: 0 8px; padding: 6px 6px 4px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(197,197,212,.4); }
.live2 .ch { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 4px; color: #1835A9; font-size: 11px; } .live2 .ch b { color: #191C1D; font-size: 10.5px; }
.live2 .dow, .live2 .cg { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; } .live2 .dow span { font-size: 7px; font-weight: 700; color: #45464F; padding-bottom: 2px; }
.live2 .cg span { position: relative; display: grid; place-items: center; height: 18px; font-size: 8px; color: #191C1D; } .live2 .cg .wkd { color: #45464F; }
.live2 .cg .tdy::before { content: ""; position: absolute; z-index: 0; width: 16px; height: 16px; border-radius: 50%; background: #1835A9; } .live2 .cg .tdy { color: #fff; font-weight: 700; z-index: 0; } .live2 .cg span { z-index: 0; }
.live2 .cg .tdy { isolation: isolate; } .live2 .cg .tdy::before { z-index: -1; }
.live2 .cg .m { position: absolute; bottom: 0; width: 4px; height: 4px; border-radius: 50%; } .live2 .m.g { background: rgba(69,70,79,.45); } .live2 .m.b { background: #1835A9; } .live2 .m.r { background: #FF5252; animation: livePulse 1.2s ease-in-out infinite; }
@keyframes livePulse { 50% { box-shadow: 0 0 0 3px rgba(255,82,82,.25); } }
.live2 .lg { display: flex; gap: 11px; padding: 6px 12px 4px; font-size: 7.5px; color: #45464F; } .live2 .lg span { display: flex; align-items: center; gap: 3px; } .live2 .lg i { width: 5px; height: 5px; border-radius: 50%; }
.live2 .agenda { display: flex; flex-direction: column; gap: 8px; padding: 2px 11px; }
.live2 .sc { display: flex; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px rgba(197,197,212,.5), 0 3px 7px rgba(25,28,29,.04); overflow: hidden; transition: transform .2s ease, box-shadow .3s ease; }
.live2 .sc.live { box-shadow: inset 0 0 0 1px rgba(24,53,169,.5), 0 3px 7px rgba(25,28,29,.04); }
.live2 .tm { flex: none; width: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 0; border-right: 1px solid rgba(197,197,212,.5); } .live2 .tm b { font-size: 11px; } .live2 .tm small { font-size: 7.5px; color: #45464F; }
.live2 .sc.live .tm { background: rgba(24,53,169,.05); } .live2 .sc.live .tm b { color: #1835A9; }
.live2 .bd { flex: 1; min-width: 0; padding: 8px 10px; } .live2 .r1 { display: flex; align-items: center; justify-content: space-between; } .live2 .r1 span { font-size: 6.5px; font-weight: 900; letter-spacing: .12em; color: rgba(24,53,169,.7); }
.live2 .lb { display: inline-flex; align-items: center; gap: 3px; padding: 1px 5px; border-radius: 6px; background: #FF5252; color: #fff; font-style: normal; font-size: 6.5px; font-weight: 800; box-shadow: 0 0 6px rgba(255,82,82,.5); } .live2 .lb i { width: 4px; height: 4px; border-radius: 50%; background: #fff; animation: blink 1s steps(1) infinite; }
.live2 .bd > b { display: block; margin: 2px 0 5px; font-size: 10.5px; }
.live2 .r2 { display: flex; align-items: center; gap: 5px; font-size: 8px; color: #45464F; } .live2 .av { display: grid; place-items: center; width: 13px; height: 13px; border-radius: 50%; background: #374FC2; color: #fff; font-size: 6px; font-weight: 700; }
.live2 .r2 em { margin-left: auto; font-style: normal; font-size: 7.5px; font-weight: 700; color: #1835A9; } .live2 .r2 .cd { font-weight: 500; }
.live2.p3:not(.p4) .sc.live { transform: scale(.97); }
.live2 .ss-bar { position: absolute; inset: 0; z-index: 3; background: rgba(0,0,0,.32); opacity: 0; transition: opacity .3s ease; }
.live2 .ss { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; flex-direction: column; gap: 4px; padding: 7px 14px 16px; border-radius: 16px 16px 0 0; background: #F8F9FA; transform: translateY(102%); transition: transform .5s cubic-bezier(.32,.72,0,1); }
.live2.p4 .ss-bar { opacity: 1; } .live2.p4 .ss { transform: none; }
.live2 .ss .grab { align-self: center; width: 27px; height: 3px; border-radius: 2px; background: #C5C5D4; margin-bottom: 6px; } .live2 .ss > b { font-size: 13px; } .live2 .ss > small { font-size: 9px; color: #45464F; margin-bottom: 4px; }
.live2 .ss .ln { display: flex; align-items: center; gap: 6px; font-size: 9px; } .live2 .ss .ln i { color: #1835A9; font-size: 11px; } .live2 .ss .ln + .ln i { color: #004C41; }
.live2 .jb { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; margin-top: 10px; border-radius: 17px; background: #FF5252; color: #fff; font-size: 10px; font-weight: 700; transition: transform .18s var(--out), filter .2s ease; }
.live2 .jb .t2 { display: none; align-items: center; gap: 5px; } .live2 .jb .sp { width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
.live2.p5 .jb > i, .live2.p5 .jb .t1 { display: none; } .live2.p5 .jb .t2 { display: inline-flex; }
.live2.p5:not(.p6) .jb { transform: scale(.96); filter: brightness(1.1); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════ Retouches : un seul cahier, titres soulignés, sommaire ═══════════ */
/* --ml : position de la marge rouge. Les % se résolvent sur la largeur de page,
   la même pour la marge (fixe) et pour les feuilles (absolues dans la section). */
:root { --red: #d6453a; --ml: max(16px, calc(50% - var(--w) / 2 - 20px)); }

/* Le Seyès couvre toute la page ; la marge rouge court du haut au bas */
body { background-color: var(--paper);
  background-image: linear-gradient(90deg, var(--rule) 1px, transparent 1px), linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(var(--rule-2) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px, 8px 8px; }
body::before { content: ""; position: fixed; top: 0; bottom: 0; left: var(--ml); z-index: -1; width: 2px; background: var(--margin); transform-origin: top; pointer-events: none; }
.margin, section > .paper { display: none; }

/* Sections « domain » : une feuille de classeur posée sur le cahier.
   Son bord gauche est calé 28 px avant la marge, pour que la marge rouge de
   la feuille prolonge exactement celle du cahier. */
.domain > .paper { display: block; top: 36px; bottom: 36px; left: calc(var(--ml) - 28px); right: max(-12px, calc(50% - var(--w) / 2 - 48px));
  -webkit-mask-image: none; mask-image: none; border-radius: 3px; background-color: #fff;
  background-image: linear-gradient(90deg, transparent 28px, var(--margin) 28px, var(--margin) 30px, transparent 30px), repeating-linear-gradient(transparent 0 31px, var(--rule) 31px 32px);
  background-size: auto; background-repeat: no-repeat, repeat;
  box-shadow: 0 0 0 1px rgba(11,19,48,.06), 0 2px 5px rgba(11,19,48,.04), 0 44px 70px -48px rgba(10,42,154,.5); }
.domain > .paper::after { content: ""; position: absolute; top: -13px; left: 22%; width: 128px; height: 28px; background: rgba(255,241,196,.9); box-shadow: 0 2px 6px rgba(0,0,0,.08); transform: rotate(-3deg);
  -webkit-mask-image: linear-gradient(90deg, transparent 0 3%, #000 3% 97%, transparent 97%); mask-image: linear-gradient(90deg, transparent 0 3%, #000 3% 97%, transparent 97%); }
.domain + .domain > .paper::after { left: auto; right: 18%; transform: rotate(2.5deg); }

/* Titres soulignés en rouge, à la règle */
h2 { width: fit-content; }
h2::after { content: ""; display: block; height: 3px; margin-top: .22em; border-radius: 2px; background: var(--red); opacity: .85; transform: rotate(-.35deg); transform-origin: left; }

/* Sommaire qui suit la lecture (pages longues, écrans de 1 440 px et plus) */
.sommaire { position: fixed; z-index: 20; top: 50%; left: 14px; width: calc(var(--ml) - 38px); max-height: 84vh; overflow: auto; scrollbar-width: none; display: none;
  font-family: "Caveat", cursive; font-weight: 600; opacity: 0; pointer-events: none; transform: translate(-10px, -50%); transition: opacity .4s var(--out), transform .5s var(--out); }
.sommaire.show { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }
.som-h { display: block; margin-bottom: 8px; font-size: 25px; transform: rotate(-3deg); transform-origin: left; }
.sommaire ol { list-style: none; margin: 0; padding: 0; }
.sommaire a { display: flex; gap: 4px; padding: 2px 0; font-size: 18px; line-height: 1.15; color: var(--faint); transition: color .25s ease; }
.sommaire .n { flex: none; min-width: 1.25em; }
.sommaire .t { background: linear-gradient(var(--blue), var(--blue)) left bottom / 0 2px no-repeat; transition: background-size .45s var(--inout); }
.sommaire li.done a { color: var(--muted); }
.sommaire li.on a { color: var(--blue); }
.sommaire li.on .t { background-size: 100% 2px; }
@media (hover: hover) and (pointer: fine) { .sommaire a:hover { color: var(--ink); } }
@media (min-width: 1440px) { .sommaire { display: block; } }
/* Numéro de chaque section, entouré en rouge juste après la marge, à la
   hauteur du titre manuscrit ; repris du sommaire. `top` est posé par cahier.js. */
.mnum { position: absolute; z-index: 1; left: calc(var(--ml) + 9px); width: 30px; height: 30px; display: none; place-items: center;
  font-family: "Caveat", cursive; font-weight: 700; font-size: 20px; line-height: 1; color: var(--red); transform: rotate(4deg); pointer-events: none; }
.mnum svg { position: absolute; inset: -3px; width: calc(100% + 6px); height: calc(100% + 6px); overflow: visible; }
.mnum path { fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1240px) { .mnum { display: grid; } }
@media (prefers-reduced-motion: no-preference) { .mnum { opacity: 0; transform: rotate(4deg) scale(.6); transition: opacity .4s var(--out), transform .5s cubic-bezier(.34,1.4,.64,1); } .mnum.in { opacity: 1; transform: rotate(4deg); } }
/* Journée d'école : étapes plus serrées sur ordinateur (68vh laissait ~400 px de blanc par étape) */
@media (min-width: 901px) { .step { min-height: 44vh; } }
/* Trait d'avancement sous la barre du haut */
.nav .bar { position: relative; }
.nav .prog { position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px; background: var(--blue-fill); opacity: .75; transform: scaleX(var(--sp, 0)); transform-origin: left; pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
  body::before { animation: margin 1.4s var(--inout) both .1s; }
  h2.rv::after { transform: rotate(-.35deg) scaleX(0); transition: transform .8s var(--inout) calc(var(--d, 0) * 60ms + 380ms); }
  h2.rv.in::after { transform: rotate(-.35deg) scaleX(1); }
}
@media (prefers-reduced-motion: reduce) { .sommaire, .sommaire .t { transition: none; } }
@media (max-width: 900px) {
  :root { --ml: 10px; }
  .domain > .paper { top: 24px; bottom: 24px; right: -12px; border-radius: 0; }
  .domain > .paper::after { width: 96px; height: 24px; }
}

/* ═══════════ Modules à la carte (page École) ═══════════ */
.compose { margin-top: 48px; }
.cp-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cp-mode { display: inline-flex; gap: 2px; padding: 4px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.cp-mode button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 500 14.5px/1 "Geist", system-ui, sans-serif; cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.cp-mode button i { font-size: 17px; }
.cp-mode button[aria-pressed="true"] { background: var(--blue-fill); color: #fff; }
.cp-count { font-size: 27px; transform: rotate(-2deg); }
.cp-who { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; }
.cp-who > .hand { padding-top: 6px; }
.cp-who > .hand { flex: none; font-size: 24px; }
.cp-roles { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 2px 8px; }
.cp-roles button, .roles button { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--ink); font: 14px/1.2 "Geist", system-ui, sans-serif; white-space: nowrap; cursor: pointer; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.cp-roles button i, .roles button i { color: var(--blue); font-size: 16px; transition: color .25s ease; }
.cp-roles button[aria-pressed="true"] { background: var(--blue-fill); color: #fff; box-shadow: none; } .cp-roles button[aria-pressed="true"] i { color: #fff; }
.roles button { padding: 9px 16px; font-size: 15px; } .roles button i { font-size: 18px; }
.roles-hint { margin: 16px 0 0; font-size: 22px; transform: rotate(-1deg); }
@media (hover: hover) and (pointer: fine) { .cp-roles button:hover, .roles button:hover { box-shadow: 0 0 0 1px rgba(10,42,154,.45); } .cp-mode button:not([aria-pressed="true"]):hover { color: var(--ink); } }

.cp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 56px; align-items: start; margin-top: 22px; }
.cp-grp + .cp-grp { margin-top: 20px; }
.cp-gh { display: inline-block; font-size: 28px; transform: rotate(-2deg); margin-bottom: 2px; }
.cp-mod { border-bottom: 1px solid var(--line); transition: opacity .35s ease; }
.cp-mod.nv { opacity: .36; }
.cp-head { display: flex; align-items: center; gap: 12px; }
.cp-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cp-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(58,90,216,.09); color: var(--blue); font-size: 19px; transition: background-color .3s ease, color .3s ease; }
.cp-mod.open .cp-ic { background: var(--blue-fill); color: #fff; }
.cp-t { flex: 1; min-width: 0; }
.cp-t b { display: block; font-weight: 600; font-size: 16.5px; line-height: 1.25; transition: color .3s ease; }
.cp-t small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.cp-mod.off .cp-t b { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(214,69,58,.7); }
.cp-mod.off .cp-ic { background: rgba(11,19,48,.05); color: var(--faint); }
.cp-car { flex: none; font-size: 15px; color: var(--muted); transition: transform .35s var(--out); }
.cp-mod.open .cp-car { transform: rotate(180deg); }
.cp-tag { display: none; flex: none; padding: 3px 8px; border-radius: 999px; background: #fbeed8; color: #9a5b00; font-size: 11.5px; white-space: nowrap; }
.cp-mod.na .cp-tag { display: inline-block; }
.cp-lock { flex: none; display: inline-flex; align-items: center; gap: 4px; font-family: "Caveat", cursive; font-weight: 600; font-size: 19px; color: var(--blue); }
.cp-sw { flex: none; position: relative; width: 40px; height: 24px; border: 0; border-radius: 999px; background: #d6d9e4; cursor: pointer; transition: background-color .25s ease; }
.cp-sw i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(11,19,48,.3); transition: transform .3s var(--out); }
.cp-sw[aria-checked="true"] { background: var(--blue-fill); } .cp-sw[aria-checked="true"] i { transform: translateX(16px); }
.cp-sw:disabled { cursor: not-allowed; opacity: .5; }
.cp-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--out); }
.cp-body > div { overflow: hidden; padding-left: 48px; }
.cp-mod.open .cp-body { grid-template-rows: 1fr; }
.cp-body ul { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.cp-body li { display: flex; align-items: baseline; gap: 7px; font-size: 14.5px; color: var(--ink); }
.cp-body li i { color: #1f7a47; font-size: 14px; transform: translateY(2px); }
.cp-go { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 14px; font-family: "Caveat", cursive; font-weight: 700; font-size: 21px; color: var(--blue); }
.cp-go i { font-size: 16px; transition: transform .3s var(--out); }
@media (hover: hover) and (pointer: fine) { .cp-go:hover i { transform: translateY(3px); } .cp-open:hover .cp-t b { color: var(--blue); } }

/* Fenêtre de l'application : le menu suit les modules activés */
.cp-app { position: sticky; top: 96px; }
.cp-app > .tape { top: -17px; left: 44%; width: 20%; height: 22px; z-index: 3; }
.cp-win { display: grid; grid-template-columns: 150px 1fr; height: 470px; border-radius: 10px; overflow: hidden; background: #f3f4f6; font-family: "Roboto", system-ui, sans-serif; color: #111827; transform: rotate(.6deg); box-shadow: 0 1px 2px rgba(11,19,48,.06), 0 40px 80px -40px rgba(10,42,154,.45); }
.cp-side { background: #fff; border-right: 1px solid #eceef2; padding: 0 8px; overflow: hidden; }
.cp-logo { display: flex; align-items: center; gap: 7px; height: 46px; margin: 0 -8px 6px; padding: 0 12px; border-bottom: 1px solid #eceef2; }
.cp-logo > span { display: flex; align-items: center; gap: 7px; }
.cp-logo img { width: 24px; height: 26px; } .cp-logo .lg-desk b { font-family: "Outfit", "Roboto", sans-serif; font-weight: 700; font-size: 16px; color: #1e2328; } .cp-logo .lg-desk b span { color: #c9a053; }
.cp-mi { display: flex; align-items: center; gap: 7px; height: 25px; margin-bottom: 1px; padding: 0 7px; border-radius: 7px; color: #4b5563; font-size: 9.5px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; overflow: hidden;
  transition: height .4s var(--out), margin .4s var(--out), opacity .3s ease, background-color .3s ease, color .3s ease; }
.cp-mi i { font-size: 13px; flex: none; }
.cp-mi.hide { height: 0; margin: 0; opacity: 0; }
.cp-mi.on, .cp-mi[data-k=""]:first-child:not(:has(~ .on)) { background: var(--blue-fill); color: #fff; }
.cp-main { display: flex; flex-direction: column; min-width: 0; }
.cp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 46px; padding: 0 12px; background: #fff; border-bottom: 1px solid #eceef2; }
.cp-search { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; box-shadow: inset 0 0 0 1.2px #d1d5db; color: #9ca3af; font-size: 10px; }
.cp-user { display: flex; align-items: center; gap: 7px; font-size: 10px; text-align: right; } .cp-user b { display: block; font-weight: 500; } .cp-user small { display: block; color: #6b7280; font-size: 9px; }
.cp-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #e8edff; color: var(--blue); font-weight: 600; font-size: 9.5px; }
.cp-screen { padding: 16px; overflow: hidden; }
.cp-screen h4 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.cp-screen p { margin: 3px 0 12px; color: #6b7280; font-size: 10.5px; }
.cp-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.cp-tiles span { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 9px; border-radius: 9px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); font-size: 10.5px; line-height: 1.2; }
.cp-tiles i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #e8edff; color: var(--blue); font-size: 13px; }
.cp-note { position: absolute; right: 18px; bottom: -56px; font-size: 23px; transform: rotate(-4deg); white-space: nowrap; opacity: 0; transition: opacity .5s ease .3s; }
.cp-note.on { opacity: 1; }
.cp-note .ink { position: absolute; left: -58px; top: -30px; width: 52px; height: 38px; }
.cp-soon { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 64px; }
.cp-soon > .hand { font-size: 25px; }
.cp-soon .postits { flex-basis: 100%; margin-top: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .cp-screen h4, .cp-screen p, .cp-tiles span { opacity: 0; transform: translateY(6px); }
  .cp-screen.in h4, .cp-screen.in p, .cp-screen.in .cp-tiles span { opacity: 1; transform: none; transition: opacity .35s ease, transform .45s var(--out); }
  .cp-screen.in .cp-tiles span { transition-delay: calc(60ms + var(--i) * 35ms); }
}
@media (prefers-reduced-motion: reduce) { .cp-body, .cp-mi, .cp-sw i, .cp-car { transition: none; } }
@media (max-width: 900px) {
  .cp-grid { grid-template-columns: 1fr; gap: 28px; }
  .cp-app { position: relative; top: auto; order: -1; }
  .cp-win { grid-template-columns: 1fr; height: auto; transform: none; }
  .cp-main { display: none; }
  .cp-side { padding: 0 8px 8px; } .cp-menu { display: flex; flex-wrap: wrap; gap: 4px; }
  .cp-mi { margin: 0; } .cp-mi.hide { width: 0; padding: 0; }
  .cp-note { display: none; }
  .cp-body > div { padding-left: 0; }
  .cp-body ul { grid-template-columns: 1fr; }
  .cp-tag { display: none !important; } .cp-mod.na .cp-t small::after { content: " · en ligne seulement"; color: #9a5b00; }
  .cp-who { flex-direction: column; gap: 4px; } .cp-who > .hand { padding-top: 0; } .cp-roles { max-width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
}

/* FAQ en accordéon : la question, écrite dans la marge, ouvre sa réponse */
.qa .q { cursor: pointer; align-self: start; transition: color .25s ease; }
.qa .q:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 4px; border-radius: 4px; }
.qa:not(.open) .q { color: rgba(10,42,154,.62); }
.qa .q .ink { transition: transform .35s var(--out); }
.qa.open .q .ink { transform: rotate(90deg); }
.qa .a-w { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--out); }
.qa .a-w > .a { overflow: hidden; }
.qa.open .a-w { grid-template-rows: 1fr; }
.qa:not(.open) { padding-block: 16px; }
@media (hover: hover) and (pointer: fine) { .qa:not(.open) .q:hover { color: var(--blue); } }
@media (prefers-reduced-motion: reduce) { .qa .a-w, .qa .q .ink { transition: none; } }

/* ═══════════ Bulletin scolaire officiel (page École) ═══════════
   Tout est en em : le font-size de .bul règle la taille du document. */
.bl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: start; margin-top: 44px; }
.bul { --bc: #0a2a9a; --bc2: #3a6cf0; --bred: #b3261e; font-family: "Roboto", system-ui, sans-serif; font-size: 12px; color: #1d2233; line-height: 1.35; letter-spacing: 0; padding: 2.4em 2.6em 2em; overflow: hidden; transform: rotate(-.5deg); }
.bul > .tape { z-index: 3; }
.bl-wm { position: absolute; left: 50%; top: 52%; width: 150%; text-align: center; transform: translate(-50%, -50%) rotate(-32deg); font-size: 4.6em; font-weight: 800; letter-spacing: .12em; color: var(--bc); opacity: .035; white-space: nowrap; pointer-events: none; }
.bul > *:not(.bl-wm):not(.tape) { position: relative; }
/* En-tête */
.bl-hd { display: grid; grid-template-columns: 1fr 5.4em 1fr; gap: 1.2em; align-items: center; text-align: center; }
.bl-l small { display: block; font-size: .72em; font-weight: 600; line-height: 1.35; color: #3c4257; max-width: 26em; margin: 0 auto; }
.bl-l b { display: block; margin-top: .5em; font-size: .98em; letter-spacing: .04em; color: var(--bred); }
.bl-l span { display: block; margin-top: .35em; font-size: .72em; color: var(--bc); line-height: 1.45; }
.bl-crest { width: 4.6em; height: 5em; justify-self: center; }
.bl-crest .s { fill: var(--bc); } .bl-crest .b { fill: #fff; } .bl-crest .t { fill: #f2c94c; }
.bl-r b { display: block; font-size: .9em; letter-spacing: .1em; color: var(--bc); }
.bl-r > i { display: block; font-size: .76em; color: var(--bc); margin-top: .15em; }
.bl-flag { display: flex; flex-direction: column; width: 3em; height: 1.9em; margin: .5em auto .45em; border-radius: .15em; overflow: hidden; position: relative; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.bl-flag i { flex: 1; background: #006a4e; } .bl-flag i:nth-child(even) { background: #ffce00; }
.bl-flag::before { content: "★"; position: absolute; left: 0; top: 0; width: 1.15em; height: 1.15em; display: grid; place-items: center; background: #d21034; color: #fff; font-size: .95em; line-height: 1; }
.bl-flag::before { width: 1.25em; height: 1.14em; font-size: .9em; }
.bl-r small { display: block; font-size: .7em; color: #5a6178; }
.bl-r small strong { color: #1d2233; letter-spacing: .04em; }
.bl-title { text-align: center; margin: 1.1em 0 1em; }
.bl-title h3 { display: inline-block; margin: 0; font-size: 1.45em; font-weight: 800; letter-spacing: .2em; color: var(--bc); padding-bottom: .2em; border-bottom: 3px double var(--bc); }
.bl-title span { display: block; margin-top: .45em; font-size: .85em; color: #5a6178; letter-spacing: .02em; }
/* Identité de l'élève */
.bl-id { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid #c9cfdf; border-radius: .5em; overflow: hidden; background: rgba(255,255,255,.85); }
.bl-id > div { padding: .5em .75em .55em; border-right: 1px solid #e3e6ef; border-bottom: 1px solid #e3e6ef; min-width: 0; }
.bl-id > div.w2 { grid-column: span 2; }
.bl-id > div:nth-child(4), .bl-id > div:nth-child(7) { border-right: 0; }
.bl-id > div:nth-child(n+5) { border-bottom: 0; }
.bl-id em { display: block; font-style: normal; font-size: .66em; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8a91a8; }
.bl-id b { display: block; margin-top: .15em; font-size: 1.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-nr { display: flex; flex-wrap: wrap; align-items: center; gap: .2em 1.1em; }
.bl-nr em { width: 100%; }
.bl-nr span { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: .9em; }
.bl-nr span i { width: 1em; height: 1em; border: 1.5px solid #1d2233; border-radius: .15em; position: relative; }
.bl-nr span i.on::after { content: "✕"; position: absolute; inset: 0; display: grid; place-items: center; font-size: .8em; font-style: normal; color: var(--bc); font-weight: 800; }
/* Tableau des notes */
.bl-tab { width: 100%; margin-top: 1em; border-collapse: collapse; font-variant-numeric: tabular-nums; background: rgba(255,255,255,.85); }
.bl-tab th, .bl-tab td { border: 1px solid #c9cfdf; padding: .36em .38em; text-align: center; white-space: nowrap; }
.bl-tab thead th { background: var(--bc); color: #fff; border-color: rgba(255,255,255,.25); font-size: .78em; font-weight: 600; letter-spacing: .04em; }
.bl-tab thead tr:first-child th { font-size: .82em; text-transform: uppercase; letter-spacing: .08em; }
.bl-tab thead tr + tr th { background: var(--bc2); font-size: .74em; padding: .3em .4em; }
.bl-tab th.dis { text-align: left; }
.bl-tab tbody td { font-size: .95em; }
.bl-tab tbody td:first-child { text-align: left; font-weight: 600; }
.bl-tab tbody tr:nth-child(even) td { background: #f6f8fd; }
.bl-tab tbody td.pf { font-size: .74em; font-weight: 600; color: #3c4257; text-align: left; }
.bl-tab tbody td.mo { font-weight: 700; color: var(--bc); }
.bl-tab tbody td.lo { color: var(--bred); }
.bl-tab tbody td.ap { font-family: "Caveat", cursive; font-size: 1.3em; font-weight: 600; color: #1d3aa8; text-align: left; line-height: 1; padding-top: .2em; padding-bottom: .2em; }
.bl-tab tbody td.em svg { width: 2.6em; height: 1em; display: block; margin: 0 auto; }
.bl-tab tbody td.em path { fill: none; stroke: #1d3aa8; stroke-width: 1.4; stroke-linecap: round; }
.bl-tab tbody tr { cursor: default; transition: background-color .2s ease; }
.bl-tab tbody tr.hl td { background: #e8eeff; }
.bl-tab tfoot td { font-weight: 700; background: #eef1f8; }
.bl-tab tfoot tr.tot td:first-child { text-align: left; text-transform: uppercase; font-size: .82em; letter-spacing: .08em; }
.bl-tab td.bl-mg { background: var(--bc); color: #fff; text-align: left; padding: .5em .6em; }
.bl-mg { white-space: nowrap; }
.bl-mg > span { font-size: .78em; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.bl-mg > strong { display: inline-block; margin: 0 .5em 0 .4em; font-size: 1.35em; letter-spacing: -.01em; vertical-align: -.1em; }
.bl-mg > strong em { font-style: normal; }
.bl-mg > span:last-child { text-transform: none; letter-spacing: 0; opacity: 1; font-size: .9em; }
.bl-mg > span:last-child strong { font-size: 1.1em; }
.bl-tab tr.lt td { text-align: left; font-weight: 500; background: #fff; font-size: .88em; color: #5a6178; }
.bl-hw { font-family: "Caveat", cursive; font-weight: 600; color: #1d3aa8; font-size: 1.45em; line-height: 1; }
.bl-tab tr.lt .bl-hw { display: inline-block; margin-left: .3em; }
.bl-calc { display: flex; align-items: center; gap: .5em; margin: .6em 0 0; min-height: 1.6em; font-size: .88em; color: #5a6178; font-variant-numeric: tabular-nums; }
.bl-calc i { font-size: 1.25em; color: var(--bc); }
.bl-calc b { color: #1d2233; }
.bl-calc strong { color: var(--bc); }
/* Pied : récapitulatif, distinctions, signature */
.bl-foot { display: grid; grid-template-columns: 1.1fr 1fr 1.25fr; gap: .8em; margin-top: .9em; }
.bl-box { border: 1px solid #c9cfdf; border-radius: .5em; padding: .7em .85em .8em; background: rgba(255,255,255,.85); min-width: 0; }
.bl-box h4 { margin: 0 0 .45em; font-size: .7em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bc); }
.bl-box h4 + * + h4, .bl-box ul + h4, .bl-box dl + h4 { margin-top: .9em; }
.bl-dl { display: grid; grid-template-columns: 1fr auto; gap: .28em .6em; margin: 0; font-size: .86em; }
.bl-dl dt { color: #5a6178; }
.bl-dl dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.bl-dl dd small { font-weight: 500; color: #8a91a8; }
.bl-dl dd.hi { color: var(--bc); }
.bl-ck { list-style: none; margin: 0; padding: 0; display: grid; gap: .35em; font-size: .86em; }
.bl-ck li { display: flex; align-items: center; gap: .55em; color: #5a6178; }
.bl-ck li.on { color: #1d2233; font-weight: 700; }
.bl-ck i { width: 1.15em; height: 1.15em; flex: none; border: 1.5px solid #1d2233; border-radius: .2em; position: relative; }
.bl-ck i svg { position: absolute; left: -.05em; top: -.45em; width: 1.5em; height: 1.35em; overflow: visible; }
.bl-ck i path { fill: none; stroke: #1d3aa8; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 44; stroke-dashoffset: 0; }
.bl-sign { position: relative; display: flex; flex-direction: column; }
.bl-obs { margin: 0; font-size: 1.35em; line-height: 1.1; }
.bl-date { margin-top: .7em; font-size: .8em; color: #5a6178; text-align: right; }
.bl-dir { font-size: .82em; font-weight: 700; text-align: right; }
.bl-sig { align-self: flex-end; width: 6em; height: 2em; margin: .1em .3em 0 0; overflow: visible; }
.bl-sig path { fill: none; stroke: #1d3aa8; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 200; stroke-dashoffset: 0; }
.bl-name { font-size: .8em; letter-spacing: .08em; text-align: right; }
.bl-stamp { position: absolute; right: 5.6em; bottom: .4em; width: 5.2em; height: 5.2em; color: var(--bc); opacity: .6; transform: rotate(-14deg); mix-blend-mode: multiply; pointer-events: none; }
.bl-stamp svg { width: 100%; height: 100%; overflow: visible; }
.bl-stamp text { font-size: 6.2px; font-weight: 700; letter-spacing: .6px; fill: currentColor; font-family: "Roboto", sans-serif; }
.bl-stamp circle { fill: none; stroke: currentColor; }
/* Authentification */
.bl-auth { display: flex; align-items: center; gap: 1em; margin-top: .9em; padding: .7em .9em; border-radius: .5em; background: linear-gradient(90deg, #eef2ff, rgba(238,242,255,.4)); border: 1px dashed #b7c3ea; }
.bl-qr { position: relative; width: 4.6em; height: 4.6em; flex: none; padding: .25em; background: #fff; border-radius: .3em; box-shadow: 0 0 0 1px #d5dbee; overflow: hidden; }
.bl-qr svg { display: block; width: 100%; height: 100%; }
.bl-qr path { fill: #1d2233; }
.bl-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--bc2); box-shadow: 0 0 8px 2px rgba(58,108,240,.55); opacity: 0; }
.bl-auth > div { flex: 1; min-width: 0; }
.bl-auth b { display: block; font-size: .95em; color: #1d2233; }
.bl-auth > div > span { display: block; font-size: .84em; color: #5a6178; margin-top: .1em; }
.bl-auth > div > span strong { color: var(--bc); letter-spacing: .06em; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
.bl-auth small { display: block; font-size: .76em; color: #8a91a8; margin-top: .15em; }
.bl-ok { display: inline-flex; align-items: center; gap: .4em; padding: .45em .9em; border-radius: 99em; background: #1f7a47; color: #fff; font-size: .82em; font-weight: 700; letter-spacing: .04em; }
/* Colonne de droite */
.bl-side { position: sticky; top: 110px; }
.bl-note { display: block; margin-top: 28px; font-size: 25px; transform: rotate(-3deg); }

/* ── Animation, jouée une fois ──
   p1 lignes remplies une à une · p2 totaux et moyenne · p3 en lettres · p4 récap et distinctions · p5 observation, signature, cachet · p6 QR vérifié */
@media (prefers-reduced-motion: no-preference) {
  .bul .bl-tab tbody td:not(:first-child):not(.pf) > * , .bul .bl-tab tbody td.nb { transition: opacity .35s ease, transform .45s var(--out); }
  .bul:not(.p1) .bl-tab tbody td.nb, .bul .bl-tab tbody tr:not(.on) td.nb { opacity: 0; transform: translateY(.3em); }
  .bul .bl-tab tbody td.ap span { display: inline-block; clip-path: inset(0 100% 0 0); transition: clip-path .7s var(--inout) .15s; }
  .bul .bl-tab tbody tr.on td.ap span { clip-path: inset(0 -10% 0 0); }
  .bul .bl-tab tbody td.em path { stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset .6s var(--inout) .35s; }
  .bul .bl-tab tbody tr.on td.em path { stroke-dashoffset: 0; }
  .bul .bl-tab tbody tr.on.flash td { animation: blRow .9s ease; }
  .bul .bl-tab tfoot td[data-k], .bul .bl-mg { transition: opacity .4s ease, background-color .4s ease; }
  .bul:not(.p2) .bl-tab tfoot td[data-k] { opacity: 0; }
  .bul:not(.p2) .bl-mg { opacity: .35; }
  .bul .bl-tab tr.lt .bl-hw { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--inout); }
  .bul.p3 .bl-tab tr.lt .bl-hw { clip-path: inset(0 -5% 0 0); }
  .bul .bl-foot .bl-box { transition: opacity .5s ease, transform .6s var(--out); }
  .bul:not(.p4) .bl-foot .bl-box:nth-child(-n+2) { opacity: 0; transform: translateY(.6em); }
  .bul:not(.p5) .bl-foot .bl-box:nth-child(3) { opacity: 0; transform: translateY(.6em); }
  .bul .bl-foot .bl-box:nth-child(2) { transition-delay: .12s; }
  .bul .bl-ck li.on path { stroke-dashoffset: 44; transition: stroke-dashoffset .5s var(--inout) .6s; }
  .bul.p4 .bl-ck li.on path { stroke-dashoffset: 0; }
  .bul .bl-obs { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--inout) .3s; }
  .bul.p5 .bl-obs { clip-path: inset(-10% -5% -10% 0); }
  .bul .bl-sig path { stroke-dashoffset: 200; transition: stroke-dashoffset 1s var(--inout) .9s; }
  .bul.p5 .bl-sig path { stroke-dashoffset: 0; }
  .bul .bl-stamp { opacity: 0; transform: rotate(-14deg) scale(1.8); transition: opacity .2s ease 1.5s, transform .45s cubic-bezier(.34,1.5,.64,1) 1.5s; }
  .bul.p5 .bl-stamp { opacity: .6; transform: rotate(-14deg); }
  .bul .bl-auth { transition: opacity .5s ease; }
  .bul:not(.p6) .bl-auth { opacity: .35; }
  .bul.p6 .bl-scan { animation: blScan 1.6s var(--inout) infinite alternate; }
  .bul .bl-ok { opacity: 0; transform: scale(.7); transition: opacity .3s ease 1.6s, transform .45s cubic-bezier(.34,1.5,.64,1) 1.6s; }
  .bul.p6 .bl-ok { opacity: 1; transform: none; }
  .bl-note { opacity: 0; transition: opacity .6s ease; }
  .bl-grid.done .bl-note { opacity: 1; }
}
@keyframes blRow { 0% { background-color: #dfe7ff; } 100% { background-color: inherit; } }
@keyframes blScan { 0% { top: 0; opacity: 1; } 100% { top: calc(100% - 2px); opacity: 1; } }

@media (max-width: 1200px) {
  .bl-grid { grid-template-columns: 1fr; gap: 36px; }
  .bl-side { position: static; }
  .bl-side .checks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
}
@media (max-width: 900px) {
  .bul { font-size: 10px; padding: 2em 1.4em 1.6em; transform: none; }
  .bl-hd { grid-template-columns: 1fr 4em 1fr; gap: .6em; }
  .bl-crest { width: 3.6em; height: 4em; }
}
@media (max-width: 700px) {
  .bl-side .checks { grid-template-columns: 1fr; }
  .bul { font-size: 9.5px; }
  .bl-tab .hm { display: none; }
  .bl-tab td.bl-mg { white-space: normal; }
  .bl-id { grid-template-columns: repeat(3, 1fr); }
  .bl-id > div { border-right: 1px solid #e3e6ef !important; border-bottom: 1px solid #e3e6ef !important; }
  .bl-id > div.w2 { grid-column: span 3; }
  .bl-id > div.bl-nr { grid-column: span 2; }
  .bl-stamp { right: 12em; bottom: .8em; }
  .bl-foot { grid-template-columns: 1fr 1fr; }
  .bl-foot .bl-sign { grid-column: span 2; }
  .bl-l small { font-size: .66em; }
}
@media (max-width: 400px) { .bul { font-size: 8.8px; padding: 1.8em 1.1em 1.4em; } }

/* ═══════════ Fenêtre OptiScol aux vraies couleurs de l'app ═══════════
   Relevées dans School_management_2 (src/app/globals.css, layout du tableau de bord) :
   primaire or hsl(36 49% 60%), fond du contenu #eef1f3, bordures hsl(45 13% 91%),
   texte hsl(224 71% 4%), secondaire hsl(220 8% 46%), police Roboto ; logo bleu depuis le 28/09/2026.
   Tout est en em : le font-size de .osx règle l'échelle de l'écran. */
.osx { --g: #cba367; --g-d: #9a7338; --g-l: #fbf6ee; --g-m: #f3e7d4; --bg: #eef1f3; --bd: #eceae4; --tx: #0b0f1a; --mu: #6b7280;
  position: relative; font-family: "Roboto", system-ui, sans-serif; font-size: 10.5px; line-height: 1.35; letter-spacing: 0; color: var(--tx);
  display: grid; grid-template-columns: 15.5em minmax(0, 1fr); grid-template-rows: 2.6em 3.9em minmax(0, 1fr); height: 50em;
  background: #fff; border-radius: .9em; overflow: hidden; box-shadow: 0 0 0 1px rgba(11,19,48,.1), 0 2px 4px rgba(11,19,48,.05), 0 40px 70px -40px rgba(10,20,60,.55); }
.osx-tb { grid-column: 1 / -1; display: flex; align-items: center; gap: .6em; padding: 0 .9em; border-bottom: 1px solid var(--bd); font-size: .95em; color: var(--mu); background: #fff; }
.osx-tb img { width: 1.5em; height: 1.55em; }
.osx-tb b { font-family: "Outfit", "Roboto", sans-serif; font-weight: 700; color: #1e2328; font-size: 1.05em; letter-spacing: -.01em; } .osx-tb b span { color: #c9a053; }
.osx-tb .ctl { margin-left: auto; display: flex; gap: 1.6em; color: #3a3f4b; font-size: 1.05em; }
.osx-side { grid-row: 2 / 4; border-right: 1px solid var(--bd); background: #fff; overflow: hidden; }
.osx-logo { display: flex; align-items: center; gap: .6em; height: 3.9em; padding: 0 1em; border-bottom: 1px solid var(--bd); }
.osx-logo img { width: 2.3em; height: 2.4em; }
.osx-logo i { width: 1px; height: 1.8em; background: rgba(74,91,208,.35); }
.osx-logo b { font-family: "Outfit", "Roboto", sans-serif; font-weight: 700; font-size: 1.55em; letter-spacing: -.02em; color: #1e2328; } .osx-logo b span { color: #c9a053; }
.osx-nav { padding: 1em .7em; }
.osx-nav .lb { display: block; padding: 0 .6em .5em; font-size: .78em; letter-spacing: .1em; color: var(--mu); }
.osx-it { display: flex; align-items: center; gap: .75em; height: 2.55em; padding: 0 .7em; border-radius: .6em; font-size: .98em; color: #374151; white-space: nowrap; transition: background-color .3s ease, color .3s ease; }
.osx-it > i:first-child { font-size: 1.35em; color: #4b5563; transition: color .3s ease; }
.osx-it .car { margin-left: auto; font-size: 1em; color: #6b7280; transition: transform .3s ease; }
.osx-it.open .car { transform: rotate(180deg); }
.osx-it.act { background: var(--g-l); color: var(--g-d); } .osx-it.act > i:first-child { color: var(--g-d); }
.osx-sub { margin: .1em 0 .3em 1.25em; padding-left: .9em; border-left: 1px solid var(--bd); display: none; }
.osx-it.open + .osx-sub { display: block; }
.osx-sub span { display: flex; align-items: center; gap: .7em; height: 2.2em; padding: 0 .7em; border-radius: .55em; font-size: .92em; color: #4b5563; transition: background-color .3s ease, color .3s ease; }
.osx-sub span::before { content: ""; width: .4em; height: .4em; border-radius: 50%; background: #d1d5db; }
.osx-sub span.on { background: var(--g-l); color: var(--g-d); font-weight: 600; } .osx-sub span.on::before { background: var(--g); }
.osx-top { display: flex; align-items: center; gap: 1em; padding: 0 1.2em; border-bottom: 1px solid var(--bd); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.osx-top .srch { display: flex; align-items: center; gap: .6em; width: 17em; height: 2.4em; padding: 0 .9em; border: 1.5px solid #d1d5db; border-radius: 99em; color: #9ca3af; font-size: .92em; }
.osx-top .usr { margin-left: auto; text-align: right; line-height: 1.2; } .osx-top .usr b { display: block; font-weight: 500; font-size: .95em; } .osx-top .usr small { font-size: .78em; color: var(--mu); letter-spacing: .04em; }
.osx-top .av { width: 2.6em; height: 2.6em; border-radius: 50%; display: grid; place-items: center; background: var(--g-l); color: var(--g); font-weight: 700; font-size: .9em; }
.osx-body { position: relative; background: var(--bg); overflow: hidden; }
.osx-scr { position: absolute; inset: 0; padding: 1.4em 1.5em; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(.5em); transition: opacity .35s ease, transform .45s var(--out), visibility 0s .35s; }
.osx-scr.on { opacity: 1; visibility: visible; transform: none; transition: opacity .4s ease .05s, transform .5s var(--out) .05s, visibility 0s; }
/* Pièces d'écran */
.ox-card { position: relative; background: #fff; border-radius: .9em; box-shadow: 0 1px 3px rgba(20,30,50,.05), 0 4px 12px -2px rgba(20,30,50,.06); padding: 1.1em 1.2em; margin-bottom: 1em; }
.ox-title { display: flex; align-items: flex-start; gap: .9em; margin-bottom: 1.1em; }
.ox-title h4 { margin: 0; font-size: 1.7em; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.ox-title p { margin: .2em 0 0; color: var(--mu); font-size: 1.05em; }
.ox-title .ox-btn { margin-left: auto; }
.ox-back { font-size: 1.5em; margin-top: .25em; color: #374151; }
.ox-h { display: flex; align-items: flex-start; gap: .6em; }
.ox-h > i { font-size: 1.6em; margin-top: .05em; }
.ox-h b { display: block; font-size: 1.35em; font-weight: 700; letter-spacing: -.01em; }
.ox-h small { display: block; color: var(--mu); font-size: 1em; margin-top: .15em; }
.ox-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; height: 2.6em; padding: 0 1.1em; border-radius: .6em; font: inherit; font-size: 1em; white-space: nowrap; border: 0; cursor: default; transition: transform .15s ease, filter .2s ease, box-shadow .2s ease; }
.ox-btn i { font-size: 1.2em; }
.ox-btn.gold { background: var(--g); color: #fff; }
.ox-btn.ghost { background: #fff; box-shadow: inset 0 0 0 1px #e5e7eb; color: var(--tx); }
.ox-btn.line { background: #fff; box-shadow: inset 0 0 0 1px #e5e7eb; color: var(--tx); }
.ox-btn.sm { height: 2.3em; font-size: .95em; }
.ox-btn.press, .ox-btn:active { transform: scale(.95); filter: brightness(.95); }
button.ox-btn { cursor: pointer; }
.ox-sel { display: inline-flex; align-items: center; gap: .5em; height: 2.6em; padding: 0 2.2em 0 .9em; border: 1px solid #e5e7eb; border-radius: .6em; background: #fff; position: relative; white-space: nowrap; }
.ox-sel::after { content: ""; position: absolute; right: .85em; top: 50%; width: .45em; height: .45em; border-right: 1.5px solid #6b7280; border-bottom: 1.5px solid #6b7280; transform: translateY(-70%) rotate(45deg); }
.ox-sel em { font-style: normal; font-weight: 700; font-size: .85em; padding: .15em .6em; border-radius: 99em; background: #f3f4f6; letter-spacing: .04em; }
.ox-toast { position: absolute; right: 1.4em; bottom: 1.4em; z-index: 5; display: flex; gap: .7em; max-width: 26em; padding: .95em 1.1em; border-radius: .7em; background: #ecfdf3; box-shadow: 0 0 0 1px #bbf7d0, 0 12px 30px -12px rgba(0,0,0,.25); opacity: 0; transform: translateY(.8em); transition: opacity .3s ease, transform .45s var(--out); pointer-events: none; }
.ox-toast > i { font-size: 1.5em; color: #16a34a; }
.ox-toast b { display: block; font-size: 1.1em; } .ox-toast span { display: block; margin-top: .15em; color: #374151; }
.osx-scr.a-toast .ox-toast { opacity: 1; transform: none; }
.ox-more { padding: .7em 1em; color: var(--mu); font-size: .95em; text-align: center; border-top: 1px solid #f1f2f4; }
/* 1 · Bulletins */
.ox-filt { display: flex; flex-wrap: wrap; gap: .7em; align-items: center; }
.ox-tpl { display: flex; align-items: center; gap: 1em; margin-left: auto; padding: .45em .9em; border-radius: .6em; background: #eef4ff; box-shadow: inset 0 0 0 1px #dbe6fb; }
.ox-tpl b { color: #1d4ed8; font-weight: 500; } .ox-tpl small { color: #4b5563; }
.ox-bar { display: flex; align-items: center; gap: .6em; margin: 1em 0; }
.ox-count { margin-left: auto; font-weight: 700; font-size: .92em; padding: .35em .8em; border-radius: 99em; background: #f5efe4; color: #3b2f1c; }
.ox-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6em; }
.ox-stu { display: flex; align-items: center; gap: .6em; padding: .7em .75em; border: 1px solid #e5e7eb; border-radius: .7em; background: #fff; min-width: 0; transition: background-color .25s ease, border-color .25s ease; transition-delay: calc(var(--k) * 35ms); }
.ox-stu > i { flex: none; width: 1.2em; height: 1.2em; border-radius: 50%; border: 1.5px solid var(--g); position: relative; transition: background-color .25s ease; transition-delay: inherit; }
.ox-stu > i::after { content: ""; position: absolute; left: .32em; top: .14em; width: .3em; height: .55em; border: solid #fff; border-width: 0 .13em .13em 0; transform: rotate(45deg); opacity: 0; transition: opacity .2s ease; transition-delay: inherit; }
.ox-stu b { display: block; font-weight: 500; font-size: 1.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ox-stu small { display: block; color: var(--mu); font-size: .9em; }
.ox-stu > span { min-width: 0; }
.a-sel .ox-stu { background: #eff5ff; border-color: #bcd3fb; } .a-sel .ox-stu > i { background: var(--g); } .a-sel .ox-stu > i::after { opacity: 1; }
.ox-dl { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; }
.ox-btn.big { height: 3.6em; font-size: 1.05em; position: relative; overflow: hidden; }
.ox-prog { position: absolute; left: 0; right: 0; bottom: 0; height: .3em; background: rgba(255,255,255,.3); opacity: 0; transition: opacity .2s ease; }
.ox-prog i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.a-dl .ox-prog { opacity: 1; } .a-dl .ox-prog i { transform: scaleX(1); transition: transform 1.3s var(--inout); }
.a-toast .ox-prog { opacity: 0; transition-delay: .3s; }
/* 2 · Rapports */
.ox-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: .3em; border-radius: .8em; background: #f3f4f6; margin-bottom: 1em; }
.ox-tabs span { text-align: center; padding: .7em; border-radius: .6em; color: #4b5563; font-size: 1.02em; }
.ox-tabs span.on { background: #fff; color: var(--g); box-shadow: inset 0 0 0 1.5px var(--g); }
.ox-reps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8em; }
.ox-reps > div { display: grid; grid-template-columns: 2.6em 1fr; column-gap: .8em; align-items: center; padding: 1em; background: #fff; border-radius: .9em; box-shadow: 0 1px 3px rgba(20,30,50,.05), 0 4px 12px -2px rgba(20,30,50,.06); transition: box-shadow .3s ease, transform .3s var(--out); }
.ox-reps i { grid-row: span 2; width: 2.2em; height: 2.2em; display: grid; place-items: center; border-radius: .5em; background: #fdf3e3; color: #d6922a; font-size: 1.25em; }
.ox-reps b { font-size: 1.1em; font-weight: 700; line-height: 1.2; }
.ox-reps small { grid-column: 2; color: var(--mu); font-size: .92em; margin-top: .25em; }
.a-pal .ox-reps .pal { box-shadow: 0 0 0 2px var(--g), 0 10px 24px -12px rgba(154,115,56,.6); transform: translateY(-2px); }
.ox-pdf { position: absolute; right: 1.5em; top: 9.8em; width: 31em; padding: 1.4em 1.5em; background: #fff; border-radius: .3em; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 30px 60px -20px rgba(0,0,0,.35); transform: translateX(110%) rotate(2deg); transition: transform .8s var(--out); z-index: 4; }
.a-pdf .ox-pdf { transform: rotate(-1deg); }
.ox-pdf-h { display: flex; gap: 1em; align-items: center; padding-bottom: .8em; border-bottom: 1px solid #e5e7eb; }
.ox-pdf-h img { width: 3.2em; height: 3.3em; }
.ox-pdf-h div { flex: 1; text-align: center; }
.ox-pdf-h b { display: block; color: #5b3fb3; font-size: 1.3em; font-weight: 500; } .ox-pdf-h small { display: block; color: var(--mu); } .ox-pdf-h strong { display: block; margin-top: .25em; font-weight: 500; font-size: 1.15em; letter-spacing: .02em; }
.ox-kpi { display: flex; justify-content: center; gap: 2.4em; margin: .9em 0; text-align: center; }
.ox-kpi span { color: var(--mu); font-size: .9em; } .ox-kpi b { display: block; color: #5b3fb3; font-size: 1.5em; font-weight: 500; }
.ox-rep, .ox-top { padding: .7em .9em; border-radius: .5em; background: #f7f9fc; margin-top: .6em; }
.ox-rep em, .ox-top em { font-style: normal; display: block; margin-bottom: .5em; font-size: .95em; }
.ox-top em { color: #15803d; letter-spacing: .03em; padding-left: .5em; box-shadow: inset .25em 0 0 #15803d; }
.ox-rep > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8em; align-items: end; height: 5.4em; }
.ox-rep span { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; font-size: .82em; color: var(--mu); }
.ox-rep span b { color: var(--c); font-weight: 500; font-size: 1.1em; }
.ox-rep span::before { content: ""; order: -1; width: 60%; height: calc(var(--h) * 70%); border-radius: .25em .25em 0 0; background: var(--c); opacity: .75; transform-origin: bottom; transform: scaleY(0); transition: transform .8s var(--out) .5s; }
.a-pdf .ox-rep span::before { transform: none; }
.ox-top span { display: grid; grid-template-columns: 3em 1fr 4em 4em; align-items: center; padding: .35em 0; border-top: 1px solid #e8ebf0; }
.ox-top span i { font-style: normal; text-align: center; } .ox-top small { color: var(--mu); } .ox-top span b { text-align: right; color: #15803d; font-weight: 500; }
/* 3 · Conseil de classe */
.ox-mass-r { display: flex; justify-content: space-between; align-items: flex-end; gap: 1em; margin-top: .9em; }
.ox-mass-r label { display: flex; flex-direction: column; gap: .4em; font-size: 1.05em; }
.ox-mass-r label small { color: var(--mu); font-size: .88em; } .ox-mass-r label small em { font-style: normal; }
.ox-in { display: block; width: 7em; height: 2.4em; line-height: 2.4em; padding: 0 .8em; border: 1px solid #e5e7eb; border-radius: .6em; font-variant-numeric: tabular-nums; transition: box-shadow .25s ease; }
.ox-in.flash { box-shadow: 0 0 0 3px rgba(203,163,103,.35); }
.ox-tab { padding: 0; overflow: hidden; }
.ox-th, .ox-row { display: grid; grid-template-columns: minmax(0, 1.3fr) 10.2em 5em minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: .8em; padding: 0 1em; }
.ox-th { height: 3em; color: #4b5563; font-size: 1em; border-bottom: 1px solid #f1f2f4; }
.ox-row { min-height: 4.6em; padding-top: .55em; padding-bottom: .55em; border-bottom: 1px solid #f1f2f4; transition: background-color .4s ease; }
.ox-row.flash { background: #fff9ef; }
.ox-who { display: flex; align-items: center; gap: .7em; min-width: 0; }
.ox-who > i { flex: none; width: 2.5em; height: 2.5em; border-radius: 50%; display: grid; place-items: center; background: #f3f4f6; font-style: normal; font-size: .95em; }
.ox-who b { display: block; font-weight: 500; font-size: 1.08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ox-who small { color: var(--mu); }
.ox-who > span { min-width: 0; }
.ox-tri { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 0 1em; white-space: nowrap; font-size: .88em; color: #4b5563; font-variant-numeric: tabular-nums; }
.ox-tri b { font-weight: 400; color: var(--tx); text-align: right; }
.ox-avg { font-size: 1.45em; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.ox-avg.hi { color: #16a34a; } .ox-avg.lo { color: #dc2626; }
.ox-dec .ox-sel { width: 100%; height: 2.5em; font-size: 1em; transition: background-color .35s ease, border-color .35s ease; }
.ox-dec small { display: flex; gap: .3em; margin-top: .3em; color: var(--mu); font-size: .85em; line-height: 1.25; }
.ox-dec small i { font-size: 1.1em; }
.ox-dec.set .ox-sel { background: #fff; }
.ox-dec.set.new .ox-sel { background: #fff9ef; border-color: #ecd3a9; }
.ox-com { height: 2.5em; line-height: 2.5em; padding: 0 .8em; border-radius: .6em; background: #f7f7f8; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95em; }
.ox-com.v { color: var(--tx); background: #fff; box-shadow: inset 0 0 0 1px #e5e7eb; }
.ox-modal { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: rgba(15,20,30,.45); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .25s; }
.ox-modal > div { width: 32em; max-width: calc(100% - 2em); padding: 1.4em 1.5em; background: #fafafa; border-radius: .9em; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); transform: scale(.94); transition: transform .35s var(--out); }
.a-modal .ox-modal { opacity: 1; visibility: visible; transition: opacity .25s ease; } .a-modal .ox-modal > div { transform: none; }
.ox-modal b { display: flex; align-items: center; gap: .5em; font-size: 1.4em; } .ox-modal b i { color: #f59e0b; }
.ox-modal p { margin: .8em 0 0; color: #4b5563; font-size: 1.05em; line-height: 1.5; } .ox-modal p strong { color: #374151; }
.ox-modal .ox-rules { padding: .8em 1em; border-radius: .6em; background: #fefbe8; box-shadow: inset 0 0 0 1px #fde68a; color: #92400e; } .ox-modal .ox-rules strong { color: #92400e; }
.ox-mb { display: flex; justify-content: flex-end; gap: .7em; margin-top: 1.1em; }
/* 4 · Nouvelle année */
.ox-wz { display: flex; flex-wrap: wrap; gap: .5em; margin: -.3em 0 1em; }
.ox-wz span { display: inline-flex; align-items: center; gap: .45em; padding: .5em .8em; border-radius: .55em; background: #fff; box-shadow: inset 0 0 0 1px #e5e7eb; font-size: .95em; }
.ox-wz span.on { background: var(--g); color: #fff; box-shadow: none; }
.ox-tr { display: grid; grid-template-columns: 11.5em minmax(0, 1fr); gap: 1em; align-items: start; }
.ox-cls { padding: .9em .7em; }
.ox-cls em { display: block; font-style: normal; font-weight: 700; font-size: .82em; letter-spacing: .06em; color: #4b5563; padding: 0 .4em .4em; }
.ox-cls span { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: .5em .4em; border-radius: .5em; font-size: 1em; }
.ox-cls span.on { background: #f5f6f8; }
.ox-cls small { grid-column: 1; color: var(--mu); font-size: .85em; }
.ox-cls span i { grid-row: 1 / 3; grid-column: 2; font-style: normal; font-size: .8em; font-weight: 600; color: #c2410c; padding: .15em .55em; border-radius: 99em; box-shadow: inset 0 0 0 1px #fdba74; background: #fff7ed; transition: color .3s ease, background-color .3s ease, box-shadow .3s ease; }
.ox-cls span i.ok { color: #15803d; background: #f0fdf4; box-shadow: inset 0 0 0 1px #86efac; }
.ox-wh { padding: 1em 1em .6em; }
.ox-wh b { display: block; font-size: 1.2em; font-weight: 700; }
.ox-wh small { display: block; color: var(--mu); margin-top: .3em; }
.ox-dest { display: flex; flex-direction: column; gap: .4em; margin-top: .8em; font-size: .95em; }
.ox-dest .ox-sel { align-self: flex-start; }
.ox-wzt .ox-th, .ox-wzt .ox-row { grid-template-columns: minmax(0, 1.5fr) 4.6em minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .9fr); }
.ox-wzt .ox-row { min-height: 3.6em; }
.ox-wzt .ox-sel { width: 100%; height: 2.3em; }
.ox-wzt .ox-avg { font-size: 1.05em; font-weight: 500; color: var(--tx); text-align: right; }
.ox-cons { font-size: .95em; color: #374151; } .ox-cons small { display: block; color: var(--mu); font-size: .88em; }
.ox-save { display: flex; justify-content: flex-end; padding: .9em 1em; }

/* ── Section « Fin d'année » : quatre temps ── */
.fda { margin-top: 44px; }
.fa-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; position: relative; }
.fa-steps::before, .fa-steps::after { content: ""; position: absolute; left: 22px; right: calc(25% - 22px); top: 21px; height: 2px; border-radius: 2px; }
.fa-steps::before { background: repeating-linear-gradient(90deg, rgba(10,42,154,.22) 0 6px, transparent 6px 11px); }
.fa-steps::after { background: var(--blue-fill); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .8s var(--inout); }
.fa-steps button { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; border: 0; background: none; font: inherit; text-align: left; color: var(--faint); cursor: pointer; }
.fa-steps button > i { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 16px; background: var(--paper); box-shadow: inset 0 0 0 2px rgba(10,42,154,.18); transition: background-color .35s ease, color .35s ease, box-shadow .35s ease, transform .45s cubic-bezier(.34,1.4,.64,1); }
.fa-steps b { display: block; font-size: 15px; color: var(--muted); transition: color .3s ease; } .fa-steps small { display: block; font-size: 12.5px; }
.fa-steps li.done button > i { background: #e7ebf7; box-shadow: none; color: var(--blue); }
.fa-steps li.on button > i { background: var(--blue-fill); color: #fff; box-shadow: 0 10px 20px -8px rgba(10,42,154,.6); transform: scale(1.08); }
.fa-steps li.on b { color: var(--ink); }
.fa-steps button:focus-visible > i { outline: 2px solid var(--blue); outline-offset: 3px; }
.fa-stage { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 36px; align-items: start; }
.fa-side { position: relative; min-height: 360px; }
.fa-cap { position: absolute; inset: 0 0 auto; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s ease, transform .4s var(--out), visibility 0s .3s; }
.fa-cap.on { position: relative; opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease .1s, transform .5s var(--out) .1s, visibility 0s; }
.fa-cap .hand { font-size: 24px; }
.fa-cap h3 { margin: 2px 0 0; font-size: 24px; letter-spacing: -.03em; line-height: 1.15; }
.fa-cap p { margin: 10px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.fa-cap p b { color: var(--ink); font-weight: 600; }
.fa-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--blue); font-weight: 600; font-size: 14.5px; text-decoration: none; border-bottom: 1.5px solid rgba(10,42,154,.25); }
.fa-link:hover { border-color: var(--blue); }
.fa-seuil { margin-top: 18px; padding: 14px 16px 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -22px rgba(10,42,154,.5); }
.fa-seuil label { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: var(--muted); }
.fa-seuil label b { color: var(--ink); font-size: 17px; font-variant-numeric: tabular-nums; }
.fa-seuil input { width: 100%; margin: 10px 0 2px; accent-color: #cba367; cursor: pointer; }
.fa-seuil input:disabled { cursor: not-allowed; opacity: .5; }
.fa-sc { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); }
.fa-cnt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; text-align: center; }
.fa-cnt span { padding: 7px 4px; border-radius: 8px; font-size: 11.5px; color: var(--muted); background: #f5f6f9; }
.fa-cnt b { display: block; font-size: 20px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fa-cnt .ok b { color: #16a34a; } .fa-cnt .rd b { color: #b45309; } .fa-cnt .mn b { color: var(--blue); }
.fa-lock { margin: 10px 0 0 !important; font-size: 12.5px !important; line-height: 1.45 !important; }
.fa-lock button { border: 0; padding: 0; background: none; font: inherit; color: var(--blue); font-weight: 600; text-decoration: underline; cursor: pointer; }
.fa-ex { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 13px !important; line-height: 1.45 !important; }
.fa-ex i { font-size: 18px; color: #b45309; margin-top: 1px; }
.fa-dest { display: grid; gap: 10px; margin-top: 16px; }
.fa-dest span { display: grid; grid-template-columns: 38px 1fr auto; column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.fa-dest i { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; }
.fa-dest .up i { background: #e3f4e8; color: #1f7a47; } .fa-dest .rep i { background: #fff3dc; color: #9a5b00; }
.fa-dest b { font-size: 15px; } .fa-dest small { grid-column: 2; font-size: 12px; color: var(--muted); }
.fa-dest strong { grid-row: 1 / 3; grid-column: 3; font-size: 26px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fa-dest .up strong { color: #1f7a47; } .fa-dest .rep strong { color: #9a5b00; }
@media (prefers-reduced-motion: reduce) {
  .osx-scr, .fa-cap, .ox-stu, .ox-stu > i, .ox-prog i, .ox-pdf, .ox-rep span::before, .ox-toast, .ox-modal, .ox-modal > div, .fa-steps::after { transition: none !important; }
}
@media (max-width: 1200px) {
  .fa-stage { grid-template-columns: 1fr; gap: 24px; }
  .fa-side { min-height: 0; }
  .osx { font-size: 10px; }
}
@media (max-width: 900px) {
  .fa-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .fa-steps button { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
  .fa-steps small { display: none; } .fa-steps b { font-size: 12px; line-height: 1.2; }
  .fa-steps::before, .fa-steps::after { left: 12.5%; right: 12.5%; }
  .fa-steps button > i { width: 38px; height: 38px; font-size: 14px; }
  .fa-steps::before, .fa-steps::after { top: 18px; }
  .osx { grid-template-columns: 1fr; grid-template-rows: 2.6em 3.9em minmax(0, 1fr); height: 60em; font-size: 9px; }
  .osx-side { display: none; } .osx-top .srch { width: auto; flex: 1; } .osx-top .usr { display: none; }
  .osx-tb .osx-wn { display: none; }
  .osx-scr { padding: 1.1em; }
  .ox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ox-reps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ox-pdf { left: 1em; right: 1em; width: auto; top: 9em; }
  .ox-th, .ox-row { grid-template-columns: minmax(0, 1.5fr) 5em minmax(0, 1.5fr); }
  .ox-th span:nth-child(2), .ox-th span:nth-child(5), .ox-row .ox-tri, .ox-row .ox-com { display: none; }
  .ox-tr { grid-template-columns: 1fr; } .ox-cls { display: none; }
  .ox-wzt .ox-th, .ox-wzt .ox-row { grid-template-columns: minmax(0, 1.4fr) 4em minmax(0, 1fr) minmax(0, .8fr); }
  .ox-wzt .ox-th span:nth-child(3), .ox-wzt .ox-row .ox-cons { display: none; }
  .ox-filt .ox-tpl { margin-left: 0; }
  .ox-mass-r { flex-direction: column; align-items: stretch; }
}
/* Menu latéral : entrée active sans sous-menu = pastille or pleine (capture 30-accueil) ; section SYSTÈME */
.osx-it.act.leaf { background: var(--g); color: #fff; } .osx-it.act.leaf > i:first-child { color: #fff; }
.osx-nav .lb.sys { margin-top: 1.4em; }

/* ═══════════ Haut de page École : portable ouvert sur l'accueil du logiciel ═══════════
   Écran reproduit d'après screenshots/30-accueil.png (2880 × 1800) : 1em = 0,65 % de la largeur
   de l'écran, soit 13 px sur la capture affichée à 2000 px. Les cotes ci-dessous en viennent. */
.hero:has(.pc) .wrap { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 32px; }
.hero:has(.pc) h1 { font-size: clamp(44px, 5.2vw, 76px); }
.pc { position: relative; width: calc(100% + 120px); margin-right: -120px; perspective: 1800px; }
.pc-lid { position: relative; padding: 2.1% 2.1% 2.6%; border-radius: 18px 18px 6px 6px; background: linear-gradient(180deg, #2a2d34, #16181d); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 40px 80px -40px rgba(10,20,60,.6); transform-origin: 50% 100%; }
.pc-cam { position: absolute; left: 50%; top: .85%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #3b3f48; box-shadow: inset 0 0 0 1.5px #22252b; }
.pc-scr { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; background: #000; container-type: inline-size; }
.pc-base { position: relative; width: 112%; margin-left: -6%; height: 16px; border-radius: 2px 2px 14px 14px / 2px 2px 10px 10px; background: linear-gradient(180deg, #e6e8ec 0%, #c9ccd3 55%, #9ea2ab 100%); box-shadow: 0 18px 30px -14px rgba(10,20,60,.55); }
.pc-base i { position: absolute; left: 50%; top: 0; width: 14%; height: 6px; margin-left: -7%; border-radius: 0 0 8px 8px; background: linear-gradient(180deg, #b3b7bf, #d4d7dd); }
.pc-note { position: absolute; left: -18px; bottom: -46px; font-size: 27px; transform: rotate(-4deg); white-space: nowrap; }
/* La fenêtre, à l'échelle de l'écran */
.osx.osx-home { height: 100%; border-radius: 0; box-shadow: none; font-size: 1.05cqi; line-height: 1.3;
  grid-template-columns: 14.5em minmax(0, 1fr); grid-template-rows: 2.3em 2.85em minmax(0, 1fr); }
.osx-home .osx-tb { font-size: .8em; gap: .7em; padding: 0 1.2em; } .osx-home .osx-tb img { width: 2em; height: 2em; } .osx-home .osx-tb .ctl { gap: 3em; }
.osx-home .osx-logo { height: 3.45em; padding: 0 .9em; } .osx-home .osx-logo img { width: 2.3em; height: 2.4em; } .osx-home .osx-logo b { font-size: 1.15em; }
.osx-home .osx-side { grid-row: 2 / 4; }
.osx-home .osx-nav { padding: 2.2em 1em; }
.osx-home .osx-nav .lb { font-size: .62em; padding: 0 .5em 1.2em; letter-spacing: .12em; }
.osx-home .osx-it { height: 2.75em; margin-bottom: .5em; padding: 0 1em; border-radius: .55em; font-size: .78em; gap: .9em; }
.osx-home .osx-it > i:first-child { font-size: 1.25em; }
.osx-home .osx-sub { margin: 0 0 .4em 1.7em; padding-left: 1.1em; }
.osx-home .osx-sub span { height: 2.95em; font-size: .72em; padding: 0 .4em; }
.osx-home .osx-top { padding: 0 1.2em; } .osx-home .osx-top .srch { width: 28.8em; height: 3.1em; font-size: .6em; border-width: 1px; } .osx-home .osx-top .usr b { font-size: .62em; } .osx-home .osx-top .usr small { font-size: .5em; } .osx-home .osx-top .av { width: 1.9em; height: 1.9em; font-size: .55em; }
.osx-home .osx-body { background: #eef1f3; }
.osx-dash { padding: .8em 1.3em 0; transform: none; }
.osx-dash::before { content: ""; position: absolute; inset: .8em 1.3em 0; background: #fff; }
.osx-dash > * { position: relative; }
.osx-dash .ox-card { border-radius: .6em; padding: .9em 1.2em; margin: 0; box-shadow: 0 0 0 1px #e8eaee, 0 1px 2px rgba(20,30,50,.04); }
.hm-head { padding: 1.9em 1.3em 1.4em; }
.hm-head h4 { margin: 0; font-size: 1.3em; font-weight: 600; letter-spacing: -.01em; }
.hm-head p { margin: .35em 0 0; font-size: .72em; color: var(--mu); }
.hm-filt { margin: 0 1.3em 1.35em !important; padding: .9em .6em !important; }
.hm-filt b { display: flex; align-items: center; gap: .5em; font-size: .72em; font-weight: 600; padding: 0 .3em; }
.hm-filt b i { color: var(--g); } .hm-filt b i:last-child { margin-left: auto; color: var(--mu); }
.hm-filt > span { display: flex; align-items: center; gap: .5em; margin-top: .9em; padding: .6em .5em; border-top: 1px solid #f1f2f4; font-size: .7em; color: #374151; }
.hm-filt em { font-style: normal; padding: .45em .75em; border-radius: .45em; box-shadow: inset 0 0 0 1px #e5e7eb; }
.hm-filt em.on { background: var(--g); color: #fff; box-shadow: none; }
.hm-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.4em; padding: 0 1.3em; }
.hm-l, .hm-r { display: flex; flex-direction: column; gap: 1.6em; }
.hm-h { display: flex; align-items: center; gap: .45em; font-size: .95em; font-weight: 700; }
.hm-h > i { color: var(--g); font-size: 1em; }
.hm-h em { font-style: normal; font-size: .65em; font-weight: 500; padding: .15em .55em; border-radius: 99em; background: #f3f4f6; }
.hm-h small { font-size: .72em; font-weight: 400; color: var(--mu); }
.hm-todo { padding-bottom: .5em !important; }
.hm-todo .hm-h { margin-bottom: .6em; }
.hm-it { display: grid; grid-template-columns: 1.3em 1fr auto; align-items: center; gap: .5em; min-height: 3.95em; font-size: .72em; border-bottom: 1px solid #f1f2f4; }
.hm-it:last-child { border-bottom: 0; }
.hm-it > i { color: #6b7280; font-size: 1.15em; } .hm-it.w > i { color: #f59e0b; }
.hm-it u, .hm-pres u, .hm-btns u { text-decoration: none; padding: .45em .7em; border-radius: .45em; box-shadow: inset 0 0 0 1px #e5e7eb; background: #fff; font-size: .95em; white-space: nowrap; }
.hm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em; }
.hm-stats .ox-card { display: flex; align-items: center; gap: .8em; padding: 1em .9em; min-width: 0; }
.hm-stats i { width: 2.6em; height: 2.6em; display: grid; place-items: center; flex: none; border-radius: .6em; background: var(--c); font-style: normal; font-size: 1em; }
.hm-stats span { font-size: .72em; color: #4b5563; } .hm-stats b { display: block; font-size: 1.8em; color: var(--tx); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hm-money .hm-h { margin-bottom: .8em; }
.hm-m4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8em; }
.hm-m4 span { display: flex; flex-direction: column; gap: .15em; padding: .7em; border-radius: .4em; box-shadow: inset 0 0 0 1px #e8eaee; }
.hm-m4 small { font-size: .56em; color: #6b7280; } .hm-m4 b { font-size: .98em; font-weight: 600; font-variant-numeric: tabular-nums; } .hm-m4 b em { font-style: normal; }
.hm-bar { position: relative; display: block; height: .45em; margin: .9em 0; border-radius: 1em; background: #f1f2f4; overflow: hidden; }
.hm-bar > i { position: absolute; inset: 0; background: var(--g); transform-origin: left; transform: scaleX(var(--p, 0)); }
.hm-bar.sm { margin: .35em 0 .8em; }
.hm-tre { display: flex; flex-wrap: wrap; gap: .3em 1.4em; padding: .8em .7em; border-radius: .4em; background: #f7f8f9; font-size: .68em; }
.hm-tre span { width: 100%; } .hm-tre small { color: #4b5563; font-size: 1em; } .hm-tre b { color: var(--tx); font-weight: 600; }
.hm-btns { display: flex; gap: .5em; margin-top: .8em; font-size: .7em; }
.hm-charts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.3em; }
.hm-ch { display: flex; justify-content: space-between; align-items: baseline; }
.hm-charts b { font-size: .92em; font-weight: 700; } .hm-charts small { font-size: .62em; color: #6b7280; }
.hm-niv > small { display: block; margin-top: .5em; }
.hm-don svg { display: block; width: 15em; height: 15em; margin: 1.6em auto .8em; transform: rotate(180deg); overflow: visible; }
.hm-don circle { fill: none; } .hm-don .bg { stroke: #eceef1; stroke-width: 3.6; }
.hm-don .gar { stroke: #bae6fd; stroke-width: 3.6; stroke-dasharray: 52 100; }
.hm-don .fil { stroke: #fde68a; stroke-width: 3.6; stroke-dasharray: 48 100; }
.hm-don text { font-size: 5.5px; transform: rotate(180deg); transform-origin: 21px 21px; }
.hm-lg { display: flex; justify-content: space-around; text-align: center; }
.hm-lg span { display: flex; flex-direction: column; align-items: center; gap: .2em; } .hm-lg i { width: .9em; height: .9em; border-radius: 50%; background: var(--c); }
.hm-lg b { font-size: .85em; }
.hm-bars { display: grid; grid-template-columns: repeat(10, 1fr); align-items: end; gap: .8em; height: 14em; margin: 1.6em 0 0 2em; padding-bottom: .2em; border-left: 1px solid #9ca3af; border-bottom: 1px solid #9ca3af; background: repeating-linear-gradient(0deg, transparent 0 calc(25% - 1px), #eef0f2 calc(25% - 1px) 25%); }
.hm-bars > span { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: .15em; height: 100%; }
.hm-bars > span > i { width: 26%; height: calc(var(--v) * 100%); transform-origin: bottom; }
.hm-bars > span > i:nth-child(1) { background: #c9a063; } .hm-bars > span > i:nth-child(2) { background: #16a34a; } .hm-bars > span > i:nth-child(3) { background: #f59e0b; }
.hm-bars > span > em { position: absolute; top: 100%; margin-top: .5em; font-style: normal; font-size: .55em; color: #4b5563; }
.hm-lg2 { display: flex; justify-content: center; gap: 1.2em; margin-top: 2.2em; font-size: .7em; }
.hm-lg2 span { display: flex; align-items: center; gap: .3em; color: var(--c); } .hm-lg2 span::before { content: ""; width: .9em; height: .7em; background: var(--c); }
.hm-year { display: flex; flex-direction: column; }
.hm-year .hm-h { margin-bottom: .9em; }
.hm-kv { display: flex; justify-content: space-between; align-items: center; margin-top: .5em; }
.hm-kv small { display: flex; align-items: center; gap: .4em; font-size: .7em; color: #374151; } .hm-kv small.dk { color: #374151; }
.hm-kv em { font-style: normal; font-size: .58em; font-weight: 600; padding: .2em .7em; border-radius: 99em; background: #f3f4f6; color: #374151; }
.hm-kv em.or { background: #f59e0b; color: #fff; }
.hm-year strong { margin-top: .45em; font-size: .98em; } .hm-year .hm-d { font-size: .56em; color: #6b7280; margin-top: .4em; }
.hm-done { display: flex; align-items: center; gap: .5em; padding: .8em .8em; border-radius: .4em; background: #f7f8f9; font-size: .68em; } .hm-done i { color: #f59e0b; }
.hm-close { display: flex; justify-content: center; align-items: center; gap: .5em; margin-top: .9em; padding: .6em; border-radius: .4em; box-shadow: inset 0 0 0 1px #e8eaee; color: #dc2626; font-size: .7em; }
.hm-pres { display: flex; flex-direction: column; align-items: flex-start; }
.hm-pres .hm-h { margin-bottom: .6em; }
.hm-pres .t { font-size: .72em; margin-top: .35em; } .hm-pres small { font-size: .66em; color: #6b7280; margin-top: .5em; } .hm-pres .a { font-size: .68em; margin-top: .5em; }
.hm-pres u { margin-top: .6em; font-size: .66em; }
.hm-pres hr { align-self: stretch; margin: 1em 0 .4em; border: 0; border-top: 1px solid #eceef1; }
.hm-act { display: flex; flex-direction: column; gap: .7em; }
.hm-act > b { font-size: .92em; padding: .5em 1.2em .3em; }
.hm-act u { display: flex; align-items: center; gap: .7em; padding: .6em .9em; border-radius: .4em; box-shadow: inset 0 0 0 1px #e8eaee; text-decoration: none; font-size: .7em; }
.hm-act u i:last-child:not(:first-child) { margin-left: auto; }
/* Mise en route, une fois : le couvercle s'ouvre, l'écran s'allume, les chiffres comptent, les barres montent */
@media (prefers-reduced-motion: no-preference) {
  .pc-lid { transform: rotateX(-88deg); transition: transform 1.3s cubic-bezier(.3,.9,.3,1) .35s; }
  .pc.on .pc-lid { transform: none; }
  .pc-scr .osx { opacity: 0; filter: brightness(1.8); transition: opacity .5s ease 1.35s, filter 1.1s ease 1.35s; }
  .pc.on .pc-scr .osx { opacity: 1; filter: none; }
  .osx-dash .ox-card, .hm-head { opacity: 0; transform: translateY(.8em); transition: opacity .5s ease, transform .6s var(--out); transition-delay: calc(1.6s + var(--k, 0) * 80ms); }
  .pc.on .osx-dash .ox-card, .pc.on .hm-head { opacity: 1; transform: none; }
  .hm-bar > i { transform: scaleX(0); transition: transform 1.2s var(--inout) 2.4s; }
  .pc.on .hm-bar > i { transform: scaleX(var(--p, 0)); }
  .hm-bars > span > i { transform: scaleY(0); transition: transform .9s var(--out); transition-delay: calc(2.5s + var(--k) * 60ms); }
  .pc.on .hm-bars > span > i { transform: none; }
  .hm-don .gar, .hm-don .fil { stroke-dasharray: 0 100; transition: stroke-dasharray 1.2s var(--inout) 2.5s; }
  .pc.on .hm-don .gar { stroke-dasharray: 52 100; } .pc.on .hm-don .fil { stroke-dasharray: 48 100; }
  .pc-note { opacity: 0; transition: opacity .6s ease 3.4s; } .pc.on .pc-note { opacity: 1; }
}
@media (min-width: 901px) and (max-width: 1240px) { .pc { width: calc(100% + 40px); margin-right: -40px; } }
@media (max-width: 900px) {
  .hero:has(.pc) .wrap { grid-template-columns: 1fr; }
  .pc { width: 100%; margin: 20px 0 0; }
  .pc-lid { border-radius: 12px 12px 4px 4px; }
  .pc-note { left: auto; right: 0; bottom: -40px; font-size: 22px; }
  /* le portable montre l'écran de bureau entier, même en petit : pas de version mobile de la fenêtre */
  .osx.osx-home .osx-side { display: block; } .osx.osx-home .osx-top .usr { display: block; } .osx.osx-home .osx-tb .osx-wn { display: inline; }
  .osx.osx-home .osx-top .srch { flex: none; }
}

/* ═══════════ Une journée avec OptiScol École : la vraie fenêtre, une scène par heure ═══════════
   Même fenêtre .osx que « Fin d'année » (couleurs de l'app). Tout est en em : .osx-day suit la largeur
   de sa colonne (container query) ; sur mobile, chaque étape reçoit une copie de son écran (.osx-mini). */
@media (min-width: 901px) { .day { grid-template-columns: 2.8fr 7.2fr; gap: 44px; } }
@media (min-width: 901px) and (max-width: 1240px) { .day { grid-template-columns: 2.4fr 7.6fr; gap: 28px; } }
.dy-pc { position: relative; width: calc(100% + clamp(0px, 50vw - 604px, 120px)); container-type: inline-size; transform: rotate(-.6deg); }
.dy-pc > .tape { top: -15px; left: 42%; width: 16%; height: 30px; z-index: 3; }
.osx.osx-day { font-size: 1.12cqi; height: 56em; }
.osx-day .osx-scr { padding: 0; }
.dy-in { padding: 1.4em 1.5em; transform: translateY(calc(var(--sy, 0) * -1em)); transition: transform .9s var(--inout); }
.c-g { color: #16a34a; } .c-b { color: #2563eb; } .c-r { color: #dc2626; } .c-v { color: #9333ea; } .c-o { color: #ea580c; }
.dy-m { display: none; }

/* Pièces communes */
.dy-head { display: flex; align-items: flex-start; gap: .8em; margin-bottom: 1.2em; }
.dy-head > div { flex: 1; min-width: 0; }
.dy-head h4 { margin: 0; font-size: 2.3em; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.dy-head p { margin: .3em 0 0; color: #4b5563; font-size: 1.15em; }
.dy-head .ox-sel { width: 13em; background: #fff; }
.dy-outr { background: #fff; color: #dc2626; box-shadow: inset 0 0 0 1px #fecaca; }
.dy-k4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2em; margin-bottom: 1.2em; }
.dy-k4 .ox-card { margin: 0; padding: 1.3em 1.4em; }
.dy-k > span { display: flex; justify-content: space-between; align-items: center; color: #374151; font-size: 1.05em; }
.dy-k > span i { font-size: 1.35em; }
.dy-k > b { display: block; margin-top: .35em; font-size: 1.9em; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dy-k > small { display: block; margin-top: .1em; color: #4b5563; font-size: .95em; }
.dy-k4.sm .dy-k > b { font-size: 1.75em; }
.dy-k.e > span { color: var(--tx); } .dy-k.e > span i { color: #6b7280; } .dy-k.e > b { font-size: 2.1em; }
.dy-pb { display: block; position: relative; height: .55em; margin-top: .9em; border-radius: 99em; background: #f3f4f6; }
.dy-pb::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); border-radius: inherit; background: #c8a064; }
.dy-pb.o { background: #fed7aa; margin-right: 2.4em; }
.dy-pb.o::before { width: .55em; background: #ea580c; }
.dy-pb.o em { position: absolute; right: -2.3em; top: 50%; transform: translateY(-50%); font-style: normal; font-size: .95em; color: #ea580c; }
.dy-tabs { display: grid; gap: .2em; padding: .3em; margin-bottom: 1.2em; border-radius: .7em; background: #e8eaed; }
.dy-tabs.t7 { grid-template-columns: auto auto auto auto auto auto auto; }
.dy-tabs.t4 { grid-template-columns: repeat(4, 1fr); }
.dy-tabs span { display: flex; align-items: center; justify-content: center; gap: .45em; padding: .65em .6em; border-radius: .5em; color: #4b5563; font-size: 1.05em; white-space: nowrap; transition: background-color .3s ease, color .3s ease, box-shadow .3s ease; }
.dy-tabs.t7 span.on { background: var(--g); color: #fff; }
.dy-tabs.t4 span.on { background: #fff; color: var(--tx); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.dy-tabs.nt span.on { color: #2563eb; }
.dy-tp { display: none; } .dy-tp.on { display: block; animation: dyIn .45s var(--out); }
@keyframes dyIn { from { opacity: 0; transform: translateY(.6em); } }
.dy-lh { display: flex; align-items: center; gap: .6em; margin-bottom: 1em; }
.dy-lh > div { flex: 1; min-width: 0; }
.dy-lh b { display: flex; align-items: center; gap: .4em; font-size: 1.55em; font-weight: 700; letter-spacing: -.02em; }
.dy-lh b i { font-size: 1.05em; }
.dy-lh small { display: block; color: #4b5563; font-size: 1.02em; margin-top: .1em; }
.dy-sr { display: flex; align-items: center; gap: 1em; margin-bottom: 1em; }
.dy-sr small { margin-left: auto; color: #4b5563; font-size: 1.02em; }
.dy-q { display: flex; align-items: center; gap: .6em; width: 22em; height: 2.7em; padding: 0 .9em; border-radius: .6em; background: #f7f7f8; box-shadow: inset 0 0 0 1px #eceef1; color: #6b7280; }
.dy-q i { font-size: 1.2em; color: #374151; }
.dy-exp i { color: var(--g); }
.dy-chip { font-style: normal; font-weight: 700; font-size: .95em; padding: .3em .8em; border-radius: 99em; box-shadow: inset 0 0 0 1px #e5e7eb; background: #fff; }
.dy-chip.r { background: #ef4444; color: #fff; box-shadow: none; }
.dy-pill { display: inline-flex; align-items: center; gap: .3em; font-style: normal; font-weight: 700; font-size: .92em; padding: .25em .7em; border-radius: 99em; }
.dy-pill.b { background: #dbeafe; color: #1d4ed8; box-shadow: inset 0 0 0 1px #bfdbfe; }
.dy-pill.g { background: #dcfce7; color: #15803d; }
.dy-t { border-radius: .7em; box-shadow: 0 0 0 1px #eceef1; overflow: hidden; }
.dy-th, .dy-tr { display: grid; align-items: center; gap: 1em; padding: 0 1.2em; }
.dy-th { height: 3.3em; background: #fafafa; color: #b88d4c; font-weight: 600; font-size: 1.05em; border-bottom: 1px solid #eceef1; }
.dy-tr { min-height: 4.6em; padding-top: .6em; padding-bottom: .6em; border-top: 1px solid #f1f2f4; font-size: 1.05em; transition: background-color .5s ease, opacity .5s ease; }
.dy-th .r, .dy-tr .r { text-align: right; }
.dy-tr small { display: block; color: #4b5563; font-size: .95em; }
.dy-tr small.c-g, .dy-tr small.c-r { color: inherit; } .dy-tr .c-g small, .dy-tr small.c-g { color: #16a34a; } .dy-tr small.c-r { color: #dc2626; }
.dy-flt { padding: 1.3em 1.4em; }
.dy-flt .dy-lh b { flex: 1; font-size: 1.4em; }
.dy-chip.gr { background: #e5e7eb; box-shadow: none; color: #374151; }
.dy-f5 { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: .8em; }
.dy-f5 .dy-q { width: auto; background: #fff; } .dy-f5 .ox-sel { height: 2.7em; }
.dy-t.lf .dy-th, .dy-t.lf .dy-tr { grid-template-columns: 1.15fr .6fr 1fr 1.25fr .95fr .85fr .95fr 1fr 1fr 2.2em; gap: .7em; padding: 0 1em; }
.dy-t.lf .dy-th { height: 3.8em; font-size: .98em; line-height: 1.2; }
.dy-t.lf .dy-tr { font-size: .98em; }
.dy-pill.late { background: #fee2e2; color: #b91c1c; }
.dy-pill.paid { display: none; }
.dy-tr.paid .dy-pill.late { display: none; } .dy-tr.paid .dy-pill.paid { display: inline-flex; animation: dyPop .45s cubic-bezier(.34,1.5,.64,1); }
.dy-tr.paid { background: #f7fdf9; }
.dy-pg { display: block; height: .5em; border-radius: 99em; background: #eef0f3; overflow: hidden; margin-bottom: .35em; }
.dy-pg b { display: block; height: 100%; width: 100%; background: var(--g); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--out) .2s; }
.dy-tr.paid .dy-pg b { transform: scaleX(1); }
.dy-dots { position: relative; display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: .4em; font-size: 1.2em; transition: background-color .2s ease, transform .15s ease; }
.dy-dots.press { transform: scale(.88); background: #f3f4f6; }
.dy-menu { position: absolute; right: 0; top: calc(100% + .2em); z-index: 4; display: none; flex-direction: column; width: 15em; padding: .3em; border-radius: .5em; background: #fff; box-shadow: 0 0 0 1px #e5e7eb, 0 12px 28px -8px rgba(0,0,0,.25); font-size: .82em; }
.dy-dots.open .dy-menu { display: flex; animation: dyIn .25s var(--out); }
.dy-menu em { display: flex; align-items: center; gap: .5em; padding: .5em .6em; border-radius: .35em; font-style: normal; white-space: nowrap; transition: background-color .2s ease; }
.dy-menu em.on { background: #f3f4f6; } .dy-menu em.red { color: #dc2626; } .dy-menu em.press { background: #e5e7eb; }
.dy-t.tx .dy-th, .dy-t.tx .dy-tr { grid-template-columns: 1em 1.2fr 1.2fr 1fr 1fr .8fr 1.9fr; grid-template-columns: .95fr 1.2fr 1.3fr 1.05fr 1fr .85fr 1.9fr; }
.dy-pay { display: inline-grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: .5em; background: #dcfce7; color: #16a34a; font-size: 1.15em; box-shadow: inset 0 0 0 1px #bbf7d0; transition: transform .15s ease; }
.dy-pay.press { transform: scale(.88); }
.dy-meth { font-style: normal; font-weight: 700; font-size: .9em; padding: .3em .7em; border-radius: .4em; background: #f3f4f6; }
.dy-acts { display: flex; gap: .5em; }
.dy-rc, .dy-rb { display: inline-flex; align-items: center; gap: .4em; font-style: normal; padding: .45em .8em; border-radius: .5em; box-shadow: inset 0 0 0 1px #e5e7eb; white-space: nowrap; transition: transform .15s ease; }
.dy-rc { color: #4f46e5; } .dy-rb { color: #ea580c; }
.dy-rc.press { transform: scale(.92); }
.dy-tr.new { background: #fffbeb; }
.dy-tr.gone { opacity: .35; }

/* Fenêtres modales et notifications */
.dy-modal { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: rgba(0,0,0,.55); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; }
.dy-modal.on { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }
.dy-dlg { position: relative; width: 36em; max-width: calc(100% - 2em); max-height: calc(100% - 2em); padding: 1.6em 1.7em; border-radius: .8em; background: #fafafa; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); transform: scale(.95) translateY(.6em); transition: transform .4s var(--out); overflow: hidden; }
.dy-modal.on .dy-dlg { transform: none; }
.dy-x { position: absolute; right: 1.1em; top: 1.1em; font-size: 1.3em; color: #374151; }
.dy-dt { display: flex; align-items: center; gap: .4em; font-size: 1.5em; font-weight: 700; letter-spacing: -.01em; }
.dy-dt i { color: var(--g); }
.dy-dd { margin: .35em 0 0; color: #4b5563; font-size: 1.08em; }
.dy-foot { display: flex; justify-content: flex-end; gap: .7em; margin-top: 1.3em; }
.dy-toast { position: absolute; right: 1.4em; bottom: 1.4em; z-index: 7; max-width: 30em; padding: 1em 1.3em; border-radius: .6em; opacity: 0; transform: translateY(1em); transition: opacity .3s ease, transform .45s var(--out); pointer-events: none; }
.dy-toast b { display: block; font-size: 1.15em; } .dy-toast span { display: block; margin-top: .3em; font-size: 1.08em; }
.dy-toast.r { background: #fef2f2; box-shadow: 0 0 0 1px #fecaca, 0 14px 30px -12px rgba(0,0,0,.25); color: #b91c1c; }
.dy-toast.g { background: #fff; box-shadow: 0 0 0 1px #e5e7eb, 0 14px 30px -12px rgba(0,0,0,.25); } .dy-toast.g span { color: #4b5563; }
.dy-toast.on { opacity: 1; transform: none; }
.ox-btn.press { transform: scale(.94); filter: brightness(.94); }

/* 7h30 · Faire l'appel */
.dy-ph { display: flex; align-items: center; justify-content: space-between; padding: 1.4em 1.5em; }
.dy-ph b { display: flex; align-items: center; gap: .5em; font-size: 1.75em; font-weight: 700; letter-spacing: -.02em; }
.dy-date { padding: .6em 1em; border-radius: .4em; box-shadow: inset 0 0 0 1px #e5e7eb; font-size: 1.2em; }
.dy-crs3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2em; }
.dy-crs { margin: 0; padding: 1.3em 1.4em; }
.dy-crs-h { display: flex; align-items: flex-start; justify-content: space-between; gap: .5em; }
.dy-crs-h b { font-size: 1.45em; font-weight: 700; letter-spacing: -.01em; }
.dy-crs > small { display: block; color: #374151; font-size: 1.08em; margin: .1em 0 .5em; }
.dy-crs p { display: flex; align-items: center; gap: .55em; margin: .45em 0 0; color: #374151; font-size: 1.05em; }
.dy-crs p i { font-size: 1.2em; } .dy-crs .pin { font-size: .95em; }
.dy-crs .ox-btn { width: 100%; margin-top: 1em; }
.dy-crs .ox-btn em { font-style: normal; } .dy-crs .ox-btn em + em { display: none; }
.dy-bdg { display: inline-flex; align-items: center; gap: .3em; font-weight: 700; font-size: .9em; padding: .2em .6em; border-radius: 99em; white-space: nowrap; }
.dy-bdg.w { color: #ea580c; box-shadow: inset 0 0 0 1px #fb923c; }
.dy-bdg.ok { display: none; background: #22c55e; color: #fff; }
.dy-crs.done .dy-bdg.w { display: none; } .dy-crs.done .dy-bdg.ok { display: inline-flex; animation: dyPop .45s cubic-bezier(.34,1.5,.64,1); }
.dy-crs.done .ox-btn { background: #f7f7f8; color: var(--tx); box-shadow: inset 0 0 0 1px #e5e7eb; }
.dy-crs.done .ox-btn em:first-child { display: none; } .dy-crs.done .ox-btn em + em { display: inline; }
@keyframes dyPop { from { transform: scale(.4); opacity: 0; } }
.w-appel { width: 50em; }
.dy-sum { display: flex; gap: 1.6em; margin: 1.1em 0 1em; padding: .9em 1em; border-radius: .6em; background: #f3f4f6; font-size: 1.2em; font-weight: 700; }
.dy-sum span { display: flex; align-items: center; gap: .35em; } .dy-sum i { font-size: 1.25em; }
.dy-sum .p i { color: #22c55e; } .dy-sum .r i { color: #f97316; } .dy-sum .a i { color: #ef4444; }
.dy-sum b { display: inline-block; }
.bump { animation: dyBump .4s var(--out); } @keyframes dyBump { 40% { transform: scale(1.3); } }
.dy-list { display: flex; flex-direction: column; gap: .8em; max-height: 25em; overflow: hidden; }
.dy-stu { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: .6em; padding: .9em 1.1em; border-radius: .7em; background: #fff; box-shadow: 0 0 0 1px #eceef1; }
.dy-stu > span { font-size: 1.2em; }
.dy-stu em { display: inline-flex; align-items: center; gap: .35em; height: 2.5em; padding: 0 .9em; border-radius: .5em; font-style: normal; font-size: 1.05em; box-shadow: inset 0 0 0 1px #e5e7eb; background: #fff; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .15s ease; }
.dy-stu em i { font-size: 1.2em; }
.dy-stu em.press { transform: scale(.92); }
.dy-stu[data-s="p"] em.p { background: var(--g); color: #fff; box-shadow: none; }
.dy-stu[data-s="r"] em.r { background: #f97316; color: #fff; box-shadow: none; }
.dy-stu[data-s="a"] em.a { background: #ef4444; color: #fff; box-shadow: none; }
.dy-why { grid-column: 1 / -1; display: none; margin-top: .3em; padding-left: 1.1em; border-left: 2px solid #e5e7eb; }
.dy-stu[data-s="r"] .dy-why, .dy-stu[data-s="a"] .dy-why { display: block; animation: dyIn .4s var(--out); }
.dy-ta { display: block; min-height: 3.6em; padding: .6em .8em; border-radius: .5em; background: #fff; box-shadow: inset 0 0 0 1px #e5e7eb; font-size: 1.08em; }
.dy-ta:empty::before { content: attr(data-ph); color: #9ca3af; }
.dy-ta.typing::after, .dy-v.typing::after { content: ""; display: inline-block; width: 1px; height: 1.1em; margin-left: 1px; vertical-align: -.15em; background: currentColor; animation: blink 1s steps(1) infinite; }
.dy-why label { display: flex; align-items: center; gap: .5em; margin-top: .5em; font-size: 1.05em; }
.dy-why label i { width: 1.1em; height: 1.1em; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--g); }
.w-appel .dy-foot { margin-top: 1em; padding-top: 1em; border-top: 1px solid #eceef1; }

/* 10h15 · Paiement et reçu */
.w-pay { width: 34em; }
.w-pay label { display: block; margin-top: 1.1em; font-size: 1.1em; }
.dy-due { display: block; margin-top: .3em; color: #dc2626; font-size: 1.6em; font-weight: 700; }
.dy-inp { display: flex; align-items: center; height: 3em; margin-top: .45em; padding: 0 .9em; border-radius: .6em; background: #fff; box-shadow: inset 0 0 0 1px #e5e7eb; font-size: 1.1em; }
.dy-inp.foc { box-shadow: 0 0 0 .15em var(--g), inset 0 0 0 1px #fff; }
.dy-v:empty::before { content: attr(data-ph); color: #6b7280; }
.dy-msel { display: flex; width: 100%; height: 3em; margin-top: .45em; font-size: 1.1em; transition: box-shadow .25s ease; }
.dy-msel.set { box-shadow: 0 0 0 .15em rgba(203,163,103,.4); }
.w-pay .dy-ta { margin-top: .45em; min-height: 4.2em; }
.w-rc { width: 44em; }
.dy-rcpt { margin-top: 1.3em; padding: 0 1.5em; text-align: center; }
.dy-rcpt > b { display: block; font-size: 1.75em; font-weight: 700; }
.dy-rcpt > small { display: block; color: #4b5563; font-size: 1.05em; margin-top: .1em; }
.dy-rcpt dl { display: grid; grid-template-columns: auto 1fr; gap: .5em 1em; margin: 1.1em 0 0; font-size: 1.12em; text-align: left; }
.dy-rcpt dl.sep { padding: 1em 0; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.dy-rcpt dt { font-weight: 700; } .dy-rcpt dd { margin: 0; text-align: right; }
.dy-rcpt em { display: block; margin-top: 1em; font-style: normal; font-weight: 700; font-size: 1.25em; }
.dy-rcpt strong { display: block; color: #c8a064; font-size: 2.4em; font-weight: 700; line-height: 1.1; }
.dy-rcpt p { margin: .6em 0 0; color: #4b5563; font-size: 1.05em; }

/* 12h05 · Cantine, pointage */
.dy-cs3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1em; margin-bottom: 1.2em; }
.dy-cst { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 1.1em 1.2em; box-shadow: 0 1px 3px rgba(20,30,50,.05), 0 4px 12px -2px rgba(20,30,50,.06); border-left: .35em solid; }
.dy-cst small { display: block; color: #6b7280; font-weight: 500; font-size: 1.05em; } .dy-cst b { display: block; font-size: 1.9em; font-weight: 700; }
.dy-cst > i { width: 2.5em; height: 2.5em; border-radius: 50%; display: grid; place-items: center; font-size: 1.25em; }
.dy-cst.p { border-left-color: var(--g); } .dy-cst.p > i { background: rgba(203,163,103,.12); color: var(--g); }
.dy-cst.s { border-left-color: #f6f3ee; } .dy-cst.s > i { background: rgba(203,163,103,.06); color: #b9a58a; }
.dy-cst.d { border-left-color: #ef4444; } .dy-cst.d > i { background: rgba(239,68,68,.1); color: #ef4444; }
.dy-cbar { display: flex; align-items: center; gap: .8em; padding: 1em 1.1em; box-shadow: 0 0 0 1px #eceef1, 0 1px 2px rgba(0,0,0,.04); }
.dy-cbar .dy-q { width: 20em; background: #fff; }
.dy-cbar .ox-sel { width: 11em; }
.dy-scan { margin-left: auto; }
.dy-cg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1em; }
.dy-cc { padding: 1.1em 1.1em 1em; border-radius: .9em; background: #fff; box-shadow: inset 0 0 0 1px #e5e7eb; transition: background-color .4s ease, box-shadow .4s ease; }
.dy-cc.al { box-shadow: inset 0 0 0 1px rgba(239,68,68,.5); }
.dy-cc.on { background: #fcf9f4; box-shadow: inset 0 0 0 1px var(--g); }
.dy-cc-h { display: flex; justify-content: space-between; align-items: flex-start; gap: .5em; }
.dy-cc-h b { display: block; font-size: 1.3em; font-weight: 600; line-height: 1.1; margin-bottom: .2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dy-cc-h > div { min-width: 0; } .dy-cc-h small { display: block; color: #6b7280; font-size: 1.02em; }
.dy-abo { display: inline-block; margin-top: .3em; font-style: normal; font-size: .82em; font-weight: 500; padding: .15em .55em; border-radius: .3em; background: #f6f3ee; color: #8a6a3a; }
.dy-ck { flex: none; width: 2.3em; height: 2.3em; border-radius: 50%; display: grid; place-items: center; background: #f3f4f6; color: #6b7280; transition: background-color .35s ease, color .35s ease; }
.dy-ck i { font-size: 1.35em; } .dy-ck i + i, .dy-cc.on .dy-ck i:first-child { display: none; } .dy-cc.on .dy-ck i + i { display: block; }
.dy-cc.on .dy-ck { background: var(--g); color: #fff; }
.dy-cc-f { display: flex; justify-content: space-between; align-items: center; gap: .4em; margin-top: 1.1em; min-height: 1.9em; }
.dy-cc-f > span:first-child { display: flex; flex-wrap: wrap; gap: .3em; }
.dy-diet, .dy-att { display: inline-flex; align-items: center; gap: .25em; font-style: normal; font-weight: 700; font-size: .82em; padding: .2em .6em; border-radius: 99em; }
.dy-diet { background: #fef3c7; color: #b45309; box-shadow: inset 0 0 0 1px #fde68a; }
.dy-att { background: #ffe4e6; color: #be123c; box-shadow: inset 0 0 0 1px #fecdd3; }
.dy-tm { display: none; align-items: center; gap: .25em; padding: .2em .55em; border-radius: .4em; background: rgba(203,163,103,.12); color: #a5804a; font-weight: 600; font-size: .88em; }
.dy-cc.on .dy-tm { display: inline-flex; }
.w-scan { width: 30em; }
.dy-tg { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; margin-top: 1.1em; }
.dy-cam { position: relative; height: 17em; margin-top: 1em; border-radius: .9em; background: #0b0b0c; overflow: hidden; display: grid; place-items: center; transition: box-shadow .2s ease; }
.dy-qr { position: relative; display: grid; place-items: center; width: 8.5em; height: 8.5em; border-radius: .6em; background: #fff; color: #111; font-size: 1em; transform: rotate(-4deg); }
.dy-qr i { font-size: 7.5em; }
.dy-cam::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12em; height: 12em; margin: -6em 0 0 -6em; border-radius: .8em;
  background: linear-gradient(var(--g), var(--g)) 0 0 / 1.6em .25em, linear-gradient(var(--g), var(--g)) 0 0 / .25em 1.6em, linear-gradient(var(--g), var(--g)) 100% 0 / 1.6em .25em, linear-gradient(var(--g), var(--g)) 100% 0 / .25em 1.6em,
    linear-gradient(var(--g), var(--g)) 0 100% / 1.6em .25em, linear-gradient(var(--g), var(--g)) 0 100% / .25em 1.6em, linear-gradient(var(--g), var(--g)) 100% 100% / 1.6em .25em, linear-gradient(var(--g), var(--g)) 100% 100% / .25em 1.6em; background-repeat: no-repeat; z-index: 1; }
.dy-sl { position: absolute; left: 50%; width: 11em; margin-left: -5.5em; top: 25%; height: 2px; background: #22c55e; box-shadow: 0 0 .8em .2em rgba(34,197,94,.6); z-index: 2; animation: dyScan 1.8s ease-in-out infinite alternate; }
@keyframes dyScan { to { top: 75%; } }
.dy-cam.hit { box-shadow: inset 0 0 0 .3em #22c55e; } .dy-cam.hit .dy-sl { opacity: 0; }
.dy-beep { display: flex; align-items: center; justify-content: center; gap: .3em; margin: .7em 0 0; color: #6b7280; font-size: .95em; }
.dy-res { display: none; gap: .9em; margin-top: 1em; padding: 1em; border-radius: .8em; background: #f6f3ee; box-shadow: inset 0 0 0 1px #eadfcd; }
.dy-res.on { display: flex; animation: dyIn .45s var(--out); }
.dy-ok { flex: none; width: 2.6em; height: 2.6em; border-radius: 50%; display: grid; place-items: center; background: #efe7da; color: #6b4e1f; font-size: 1.2em; }
.dy-res b { display: block; color: #15803d; font-size: 1.15em; } .dy-res small { color: #6b7280; }
.dy-res p { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; margin: .5em 0 0; }
.dy-cat { display: inline-flex; align-items: center; gap: .3em; font-style: normal; font-weight: 500; font-size: .92em; padding: .2em .7em; border-radius: 99em; background: rgba(203,163,103,.15); color: #9a7338; }
.dy-bw, .dy-bd { font-style: normal; font-size: .9em; font-weight: 600; padding: .2em .6em; border-radius: .4em; }
.dy-bw { background: #fef3c7; color: #b45309; } .dy-bd { background: #fee2e2; color: #b91c1c; }

/* 14h00 · Emploi du temps */
.dy-cfg { padding: 1.4em 1.5em; }
.dy-cfg .dy-lh b { font-size: 1.5em; flex: 1; }
.dy-cfg .dy-chip.r { display: none; } .dy-cfg.cf .dy-chip.r { display: inline-block; animation: dyPop .4s cubic-bezier(.34,1.5,.64,1); }
.dy-f2 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.2em; }
.dy-f2 label, .dy-f4 label { display: flex; flex-direction: column; gap: .5em; font-size: 1.1em; }
.dy-f2 .ox-sel, .dy-f4 .ox-sel { width: 100%; height: 2.9em; font-size: .98em; }
.dy-edt { position: relative; padding: 1.4em 1.5em 1.5em 2.4em; }
.dy-col { position: absolute; left: -.9em; top: 1.3em; width: 2.6em; height: 2.6em; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.12); font-size: 1.1em; }
.dy-edt .dy-lh b { font-size: 1.7em; white-space: nowrap; }
.dy-edt .dy-lh .ox-btn { height: 2.4em; padding: 0 .9em; font-size: .95em; }
.dy-uns { display: none; font-style: normal; font-weight: 700; font-size: .95em; color: #c2410c; padding: .25em .7em; border-radius: 99em; background: #fff7ed; box-shadow: inset 0 0 0 1px #fed7aa; white-space: nowrap; }
.dy-edt.dirty .dy-uns { display: inline-block; animation: dyPop .4s cubic-bezier(.34,1.5,.64,1); }
.dy-edt .dy-save { margin-left: auto; opacity: .55; transition: opacity .3s ease; } .dy-edt.dirty .dy-save { opacity: 1; }
.dy-grid { display: grid; grid-template-columns: 8.5em repeat(6, minmax(0, 1fr)); gap: .9em .8em; }
.dy-grid .h, .dy-grid .d { display: grid; place-items: center; height: 2.9em; border-radius: .4em; font-size: 1.1em; }
.dy-grid .h { background: #f7f7f8; color: #6b7280; } .dy-grid .d { background: #eff6ff; }
.dy-grid .hr { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 7.2em; border-radius: .4em; background: #f7f7f8; font-size: 1.05em; }
.dy-grid .hr small { color: #4b5563; font-size: .9em; }
.dy-grid .cr, .dy-grid .add { position: relative; min-height: 7.2em; border-radius: .6em; }
.dy-grid .cr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-content: start; gap: .5em .35em; padding: .8em .75em; border: .15em solid; }
.dy-grid .cr b { font-weight: 500; font-size: .98em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dy-grid .cr > i { font-size: 1.15em; color: #374151; } .dy-grid .cr > i.del { color: #ef4444; }
.dy-grid .cr small { grid-column: 1 / -1; display: flex; align-items: center; gap: .3em; color: #4b5563; font-size: .9em; white-space: nowrap; overflow: hidden; }
.dy-grid .cr.m { border-color: #3b5bdb; background: #f5f7ff; } .dy-grid .cr.m b { color: #3b5bdb; }
.dy-grid .cr.p { border-color: #9333ea; background: #fbf7ff; } .dy-grid .cr.p b { color: #9333ea; }
.dy-grid .add { display: flex; align-items: flex-start; justify-content: center; gap: .4em; padding-top: 1.3em; border: .12em dashed #d1d5db; color: #6b7280; font-size: .98em; }
.dy-drag { position: absolute !important; inset: -.12em; opacity: 0; transform: translate(-26em, 9em) rotate(-4deg); box-shadow: 0 20px 30px -12px rgba(0,0,0,.3); transition: transform 1.2s var(--inout), opacity .3s ease, box-shadow .4s ease .9s; z-index: 2; }
.dy-edt.drag .dy-drag { opacity: 1; }
.dy-edt.drop .dy-drag { opacity: 1; transform: none; box-shadow: 0 0 0 .2em rgba(239,68,68,.35); }
.dy-cf { padding: 1.4em 1.5em; }
.dy-cf .dy-lh b { font-size: 1.9em; flex: 1; }
.dy-cf-n { margin: -.3em 0 1em; color: #4b5563; font-size: 1.15em; }
.dy-cfx { padding: 1.2em 1.4em; border-radius: .7em; background: #fde2e2; }
.dy-cfx-h { display: flex; align-items: center; gap: .5em; }
.dy-cfx-h b { font-size: 1.3em; font-weight: 500; } .dy-cfx-h i { font-size: 1.2em; }
.dy-cfx-h em { font-style: normal; font-weight: 700; font-size: .95em; color: #991b1b; padding: .15em .6em; border-radius: 99em; background: #fff; box-shadow: inset 0 0 0 1px #fecaca; }
.dy-cfx-h span { margin-left: auto; display: flex; align-items: center; gap: .3em; color: #4b5563; font-size: 1.1em; }
.dy-cfx p { margin: .7em 0 0; font-size: 1.1em; }
.dy-cfx p.cl { display: flex; align-items: center; gap: .6em; font-size: 1em; }
.dy-cfx p.cl em { font-style: normal; font-weight: 700; padding: .2em .8em; border-radius: 99em; background: #fff; }
.dy-fix { display: flex; gap: .5em; } .dy-fix span { padding: .35em .8em; font-size: .95em; }
.dy-cfx a { display: inline-block; margin: .6em 0 0 .8em; color: #2563eb; font-size: 1em; }

/* 16h30 · Saisie des notes */
.dy-head.nt h4 { color: #1e3a8a; }
.dy-yr { font-style: normal; font-weight: 700; font-size: 1.2em; color: #1d4ed8; padding: .35em .9em; border-radius: 99em; background: #eff6ff; box-shadow: inset 0 0 0 1px #dbeafe; }
.dy-tabs.nt span i { font-size: 1.2em; }
.dy-nsel, .dy-nh, .dy-nt, .dy-acc { margin-bottom: 1.2em; }
.dy-nsel { padding: 1.4em 1.5em; }
.dy-bt { display: flex; align-items: center; gap: .45em; color: #1e3a8a; font-size: 1.75em; font-weight: 700; letter-spacing: -.02em; }
.dy-bt i { color: #2563eb; font-size: .95em; }
.dy-nsel > small { display: block; margin: .3em 0 1em; color: #4b5563; font-size: 1.05em; }
.dy-f4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1em; }
.dy-f4 .ox-sel em { font-style: normal; font-weight: 700; font-size: .85em; padding: .15em .6em; border-radius: 99em; background: #f5efe4; }
.dy-f4 .ox-sel.foc { box-shadow: 0 0 0 .15em var(--g); border-color: #fff; justify-content: center; }
.dy-dot { width: .7em; height: .7em; border-radius: 50%; background: #ea580c; }
.dy-acc { display: flex; justify-content: space-between; align-items: center; padding: 1.2em 1.5em; box-shadow: 0 0 0 1px #eceef1; }
.dy-acc b { display: flex; align-items: center; gap: .5em; font-size: 1.35em; }
.dy-nh { display: flex; align-items: center; gap: .7em; padding: 1em 1.3em; }
.dy-nh .dy-bt { font-size: 1.7em; } .dy-nh .dy-chip { background: #f5efe4; box-shadow: none; margin-right: auto; }
.dy-sv { background: #93c5fd; color: #fff; transition: background-color .3s ease; } .dy-nt.dirty ~ .dy-nh .dy-sv, .dy-nh.dirty .dy-sv { background: #3b82f6; }
.dy-nt { padding: 0; overflow: hidden; }
.dy-nth, .dy-ntr { display: grid; grid-template-columns: 2em 1.6fr 1.3fr 1.3fr 1.1fr 1.2fr 1.3fr .7fr; align-items: center; gap: .8em; padding: 0 1.3em; }
.dy-nth { min-height: 4.8em; color: #4b5563; font-size: 1.02em; text-align: center; border-bottom: 1px solid #eceef1; line-height: 1.25; }
.dy-nth span:nth-child(2) { text-align: left; } .dy-nth small { display: block; font-size: .85em; }
.dy-ntr { min-height: 5.6em; border-top: 1px solid #f1f2f4; font-size: 1.08em; }
.dy-ntr > span:nth-child(n+3) { display: flex; flex-direction: column; align-items: center; gap: .3em; }
.dy-n { display: flex; align-items: center; justify-content: center; width: 4.6em; height: 2.4em; border-radius: .5em; font-style: normal; background: #f7f7f8; box-shadow: inset 0 0 0 1px #e5e7eb; position: relative; transition: background-color .3s ease, box-shadow .3s ease; }
.dy-n::after { content: "⌃⌄"; position: absolute; right: .35em; font-size: .6em; line-height: .7; width: .9em; word-break: break-all; color: #6b7280; }
.dy-n.v { background: #f0fdf4; box-shadow: inset 0 0 0 1.5px #4ade80; padding-right: .8em; }
.dy-n.foc { box-shadow: 0 0 0 .15em #60a5fa; background: #fff; }
.dy-ntr u { display: flex; align-items: center; gap: .3em; text-decoration: none; font-size: .78em; }
.dy-ntr u::before { content: ""; width: 1.3em; height: 1.3em; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--g); }
.dy-com { font-style: normal; width: 100%; padding: .5em .8em; border-radius: .5em; box-shadow: inset 0 0 0 1px #e5e7eb; color: #6b7280; }
.dy-ok2 { font-style: normal; font-weight: 700; font-size: .9em; padding: .25em .7em; border-radius: 99em; box-shadow: inset 0 0 0 1px #e5e7eb; }

/* Mobile : une copie de l'écran sous chaque étape, en plus petit, sans le menu */
@media (max-width: 900px) {
  .step .dy-m { display: block; margin-top: 20px; }
  .osx.osx-mini { display: block; height: auto; font-size: 7.6px; }
  .osx-mini .osx-scr { position: relative; inset: auto; opacity: 1; visibility: visible; transform: none; overflow: hidden; }
  .osx-mini .dy-in { padding: 1.2em; }
  .osx-mini .dy-k4, .osx-mini .dy-crs3, .osx-mini .dy-cg { grid-template-columns: 1fr 1fr; }
  .osx-mini .dy-crs:nth-child(n+5), .osx-mini .dy-cc:nth-child(n+5) { display: none; }
  .osx-mini .dy-head { flex-wrap: wrap; } .osx-mini .dy-head > div { flex-basis: 100%; }
  .osx-mini .dy-head .ox-sel, .osx-mini .dy-outr, .osx-mini .dy-lh .ox-btn.line, .osx-mini .dy-sr, .osx-mini .dy-tabs.t7 span:nth-child(n+4), .osx-mini .dy-k4.sm { display: none; }
  .osx-mini .dy-tabs.t7 { grid-template-columns: repeat(3, auto); }
  .osx-mini .dy-flt { display: none; }
  .osx-mini .dy-t.lf .dy-th, .osx-mini .dy-t.lf .dy-tr { grid-template-columns: 1.3fr 1fr 1.1fr 2.2em; }
  .osx-mini .dy-t.lf > div > :is(:nth-child(2), :nth-child(3), :nth-child(4), :nth-child(5), :nth-child(6), :nth-child(9)) { display: none; }
  .osx-mini .dy-t.tx .dy-th, .osx-mini .dy-t.tx .dy-tr { grid-template-columns: 1.2fr 1fr 1.3fr; }
  .osx-mini .dy-t.tx > div > :nth-child(1), .osx-mini .dy-t.tx > div > :nth-child(3), .osx-mini .dy-t.tx > div > :nth-child(5), .osx-mini .dy-t.tx > div > :nth-child(6) { display: none; }
  .osx-mini .dy-rb { display: none; }
  .osx-mini .dy-cbar { flex-wrap: wrap; } .osx-mini .dy-cbar .dy-q { width: 100%; } .osx-mini .dy-cbar .ox-sel { display: none; } .osx-mini .dy-scan { margin-left: 0; }
  .osx-mini .dy-cs3 { gap: .6em; } .osx-mini .dy-cst { padding: .8em; } .osx-mini .dy-cst > i { display: none; }
  .osx-mini .dy-cfg, .osx-mini .dy-col, .osx-mini .dy-edt .ox-btn.line { display: none; }
  .osx-mini .dy-edt { padding: 1.2em; } .osx-mini .dy-lh { flex-wrap: wrap; }
  .osx-mini .dy-grid { grid-template-columns: 6.5em repeat(3, minmax(0, 1fr)); }
  .osx-mini .dy-grid > :nth-child(7n+3), .osx-mini .dy-grid > :nth-child(7n+4), .osx-mini .dy-grid > :nth-child(7n+5) { display: none; }
  .osx-mini .dy-drag { transform: translate(-12em, 6em) rotate(-4deg); }
  .osx-mini .dy-tabs.t4 span:nth-child(n+3) { display: none; } .osx-mini .dy-tabs.t4 { grid-template-columns: 1fr 1fr; }
  .osx-mini .dy-f4 { grid-template-columns: 1fr 1fr; } .osx-mini .dy-acc, .osx-mini .dy-nh .ox-btn.line { display: none; }
  .osx-mini .dy-nth, .osx-mini .dy-ntr { grid-template-columns: 1.4fr 1fr 1fr .8fr; }
  .osx-mini .dy-nt > div > :nth-child(1), .osx-mini .dy-nt > div > :nth-child(3), .osx-mini .dy-nt > div > :nth-child(4), .osx-mini .dy-nt > div > :nth-child(7) { display: none; }
  .osx-mini .dy-sum { font-size: 1.05em; gap: 1em; } .osx-mini .dy-stu { grid-template-columns: 1fr auto auto auto; } .osx-mini .dy-stu em { padding: 0 .5em; }
  .osx-mini .dy-modal { position: absolute; } .osx-mini .dy-dlg { padding: 1.2em; }
  .osx-mini .dy-in { --sy: 0 !important; transform: none; }
}

/* ═══════════ Apps Enseignant et Parent (École) ═══════════
   Mesures du code React Native à l'échelle 0,75 (écran de 270 px pour 360 dp). Police Roboto comme sur Android.
   Enseignant : bleu #136dec, onglets #0a7ea4. Parent : bleu #137fec. */
.mp2 { display: grid; grid-template-columns: 290px minmax(0, 1fr) 290px; gap: 40px; align-items: start; margin-top: 56px; }
.mp-col { margin: 0; }
.mp { position: relative; width: 290px; height: 600px; padding: 10px; border-radius: 44px; background: #0d0d10; box-shadow: 0 60px 90px -40px rgba(10,20,60,.55); }
.mp-col:first-child .mp { transform: rotate(-2deg); } .mp-col:last-child .mp { transform: rotate(2deg); }
.mp .tape { top: -14px; left: 34%; width: 32%; height: 28px; z-index: 5; }
.mp-s { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #f6f7f8; color: #0f172a; font-family: "Roboto", system-ui, sans-serif; letter-spacing: 0; line-height: 1.3; }
.mp-sb { position: absolute; left: 0; right: 0; top: 0; z-index: 4; display: flex; justify-content: space-between; align-items: center; height: 28px; padding: 4px 22px 0; font-size: 10.5px; font-weight: 600; }
.mp-sb i { font-size: 12px; margin-left: 3px; }
.mp-v { position: absolute; inset: 0; padding-top: 28px; display: flex; flex-direction: column; background: inherit; opacity: 0; visibility: hidden; transform: translateX(30px); transition: opacity .3s ease, transform .45s var(--out), visibility 0s .45s; }
.mp-v.on { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .45s var(--out), visibility 0s; }
.mp-v.back { transform: translateX(-30px); }
.mp-v.up { transform: translateY(100%); opacity: 1; background: #fff; z-index: 3; transition: transform .5s var(--out), visibility 0s .5s; }
.mp-v.up.on { transform: none; transition: transform .5s var(--out), visibility 0s; }
.mp-s h5 { margin: 0; font-size: 12px; font-weight: 700; color: #111418; letter-spacing: 0; }
.mp-s h6 { margin: 0; font-size: 9px; font-weight: 600; letter-spacing: .75px; color: #64748b; }
.mp-s .press { transform: scale(.94); filter: brightness(.93); }
.mp-tabs { margin-top: auto; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 2px 14px; background: #fff; border-top: 1px solid #eef0f3; }
.mp-tabs span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 7.5px; color: #687076; text-align: center; line-height: 1.1; }
.mp-tabs i { font-size: 18px; }
.mp-tabs.pro span.on { color: #0a7ea4; } .mp-tabs.par span.on { color: #137fec; } .mp-tabs.par span { color: #64748b; }
.mp-toast { position: absolute; left: 15px; right: 15px; z-index: 6; display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 9px; font-size: 10.5px; opacity: 0; transition: opacity .3s ease, transform .4s var(--out); pointer-events: none; }
.mp-toast i { font-size: 16px; }
.mp-toast.pro { bottom: 75px; background: #fff; color: #111418; font-weight: 500; box-shadow: 0 4px 12px rgba(0,0,0,.12); transform: translateY(10px); } .mp-toast.pro i { color: #16a34a; }
.mp-toast.par { top: 45px; background: #dcfce7; color: #16a34a; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.1); transform: translateY(-10px); }
.mp-toast.on { opacity: 1; transform: none; }

/* Enseignant · tableau de bord (DashboardHeader, StatCard, NextCourseCard, DailyTaskItem) */
.tp-h { display: flex; align-items: center; gap: 10px; padding: 12px 12px 6px; background: #fff; border-bottom: 1px solid #f3f4f6; }
.tp-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e7effd; color: #136dec; font-size: 10px; font-weight: 700; box-shadow: 0 0 0 1.5px rgba(19,109,236,.2); }
.tp-h div { flex: 1; } .tp-h b { display: block; font-size: 13.5px; color: #111418; } .tp-h small { font-size: 9px; color: #6b7280; }
.tp-bell, .pp-bell { position: relative; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-size: 17px; color: #475569; }
.tp-bell em, .pp-bell em { position: absolute; top: 0; right: -2px; min-width: 14px; height: 14px; padding: 0 2px; border-radius: 7px; background: #ef4444; color: #fff; font-style: normal; font-size: 7.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 1.5px #fff; }
.tp-c { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.tp-st { display: flex; justify-content: space-between; }
.tp-sc { width: 48%; padding: 10px 12px; border-radius: 9px; background: #eff6ff; border: 1px solid #dbeafe; }
.tp-sc span { display: flex; align-items: center; gap: 5px; color: #136dec; font-size: 7.5px; font-weight: 600; letter-spacing: .75px; } .tp-sc span i { font-size: 13px; }
.tp-sc b { display: block; margin-top: 5px; font-size: 18px; color: #111418; } .tp-sc small { font-size: 7.5px; color: #6b7280; }
.tp-sc.g { background: #f0fdf4; border-color: #dcfce7; } .tp-sc.g span { color: #16a34a; }
.tp-nc { padding: 12px; border-radius: 12px; background: #fff; border: 1px solid #f3f4f6; box-shadow: 0 2px 4px rgba(0,0,0,.08); }
.tp-nc-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; font-size: 15px; color: #111418; }
.tp-bd { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 4.5px; background: rgba(19,109,236,.1); color: #136dec; font-size: 9px; font-weight: 700; }
.tp-bd i { width: 4.5px; height: 4.5px; border-radius: 50%; background: #136dec; animation: livePulse 1.6s ease-in-out infinite; }
.tp-nc > b { display: block; font-size: 13.5px; color: #111418; margin-bottom: 6px; }
.tp-nc p { display: flex; gap: 12px; margin: 0 0 12px; font-size: 9.75px; color: #617289; } .tp-nc p span { display: flex; align-items: center; gap: 3px; } .tp-nc p i { font-size: 12px; }
.tp-go { display: block; padding: 9px 0; border-radius: 7.5px; background: #136dec; color: #fff; text-align: center; font-size: 10.5px; font-weight: 700; transition: transform .15s ease, filter .15s ease; }
.tp-th { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; } .tp-th span { display: flex; align-items: center; gap: 1px; color: #136dec; font-size: 9px; font-weight: 600; }
.tp-task { display: flex; gap: 9px; padding: 8px 0; border-bottom: 1px solid #f3f4f6; }
.tp-task .ck { flex: none; width: 15px; height: 15px; margin-top: 1px; border-radius: 50%; border: 1.5px solid #94a3b8; }
.tp-task b { display: block; font-size: 10.5px; font-weight: 500; color: #111418; }
.tp-task p { display: flex; align-items: center; gap: 8px; margin: 3px 0 0; } .tp-task em { font-style: normal; font-size: 7.5px; font-weight: 600; padding: 1.5px 5px; border-radius: 3px; background: #eff6ff; color: #3b82f6; }
.tp-task em.hi { background: #fff7ed; color: #f97316; } .tp-task small { display: flex; align-items: center; gap: 2px; font-size: 7.5px; color: #94a3b8; }

/* Enseignant · Faire l'appel (app/roll-call.tsx) */
.rc-h { display: flex; align-items: center; gap: 12px; padding: 10px 15px 15px; background: #fff; border-bottom: 1px solid #f1f5f9; }
.rc-h > i { font-size: 18px; } .rc-h b { display: block; font-size: 15px; color: #0f172a; } .rc-h small { font-size: 10.5px; color: #64748b; }
.rc-c { padding: 15px 15px 75px; }
.rc-st { display: flex; padding: 12px; margin-bottom: 15px; border-radius: 9px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.rc-st div { flex: 1; text-align: center; } .rc-st > i { width: 1px; background: #e2e8f0; }
.rc-st b { display: block; font-size: 15px; } .rc-st small { font-size: 9px; color: #64748b; }
.rc-st .p { color: #16a34a; } .rc-st .a { color: #dc2626; } .rc-st .r { color: #ea580c; }
.rc-q { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 9px; margin-bottom: 15px; border-radius: 9px; background: #fff; border: 1px solid #e2e8f0; color: #64748b; font-size: 11px; } .rc-q i { font-size: 15px; }
.rc-c h5 { margin-bottom: 12px; font-size: 12px; color: #0f172a; }
.rc-s { display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 6px; padding: 9px; margin-bottom: 7px; border-radius: 9px; background: #fff; }
.rc-s .av { width: 30px; height: 30px; margin-right: 3px; border-radius: 50%; display: grid; place-items: center; background: #f1f5f9; color: #64748b; font-size: 11px; font-weight: 700; }
.rc-s b { display: block; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rc-s small { font-size: 9px; font-weight: 500; }
.rc-s em { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; background: #f1f5f9; color: #64748b; font-size: 14px; transition: background-color .25s ease, color .25s ease, transform .15s ease; }
.rc-s[data-s="p"] small { color: #16a34a; } .rc-s[data-s="a"] small { color: #dc2626; } .rc-s[data-s="r"] small { color: #ea580c; }
.rc-s[data-s="p"] em.p { background: #16a34a; color: #fff; } .rc-s[data-s="a"] em.a { background: #dc2626; color: #fff; } .rc-s[data-s="r"] em.r { background: #ea580c; color: #fff; }
.rc-f { position: absolute; left: 0; right: 0; bottom: 0; padding: 15px 15px 20px; background: #fff; border-top: 1px solid #f1f5f9; }
.rc-go { display: grid; place-items: center; height: 37.5px; border-radius: 9px; background: #136dec; color: #fff; font-size: 12px; font-weight: 700; transition: transform .15s ease, filter .15s ease; }

/* Parent · accueil (app/(tabs)/index.tsx) */
.pp-h { display: flex; align-items: center; gap: 9px; padding: 12px 18px; }
.pp-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #e2e8f0; box-shadow: inset 0 0 0 1.5px #137fec; color: #64748b; font-size: 18px; }
.pp-h div { flex: 1; } .pp-h small { display: block; font-size: 9px; font-weight: 500; color: #64748b; } .pp-h b { font-size: 13.5px; }
.pp-bell { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); } .pp-bell em { box-shadow: 0 0 0 1.5px #f6f7f8; }
.pp-c { padding: 6px 18px; } .pp-c h6 { margin-bottom: 12px; }
.pp-kids { display: flex; gap: 12px; margin-bottom: 24px; }
.pp-kid { flex: none; width: 110px; padding: 12px 8px; border-radius: 9px; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgba(0,0,0,.05); text-align: center; transition: transform .15s ease, box-shadow .2s ease; }
.pp-kid span { width: 48px; height: 48px; margin: 0 auto 9px; border-radius: 50%; display: grid; place-items: center; background: #f1f5f9; color: #94a3b8; font-size: 21px; }
.pp-kid b { display: block; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pp-kid small { font-size: 9px; font-weight: 500; color: #137fec; }
.pp-kid.press { transform: scale(.95); box-shadow: 0 0 0 2px #137fec; }
.pp-sh { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; } .pp-sh h6 { margin: 0; } .pp-sh span { font-size: 9px; font-weight: 700; color: #137fec; }
.pp-n { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 9px; border-radius: 9px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.pp-n.new { box-shadow: inset 3px 0 0 #137fec, 0 1px 2px rgba(0,0,0,.05); }
.pp-n .ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; }
.pp-n .ic.o { background: #fff7ed; color: #f97316; } .pp-n .ic.b { background: #dbeafe; color: #137fec; }
.pp-n > div { flex: 1; min-width: 0; } .pp-n p { display: flex; justify-content: space-between; gap: 6px; margin: 0; }
.pp-n p b { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pp-n p small { flex: none; font-size: 7.5px; color: #94a3b8; }
.pp-n > div > small { display: block; margin-top: 2px; font-size: 9px; color: #64748b; } .pp-n > i { color: #64748b; font-size: 13px; }

/* Parent · fiche enfant, onglet Absences (child-detail.tsx, AbsencesTab.tsx) */
.cd-h { display: flex; align-items: center; padding: 9px 12px; }
.cd-bk, .cd-h > span:last-child { width: 30px; height: 30px; border-radius: 50%; }
.cd-bk { display: grid; place-items: center; background: rgba(19,127,236,.1); color: #137fec; font-size: 17px; }
.cd-h div { flex: 1; text-align: center; } .cd-h b { display: block; font-size: 13.5px; } .cd-h small { font-size: 7.5px; font-weight: 600; letter-spacing: .4px; color: #94a3b8; }
.cd-t { display: flex; background: #fff; border-bottom: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.cd-t span { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7.5px 0; color: #94a3b8; font-size: 8.25px; font-weight: 600; transition: color .25s ease; }
.cd-t span i { font-size: 15px; }
.cd-t span.on { color: #137fec; } .cd-t span.on::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 2.25px; border-radius: 1px; background: #137fec; }
.cd-p { display: none; padding: 12px; } .cd-p.on { display: block; animation: dyIn .35s var(--out); }
.cd-spin { display: block; width: 26px; height: 26px; margin: 80px auto; border-radius: 50%; border: 3px solid rgba(19,127,236,.2); border-top-color: #137fec; animation: spin .8s linear infinite; }
.ab-st { display: flex; gap: 9px; margin-bottom: 12px; }
.ab-st div { flex: 1; padding: 9px 4px; border-radius: 9px; background: #fff; border: 1px solid #e2e8f0; text-align: center; }
.ab-st small { display: block; margin-bottom: 2px; font-size: 9px; color: #64748b; } .ab-st b { font-size: 16px; }
.ab-st .b { color: #137fec; } .ab-st .r { color: #f43f5e; } .ab-st .o { color: #f59e0b; }
.ab-cal { padding: 10px 10px 8px; margin-bottom: 12px; border-radius: 9px; background: #fff; border: 1px solid #e2e8f0; }
.ab-ch { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: #137fec; font-size: 15px; } .ab-ch b { color: #0f172a; font-size: 12px; font-weight: 600; }
.ab-g { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 1px; text-align: center; }
.ab-g em { font-style: normal; font-size: 7px; font-weight: 700; color: #94a3b8; text-transform: uppercase; margin-bottom: 3px; }
.ab-g span { position: relative; display: grid; place-items: center; width: 22px; height: 22px; margin: 0 auto; border-radius: 50%; font-size: 9.5px; }
.ab-g span.today { box-shadow: inset 0 0 0 1.5px #137fec; color: #137fec; font-weight: 700; }
.ab-g span.dot::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 4.5px; height: 4.5px; margin-left: -2.25px; border-radius: 50%; background: #f43f5e; }
.ab-lg { display: flex; justify-content: center; gap: 14px; margin-top: 6px; font-size: 8.5px; color: #64748b; }
.ab-lg span { display: flex; align-items: center; gap: 4px; } .ab-lg i { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; }
.ab-lg .r i { background: #f43f5e; } .ab-lg .o i { background: #f59e0b; }
.ab-i { display: flex; gap: 9px; padding: 10px; border-radius: 9px; background: #fff; border: 1px solid #e2e8f0; transition: opacity .4s ease; }
.ab-d { flex: none; width: 36px; height: 36px; border-radius: 6px; display: grid; place-content: center; background: #fff1f2; text-align: center; }
.ab-d b { font-size: 12px; line-height: 1; } .ab-d small { font-size: 7px; font-weight: 600; color: #94a3b8; }
.ab-i > div:last-child { flex: 1; min-width: 0; }
.ab-i p { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; margin: 0 0 3px; } .ab-i p b { font-size: 10.5px; }
.ab-i p em { font-style: normal; font-size: 7.5px; font-weight: 700; padding: 1.5px 6px; border-radius: 3px; background: #ffe4e6; color: #dc2626; }
.ab-i > div > small { display: block; margin-bottom: 6px; font-size: 9px; color: #64748b; }
.ab-go { display: inline-flex; align-items: center; gap: 4px; padding: 6px 9px; border-radius: 6px; background: #137fec; color: #fff; font-size: 9px; font-weight: 600; transition: transform .15s ease, filter .15s ease; }
.ab-go i { font-size: 12px; }

/* Parent · formulaire « Justifier l'absence » (form-modal.tsx, form-field.tsx) */
.fm-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 15px 12px; border-bottom: 1px solid #f1f5f9; }
.fm-h b { font-size: 13.5px; } .fm-h i { font-size: 17px; color: #64748b; }
.fm-c { padding: 15px; display: flex; flex-direction: column; gap: 12px; }
.fm-c label { display: flex; flex-direction: column; gap: 4.5px; font-size: 9px; font-weight: 600; letter-spacing: .4px; color: #475569; }
.fm-in { display: block; min-height: 34px; padding: 10px 12px; border-radius: 9px; background: #f8fafc; border: 1px solid #e2e8f0; font-size: 11px; font-weight: 400; letter-spacing: 0; color: #0f172a; transition: border-color .2s ease; }
.fm-in.ml { min-height: 75px; } .fm-in.foc { border-color: #137fec; }
.fm-in:empty::before { content: attr(data-ph); color: #94a3b8; }
.fm-in.typing::after { content: ""; display: inline-block; width: 1px; height: 12px; margin-left: 1px; vertical-align: -2px; background: #137fec; animation: blink 1s steps(1) infinite; }
.fm-up { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 0; border-radius: 9px; border: 1.5px dashed rgba(19,127,236,.3); background: rgba(19,127,236,.05); color: #137fec; font-size: 10.5px; font-weight: 500; transition: background-color .25s ease; }
.fm-up i { font-size: 15px; } .fm-up em { font-style: normal; }
.fm-up.set { background: #dcfce7; border-color: #86efac; color: #16a34a; }
.fm-f { margin-top: auto; padding: 9px 15px 27px; border-top: 1px solid #f1f5f9; }
.fm-go { display: grid; place-items: center; padding: 12px 0; border-radius: 9px; background: #137fec; color: #fff; font-size: 12px; font-weight: 600; transition: transform .15s ease, filter .15s ease; }

/* Entre les deux téléphones */
.mp-link { position: relative; padding-top: 170px; text-align: center; }
.mp-link .ink { position: relative; display: block; width: 100%; max-width: 220px; height: 90px; margin: 0 auto; }
.mp-link .hand { display: block; margin-top: 8px; font-size: 26px; line-height: 1.1; transform: rotate(-3deg); }
.mp-col figcaption { margin-top: 30px; }
.mp-col figcaption b { display: flex; align-items: center; gap: 8px; font-size: 20px; letter-spacing: -.02em; }
.mp-col figcaption b i { color: var(--blue); font-size: 22px; }
.mp-col figcaption ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
@media (max-width: 1000px) { .mp2 { grid-template-columns: 290px 290px; justify-content: center; } .mp-link { display: none; } }
@media (max-width: 700px) { .mp2 { grid-template-columns: 290px; gap: 56px; } .mp-col:first-child .mp, .mp-col:last-child .mp { transform: none; } }

.pill-soon.ok { color: #1f7a47; }
.postit.soon { opacity: .7; }
a.postit { transition: transform .3s var(--out); } @media (hover: hover) and (pointer: fine) { a.postit:hover { transform: rotate(0deg) translateY(-4px); } }

/* ═══════════ Tarifs (École) : calculateur, prix proposés dans cahier.js (TARIFS) ═══════════ */
.tar { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: start; margin-top: 48px; }
.tar-pick, .tar-bill { position: relative; padding: 28px 30px; }
.tar-row { display: flex; justify-content: space-between; align-items: baseline; }
.tar-row label { font-weight: 600; font-size: 17px; }
.tar-row output { font-family: "Caveat"; font-weight: 700; font-size: 40px; line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; }
.tar input[type=range] { width: 100%; margin: 14px 0 4px; accent-color: var(--blue); height: 24px; cursor: pointer; }
.tar-min { color: var(--faint); font-size: 13px; }
.tar-packs { display: flex; gap: 6px; margin: 22px 0 18px; padding: 4px; border-radius: 12px; background: rgba(10,42,154,.05); }
.tar-packs button { flex: 1; height: 38px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 14.5px; color: var(--muted); cursor: pointer; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.tar-packs button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(11,19,48,.12); }
.tar-lb { margin: 0 0 8px; font-weight: 600; font-size: 17px; }
.tar-mode { margin: 0 0 24px; } .tar-mode button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; } .tar-mode button i { font-size: 17px; }
.tar-serv { margin-top: 8px; }
.tar-sv { margin-top: 4px !important; }
.tar-mods { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.tar-g { grid-column: 1 / -1; margin-top: 10px; font-family: "Caveat"; font-weight: 700; font-size: 22px; color: var(--blue); }
.tar-m1 { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px dashed var(--line); cursor: pointer; font-size: 14.5px; }
.tar-m1 input { position: absolute; opacity: 0; pointer-events: none; }
.tar-m1 .bx { width: 20px; height: 20px; border-radius: 5px; border: 1.8px solid var(--ink); position: relative; background: var(--paper); transition: background-color .2s ease, border-color .2s ease; }
.tar-m1 .bx::after { content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg) scale(.4); opacity: 0; transition: transform .2s var(--out), opacity .15s ease; }
.tar-m1 input:checked + .bx { background: var(--blue-fill); border-color: var(--blue); } .tar-m1 input:checked + .bx::after { opacity: 1; transform: rotate(45deg); }
.tar-m1 input:focus-visible + .bx { box-shadow: 0 0 0 3px rgba(58,90,216,.3); }
.tar-m1 span i { color: var(--blue); margin-right: 6px; }
.tar-m1 em { font-style: normal; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tar-m1.core { cursor: default; } .tar-m1.core em { color: var(--blue); }
.tar-bill { transform: rotate(1deg); }
@media (min-width: 901px) { .tar-bill { position: sticky; top: 110px; } }
.tar-bill .tape { top: -14px; left: 36%; width: 28%; height: 28px; }
.tar-t { margin: 0 0 12px; font-size: 26px; }
.tar-l { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; font-size: 15.5px; color: var(--muted); }
.tar-l b { font-family: "Caveat"; font-weight: 700; font-size: 27px; color: var(--ink); font-variant-numeric: tabular-nums; }
.tar-l.sub { border-top: 1.5px solid var(--ink); margin-top: 4px; }
.tar-l.rem b { color: #1f7a47; } .tar-l.rem.none { opacity: .45; }
.tar-tot { position: relative; display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding: 8px 0 14px; }
.tar-tot span { font-weight: 600; font-size: 17px; }
.tar-tot b { font-family: "Caveat"; font-weight: 700; font-size: 44px; line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; }
.tar-tot .ink { left: auto; right: -4px; bottom: 0; width: 64%; height: 14px; }
.tar-m { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; } .tar-m b { color: var(--ink); font-weight: 600; }
.tar-stamp { position: absolute; right: -34px; top: -48px; width: 118px; height: 118px; border-radius: 50%; border: 3px double #1f7a47; color: #1f7a47; display: grid; place-content: center; text-align: center; transform: rotate(-14deg); background: rgba(31,122,71,.05); letter-spacing: .12em; }
.tar-stamp b { font-size: 17px; } .tar-stamp small { font-size: 11px; font-weight: 700; }
.tar-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tar-note { display: block; margin-top: 14px; color: var(--faint); font-size: 12.5px; }
.bump2 { animation: tarBump .45s var(--out); } @keyframes tarBump { 40% { transform: translateY(-3px) scale(1.06); } }
@media (prefers-reduced-motion: no-preference) {
  .tar-stamp { opacity: 0; transform: rotate(-14deg) scale(1.5); transition: transform .45s cubic-bezier(.34,1.4,.64,1), opacity .2s ease; }
  .tar.in .tar-stamp { opacity: 1; transform: rotate(-14deg) scale(1); transition-delay: 1.2s; }
}
@media (max-width: 900px) {
  .tar { grid-template-columns: 1fr; gap: 40px; }
  .tar-pick, .tar-bill { padding: 22px 18px; }
  .tar-mods { grid-template-columns: 1fr; }
  .tar-stamp { right: -6px; top: -30px; width: 96px; height: 96px; } .tar-stamp b { font-size: 14px; }
}

/* ═══════════ Témoignages (fictifs, à remplacer) et mise en route (École) ═══════════ */
.avis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 52px; }
.avis-c { position: relative; margin: 0; padding: 34px 26px 24px; background: #fff; border-radius: 4px; transform: rotate(var(--r, 0deg)); box-shadow: 0 1px 2px rgba(11,19,48,.06), 0 30px 50px -30px rgba(10,42,154,.35);
  background-image: repeating-linear-gradient(transparent 0 31px, var(--rule) 31px 32px); background-position: 0 22px; }
.avis-c .tape { top: -14px; left: 34%; width: 32%; height: 26px; }
.avis-c blockquote { position: relative; margin: 0; font-family: "Caveat"; font-weight: 600; font-size: 25px; line-height: 32px; color: var(--ink); }
.avis-c blockquote::before { content: "«"; position: absolute; left: -16px; top: -6px; color: var(--blue); font-size: 34px; }
.avis-c figcaption { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.avis-av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(10,42,154,.08); color: var(--blue); font-weight: 700; font-size: 13px; }
.avis-c b { display: block; font-size: 15px; } .avis-c small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; }
@media (prefers-reduced-motion: no-preference) { .avis-c.rv { transform: rotate(calc(var(--r, 0deg) * 4)) translateY(40px); } .avis-c.rv.in { transform: rotate(var(--r, 0deg)); } }

.mr { position: relative; margin-top: 56px; }
.mr-line { position: absolute; left: 0; right: 0; top: 76px; width: 100%; height: 30px; }
.mr-line path { stroke-width: 2.5; }
.mr ol { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.mr li { display: flex; flex-direction: column; align-items: flex-start; }
.mr-t { font-family: "Caveat"; font-weight: 700; font-size: 34px; line-height: 1; color: var(--blue); transform: rotate(-3deg); }
.mr-dot { position: relative; z-index: 1; width: 52px; height: 52px; margin: 18px 0 16px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); font-size: 24px; font-style: normal; transition: background-color .4s ease, color .4s ease, box-shadow .4s ease; }
.mr li.end .mr-dot { box-shadow: inset 0 0 0 2px #1f7a47; color: #1f7a47; }
.mr li b { font-size: 18px; letter-spacing: -.02em; line-height: 1.2; }
.mr li small { margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.mr-j2 { margin: 34px 0 0; font-size: 25px; transform: rotate(-1deg); }
@media (prefers-reduced-motion: no-preference) {
  .mr li { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--out), transform .7s var(--out); transition-delay: calc(.35s + var(--k) * .45s); }
  .mr.go li { opacity: 1; transform: none; }
  .mr.go li .mr-dot { transition-delay: calc(.6s + var(--k) * .45s); }
  .mr.go li.end .mr-dot { background: #1f7a47; color: #fff; }
  .mr-line path { transition-duration: 2.4s !important; }
}
@media (prefers-reduced-motion: reduce) { .mr li.end .mr-dot { background: #1f7a47; color: #fff; } }
@media (max-width: 900px) {
  .avis { grid-template-columns: 1fr; gap: 36px; }
  .mr-line { display: none; }
  .mr ol { grid-template-columns: 1fr; gap: 0; border-left: 2px solid var(--ink); margin-left: 26px; }
  .mr li { display: grid; grid-template-columns: 60px 1fr; column-gap: 12px; padding: 0 0 26px 0; margin-left: -27px; }
  .mr-dot { grid-row: 1 / 4; margin: 0; } .mr-t { grid-column: 2; font-size: 28px; margin-bottom: 6px; } .mr li b, .mr li small { grid-column: 2; }
}

/* ═══════════ L'équipe (accueil) ═══════════ */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 52px; }
.team.duo { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
.team-c { position: relative; margin: 0; padding: 12px 12px 18px; background: #fff; border-radius: 4px; transform: rotate(var(--r, 0deg)); box-shadow: 0 1px 2px rgba(11,19,48,.06), 0 30px 50px -30px rgba(10,42,154,.35); }
.team-c .tape { top: -14px; left: 32%; width: 36%; height: 26px; }
.team-ph, .team-c img { display: grid; place-content: center; justify-items: center; gap: 6px; width: 100%; aspect-ratio: 4 / 5; border-radius: 2px; background: repeating-linear-gradient(135deg, #f1f3f9 0 12px, #eaedf6 12px 24px); color: #a3abc4; object-fit: cover; }
.team-c img { height: auto; }
.team-ph i { font-size: 54px; } .team-ph small { font-family: "Caveat"; font-size: 20px; }
.team-c figcaption { padding: 14px 4px 0; }
.team-c b { display: block; font-size: 17px; letter-spacing: -.01em; }
.team-c .hand { display: block; font-size: 23px; line-height: 1.1; margin-top: 2px; }
.team-c small { display: block; margin-top: 6px; color: var(--muted); font-size: 13.5px; line-height: 1.4; }
@media (prefers-reduced-motion: no-preference) { .team-c.rv { transform: rotate(calc(var(--r, 0deg) * 4)) translateY(40px); } .team-c.rv.in { transform: rotate(var(--r, 0deg)); } }
@media (max-width: 900px) { .team { grid-template-columns: 1fr 1fr; gap: 22px; } .team-c .hand { font-size: 20px; } }

/* ═══════════ WhatsApp : bouton flottant sur les trois pages (numéro dans cahier.js, à remplacer) ═══════════ */
.wapp-fab { position: fixed; right: 20px; bottom: 20px; z-index: 24; display: flex; align-items: center; gap: 0; height: 56px; padding: 0 16px; border-radius: 99px; background: #25D366; color: #fff; box-shadow: 0 12px 28px -10px rgba(18,140,70,.6); font-weight: 600; font-size: 15px; transition: gap .35s var(--out), transform .2s ease; }
.wapp-fab i { font-size: 26px; }
.wapp-fab span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .45s var(--out); }
@media (hover: hover) and (pointer: fine) { .wapp-fab:hover { gap: 8px; } .wapp-fab:hover span { max-width: 180px; } }
.wapp-fab:active { transform: scale(.95); }
@media (prefers-reduced-motion: no-preference) { .wapp-fab { animation: wappIn .6s cubic-bezier(.34,1.5,.64,1) both 1.6s; } @keyframes wappIn { from { transform: scale(.3); opacity: 0; } } }
.menu-open .wapp-fab { opacity: 0; pointer-events: none; }
@media (min-width: 1240px) { .wapp-fab { right: 64px; } }
.contact-alt a[data-wa] i { color: #1FAF54; }

/* ═══════════ Confidentialité et mentions légales (confidentialite.html) ═══════════ */
.lg-hero { min-height: 0; padding-block: 150px 40px; }
.lg-hero .wrap { display: block; }
.lg-hero h1 { max-width: 14ch; }
.lg-date { color: var(--faint) !important; font-size: 15px !important; margin: 0 !important; }
.legal section:not(.hero) { padding-block: 56px; }
.lg-w { max-width: 860px; margin-left: max(0px, calc((100% - var(--w)) / 2)); }
.legal h2 { font-size: clamp(30px, 3.6vw, 44px); }
.lg-p { margin: 22px 0 0; color: var(--muted); font-size: 17px; max-width: 64ch; }
.lg-p b { color: var(--ink); }
.lg-ess { margin-top: 36px; }
.lg-tb { margin-top: 30px; border-top: 2px solid var(--ink); }
.lg-tr { display: grid; grid-template-columns: 1.1fr .9fr 1.4fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.lg-dur .lg-tr { grid-template-columns: 1.3fr 1fr; }
.lg-th { color: var(--faint); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 10px 0; }
.lg-tr b { font-weight: 600; } .lg-tr small { display: block; color: var(--muted); font-size: 13.5px; }
.lg-tr span:not(:first-child) { color: var(--muted); }
.lg-dl { margin: 30px 0 0; display: grid; grid-template-columns: 250px 1fr; border-top: 1px solid var(--line); }
.lg-dl dt, .lg-dl dd { padding: 16px 0; border-bottom: 1px solid var(--line); }
.lg-dl dt { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 16px; padding-right: 20px; }
.lg-dl dt i { color: var(--blue); font-size: 20px; margin-top: 1px; }
.lg-dl dd { margin: 0; color: var(--muted); font-size: 16px; }
.lg-dl a, .lg-card a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
mark.lg-todo { background: #fff3b4; color: #6b5a00; padding: 1px 6px; border-radius: 3px; font-size: .92em; }
.lg-todo-p { font-family: "Caveat"; font-size: 22px; color: #9a7a00 !important; }
.lg-rights { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.lg-rights li { display: block; padding: 10px 0 10px 34px; position: relative; border-bottom: 1px dashed var(--line); color: var(--muted); }
.lg-rights li i { position: absolute; left: 0; top: 10px; }
.lg-rights i { color: var(--blue); font-size: 22px; } .lg-rights b { color: var(--ink); font-weight: 600; }
.lg-ask { margin-top: 32px; padding: 24px 26px; border-radius: 6px; background: rgba(10,42,154,.04); box-shadow: inset 3px 0 0 var(--blue); }
.lg-ask p { margin: 0; } .lg-ask .cta { margin-top: 16px; }
.lg-small { margin: 14px 0 0 !important; color: var(--faint); font-size: 14px; }
.lg-card { position: relative; margin-top: 30px; padding: 30px 32px 26px; transform: rotate(-.5deg); }
.lg-card .tape { top: -14px; left: 40%; width: 20%; height: 26px; }
.lg-id { display: grid; grid-template-columns: 170px 1fr; gap: 12px 20px; margin: 0; font-size: 16px; }
.lg-id dt { font-family: "Caveat"; font-weight: 700; font-size: 23px; line-height: 1.1; color: var(--blue); }
.lg-id dd { margin: 0; }
footer nav a[aria-current="page"] { color: var(--blue); }
@media (max-width: 900px) {
  .lg-hero { padding-block: 110px 20px; }
  .legal section:not(.hero) { padding-block: 44px; }
  .lg-tr { grid-template-columns: 1fr; gap: 4px; } .lg-th { display: none; }
  .lg-tr span:nth-child(2)::before { content: "Décide : "; color: var(--faint); } .lg-dur .lg-tr span:nth-child(2)::before { content: ""; }
  .lg-dl { grid-template-columns: 1fr; } .lg-dl dt { border-bottom: 0; padding-bottom: 4px; } .lg-dl dd { padding-top: 0; }
  .lg-rights { grid-template-columns: 1fr; }
  .lg-card { padding: 24px 18px; } .lg-id { grid-template-columns: 1fr; gap: 2px; } .lg-id dd { margin-bottom: 10px; }
}

/* Mouvements d'ambiance en continu, mis en pause hors de l'écran (classe posée par cahier.js) */
section.off, section.off *, section.off *::before, section.off *::after { animation-play-state: paused !important; }

/* ═══════════ Thème sombre : le cahier à la lampe ═══════════
   La page passe en bleu nuit, tiré de l'encre de la marque ; tout ce qui est posé dessus
   (fiches, post-it, bulletins, fenêtres du logiciel, téléphones) reste clair, comme des
   feuilles sur un bureau le soir. data-theme est posé dans le <head> avant le premier
   rendu (choix mémorisé, sinon réglage du système). */
:root { color-scheme: light; --sheet: #fff; --nav-bg: rgba(253,253,251,.78); --ov-bg: rgba(253,253,251,.95); --shade: rgba(10,42,154,.35); }
:root[data-theme="dark"] { color-scheme: dark;
  --paper: #0d1428; --ink: #e6e9f5; --muted: #9ba3c2; --faint: #6d7699;
  --blue: #8fa8ff; --blue-fill: #3a5ad8; --blue-2: #8fa8ff;
  --rule: rgba(143,168,255,.10); --rule-2: rgba(143,168,255,.045);
  --margin: rgba(240,110,98,.45); --red: #e8665b; --line: rgba(230,233,245,.12);
  --sheet: #131b34; --nav-bg: rgba(13,20,40,.78); --ov-bg: rgba(13,20,40,.96); --shade: rgba(0,0,0,.6); }

/* Les objets posés sur la page gardent la palette claire (:where = sans poids, leurs propres règles l'emportent) */
:where([data-theme="dark"]) :where(.paper-card, .rs-bac, .card, .doc, .postit, .cert, .receipt, .revcard, .mini, .avis-c, .team-c, .bubble, .book, .qg, .cp-app, .osx, .scr, .mp, .face, .shot) {
  color-scheme: light; color: #0b1330;
  --paper: #fdfdfb; --ink: #0b1330; --muted: #5a6280; --faint: #9aa0b5;
  --blue: #0a2a9a; --blue-fill: #0a2a9a; --blue-2: #3a5ad8; --rule: rgba(58,90,216,.16); --rule-2: rgba(58,90,216,.07);
  --margin: rgba(214,69,58,.55); --red: #d6453a; --line: rgba(11,19,48,.1); --sheet: #fff; }
:where([data-theme="dark"]) a:where(.card) { color: #0b1330; } /* a { color: inherit } l'emporterait sur :where */

/* Chrome de la page */
[data-theme="dark"] .nav .bar { background: var(--nav-bg); box-shadow: 0 0 0 1px var(--line), 0 14px 30px -20px rgba(0,0,0,.7); }
[data-theme="dark"] .overlay { background: var(--ov-bg); }
[data-theme="dark"] .btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(230,233,245,.28); }
[data-theme="dark"] .burger { background: rgba(143,168,255,.1); }
[data-theme="dark"] .domain > .paper { background-color: var(--sheet); box-shadow: 0 0 0 1px rgba(143,168,255,.08), 0 44px 70px -40px rgba(0,0,0,.8); }
[data-theme="dark"] .turn::after { background: linear-gradient(90deg, rgba(0,0,0,.35), transparent 30%); }
@media (hover: hover) and (pointer: fine) { [data-theme="dark"] .nav nav a:hover { background: rgba(143,168,255,.08); } }
[data-theme="dark"] .nav nav a[aria-current="page"] { background: rgba(143,168,255,.1); }
/* Les objets clairs se posent un peu plus bas sur le bureau sombre */
[data-theme="dark"] :is(.paper-card, .card, .doc, .cert, .game, .revcard, .mini, .avis-c, .team-c) { box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 30px 60px -28px rgba(0,0,0,.75); }

/* Pastilles, interrupteurs et schémas de la page : ils passent sur une feuille de nuit */
[data-theme="dark"] :is(.fn, .fa-seuil, .roles span, .five span, .code span, .tagline span, .outs span, .cp-mode, .cp-roles button, .roles button, .deck-flip) { background: var(--sheet); }
[data-theme="dark"] .fn.on { border-color: rgba(143,168,255,.4); box-shadow: 0 14px 30px -18px rgba(0,0,0,.8); }
[data-theme="dark"] .hub-n { background: rgba(143,168,255,.07); }
[data-theme="dark"] .fl-e .trk { stroke: rgba(143,168,255,.25); }
[data-theme="dark"] .qa:not(.open) .q { color: rgba(143,168,255,.62); }
[data-theme="dark"] .cp-mod.off .cp-ic { background: rgba(230,233,245,.06); }
[data-theme="dark"] .cp-sw:not([aria-checked="true"]) { background: rgba(230,233,245,.2); }
[data-theme="dark"] :is(.toc-row .dots) { border-bottom-color: rgba(143,168,255,.3); }
[data-theme="dark"] .fa-steps::before { background: repeating-linear-gradient(90deg, rgba(143,168,255,.3) 0 6px, transparent 6px 11px); }
[data-theme="dark"] .fa-steps li.done button > i { background: rgba(143,168,255,.16); }

[data-theme="dark"] .postit.soon { opacity: 1; filter: saturate(.3) brightness(.78); } /* l'opacité seule le rendait vert olive sur le fond nuit */
/* Le logo (tableau bleu nuit) se détacherait mal du fond : un liseré de lumière l'en sépare */
[data-theme="dark"] :is(.brand img, footer img[src*="optiscol-icon"]) { filter: drop-shadow(0 0 .6px rgba(230,233,245,.9)) drop-shadow(0 0 8px rgba(143,168,255,.35)); }
[data-theme="dark"] .turn .turn-lg img { filter: drop-shadow(0 0 1px rgba(230,233,245,.9)) drop-shadow(0 0 18px rgba(143,168,255,.4)); }

/* Bouton jour / nuit */
.theme { position: relative; width: 40px; height: 40px; flex: none; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; display: grid; place-items: center; transition: color .25s ease, background-color .25s ease, transform 160ms var(--out); }
.theme i { grid-area: 1 / 1; transition: transform .5s var(--out), opacity .3s ease; }
.theme .ph-sun, [data-theme="dark"] .theme .ph-moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
[data-theme="dark"] .theme .ph-sun { opacity: 1; transform: none; }
.theme:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .theme:hover { color: var(--ink); background: rgba(10,42,154,.05); } [data-theme="dark"] .theme:hover { background: rgba(143,168,255,.08); } }
.nav .bar .end { display: flex; align-items: center; gap: 6px; }
/* Bascule : fondu croisé de toute la page (navigateurs qui le permettent, mouvement non réduit) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: ease; }

/* ═══════════ Résolveur « la réponse d'abord » (oct. 2026) ═══════════
   D'après smart_solver_panel.dart et solution_solveur.dart ; couleurs relevées sur le Pixel
   (bleu #1f34a2, réponse #e8ebf3, étape #eff1f6 / #b8bfdf, fiche « Pourquoi ? » ambre). */
.rs { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; height: 90%; display: flex; flex-direction: column; border-radius: 17px 17px 0 0; background: #F8F9FA; transform: translateY(102%); transition: transform .5s cubic-bezier(.32,.72,0,1); overflow: hidden; }
.sv.open .rs, .rs.on { transform: none; }
.rs .grab { display: block; flex: none; align-self: center; width: 27px; height: 3px; margin: 6px 0 5px; border-radius: 2px; background: #C5C5D4; }
.rs-h { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px 7px; }
.rs-h img { width: 25px; height: 25px; border-radius: 50%; background: #e3e7fa; object-fit: cover; }
.rs-h b { flex: 1; font-size: 13px; font-weight: 700; color: #191C1D; }
.rs-h i { font-size: 14px; color: #45464F; } .rs-h i + i { margin-left: 8px; }
.rs-in { flex: none; position: relative; display: flex; align-items: center; gap: 7px; min-height: 38px; margin: 0 10px; padding: 4px 9px 4px 11px; border-radius: 13px; background: #fff; box-shadow: inset 0 0 0 1.2px #C5C5D4; transition: box-shadow .25s ease; }
.rs-in.focus { box-shadow: inset 0 0 0 1.6px #1f34a2; }
.rs-in .tx { flex: 1; min-width: 0; display: flex; align-items: center; overflow: hidden; white-space: nowrap; font-size: 12px; }
.rs-in .tx:empty::before { content: "Écris un calcul, une équation…"; color: #45464F; font: 9.5px "Roboto", sans-serif; }
.rs-in .ct { flex: none; width: 1.3px; height: 14px; margin-left: -6px; background: #1f34a2; opacity: 0; }
.rs-in.focus .ct { opacity: 1; animation: blink 1s steps(1) infinite; }
.rs-in i { flex: none; font-size: 14px; } .rs-in .sys { color: #191C1D; } .rs-in .cm { color: #1f34a2; }
.rs-in .clr { display: none; color: #75767F; font-size: 15px; } .rs-in.full .clr { display: block; }
.rs-chips { flex: none; display: flex; gap: 5px; padding: 8px 10px 2px; overflow: hidden; white-space: nowrap; }
.rs-chips span { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 14px; background: #eef0f8; box-shadow: inset 0 0 0 1px #c3c9e3; color: #1f34a2; font-size: 8.5px; font-weight: 600; }
.rs-chips i { font-size: 10px; } .rs-chips b { font-size: 8px; font-weight: 700; }
.rs-view { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.rs-body { display: flex; flex-direction: column; gap: 9px; padding: 8px 10px 16px; transition: transform .75s cubic-bezier(.65,0,.35,1); }
.rs .katex { font-size: 1em; }
/* « Essaie un exemple » */
.rs-ex .t { display: block; font-size: 11px; font-weight: 700; }
.rs-ex p { margin: 2px 0 6px; font-size: 7.5px; line-height: 1.35; color: #45464F; }
.rs-ex .lab2 { display: block; margin-bottom: 6px; font-size: 7px; font-weight: 700; letter-spacing: .08em; color: #1f34a2; }
.rs-ex .g { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.rs-ex .g > span { display: flex; align-items: center; gap: 6px; padding: 7px 6px; border-radius: 10px; background: #EFF0F2; }
.rs-ex .g i { flex: none; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #dde1f0; color: #1f34a2; font-size: 10px; }
.rs-ex .g em { min-width: 0; font-style: normal; font-size: 8px; font-weight: 600; }
.rs-ex .g small { display: block; margin-top: 2px; font-size: 7.5px; font-weight: 400; color: #45464F; white-space: nowrap; }
/* La carte solution */
.rs-sol { padding: 10px; border-radius: 14px; background: #F8F9FA; box-shadow: inset 0 0 0 1px #e1e3e8; }
.rs-sol .hd { display: flex; align-items: center; gap: 5px; color: #1f34a2; font-size: 7.5px; font-weight: 700; letter-spacing: .08em; }
.rs-sol .hd i { font-size: 12px; } .rs-sol .hd .cp { margin-left: auto; color: #45464F; }
.rs-sol .en { margin-top: 6px; color: #45464F; font-size: 9.5px; }
.rs-sol .dn { margin: 1px 0 3px; color: #45464F; font-size: 11px; line-height: 1; }
.rs-sol .res { padding: 7px 10px; border-radius: 9px; background: #e8ebf3; box-shadow: inset 3px 0 0 #1f34a2; font-size: 14px; }
.rs-sol .vb { position: relative; margin-top: 8px; height: 28px; border-radius: 14px; background: #1f34a2; color: #fff; font-size: 9.5px; transition: transform 160ms var(--out), filter .2s ease, background .3s ease, color .3s ease, box-shadow .3s ease; }
.rs-sol .vb > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; transition: opacity .25s ease; } .rs-sol .vb i { font-size: 12px; }
.rs .o2, .rs-sol .vb > .o2 { display: none; }
.rs .press { transform: scale(.95); filter: brightness(1.15); }
/* Le graphique */
.rs-gr { padding: 9px 10px; border-radius: 14px; background: #F8F9FA; box-shadow: inset 0 0 0 1px #e1e3e8; }
.rs-gr .hd { display: flex; align-items: center; gap: 6px; color: #1f34a2; font-size: 10.5px; font-weight: 700; } .rs-gr .hd i { font-size: 13px; }
.rs-gr .lg { display: flex; align-items: center; gap: 5px; margin: 4px 0 5px; font-size: 8px; } .rs-gr .lg i { width: 12px; height: 2.5px; border-radius: 2px; background: #1f34a2; }
.rs-gr svg { display: block; width: 100%; height: auto; border-radius: 9px; background: #EFF0F2; overflow: hidden; }
.rs-gr svg .gl line { stroke: #dcdfe6; stroke-width: .5; } .rs-gr svg .ax { stroke: #5b5f69; stroke-width: .7; }
.rs-gr svg text { font: 6.5px "Roboto", sans-serif; fill: #6b7080; text-anchor: middle; } .rs-gr svg text.r { text-anchor: end; }
.rs-gr svg .cv { fill: none; stroke: #1f34a2; stroke-width: 2; stroke-linecap: round; }
.rs-gr svg .pt circle { fill: #f2c14e; stroke: #d9a227; stroke-width: .8; } .rs-gr svg .pt .h { fill: rgba(242,193,78,.35); stroke: none; }
.rs-gr svg .pt text { font-weight: 700; font-size: 7.5px; fill: #191C1D; }
.rs-gr .ctl { display: flex; justify-content: flex-end; gap: 5px; margin-top: 6px; }
.rs-gr .ctl span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); color: #1f34a2; font-size: 10px; }
.rs-gr .tip { margin: 5px 0 0; font-size: 7px; line-height: 1.35; color: #45464F; }
/* Les étapes et la fiche « Pourquoi ? » */
.rs-st .sh { display: flex; align-items: center; gap: 6px; padding-top: 4px; }
.rs-st .sh b { font-size: 11.5px; font-weight: 700; } .rs-st .sh em { padding: 2px 7px; border-radius: 9px; background: #e3e7fa; color: #1f34a2; font-size: 7.5px; font-style: normal; font-weight: 700; }
.rs-st .sh a { margin-left: auto; color: #1f34a2; font-size: 8.5px; font-weight: 500; }
.rs-stp { display: grid; grid-template-columns: 19px 1fr; gap: 7px; margin-top: 8px; }
.rs-stp .n { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #1f34a2; color: #fff; font-size: 7.5px; font-weight: 700; } .rs-stp .n i { font-size: 9px; }
.rs-stp .c { min-width: 0; padding: 8px 9px; border-radius: 11px; background: #eff1f6; box-shadow: inset 0 0 0 1px #b8bfdf; font-size: 8px; line-height: 1.45; color: #191C1D; }
.rs-stp .c b { display: block; margin-bottom: 3px; font-size: 9.5px; font-weight: 700; }
.rs-stp .fx { margin-top: 5px; padding: 5px 8px; border-radius: 7px; background: #e3e5ea; font-size: 9.5px; overflow: hidden; }
.rs-stp .why { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; color: #b06b36; font-size: 8px; font-weight: 600; transition: transform 160ms var(--out); } .rs-stp .why i { font-size: 11px; }
.rs-fi { display: none; margin-top: 6px; padding: 8px 9px; border-radius: 10px; background: #f3ede2; box-shadow: inset 0 0 0 1px #ebc98c; }
.rs-fi .ft { display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; } .rs-fi .ft i { color: #e0a030; font-size: 13px; }
.rs-fi small { display: block; margin-top: 6px; font-size: 6.5px; font-weight: 700; letter-spacing: .08em; color: #1f34a2; } .rs-fi small.at { color: #b06b36; }
.rs-fi p { margin: 2px 0 0; font-size: 7.8px; line-height: 1.45; }
.rs-fi .fm { margin-top: 5px; padding: 5px 4px; border-radius: 6px; background: #fff; font-size: 7.5px; text-align: center; }
.rs-next { display: flex; align-items: center; justify-content: center; gap: 5px; height: 28px; margin-top: 9px; border-radius: 14px; background: #1f34a2; color: #fff; font-size: 9.5px; } .rs-next i { font-size: 11px; }
@keyframes rsIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Haut de page : fond « Étude », languette, feuille, clavier qui monte, puis la solution */
.sv .et-h { padding: 8px 12px 4px; } .sv .et-h b { display: block; color: #1f34a2; font-size: 13px; font-weight: 700; } .sv .et-h small { font-size: 6.5px; letter-spacing: .24em; color: #45464F; }
.sv .bg-card .seg { margin: 0; } .sv .bg-card .field { height: auto; min-height: 30px; font-size: 11px; }
.sv .rs-sol, .sv .rs-gr { display: none; }
.sv .rs.sol .rs-ex { display: none; }
.sv .rs.sol .rs-sol, .sv .rs.sol .rs-gr { display: block; animation: rsIn .5s var(--out) both; } .sv .rs.sol .rs-gr { animation-delay: .25s; }
.sv .rs-gr svg .cv { stroke-dasharray: 1; stroke-dashoffset: 1; } .sv .rs.sol .rs-gr svg .cv { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s cubic-bezier(.65,0,.35,1) .45s; }
.sv .rs-gr svg .pt { opacity: 0; } .sv .rs.sol .rs-gr svg .pt { opacity: 1; transition: opacity .4s ease 1.5s; }
.rs-kb { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; transform: translateY(102%); transition: transform .45s cubic-bezier(.32,.72,0,1); }
.rs.kb .rs-kb { transform: none; }
.rs-kb .mk { font-size: 6.6px; }

/* Section « Pas à pas » */
.f-rs { display: grid; grid-template-columns: minmax(0, 1fr) 290px minmax(0, 1fr); column-gap: 90px; align-items: center; margin-top: 56px; }
.f-rs .fl-svg { z-index: 3; }
.f-rs .col-l, .f-rs .col-r { display: flex; flex-direction: column; gap: 190px; }
.f-rs .col-r { padding-top: 60px; }
.scr.rs-scr { position: relative; background: #0b1440; }
.rs-scr .sb { background: transparent; }
.rs-scr .rs { height: calc(100% - 30px); }
.rs-scr .rs-in { margin-bottom: 4px; }
.f-rs .rs-st { display: none; }
.f-rs.p2 .rs-st { display: block; animation: rsIn .45s var(--out) both; }
.f-rs.p2 .rs-sol .vb { background: transparent; color: #1f34a2; box-shadow: inset 0 0 0 1px #75767F; }
.f-rs.p2 .rs-sol .vb .o1, .f-rs.p3:not(.p4) .why .o1, .f-rs.p4 .sh .o1 { display: none; }
.f-rs.p2 .rs-sol .vb .o2, .f-rs.p3:not(.p4) .why .o2, .f-rs.p4 .sh .o2 { display: inline; }
.f-rs.p2 .rs-sol .vb .o2 { display: flex; }
.f-rs.p3:not(.p4) .rs-fi { display: block; animation: rsIn .45s var(--out) both; }
.f-rs .rs-stp.more { display: none; } .f-rs.p4 .rs-stp.more { display: grid; animation: rsIn .45s var(--out) both; }
.f-rs.p4 .rs-next { display: none; }
.f-rs.p4 .rs-stp .n { background: #fff; color: #1f34a2; box-shadow: inset 0 0 0 1.2px #1f34a2; } .f-rs.p4 .rs-stp.fl .n { background: #1f34a2; color: #fff; }
.f-rs.p4 .rs-stp .c { background: transparent; box-shadow: none; padding: 0 0 2px; }
.rs-bac { position: relative; max-width: 900px; margin: 84px auto 0; padding: 30px 34px 24px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 2px rgba(11,19,48,.05), 0 22px 40px -28px rgba(10,42,154,.4); transform: rotate(-.6deg); }
.rs-bac .hand { display: block; margin: -6px 0 10px; font-size: 26px; transform: rotate(-2deg); transform-origin: left; }
.rs-bac ul { columns: 2; column-gap: 36px; margin: 0; padding: 0; list-style: none; }
.rs-bac li { break-inside: avoid; padding: 7px 0 7px 18px; border-bottom: 1px dashed var(--line); font-size: 14px; line-height: 1.45; color: var(--muted); position: relative; }
.rs-bac li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--red, #d84a3a); opacity: .75; }
.rs-bac li b { display: block; color: var(--ink); font-weight: 600; }
.rs-bac-n { margin: 16px 0 0; font-family: "Caveat", cursive; font-size: 21px; color: var(--blue); }
@media (max-width: 900px) {
  .f-rs { grid-template-columns: 1fr 1fr; row-gap: 26px; column-gap: 14px; }
  .f-rs .phone { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: 290px; height: 590px; }
  .f-rs .col-l, .f-rs .col-r { display: contents; }
  .f-rs .fn.call { opacity: 1; filter: none; transform: none; padding: 10px; }
  .f-rs [data-id="c1"] { order: 1; } .f-rs [data-id="c2"] { order: 2; } .f-rs [data-id="c3"] { order: 3; } .f-rs [data-id="c4"] { order: 4; }
  .rs-bac { margin-top: 60px; padding: 26px 20px 18px; transform: none; } .rs-bac ul { columns: 1; }
}

/* Photo : la lecture confirmée, puis la même carte solution et les étapes */
.cam .read .rs { height: 90%; }
.cam .read .rs-sol { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .5s var(--out); }
.cam .read .rs-st { display: none; }
.cam .read .rs-stp .c { padding: 5px 8px; } .cam .read .rs-stp .c b { margin-bottom: 1px; }
.cam.p8 .read .rs-sol { opacity: 1; transform: none; }
.cam.p9 .read .rs-sol .vb { transform: scale(.95); filter: brightness(1.15); }
.cam.p10 .read .rs-sol .vb { background: transparent; color: #1f34a2; box-shadow: inset 0 0 0 1px #75767F; transform: none; filter: none; }
.cam.p10 .read .rs-sol .vb .o1 { display: none; } .cam.p10 .read .rs-sol .vb .o2 { display: flex; }
.cam.p10 .read .rs-st { display: block; animation: rsIn .45s var(--out) both; }

/* Clavier mathématique — custom_math_keyboard : fond noir, touches #212121, ↵ #1e4b41, point rouge = appui long.
   Tout est en em : le font-size de .mk règle l'échelle. */
.mk { position: relative; padding: .7em .5em .9em; background: #000; color: #fff; font-family: "Roboto", system-ui, sans-serif; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.mk button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mk .katex { font-size: 1.12em; color: #fff; }
.mk-bar { display: flex; align-items: center; gap: .45em; margin-bottom: .7em; }
.mk-tab { flex: 1.25; min-width: 0; height: 3.1em; border-radius: 1.6em; box-shadow: inset 0 0 0 1px #616161; font-size: 1.15em; font-style: italic; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.mk-tab:first-child { font-style: normal; }
.mk-tab.on { background: #fff; color: #000; box-shadow: none; }
.mk-ic { flex: .8; display: grid; place-items: center; height: 3.6em; border-radius: .6em; background: #212121; font-size: 1.1em; } .mk-ic i { font-size: 1.5em; }
.mk-ic.ent { background: #1e4b41; }
.mk-let { display: flex; margin: 0 -.5em .5em; padding: .5em 0; background: #212121; }
.mk-l { flex: 1; height: 2.8em; } .mk-l + .mk-l { box-shadow: -1px 0 0 rgba(255,255,255,.85); } .mk-l .katex { font-size: 1.5em; }
.mk-row { display: flex; gap: .5em; margin-top: .55em; }
.mk-k { position: relative; flex: 1; min-width: 0; height: 4.2em; border-radius: .7em; transition: background .15s ease, transform .12s ease; }
.mk-k .katex { font-size: 1.45em; } .mk-k.dk { background: #212121; } .mk-k.w2 { flex: 2.08; }
.mk-k.dot::after { content: ""; position: absolute; right: 22%; bottom: 18%; width: .5em; height: .5em; border-radius: 50%; background: #d3493e; }
.mk .hit { background: #4a4a4a !important; transform: scale(.93); }
.mk-pop { position: absolute; z-index: 3; display: flex; gap: .3em; padding: .45em; border-radius: .9em; background: #2e2e2e; box-shadow: 0 .6em 1.6em rgba(0,0,0,.5); }
.mk-pop[hidden] { display: none; }
.mk-v { min-width: 3.6em; height: 3.6em; padding: 0 .5em !important; border-radius: .6em; } .mk-v:hover, .mk-v:focus-visible { background: #4a4a4a; } .mk-v .katex { font-size: 1.4em; }

/* Section « Le clavier » : le clavier à essayer */
.kb-demo { position: relative; justify-self: center; width: min(100%, 420px); padding: 14px 14px 0; border-radius: 28px; background: #0d0d10; box-shadow: 0 50px 80px -40px rgba(10,20,60,.55); }
.kb-demo > .hand { position: absolute; top: -46px; right: 10px; font-size: 28px; transform: rotate(4deg); }
.kb-out { position: relative; display: flex; align-items: center; min-height: 64px; margin-bottom: 12px; padding: 10px 46px 10px 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.6px #1f34a2; color: #191C1D; font-size: 20px; overflow-x: auto; }
.kb-out.empty .tx::before { content: "Tape une équation…"; color: #75767F; font: 15px "Roboto", sans-serif; }
.kb-out .ct { width: 1.5px; height: 24px; margin-left: 2px; background: #1f34a2; animation: blink 1s steps(1) infinite; }
.kb-out .kb-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #75767F; font-size: 22px; cursor: pointer; }
.kb-out.empty .kb-clear { display: none; }
.kb-pad { margin: 0 -14px; border-radius: 0 0 28px 28px; overflow: hidden; }
.kb-pad .mk { font-size: 10px; padding-bottom: 1.4em; }
.kb-hint { margin: 0 -14px; padding: 0 18px 16px; background: #000; color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.4; border-radius: 0 0 28px 28px; }
.kb-hint.flash { animation: rsIn .35s var(--out); color: #fff; }
@media (max-width: 480px) { .kb-pad .mk { font-size: 8.4px; } .kb-out { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .rs, .rs-kb, .rs-body { transition: none !important; } .rs .rs-sol, .rs .rs-gr, .rs-st, .rs-fi, .rs-stp { animation: none !important; } .sv .rs-gr svg .cv { stroke-dashoffset: 0; } .sv .rs-gr svg .pt { opacity: 1; } }

/* ═══════════ Outils : la liste reliée au téléphone (captures réelles, img/outils) ═══════════ */
.f-ou { display: grid; grid-template-columns: minmax(0, 1fr) 300px minmax(0, 1fr); column-gap: 80px; align-items: center; margin-top: 52px; }
.f-ou .fl-svg { z-index: 3; }
.ou-col { display: flex; flex-direction: column; gap: 8px; }
.ou-h { display: flex; align-items: center; gap: 8px; margin: 0 0 6px 2px; font-family: "Caveat", cursive; font-size: 25px; font-weight: 700; color: var(--blue); }
.ou-p .ou-h { color: #b3402c; }
.fn.ou { width: 100%; padding: 8px 12px; gap: 12px; font: inherit; text-align: left; color: inherit; cursor: pointer; opacity: .62; }
.fn.ou > i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: #eef1fb; color: var(--blue); font-size: 18px; transition: background .3s ease, color .3s ease; }
.ou-p .fn.ou > i { background: #fbefec; color: #b3402c; }
.fn.ou b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.fn.ou small { display: block; color: var(--muted); font-size: 12.5px; }
.fn.ou:hover { opacity: .9; filter: none; }
.fn.ou:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.fn.ou.on { opacity: 1; }
.ou-p .fn.ou.on > i { background: #b3402c; color: #fff; }
.ou-mid { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone.ip { width: 300px; height: 620px; border-radius: 48px; padding: 9px; }
.f-ou .phone.fa.on { box-shadow: 0 60px 90px -40px rgba(10,20,60,.55); }
.phone.ip .island { display: none; position: absolute; z-index: 3; top: 21px; left: 50%; width: 82px; height: 23px; margin-left: -41px; border-radius: 12px; background: #000; }
.ou-scr { position: relative; border-radius: 37px; background: #F8F9FA; }
.ou-scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .45s ease; }
.ou-scr img.on { opacity: 1; }
.ou-cap { max-width: 300px; min-height: 2.6em; margin: 0; font-family: "Caveat", cursive; font-size: 22px; line-height: 1.2; text-align: center; color: var(--blue); }
.ou-src { font-size: 12px; color: var(--faint); }
@media (max-width: 1100px) { .f-ou { column-gap: 44px; grid-template-columns: minmax(0, 1fr) 270px minmax(0, 1fr); } .phone.ip { width: 270px; height: 560px; } .fn.ou small { display: none; } }
@media (max-width: 900px) {
  .f-ou { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .ou-col { flex-direction: row; gap: 8px; margin: 0 -16px; padding: 4px 16px 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .ou-col::-webkit-scrollbar { display: none; }
  .ou-h { flex: none; margin: 0; font-size: 21px; }
  .fn.ou { flex: none; width: auto; scroll-snap-align: center; padding: 6px 12px 6px 6px; opacity: .8; transform: none; }
  .fn.ou > i { width: 28px; height: 28px; font-size: 15px; } .fn.ou b { font-size: 13px; white-space: nowrap; }
  .ou-m { order: 1; } .ou-p { order: 2; } .ou-mid { order: 3; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { .ou-scr img { transition: none; } }

:where([data-theme="dark"]) .fn.ou > i { background: rgba(143,168,255,.14); color: #8fa8ff; }
:where([data-theme="dark"]) .ou-p .fn.ou > i { background: rgba(255,138,122,.14); color: #ff8a7a; }
:where([data-theme="dark"]) .ou-p .ou-h { color: #ff8a7a; }

/* Écouter : choix de la voix, extraits de Kofi et d'Afi, écrit / oral */
.vx-sw { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: rgba(10,42,154,.06); }
.vx-sw .pchip { background: none; } .vx-sw .pchip.on { background: var(--blue-fill); color: #fff; }
.vx-row { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 26px; margin-top: 64px; align-items: start; }
.vx { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 14px; margin: 0; padding: 18px 18px 16px 12px; }
.vx img { width: 92px; height: auto; align-self: end; }
.vx figcaption { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vx figcaption b { font-size: 18px; letter-spacing: -.02em; } .vx figcaption small { margin-top: -8px; color: var(--muted); font-size: 13px; }
.vx-b { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: start; padding: 8px 10px 8px 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 13.5px; line-height: 1.4; text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.vx-b i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-fill); color: #fff; font-size: 14px; }
.vx-b:hover { border-color: rgba(58,90,216,.45); } .vx-b.on { border-color: var(--blue-fill); background: #f3f6ff; }
.vx-tab { position: relative; padding: 26px 20px 16px; }
.vx-tab > .hand { display: block; margin: -12px 0 6px; font-size: 24px; transform: rotate(-2deg); transform-origin: left; }
.vx-tab table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.vx-tab td { padding: 8px 6px; border-bottom: 1px dashed var(--line); vertical-align: middle; }
.vx-tab td:first-child { width: 38%; white-space: nowrap; font-size: 15px; color: var(--ink); } .vx-tab td:last-child { color: var(--muted); }
.vx-cr { margin: 12px 0 0; font-size: 11.5px; color: var(--faint); }
@media (max-width: 1100px) { .vx-row { grid-template-columns: 1fr 1fr; } .vx-tab { grid-column: 1 / -1; } }
@media (max-width: 700px) { .vx-row { grid-template-columns: 1fr; margin-top: 44px; } .vx { grid-template-columns: 70px 1fr; } .vx img { width: 70px; } .vx-tab td:first-child { white-space: normal; } }

:where([data-theme="dark"]) .reader > .hand { color: #8fa8ff; }

/* Captures de l'app dans un téléphone, à côté d'un texte (quiz, expériences) */
.cap-row { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 70px; align-items: center; max-width: 980px; margin: 90px auto 0; }
.cap-row.rev { grid-template-columns: minmax(0, 1fr) 300px; margin-top: 70px; }
.cap-row .phone { justify-self: center; }
.cap-h { margin: 8px 0 14px; font-size: 28px; line-height: 1.15; letter-spacing: -.03em; }
.cap-row .checks { margin-top: 0; }
/* Jeux : la liste à gauche, le téléphone à droite */
.f-ou.two { grid-template-columns: minmax(0, 420px) 300px; justify-content: center; column-gap: 110px; margin-top: 40px; }
@media (max-width: 900px) {
  .cap-row, .cap-row.rev { grid-template-columns: 1fr; gap: 30px; margin-top: 60px; }
  .cap-row.rev .phone { order: -1; }
  .cap-row .phone { width: 270px; height: 560px; }
  .f-ou.two { grid-template-columns: minmax(0, 1fr); }
  .f-ou.two .ou-col { order: 1; } .f-ou.two .ou-mid { order: 2; }
}

.wrap.two > .cap-row { grid-column: 1 / -1; width: 100%; }

/* Bulletins : le réglage du bulletin (style, couleur, blocs), appliqué au bulletin de la section */
.bo { position: relative; margin-bottom: 30px; padding: 22px 16px 16px; font-size: 13px; transform: rotate(.6deg); }
.bo-h { position: absolute; top: -20px; left: 14px; font-size: 24px; transform: rotate(-3deg); white-space: nowrap; }
.bo-cy { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(11,19,48,.05); }
.bo button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
.bo-cy button { flex: 1; padding: 6px 2px; border-radius: 8px; font-size: 12.5px; color: var(--muted); }
.bo-cy button.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(11,19,48,.12), inset 0 -2px 0 #c9a227; }
.bo-lab { display: block; margin: 12px 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.bo-seg { display: flex; gap: 4px; }
.bo-seg button { flex: 1; padding: 6px 4px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; transition: background .2s ease, color .2s ease; }
.bo-seg button.on { background: var(--blue-fill); color: #fff; box-shadow: none; }
.bo-seg.sm { margin-top: 8px; } .bo-seg.sm button { font-size: 11px; padding: 5px 2px; }
.bo-col { display: flex; gap: 8px; }
.bo-col button { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(11,19,48,.15); transition: transform .2s var(--out); }
.bo-col button.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); transform: scale(1.06); }
.bo-col [data-v="nuit"] { background: #1b2a6b; } .bo-col [data-v="vert"] { background: #1f6b45; } .bo-col [data-v="bord"] { background: #7a1f2b; } .bo-col [data-v="anth"] { background: #3a3f4a; }
.bo-col [data-v="nb"] { background: linear-gradient(135deg, #111 50%, #fff 50%); }
.bo-sw { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 12.5px; cursor: pointer; }
.bo-sw input { position: absolute; opacity: 0; pointer-events: none; }
.bo-sw i { flex: none; position: relative; width: 30px; height: 17px; border-radius: 9px; background: #d6d9e3; transition: background .2s ease; }
.bo-sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s var(--out); }
.bo-sw input:checked + i { background: #c9a227; } .bo-sw input:checked + i::after { transform: translateX(13px); }
.bo-sw input:focus-visible + i { outline: 2px solid var(--blue); outline-offset: 2px; }
.bo-n { margin: 12px 0 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
/* Couleurs : --bc (encre du bulletin), --bc2 (second rang de l'en-tête du tableau) */
.bul[data-c="nuit"] { --bc: #1b2a6b; --bc2: #2c3d8a; } .bul[data-c="vert"] { --bc: #1f6b45; --bc2: #2d8058; }
.bul[data-c="bord"] { --bc: #7a1f2b; --bc2: #93303d; } .bul[data-c="anth"] { --bc: #3a3f4a; --bc2: #4d5361; }
.bul[data-c="nb"] { --bc: #111; --bc2: #111; --bred: #111; }
.bul[data-c="nb"] .bl-tab thead th, .bul[data-c="nb"] .bl-tab td.bl-mg { background: #fff; color: #111; border-color: #111; }
.bul[data-c="nb"] .bl-crest .t { fill: #fff; } .bul[data-c="nb"] .bl-tab tbody tr:nth-child(even) td { background: #fff; }
/* Styles prêts */
.bul[data-st="off"] .bl-tab th, .bul[data-st="off"] .bl-tab td { border-color: #d9c48a; }
.bul[data-st="sob"] .bl-tab thead th { background: transparent; color: var(--bc); border-color: #c9cfdf; border-bottom: 2px solid var(--bc); }
.bul[data-st="sob"] .bl-tab td.bl-mg { background: #eef1f8; color: var(--bc); }
.bul[data-st="sob"] .bl-title h3 { border-bottom: 1px solid var(--bc); letter-spacing: .12em; }
.bul[data-st="sob"] .bl-box, .bul[data-st="sob"] .bl-id { border-radius: 0; }
.bul[data-st="pre"] { box-shadow: inset 0 0 0 .5em #fff, inset 0 0 0 .62em var(--bc), inset 0 0 0 .9em #fff, inset 0 0 0 .98em #c9a227, 0 1px 2px rgba(11,19,48,.05), 0 30px 50px -30px rgba(10,42,154,.35); padding: 3em 3.2em 2.6em; }
.bul[data-st="pre"] .bl-title h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: .14em; border-bottom: 3px double #c9a227; }
.bul[data-st="pre"] .bl-box h4 { color: #9a7a14; }
/* Blocs affichés ou non */
.bul.no-min .bl-l small { visibility: hidden; }
.bul.no-rep .bl-r b, .bul.no-rep .bl-r > i { visibility: hidden; }
.bul.no-logo .bl-crest { visibility: hidden; }
.bul.no-flag .bl-flag { display: none; }
.bul.no-ld .bl-date { visibility: hidden; }
.bl-msg { margin: .8em 0 0; padding: .55em .8em; border-left: 3px solid var(--bc); background: rgba(255,255,255,.85); font-size: .86em; color: #3c4257; }
.bl-msg b { color: var(--bc); margin-right: .4em; }
.bul.no-msg .bl-msg { display: none; }
.bul .bl-tab th, .bul .bl-tab td, .bul .bl-title h3, .bul .bl-mg { transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
/* Une colonne : le réglage passe au-dessus du bulletin, les arguments en dessous */
@media (max-width: 1200px) {
  .bl-side { display: contents; }
  .bo { order: -1; max-width: 520px; width: 100%; justify-self: center; margin: 24px 0 0; transform: none; }
  .bl-side .checks, .bl-note { order: 1; }
}

/* Plusieurs postes, une seule base : le serveur au centre, les postes reliés autour */
.f-net { display: grid; margin-top: 52px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 90px; row-gap: 34px; align-items: center;
  grid-template-areas: "cpt . dir" "sec srv jrn" "nv . ."; }
.f-net .amt { display: block; margin-top: 3px; font-weight: 600; font-size: 12.5px; color: var(--blue); font-variant-numeric: tabular-nums; }
.f-net .chip { margin-top: 5px; font-size: 11.5px; }
.f-net .fn > div { min-width: 0; flex: 1; }
.f-net .jt { margin-top: 4px; border-collapse: collapse; font-size: 11px; white-space: nowrap; }
.f-net .jt th { font-weight: 500; color: var(--faint); text-align: left; padding: 0 10px 1px 0; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; }
.f-net .jt td { padding: 1px 10px 1px 0; color: var(--ink); }
.f-net .code6 { display: inline-block; margin-top: 5px; padding: 3px 10px; border-radius: 8px; background: #fbf3dc; color: #7a5a00; font: 600 15px ui-monospace, monospace; letter-spacing: .14em; }
.f-net [data-id="srv"] { padding: 16px 16px; }
.net-c { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin-top: 56px; }
@media (max-width: 1100px) { .f-net { column-gap: 40px; } .net-c { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .f-net { grid-template-columns: 1fr 1fr; column-gap: 14px; row-gap: 14px; grid-template-areas: "srv srv" "cpt sec" "dir jrn" "nv nv"; }
  .f-net .fn { opacity: 1; filter: none; transform: none; }
}
@media (max-width: 560px) { .net-c { grid-template-columns: 1fr; } .f-net .fn { flex-direction: column; align-items: flex-start; padding: 10px; gap: 6px; } }

