/* ==========================================================================
   École Les Oliviers — inscriptions et espace parents
   S'appuie sur ecole.css (jetons, logo, pastilles). Mobile d'abord : une
   question par écran, de grandes cibles, le mouvement seulement en retour
   d'un geste. Projet concept Démesure.
   ========================================================================== */

:root { --gut: 16px; --sun-ink: #8a5a00; --wa: #1f9d55; }
html { -webkit-tap-highlight-color: transparent; }
body { min-height: 100vh; min-height: 100svh; overflow-x: clip; padding-bottom: env(safe-area-inset-bottom, 0px); }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[tabindex="-1"]:focus { outline: none; }
em { font-style: normal; }

/* ---------- Bandeau « projet concept » : une ligne sur téléphone ---------- */
.pt-bar { flex-wrap: nowrap; align-items: center; padding: calc(7px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 7px max(16px, env(safe-area-inset-left, 0px)); white-space: nowrap; }
.demo-bar .pt-bar__tag { color: rgba(246, 242, 231, .78); text-decoration: none; }
.pt-bar__tag:hover b { color: var(--sun); }
.pt-bar__more { display: none; overflow: hidden; text-overflow: ellipsis; }
.pt-bar a:focus-visible { outline-color: var(--sun); }
@media (min-width: 760px) { .pt-bar__more { display: inline; } }

/* ---------- Mise en page ---------- */
.pt { width: 100%; max-width: 520px; margin: 0 auto; padding: 0 max(var(--gut), env(safe-area-inset-right, 0px)) 36px max(var(--gut), env(safe-area-inset-left, 0px)); }
.pt__head { display: flex; align-items: center; height: 62px; }
.pt__head .ol-logo { min-height: 44px; }
.pt__head .ol-logo span { font-size: 16px; }

/* Illustration : l'arche de l'école (accueil seulement, sur téléphone) */
.pt__art { position: relative; display: none; width: 74%; max-width: 330px; margin: 2px auto 18px; }
body[data-view="home"] .pt__art { display: block; }
.art-crop { width: 100%; aspect-ratio: 480 / 410; max-height: 30vh; max-height: 30svh; overflow: hidden; border-radius: 0 0 8px 8px; }
.art-crop .art { width: 116.667%; max-width: none; margin: -12.5% 0 0 -8.333%; }
.art { height: auto; overflow: visible; }
.art__echo { fill: none; stroke: var(--olive); stroke-width: 1.4; opacity: .35; }
.br-stem { fill: none; stroke: #2b3a1c; stroke-width: 3.2; stroke-linecap: round; }
.l1 { fill: #a9c46a; }
.l2 { fill: #7f9f45; }
.l3 { fill: #cfdbb0; }
.olive ellipse { fill: #2b3a1c; }
.o-green ellipse { fill: #6d8a3a; }
.o-sun ellipse { fill: var(--sun); }
.olive circle { fill: #fffdf7; opacity: .5; }

.sticker { position: absolute; top: -4%; right: -15%; width: 84px; transform: rotate(-10deg); filter: drop-shadow(0 10px 14px rgba(29, 38, 23, .2)); }
.sticker svg { width: 100%; height: auto; }
.sticker text { font-family: var(--mono); font-size: 10.4px; letter-spacing: .1em; text-transform: uppercase; fill: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.float-card { position: absolute; display: none; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px rgba(29, 38, 23, .07), 0 18px 34px -18px rgba(29, 38, 23, .55); font-size: 13px; line-height: 1.25; white-space: nowrap; }
.float-card b { display: block; font-weight: 700; }
.float-card small { display: block; font-size: 12px; color: var(--ink-2); }
.float-card__ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); }
.float-card__ic .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.float-card__ic--sun { background: var(--sun-soft); color: var(--sun-ink); }
.float-card__ic--sun .ic { fill: currentColor; stroke: none; }

/* Les vues glissent : on coupe ce qui dépasse sur les côtés, pas les ombres */
.views { margin: 0 -12px; padding: 0 12px 4px; overflow-x: clip; }
@supports not (overflow: clip) { .views { overflow: hidden; } }
.v { display: block; }
.in-fwd { animation: in-fwd .45s var(--ease) both; }
.in-back { animation: in-back .45s var(--ease) both; }
@keyframes in-fwd { from { opacity: 0; transform: translateX(28px); } }
@keyframes in-back { from { opacity: 0; transform: translateX(-28px); } }
.is-pop { animation: pop .42s var(--ease); }
@keyframes pop { 40% { transform: scale(1.07); } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* ---------- Titres ---------- */
.home__title, .q { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.home__title { font-size: clamp(36px, 10.4vw, 46px); line-height: .98; }
.home__title em { display: block; }
.home__title em, .q em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--olive); }
.home__title em { font-size: 1.06em; line-height: 1; }
.q { margin: 2px 0 20px; font-size: clamp(30px, 8.6vw, 38px); line-height: 1.04; }
.q em { font-size: 1.08em; }
.q--c { text-align: center; }
.q .off--big, .q .q__y { position: relative; top: -.32em; margin-left: 4px; vertical-align: middle; }
.lbl { margin: 22px 0 10px 4px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Accueil : deux portes ---------- */
.doors { display: grid; gap: 10px; margin-top: 22px; }
.door { display: flex; align-items: center; gap: 14px; min-height: 80px; padding: 14px 18px 14px 14px; border-radius: 22px; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; box-shadow: 0 1px 0 rgba(29, 38, 23, .05), 0 14px 30px -20px rgba(29, 38, 23, .6); }
.door:active { transform: scale(.98); }
.door--sun { background: var(--sun); color: var(--ink); }
.door--olive { background: var(--olive); color: var(--paper); }
.door__ic { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 253, 247, .6); }
.door--olive .door__ic { background: rgba(255, 253, 247, .14); color: var(--leaf); }
.door__ic .ic { width: 24px; height: 24px; }
.door__txt { min-width: 0; }
.door__txt b { display: block; font-family: var(--display); font-size: 20px; font-weight: 650; line-height: 1.15; letter-spacing: -.02em; }
.door__txt small { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 600; opacity: .72; }
.door__go { margin-left: auto; width: 22px; height: 22px; transition: transform .3s var(--ease); }
@media (hover: hover) { .door:hover { box-shadow: 0 1px 0 rgba(29, 38, 23, .05), 0 22px 36px -20px rgba(29, 38, 23, .7); } .door:hover .door__go { transform: translateX(4px); } }
.door:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.home__out { justify-self: center; margin-top: 4px; }

/* ---------- Barre du parcours : retour et progression ---------- */
.fbar { display: flex; align-items: center; gap: 12px; height: 48px; margin: -4px 0 12px; }
.fbar__back { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-left: -10px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); transition: background-color .2s; }
.fbar__back:active { background: var(--sand); }
.fbar__back .ic { width: 26px; height: 26px; stroke-width: 2; }
.prog { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.prog i { position: relative; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.prog i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--olive); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease), background-color .3s; }
.prog i.is-done::after { transform: scaleX(1); }
.prog i.is-on::after { transform: scaleX(.45); background: var(--sun); }
.fbar__n { min-width: 30px; font-family: var(--mono); font-size: 12px; text-align: right; color: var(--ink-3); }

/* ---------- Choix ---------- */
.chip { display: block; width: 100%; min-height: 48px; padding: 0 4px; border: 1.5px solid transparent; border-radius: 14px; font-weight: 700; line-height: 1; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s; }
.chip:disabled { cursor: default; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin-bottom: 20px; padding: 4px; border-radius: 17px; background: var(--sand); }
.seg button { min-height: 46px; padding: 0 6px; border: 0; border-radius: 13px; background: transparent; color: var(--ink-2); font-size: 15px; font-weight: 650; transition: background-color .25s, color .25s, box-shadow .25s; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(29, 38, 23, .08), 0 6px 16px -10px rgba(29, 38, 23, .45); }

.years { display: grid; gap: 14px; }
.years__lv { display: block; margin: 0 0 8px 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.years__chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.chip--y { height: 58px; font-family: var(--display); font-size: 15px; letter-spacing: -.01em; }
.chip--y b { font-size: 27px; font-weight: 700; letter-spacing: -.04em; }
.years__row--primaire .chip--y { background: #fde6c2; color: #8a5300; }
.years__row--college .chip--y { background: #d8e8c4; color: #3c5a1d; }
.years__row--lycee .chip--y { background: #d6e3f2; color: #24527f; }
.years__row--primaire .chip--y[aria-pressed="true"] { background: var(--sun); color: var(--ink); box-shadow: 0 10px 20px -12px rgba(138, 83, 0, .8); }
.years__row--college .chip--y[aria-pressed="true"] { background: var(--olive); color: var(--paper); box-shadow: 0 10px 20px -12px rgba(60, 90, 29, .9); }
.years__row--lycee .chip--y[aria-pressed="true"] { background: var(--blue); color: var(--paper); box-shadow: 0 10px 20px -12px rgba(36, 82, 127, .9); }

.births { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; border-radius: 16px; }
.chip--b, .chip--t, .chip--d { background: var(--paper); border-color: var(--line); color: var(--ink); }
.chip--b { height: 52px; font-family: var(--display); font-size: 17px; }
.chip--b[aria-pressed="true"], .chip--t[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); color: var(--paper); }

.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 10px; }
.chip--d { display: grid; place-content: center; gap: 3px; height: 78px; }
.chip--d small { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.chip--d b { font-family: var(--display); font-size: 25px; letter-spacing: -.03em; }
.chip--d[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip--d[aria-pressed="true"] small { color: rgba(255, 253, 247, .65); }
.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chip--t { height: 54px; font-family: var(--display); font-size: 18px; }
.chip--t:disabled { border-style: dashed; background: transparent; color: var(--ink-3); text-decoration: line-through; opacity: .55; }

.callme { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; margin-top: 18px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 16px; background: transparent; color: var(--ink); font-size: 15.5px; font-weight: 650; transition: background-color .2s, border-color .2s; }
.callme[aria-pressed="true"] { background: var(--sun-soft); border-color: var(--sun); }

/* ---------- Champs ---------- */
.fields { display: grid; gap: 12px; margin-bottom: 4px; }
.fields--2 { grid-template-columns: 1fr 1fr; gap: 10px; }
.fl { display: block; min-width: 0; }
.fl > span { display: block; margin: 0 0 6px 4px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.fl input { width: 100%; height: 56px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); font-size: 17px; font-weight: 600; outline: none; -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s; }
.fl input::placeholder { color: #b3ad9c; font-weight: 500; }
.fl input:focus { border-color: var(--olive); box-shadow: 0 0 0 4px rgba(69, 98, 42, .14); }
.fl--tel input { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.fl--big input { height: 66px; font-family: var(--display); font-size: 25px; font-weight: 650; text-align: center; letter-spacing: .03em; }
.is-bad { animation: shake .4s ease; }
.fl.is-bad input, .births.is-bad .chip, .seg.is-bad { border-color: var(--red); }
.births.is-bad .chip { border-color: rgba(201, 71, 47, .6); }
.seg.is-bad { box-shadow: inset 0 0 0 1.5px var(--red); }
.err { margin: 8px 0 0 4px; font-size: 14px; font-weight: 600; color: var(--red); }
.err:empty { display: none; }
.err .link { margin-left: -4px; }
.err--soft { color: var(--ink-2); }
.err--soft > span { display: block; }

.wa { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin-top: 12px; padding: 0 14px 0 16px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); font-size: 15.5px; font-weight: 650; text-align: left; }
.wa > .ic { width: 22px; height: 22px; color: var(--wa); }
.sw { position: relative; flex: none; width: 48px; height: 29px; margin-left: auto; border-radius: 99px; background: var(--line); transition: background-color .25s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 23px; height: 23px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.wa[aria-checked="true"] .sw { background: var(--wa); }
.wa[aria-checked="true"] .sw::after { transform: translateX(19px); }

/* Fratrie */
.kids { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 16px; }
.kid { display: inline-flex; align-items: center; max-width: 100%; border-radius: 99px; background: var(--sand); color: var(--ink); transition: background-color .2s, color .2s; }
.kid.is-on { background: var(--ink); color: var(--paper); }
.kid__b { display: inline-flex; align-items: center; gap: 7px; min-width: 0; min-height: 44px; padding: 0 16px; border: 0; background: transparent; color: inherit; font-size: 14.5px; }
.kid__b b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.kid__b > span:not(.off) { opacity: .7; font-weight: 600; }
.kid.is-on .kid__b { padding-right: 4px; }
.kid__x { display: grid; place-items: center; width: 44px; height: 44px; padding: 0 8px 0 0; border: 0; background: transparent; color: inherit; opacity: .7; }
.kid__x .ic { width: 18px; height: 18px; }
.off { display: inline-flex; align-items: center; flex: none; height: 22px; padding: 0 8px; border-radius: 99px; background: var(--ok-soft); color: var(--ok); font-family: var(--text); font-size: 12px; font-weight: 800; letter-spacing: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.off--big { height: 28px; padding: 0 10px; font-size: 14px; animation: pop .5s var(--ease) .15s both; }
.kid.is-on .off { background: rgba(169, 196, 106, .25); color: var(--leaf); }
.add { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 22px; padding: 0 14px 0 16px; border: 1.5px dashed #c9c0a8; border-radius: 16px; background: transparent; color: var(--olive); font-size: 15.5px; font-weight: 700; text-align: left; transition: background-color .2s, border-color .2s; }
.add:active { background: var(--paper); border-color: var(--olive); }
.add .off { margin-left: auto; }

/* ---------- Bouton principal ---------- */
.btn-main { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; margin-top: 16px; padding: 0 22px; overflow: hidden; border: 0; border-radius: 18px; background: var(--olive); color: var(--paper); font-family: var(--display); font-size: 18px; font-weight: 650; letter-spacing: -.01em; text-decoration: none; transition: transform .2s var(--ease), background-color .2s, color .2s; }
.btn-main .ic { width: 20px; height: 20px; stroke-width: 2; }
.btn-main:active { transform: scale(.985); }
@media (hover: hover) { .btn-main:hover { background: var(--ink); } .btn-main--sun:hover { background: var(--ink); color: var(--paper); } }
.btn-main--sun { background: var(--sun); color: var(--ink); }
.btn-main:disabled { cursor: default; }
.btn-main.is-busy { color: transparent; }
.btn-main.is-busy::after { content: ""; position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 2.5px solid rgba(255, 253, 247, .35); border-top-color: var(--paper); border-radius: 50%; animation: spin .7s linear infinite; }
.btn-main__fill { position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--sun); transform: scaleX(0); transform-origin: left; }
.is-auto .btn-main__fill { animation: fill 1.9s linear both; }
@keyframes fill { to { transform: scaleX(1); } }

.link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--olive); font-size: 14.5px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.link .ic { width: 16px; height: 16px; }
.link--quiet { color: var(--ink-3); font-weight: 600; text-decoration: none; }

/* ---------- Récapitulatif ---------- */
.rc-kids { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.rc-kids li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.rc-kids li + li { border-top: 1px solid var(--line); }
.rc-kids__n { flex: 1; min-width: 0; }
.rc-kids__n b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.rc-kids__n small { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.rc-kids__fee { display: grid; justify-items: end; gap: 4px; font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.rc-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 14px 4px 12px; }
.rc-total > span:first-child { font-size: 14px; font-weight: 650; color: var(--ink-3); }
.rc-total b { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.rc-total .off { align-self: center; margin-left: auto; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan { display: grid; justify-items: start; align-content: center; gap: 3px; min-height: 84px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); text-align: left; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.plan__x { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.plan b { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.plan small { font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.plan[aria-pressed="true"] { border-color: var(--olive); background: #eef3e3; box-shadow: inset 0 0 0 1px var(--olive); }
.plan[aria-pressed="true"] .plan__x { color: var(--olive); }
.rc-free { display: flex; align-items: center; gap: 8px; margin: 12px 0 0 4px; font-size: 14px; font-weight: 650; color: var(--ok); }
.rc-free .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.rc-meta { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rc-meta li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding-left: 4px; border-bottom: 1px solid var(--line); font-weight: 650; }
.rc-meta li > .ic { color: var(--olive); }
.rc-meta li > .ic[aria-hidden] + span { flex: 1; min-width: 0; }
.rc-meta .link { margin-left: auto; font-size: 13.5px; }

/* ---------- Confirmation ---------- */
.v--done { display: flex; flex-direction: column; }
.done__check { align-self: center; width: 76px; height: 76px; margin: 6px 0 14px; }
.done__check svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.done__check circle { fill: var(--ok-soft); stroke: var(--ok); stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .7s var(--ease) .1s forwards; }
.done__check path { stroke: var(--ok); stroke-width: 3.5; stroke-dasharray: 34; stroke-dashoffset: 34; animation: draw .45s var(--ease) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.v--done .q { margin-bottom: 8px; }
.done__ref { margin: 0 0 20px; text-align: center; font-size: 17px; }
.done__ref .mono { color: var(--ink-3); }
.done__ref b { font-family: var(--display); letter-spacing: .01em; }

.ticket { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: var(--ink); color: var(--paper); box-shadow: 0 18px 34px -22px rgba(29, 38, 23, .8); }
.ticket > .ic { width: 26px; height: 26px; color: var(--sun); }
.ticket b { display: block; font-family: var(--display); font-size: 17.5px; font-weight: 650; line-height: 1.2; letter-spacing: -.01em; }
.ticket small { display: block; margin-top: 3px; font-size: 13.5px; color: rgba(255, 253, 247, .65); }

.docs { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.docs > li { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); font-size: 15px; font-weight: 600; }
.docs .ic { color: var(--olive); }
.docs--check > li { padding: 0; border: 0; background: none; }
.docs--check button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 12px 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 600; text-align: left; transition: background-color .2s, border-color .2s; }
.docs--check button[aria-pressed="true"] { border-color: #bcd5b4; background: #f2f8ef; }
.docs--check button[aria-pressed="true"] > span { color: var(--ink-2); }
.tick { display: grid; place-items: center; flex: none; width: 28px; height: 28px; margin-left: auto; border: 1.5px solid var(--line); border-radius: 50%; color: transparent; transition: background-color .2s, border-color .2s, color .2s; }
.tick .ic { width: 16px; height: 16px; stroke-width: 2.6; color: inherit; }
.docs--check button[aria-pressed="true"] .tick { border-color: var(--ok); background: var(--ok); color: #fff; animation: pop .35s var(--ease); }
.lbl .num { letter-spacing: .04em; }

/* ---------- Connexion ---------- */
.fbar--plain { margin-bottom: 4px; }
.big-ic { display: grid; place-items: center; width: 62px; height: 62px; margin: 4px 0 18px; border-radius: 19px; background: var(--olive); color: var(--paper); box-shadow: 0 14px 26px -16px rgba(69, 98, 42, .9); }
.big-ic .ic { width: 28px; height: 28px; }
.big-ic--sun { background: var(--sun); color: var(--ink); box-shadow: 0 14px 26px -16px rgba(138, 90, 0, .8); }
.big-ic--sun .ic { fill: currentColor; stroke: none; }
.login .btn-main { margin-top: 14px; }
.code__to { margin: -8px 0 0; font-size: 15.5px; color: var(--ink-2); }
.code__to b { color: var(--ink); }

.otp { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 24px 0 8px; }
.otp input { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: transparent; caret-color: transparent; font-size: 16px; opacity: 0; }
.otp__c { display: grid; place-items: center; height: 64px; border: 1.5px solid var(--line); border-radius: 15px; background: var(--paper); font-family: var(--display); font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; transition: border-color .2s, background-color .3s, color .3s; }
.otp:focus-within .otp__c.is-on { border-color: var(--olive); box-shadow: 0 0 0 4px rgba(69, 98, 42, .14); }
.otp__c.is-full { border-color: #bdb59f; }
.otp.is-ok .otp__c { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.otp.is-ok .otp__c:nth-child(3) { transition-delay: .04s; } .otp.is-ok .otp__c:nth-child(4) { transition-delay: .08s; } .otp.is-ok .otp__c:nth-child(5) { transition-delay: .12s; } .otp.is-ok .otp__c:nth-child(6) { transition-delay: .16s; } .otp.is-ok .otp__c:nth-child(7) { transition-delay: .2s; }

/* SMS simulé : glisse depuis le haut, reste dans l'écran */
.sms { position: fixed; z-index: 100; top: calc(env(safe-area-inset-top, 0px) + 8px); left: max(8px, env(safe-area-inset-left, 0px)); right: max(8px, env(safe-area-inset-right, 0px)); display: flex; align-items: center; gap: 12px; max-width: 400px; margin: 0 auto; padding: 12px 14px; border-radius: 22px; background: rgba(250, 250, 248, .9); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1), 0 20px 40px -14px rgba(0, 0, 0, .4); color: #111; font-family: -apple-system, BlinkMacSystemFont, var(--text); }
.sms.is-in { animation: sms-in .6s var(--ease) both; }
.sms.is-out { animation: sms-out .38s ease-in both; }
@keyframes sms-in { from { opacity: .4; transform: translateY(-130%); } }
@keyframes sms-out { to { opacity: 0; transform: translateY(-130%); } }
.sms__app { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(#6be274, #2db842); }
.sms__app svg { width: 24px; height: 24px; fill: #fff; }
.sms__body { flex: 1; min-width: 0; }
.sms__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: #6b6b6b; }
.sms__meta b { font-weight: 600; color: #6b6b6b; }
.sms__text { display: block; margin-top: 1px; font-size: 15px; font-weight: 600; line-height: 1.3; }

/* ---------- Bienvenue ---------- */
.v--welcome { display: flex; flex-direction: column; padding-top: 18px; }
.wl__logo { align-self: center; width: 76px; height: 76px; margin-bottom: 16px; animation: pop .6s var(--ease); }
.wl__logo svg { width: 100%; height: 100%; }
.wl__kids { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.wl__kids li { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 6px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); }
.wl__kids .av { width: 32px; height: 32px; }
.v--welcome .link { align-self: center; margin-top: 6px; }

/* ---------- Mon dossier ---------- */
.ds__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -6px 0 6px; }
.ds__head .mono { color: var(--olive); }
.ds__head .link { margin-right: -4px; }
.dks { display: grid; gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.dk { padding: 14px 12px 12px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.dk.is-fresh { animation: glow 1.8s var(--ease); }
@keyframes glow { 15% { box-shadow: 0 0 0 5px rgba(240, 178, 61, .55); } 100% { box-shadow: 0 0 0 0 rgba(240, 178, 61, 0), var(--shadow); } }
.dk__top { display: flex; align-items: center; gap: 10px; padding: 0 2px; }
.dk__top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--display); font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.tl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 16px 0 10px; padding: 0; list-style: none; }
.tl li { position: relative; display: grid; justify-items: center; align-content: start; gap: 7px; font-size: 11.5px; font-weight: 650; line-height: 1.2; text-align: center; color: var(--ink-3); }
.tl li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 3px; background: var(--line); transition: background-color .4s; }
.tl li:first-child::before { display: none; }
.tl li.is-done::before, .tl li.is-on::before { background: var(--olive); }
.tl i { position: relative; z-index: 1; display: grid; place-items: center; width: 29px; height: 29px; border: 2px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--paper); transition: background-color .3s, border-color .3s; }
.tl i .ic { width: 15px; height: 15px; stroke-width: 2.8; }
.tl .is-done i { border-color: var(--olive); background: var(--olive); }
.tl .is-done:last-child i { border-color: var(--sun); background: var(--sun); color: var(--ink); }
.tl .is-done:last-child i .ic { fill: currentColor; stroke-width: 1.4; }
.tl .is-on i { border-color: var(--sun); background: var(--sun-soft); }
.tl .is-on i::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.35); } }
.tl .is-done span, .tl .is-on span { color: var(--ink); }
.tl li.is-pop i { animation: pop .6s var(--ease) .1s; }
.dk__now { padding: 0 2px; }

/* ---------- Grand écran : composition centrée avec l'illustration ---------- */
@media (min-width: 960px) {
  .pt { display: grid; grid-template-columns: minmax(0, 1fr) 460px; grid-template-rows: auto 1fr; column-gap: clamp(48px, 7vw, 112px); max-width: 1200px; min-height: calc(100vh - 34px); padding: 0 48px 56px; }
  .pt__head { grid-column: 1 / -1; height: 88px; }
  .pt__head .ol-logo svg { width: 40px; height: 40px; }
  .pt__head .ol-logo span { font-size: 18px; }
  .pt__art, body[data-view] .pt__art { display: block; grid-column: 1; grid-row: 2; align-self: center; width: 100%; max-width: 500px; margin: 0 auto; }
  .art-crop { aspect-ratio: auto; max-height: none; overflow: visible; border-radius: 0; }
  .art-crop .art { width: 100%; margin: 0; }
  .sticker { top: 2%; right: -2%; width: 124px; }
  .float-card { display: flex; }
  .float-card--a { left: -6%; top: 20%; }
  .float-card--b { right: -8%; bottom: 18%; }
  .pt__panel { display: flex; flex-direction: column; grid-column: 2; grid-row: 2; align-self: center; min-height: 600px; padding: 34px 36px 30px; border: 1px solid var(--line); border-radius: 30px; background: var(--paper); box-shadow: 0 1px 0 rgba(29, 38, 23, .04), 0 40px 80px -48px rgba(29, 38, 23, .5); }
  .views { display: flex; flex: 1; flex-direction: column; }
  .v--home { margin: auto 0; }
  .home__title { font-size: 50px; }
  .doors { margin-top: 30px; }
  .pt__panel .fl input, .pt__panel .rc-kids, .pt__panel .plan, .pt__panel .chip--b, .pt__panel .chip--t, .pt__panel .chip--d, .pt__panel .callme, .pt__panel .wa, .pt__panel .otp__c, .pt__panel .docs > li, .pt__panel .docs--check button, .pt__panel .dk { background: #fbf8ef; }
  .pt__panel .seg { background: #efe9da; }
}

@media (prefers-reduced-motion: reduce) {
  .tl .is-on i::after { animation: none; }
}
