/* ============================================================
   nb.css : la charte de My Notebook, posée par-dessus celle d'Exit (Charte 3.1).
   Couleurs (5 couleurs choisies par elle → 3 échelles OKLCH, même clarté au même cran) :
   - Olive  #71774B (500) … #383C23 (900) : ce qu'on touche + le progrès (barres, anneau, « lu », coches).
     Texte olive ≥ 600 (≥ 6:1). Bouton principal = olive 900 #383C23.
   - Bordeaux #85383E (700) : en retard / supprimer, rien d'autre (texte ≥ 7,9:1).
   - Bordeaux 950 #3E0911 : la marque (icône, nom, barre latérale). Jamais sur ce qu'on touche.
   - Sable #D7CAB7 (300) : seulement les fonds doux de l'identité (barre latérale, cases photo, post-its).
   - Encre et gris d'Exit : tout le reste (≈ 90 % de l'écran). Fond blanc.
   Typo : SF Pro partout ; Times New Roman pour les titres de livres seulement (demande).
   Pas de nuance écrite à la main : toujours une variable ci-dessous.
   ============================================================ */
:root {
  --ol50: #F6F8F0; --ol100: #ECEFDE; --ol200: #D9DEC1; --ol300: #BCC398; --ol400: #969E6E; --ol500: #71774B; --ol600: #5F653C; --ol700: #535834; --ol800: #474B2B; --ol900: #383C23; --ol950: #1F2211;
  --bx50: #FFF4F4; --bx100: #FFE6E6; --bx200: #FFCCCD; --bx300: #F5A5A7; --bx400: #DA767B; --bx500: #B14F56; --bx600: #984047; --bx700: #85383E; --bx800: #742D33; --bx900: #602127; --bx950: #3E0911;
  --sa50: #F9F6F2; --sa100: #F1ECE5; --sa200: #E1DACE; --sa300: #D7CAB7; --sa400: #A49681; --sa500: #7E705C; --sa600: #6A5F4E;
  /* Exit → My Notebook : les deux échelles d'Exit (bleu nuit, sapin) deviennent l'olive, cran pour cran */
  --bn50: var(--ol50); --bn100: var(--ol100); --bn200: var(--ol200); --bn300: var(--ol300); --bn400: var(--ol400); --bn500: var(--ol500); --bn600: var(--ol600); --bn700: var(--ol700); --bn800: var(--ol800); --bn900: var(--ol900);
  --sp50: var(--ol50); --sp100: var(--ol100); --sp200: var(--ol200); --sp300: var(--ol300); --sp400: var(--ol400); --sp500: var(--ol500); --sp600: var(--ol500); --sp700: var(--ol600); --sp800: var(--ol800); --sp900: var(--ol900);
  --accent: var(--ol600); --accent-f: rgba(113,119,75,.12); --bleu: var(--ol600); --vert: var(--ol500); --v600: var(--ol500);
  --ok: var(--ol500); --ok-t: var(--ol600); --err: var(--bx500); --err-t: var(--bx700);
  --marque: linear-gradient(135deg, var(--sa300), var(--bx700));
  --fond: #FFFFFF;
  --livre: "Times New Roman", Times, "Liberation Serif", serif;
}
/* ---------- identité : barre latérale « sable + olive », nom et icône bordeaux 950 ---------- */
.side { background: radial-gradient(95% 36% at 8% 0%, rgba(215,202,183,.62), rgba(215,202,183,0) 74%), radial-gradient(100% 30% at 100% 24%, rgba(255,230,230,.55), rgba(255,230,230,0) 72%), radial-gradient(150% 30% at 50% 104%, rgba(217,222,193,.85), rgba(217,222,193,0) 76%), var(--sa50) !important; }
.si-pilule { background: rgba(255,255,255,.9) !important; box-shadow: 0 .5px 2px rgba(56,60,35,.12), 0 0 0 .5px rgba(56,60,35,.06) !important; }
.si.on .sic { color: var(--ol600) !important; }
.sic { color: var(--texte2); }
.nb-marque { gap: 9px; height: 34px; padding: 0 4px; color: var(--bx950); }
.nb-logo { display: inline-flex; align-items: center; justify-content: center; background: var(--bx950); color: #fff; flex: none; box-shadow: 0 1px 2px rgba(62,9,17,.25); }
.nb-mot { font-size: 17px; font-weight: 700; letter-spacing: -.3px; color: var(--bx950); white-space: nowrap; }
.btn-noir { background: var(--ol900); } .btn-noir:hover { background: var(--ol950); }
.pr-plusrond { background: var(--ol900); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline-color: var(--ol700); }
.onglet.on { color: var(--ol600); }
.pa-barre i, .barre i { background: var(--ol500); }
.pa-coche.lu { background: var(--ol500); } .pa-coche.cours { box-shadow: inset 0 0 0 2px var(--ol500); }
.pa-sig { background: var(--ol500); } .pa-bk.cours em { color: var(--ol700); }
.vp-delta.vert { color: var(--ol600); }
/* ---------- iPad et écrans tactiles : cibles de 44 px (Apple) ---------- */
html.tactile .si { height: 40px; font-size: 15px; gap: 12px; }
html.tactile .si.sous { height: 36px; font-size: 14px; }
html.tactile .sh { font-size: 12.5px; margin-top: 14px; }
html.tactile .tb-outils .btn-noir.petit, html.tactile .tb-outils .btn-gris.petit, html.tactile .tb-outils .pa-menu, html.tactile .tb-outils .pr-rech { height: 40px; border-radius: 20px; font-size: 14px; }
html.tactile .tb-outils .seg { height: 40px; border-radius: 20px; } html.tactile .tb-outils .seg button { border-radius: 18px; font-size: 13.5px; padding: 0 14px; }
html.tactile .vp-plus { height: 36px; padding: 0 14px 0 8px; font-size: 13.5px; }
html.tactile .vp-x { width: 36px; height: 36px; border-radius: 18px; }
html.tactile .pa-coche { width: 26px; height: 26px; }
html.tactile .pa-rond, html.tactile .pa-cap { width: 40px; } html.tactile .pa-cap button, html.tactile .pa-rond { height: 40px; }
/* ---------- titres de livres : Times New Roman ---------- */
.nb-titre { font-family: var(--livre) !important; font-weight: 400 !important; letter-spacing: 0 !important; }
.pa-ec-t b.nb-titre { font-size: 18px; } .pa-fm-b b.nb-titre { font-size: 16px; } .vp-dt-t b.nb-titre { font-size: 19px; line-height: 1.2; }
.nb-gt-livre h1.nb-titre { font-size: 32px; line-height: 36px; } .nb-gt-aut { font-size: 15px; color: var(--texte2); margin-top: 6px; }
/* ---------- Lecture ---------- */
.nb-ec .pa-ec-t { display: flex; flex-direction: column; }
.nb-prog { display: flex; align-items: center; gap: 8px; margin-top: 7px; } .nb-prog .pa-barre { width: 150px; } .nb-prog span:last-child { font-size: 12px; font-weight: 600; color: var(--texte2); font-variant-numeric: tabular-nums; }
.nb-page { margin-left: 0; gap: 5px; font-variant-numeric: tabular-nums; } .nb-page .sf { color: var(--ol500); } .nb-page small { font-weight: 500; color: var(--texte3); }
.pa-bk.nb-sel { transform: translateY(-8px); filter: drop-shadow(0 6px 8px rgba(56,60,35,.3)); }
.pa-etag-l { gap: 52px; }
.tel .pa-etag-l .pa-grp + .pa-grp { margin-left: 0; }
/* fiche (livre, voyage, film, tâche, sortie) : même squelette que le panneau d'un compte d'Exit */
.nb-etat { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--texte2); margin-top: 14px; }
.nb-pastille { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--ol100); color: var(--ol700); font-size: 12px; font-weight: 700; }
.nb-bloc { margin-top: 20px; }
.nb-bloc-t { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--texte2); margin-bottom: 8px; }
.nb-bloc-t .pa-wh-n { margin-left: 0; }
.nb-texte { font-size: 14px; line-height: 1.45; margin: 0; }
.nb-cit { margin: 0 0 8px; padding: 12px 14px; background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,30,50,.05); }
.nb-cit blockquote { margin: 0; font-family: var(--livre); font-size: 16.5px; line-height: 1.32; }
.nb-cit figcaption { font-size: 12px; color: var(--texte2); margin-top: 6px; }
.nb-fiche.t .nb-cit, .nb-fiche.t .nb-note { background: var(--g100); box-shadow: none; }
.nb-ets { display: inline-flex; gap: 2px; align-items: center; }
.nb-et { color: var(--filet3); display: inline-flex; padding: 0; } button.nb-et { padding: 3px; margin: -3px 0; } .nb-et.on { color: var(--ol500); }
.nb-fiche.t .nb-ets { gap: 6px; }
/* ---------- Voyages ---------- */
.nb-v .vp-col.nb-v-col { padding: 0; align-self: stretch; }
.nb-v .nb-carte { height: calc(100vh - 56px); }
.nb-carte-t { margin: 0 0 16px; } .nb-carte-t .pa-carte { height: 300px; border-radius: 18px; } .nb-carte-t.mini .pa-carte { height: 190px; } .nb-carte-t.mini .pa-ov { display: none; }
.nb-carte-s .pa-carte { height: 330px; border-radius: 18px; margin: 4px 0 18px; }
.pa-pin.nb-prevu { background: #fff; color: var(--ol600); box-shadow: inset 0 0 0 2px var(--ol500), 0 4px 12px rgba(29,31,12,.16); }
.pa-pin.nb-fait { background: var(--g200); color: var(--texte3); }
.nb-chiffres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-bottom: 14px; }
.nb-chiffres b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.5px; } .nb-chiffres span { font-size: 12.5px; color: var(--texte2); }
.nb-an { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 4px; } .nb-an b { font-size: 15px; } .nb-an small { font-size: 12.5px; color: var(--texte3); } .nb-an .sf { align-self: center; color: var(--texte2); }
.nb-voy { display: flex; align-items: center; gap: 10px; min-height: 56px; border-top: .5px solid var(--sep); color: var(--texte); border-radius: 0; }
.nb-voy.on { background: rgba(255,255,255,.9); border-radius: 12px; border-top-color: transparent; margin: 0 -8px; padding: 0 8px; box-shadow: 0 1px 2px rgba(0,30,50,.06); }
.nb-voy-t { flex: 1; min-width: 0; } .nb-voy-t b { display: block; font-size: 14.5px; } .nb-voy-t small { display: block; font-size: 12.5px; color: var(--texte2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-voy-p { width: 92px; display: flex; flex-direction: column; gap: 4px; } .nb-voy-p small { font-size: 11.5px; color: var(--texte2); text-align: right; }
.nb-voy-ph { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--texte3); font-variant-numeric: tabular-nums; }
.nb-prix { font-size: 13px; color: var(--texte2); white-space: nowrap; }
.nb-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.nb-photos.un { grid-template-columns: 1fr; }
.nb-ph-case { aspect-ratio: 1; border-radius: 12px; background: var(--sa100); color: var(--sa400); display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.nb-photos.un .nb-ph-case { aspect-ratio: auto; height: 132px; } .nb-ph-case small { font-size: 12px; font-weight: 600; color: var(--sa600); }
.nb-ph-case b { font-size: 15px; color: var(--sa600); }
.nb-prep { display: flex; align-items: center; gap: 10px; min-height: 44px; border-top: .5px solid var(--sep); font-size: 14px; } .nb-prep:first-child { border-top: 0; }
.nb-prep b { flex: 1; font-weight: 600; } .nb-prep .pa-barre { width: 80px; } .nb-prep > span:last-child { font-size: 13px; color: var(--texte2); font-variant-numeric: tabular-nums; }
.nb-ok { display: inline-flex; align-items: center; gap: 4px; color: var(--ol600) !important; font-weight: 600; } .nb-af { color: var(--texte2); }
.nb-lieux { display: flex; flex-direction: column; }
.nb-lieu { display: flex; align-items: center; gap: 10px; min-height: 54px; border-top: .5px solid var(--sep); } .nb-lieu:first-child { border-top: 0; }
.nb-lieu-ic { width: 30px; height: 30px; border-radius: 15px; background: #fff; color: var(--texte2); display: grid; place-items: center; flex: none; box-shadow: 0 1px 2px rgba(0,30,50,.06); }
.nb-fiche.t .nb-lieu-ic { background: var(--g100); box-shadow: none; }
.nb-lieu-t { flex: 1; min-width: 0; } .nb-lieu-t b { display: block; font-size: 14px; } .nb-lieu-t small { display: block; font-size: 12.5px; color: var(--texte2); }
.nb-plans { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }
/* ---------- Films et séries ---------- */
.nb-fs { display: flex; flex-direction: column; gap: 8px; padding: 2px 0 14px; }
.nb-filtres { display: flex; align-items: center; gap: 10px; } .nb-f-l { width: 92px; flex: none; font-size: 12.5px; font-weight: 600; color: var(--texte2); }
.nb-fs.t .nb-filtres { flex-direction: column; align-items: stretch; gap: 6px; } .nb-fs.t .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px; scrollbar-width: none; }
.nb-chip { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 15px; background: var(--remp2); font-size: 13px; font-weight: 600; color: var(--texte); white-space: nowrap; }
.nb-chip.on { background: var(--ol900); color: #fff; } .nb-chip.on .sf { color: #fff; }
.nb-chip.on-l { background: var(--ol100); color: var(--ol800); }
.nb-chip.plus { background: transparent; box-shadow: inset 0 0 0 1px var(--filet3); color: var(--texte2); padding: 0 10px; }
.nb-chip .sf { color: var(--texte2); }
html.tactile .nb-chip, .tel .nb-chip { height: 34px; border-radius: 17px; padding: 0 14px; font-size: 14px; }
.nb-cats { margin: 0 0 4px; } .tel .nb-cats { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 12px; padding: 0 20px; scrollbar-width: none; }
.nb-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 18px 12px; }
.tel .nb-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
.nb-film { display: flex; flex-direction: column; gap: 7px; color: var(--texte); min-width: 0; }
.nb-film.on .nb-aff { outline: 2.5px solid var(--ol500); outline-offset: 3px; }
.nb-film-t b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-film-t > span { display: flex; align-items: center; gap: 6px; margin-top: 3px; } .nb-film-t small { font-size: 11.5px; color: var(--texte3); }
.nb-aff { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; aspect-ratio: 2 / 3; padding: 10px 9px; border-radius: 10px; background: var(--sa100); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.06); overflow: hidden; color: var(--texte); }
.nb-aff b { font-size: 12.5px; line-height: 1.18; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; } .nb-aff small { font-size: 11px; color: var(--sa600); font-weight: 600; }
.nb-aff-ic { position: absolute; top: 9px; left: 9px; color: var(--sa400); }
.nb-aff.mini { width: 46px; padding: 0; } .nb-aff.mini b, .nb-aff.mini small { display: none; } .nb-aff.mini .nb-aff-ic { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.nb-aff.grand { width: 104px; flex: none; }
.nb-ecf-l { display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 6px 0; } .nb-ecf-l + .nb-ecf-l { border-top: .5px solid var(--sep); }
.nb-ecf-t { flex: 1; min-width: 0; color: var(--texte); } .nb-ecf-t b { display: block; font-size: 15px; } .nb-ecf-t small { display: block; font-size: 12.5px; color: var(--texte2); margin: 1px 0 7px; } .nb-ecf-t .pa-barre { width: 150px; }
.nb-film-h { display: flex; gap: 16px; align-items: flex-start; margin-top: 16px; } .nb-film-hd { flex: 1; min-width: 0; } .nb-film-hd .nb-etat { margin-top: 10px; }
.vp-pan .chips .nb-chip.on-l, .vp-pan .chips .nb-chip { background: #fff; } .vp-pan .chips .nb-chip.on-l { background: var(--ol100); } .vp-pan .chips .nb-chip.plus { background: transparent; }
.nb-seg-plein { display: flex; width: 100%; } .nb-seg-plein button { flex: 1; }
/* ---------- Ménage ---------- */
.nb-ts { display: flex; flex-direction: column; }
.nb-t { display: flex; align-items: center; gap: 14px; min-height: 58px; border-top: .5px solid var(--sep); } .nb-t:first-child { border-top: 0; }
.nb-t.on { background: var(--ol50); border-radius: 12px; border-top-color: transparent; margin: 0 -10px; padding: 0 10px; }
.nb-t.on + .nb-t { border-top-color: transparent; }
.nb-t-t { flex: 1; min-width: 0; color: var(--texte); } .nb-t-t b { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; } .nb-t-t b .sf { color: var(--texte3); }
.nb-t-t small { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--texte2); margin-top: 2px; } .nb-t-t small .sf { color: var(--texte3); }
.nb-t-q { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--texte2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nb-t.retard .nb-t-q { color: var(--err-t); font-weight: 600; }
.nb-t.fait .nb-t-t b { text-decoration: line-through; color: var(--texte2); }
.nb-g.retard > .wh { color: var(--err-t); } .nb-g.retard > .wh .sf { color: var(--err-t); }
.nb-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.nb-kv span { display: block; font-size: 12.5px; color: var(--texte2); } .nb-kv b { font-size: 15px; }
.nb-note { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(0,30,50,.05); } .nb-note p { margin: 0; font-size: 14px; line-height: 1.45; }
.nb-lien { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--accent); }
.nb-hist { display: flex; flex-wrap: wrap; gap: 6px; } .nb-hist span { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 13px; background: #fff; font-size: 12.5px; font-weight: 600; color: var(--texte2); }
.nb-fiche.t .nb-hist span { background: var(--g100); }
.vp-dt-act .btn-noir.petit { height: 34px; }
html.tactile .vp-dt-act .btn-noir.petit { height: 36px; }
.nb-freq { display: inline-flex; align-items: center; gap: 8px; } .nb-freq .nb-n { width: 56px; text-align: center; font-weight: 600; }
.nb-freq-ex { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--texte2); padding: 8px 4px 0; } .nb-freq-ex .sf { color: var(--ol500); }
.nb-ta { width: 100%; min-height: 96px; resize: vertical; line-height: 1.4; padding: 12px 14px !important; border: 0; }
.nb-ajouts { display: flex; gap: 8px; margin-top: 10px; } .nb-ajouts .vp-plus { margin-left: 0; }
/* ---------- Sorties ---------- */
.nb-infos { display: flex; flex-direction: column; margin-top: 12px; }
.nb-info { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: .5px solid var(--sep); } .nb-info:first-child { border-top: 0; }
.nb-info .vp-cpt-ic { margin-top: 2px; } .nb-info small { display: block; font-size: 12px; color: var(--texte2); } .nb-info b { font-size: 14px; font-weight: 500; line-height: 1.4; } .nb-info .nb-plans { margin-left: 6px; } .nb-info .nb-lien { margin-top: 0; }
/* ---------- Moodboard : tableau en liège (texture faite en CSS), épingles = SF Symbol pin.fill ---------- */
.nb-mood { position: relative; margin: -18px -20px; height: calc(100vh - 56px); }
/* le liège : sa photo (cadre en bois + liège), le cadre en border-image pour garder ses coins à toute taille */
.nb-liege { position: absolute; inset: 16px; border-style: solid; border-width: 20px; border-color: transparent; border-image: url(assets/nb/liege-cadre.jpg) 52 stretch; background: url(assets/nb/liege-fond.jpg) center / cover; background-clip: padding-box; box-shadow: 0 10px 30px rgba(36,30,20,.18); }
.nb-liege-in { position: absolute; inset: 34px 30px 96px; }
.nb-photo, .nb-postit { position: absolute; margin: 0; }
.nb-photo { background: #fff; padding: 8px 8px 0; box-shadow: 0 2px 3px rgba(0,0,0,.18), 0 10px 22px rgba(0,0,0,.22); }
.nb-photo-img { display: block; width: 100%; }
.nb-photo figcaption { font-size: 12px; color: var(--texte2); text-align: center; padding: 6px 0 8px; }
.nb-photo:not(:has(figcaption)) { padding-bottom: 8px; }
.nb-img-salon { background: linear-gradient(165deg, var(--sa50), var(--sa200) 45%, var(--sa400) 80%, var(--sa600)); }
.nb-img-plantes { background: linear-gradient(170deg, var(--ol100), var(--ol300) 40%, var(--ol500) 75%, var(--ol800)); }
.nb-img-cuisine { background: linear-gradient(165deg, var(--sa100), var(--ol200) 45%, var(--ol500) 80%, var(--ol700)); }
.nb-img-chambre { background: linear-gradient(170deg, var(--bx50), var(--bx100) 45%, var(--bx300) 78%, var(--bx600)); }
.nb-img-lumiere { background: linear-gradient(160deg, #fff, var(--sa100) 40%, var(--sa300) 75%, var(--sa500)); }
.nb-postit { padding: 20px 14px 16px; min-height: 120px; font-size: 15px; line-height: 1.35; color: var(--texte); box-shadow: 0 2px 3px rgba(0,0,0,.12), 0 12px 20px rgba(0,0,0,.16); }
.nb-postit p { margin: 0; }
.nb-epingle { position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(12deg); color: var(--bx700); filter: drop-shadow(0 3px 2px rgba(0,0,0,.35)); z-index: 2; }
.nb-sel-cadre { position: absolute; inset: -10px; border: 2px solid var(--ol500); border-radius: 4px; pointer-events: none; }
.nb-sel-cadre i { position: absolute; width: 14px; height: 14px; border-radius: 7px; background: #fff; box-shadow: 0 0 0 2px var(--ol500); }
.nb-sel-cadre i:nth-child(1) { left: -8px; top: -8px; } .nb-sel-cadre i:nth-child(2) { right: -8px; top: -8px; } .nb-sel-cadre i:nth-child(3) { left: -8px; bottom: -8px; } .nb-sel-cadre i:nth-child(4) { right: -8px; bottom: -8px; }
.nb-sel-cadre b { position: absolute; left: 50%; top: -46px; width: 28px; height: 28px; margin-left: -14px; border-radius: 14px; background: #fff; color: var(--ol700); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--ol500), 0 2px 6px rgba(0,0,0,.2); }
.nb-sel-cadre b::after { content: ''; position: absolute; left: 50%; top: 30px; width: 2px; height: 14px; margin-left: -1px; background: var(--ol500); }
.nb-outils-flot { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 6px; height: 60px; padding: 0 10px; border-radius: 30px; background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 10px 30px rgba(36,30,20,.28), 0 0 0 .5px rgba(0,0,0,.08); }
.nb-of { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: 22px; background: var(--remp2); font-size: 14px; font-weight: 600; }
.nb-of-sep { width: 1px; height: 28px; background: var(--sep); margin: 0 6px; }
.nb-pastille-c { width: 30px; height: 30px; border-radius: 15px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); flex: none; position: relative; }
.nb-pastille-c::after { content: ''; position: absolute; inset: -7px; }
.nb-pastille-c.on { box-shadow: inset 0 0 0 1px rgba(0,0,0,.14), 0 0 0 2px #fff, 0 0 0 4px var(--ol500); }
.nb-gt-mood .pa-menu { margin-bottom: 6px; }
.tel .nb-liege { position: relative; inset: auto; height: 600px; margin: 0 -8px; border-width: 14px; }
.tel .nb-liege-in { inset: 26px 18px 30px; }
.tel .nb-postit { font-size: 14px; padding: 18px 12px 12px; min-height: 104px; }
.nb-outils-flot.t { position: fixed; bottom: calc(108px + env(safe-area-inset-bottom)); height: 56px; padding: 0 8px; gap: 4px; }
.nb-outils-flot.t .nb-of { height: 44px; padding: 0 12px; font-size: 13.5px; } .nb-outils-flot.t .nb-pastille-c { width: 26px; height: 26px; } .nb-outils-flot.t .nb-of-sep { margin: 0 3px; }
.mac .pa-cle .pa-kpis { display: flex; gap: 26px; }
.nb-filtres .chips, .nb-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.pa-pin.sel.nb-prevu { background: var(--ol800); color: #fff; box-shadow: 0 0 0 4px rgba(71,76,36,.18), 0 6px 16px rgba(29,31,12,.25); }
.nb-of { white-space: nowrap; }
.nb-outils-flot.t .nb-of { padding: 0 11px; } .nb-outils-flot.t .nb-pastille-c { width: 24px; height: 24px; }
/* ---------- vérification (15 nov.) : textes gris ≥ 4,5:1 même sur le panneau gris ; cibles tactiles de 44 px ---------- */
:root { --texte2: #636368; --texte3: #707075; }   /* Exit : #6C6C70 / #8A8A8E (3,4:1 : trop pâle pour du texte) */
.feuille-fond { background: rgba(0,0,0,.22); }
.pa-bk.alire em, .pa-bk.cours em { color: var(--texte2); }
/* zone tactile agrandie sans changer le dessin (comme .pa-coche d'Exit) */
.vp-x, .vp-plus, .nb-chip, .nb-et, .nb-plans, .nb-lien, .pa-rond, .pa-cap button, .capg-btn, .pa-fm-b, .nb-pastille-c, .seg button, .pa-menu, .pr-rech, .btn-noir.petit, .btn-gris.petit, .nb-page, .pl-li, .nb-voy, .feuille-x, .retour-h, .pr-mseg button, .nb-film, .pa-ec-t, .nb-ecf-t, .pa-pin { position: relative; }
.vp-x::after, .vp-plus::after, .nb-chip::after, .nb-et::after, .nb-plans::after, .nb-lien::after, .pa-rond::after, .pa-cap button::after, .capg-btn::after, .pa-fm-b::after, .seg button::after, .pa-menu::after, .pr-rech::after, .btn-noir.petit::after, .btn-gris.petit::after, .pl-li::after, .feuille-x::after, .retour-h::after, .pr-mseg button::after, .nb-film::after, .pa-ec-t::after, .nb-ecf-t::after { content: ''; position: absolute; inset: -6px -2px; }
.nb-et::after { inset: -8px -4px; } .nb-plans::after, .nb-lien::after { inset: -14px -8px; } .capg-btn::after { inset: -9px -7px; } .vp-x::after { inset: -4px; }
.nb-t-t { min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
.marque { min-height: 44px; }
.nb-voy, .nb-lieu, .nb-t { min-height: 56px; }
.nb-page small { color: var(--texte2); }
.pr-shf .btn-noir, .pr-shf .btn-gris, .pl-tq { position: relative; } .pr-shf .btn-noir::after, .pr-shf .btn-gris::after, .pl-tq::after { content: ''; position: absolute; inset: -3px -2px; }
.pa-bk.lu em { color: #fff; }
.pr-nav button { position: relative; } .pr-nav button::after { content: ''; position: absolute; inset: -4px -2px; }
html.tactile .pr-lr { min-height: 44px; font-size: 14px; }
html.tactile .btn-noir.large, html.tactile .btn-gris.large { height: 44px; border-radius: 22px; }

/* ===== 2e passe (15 nov. soir) ===== */
.nb-marque { padding: 0 6px; } .nb-mot { font-size: 18px; }
.nb-cit { position: relative; padding-left: 40px; } .nb-cit-ic { position: absolute; left: 14px; top: 14px; color: var(--ol500); }
/* Accueil */
.nb-acc-tete { padding: 6px 4px 18px; } .nb-acc-tete h1 { font-size: 34px; font-weight: 700; letter-spacing: -1px; } 
.nb-acc { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.nb-tuile { background: #fff; border-radius: 20px; padding: 14px 16px 16px; box-shadow: 0 1px 2px rgba(0,30,50,.05), 0 6px 20px rgba(0,30,50,.06); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.nb-tuile.t-lecture, .nb-tuile.t-menage { grid-column: span 3; } .nb-tuile.t-voyage, .nb-tuile.t-cit { grid-column: span 3; } .nb-tuile.t-film, .nb-tuile.t-sortie, .nb-tuile.t-tirelire { grid-column: span 2; }
.nb-acc.t { grid-template-columns: 1fr; gap: 12px; } .nb-acc.t .nb-tuile { grid-column: auto; }
.nb-tuile-h { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--texte2); min-height: 24px; } .nb-tuile-h b { flex: 1; font-weight: 600; } .nb-tuile-h .sf:first-child { color: var(--ol500); } .nb-tuile-h .sf:last-child { color: var(--texte3); }
.nb-acc-livre { display: flex; gap: 14px; align-items: center; } .nb-acc-livre b.nb-titre { display: block; font-size: 20px; line-height: 1.2; } .nb-acc-livre small { display: block; font-size: 12.5px; color: var(--texte2); margin-top: 2px; }
.nb-plus1 { align-self: flex-start; margin-left: 0; }
.nb-acc-men { display: flex; gap: 16px; align-items: center; } .nb-acc-men .nb-ts { flex: 1; min-width: 0; }
.nb-acc-anneau { position: relative; width: 64px; height: 64px; flex: none; display: grid; place-items: center; } .nb-acc-anneau svg { position: absolute; inset: 0; } .nb-acc-anneau b { font-size: 20px; font-weight: 700; } .nb-acc-anneau small { font-size: 12px; color: var(--texte2); }
.nb-t.mini { min-height: 40px; gap: 10px; } .nb-t.mini .nb-t-t { min-height: 40px; } .nb-t.mini .nb-t-t b { font-size: 14px; font-weight: 500; }
.nb-acc-voy { display: flex; align-items: center; gap: 16px; } .nb-acc-voy b { display: block; font-size: 17px; } .nb-acc-voy small { font-size: 12.5px; color: var(--texte2); }
.nb-acc-jx { display: flex; align-items: baseline; gap: 2px; color: var(--ol700); } .nb-acc-jx small { font-size: 16px; font-weight: 700; } .nb-acc-jx b { font-size: 40px; font-weight: 700; letter-spacing: -1.4px; font-variant-numeric: tabular-nums; }
.nb-trajet { display: flex; align-items: center; gap: 6px; color: var(--texte3); } .nb-tr-pt { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 11px; background: var(--g100); }
.nb-tr-ligne { flex: 1; height: 2px; position: relative; background-image: linear-gradient(90deg, var(--filet3) 50%, transparent 50%); background-size: 8px 2px; }
.nb-avion { position: absolute; top: 50%; left: 34%; transform: translate(-50%, -50%); color: var(--ol600); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 13px; background: #fff; box-shadow: 0 1px 4px rgba(0,30,50,.15); }
.nb-prep.mini { min-height: 32px; border: 0; font-size: 13px; }
.nb-acc-cit { margin: 0; font-family: var(--livre); font-size: 19px; line-height: 1.32; } .nb-acc-src { font-size: 12.5px; color: var(--texte2); } .nb-acc-src .nb-titre { font-size: 14px; }
.nb-acc-film, .nb-acc-sortie { display: flex; gap: 12px; align-items: center; } .nb-acc-film b, .nb-acc-sortie b { display: block; font-size: 15px; } .nb-acc-film small, .nb-acc-sortie small { font-size: 12.5px; color: var(--texte2); }
.nb-acc-tir b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.8px; } .nb-acc-tir small { display: block; font-size: 12.5px; color: var(--texte2); margin: 2px 0 10px; }
.nb-acc-sortie .nb-lieu-ic { background: var(--g100); box-shadow: none; }
/* voyages : J-, pays visités */
.nb-jx { display: inline-flex; align-items: baseline; gap: 1px; padding: 0 10px; height: 30px; border-radius: 15px; background: var(--ol100); color: var(--ol800); font-variant-numeric: tabular-nums; } .nb-jx small { font-size: 11px; font-weight: 700; } .nb-jx b { font-size: 15px; font-weight: 700; line-height: 30px; }
.nb-pays { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 8px; } .nb-pays-n { font-size: 12.5px; color: var(--texte2); margin: 0 0 6px; }
/* films */
.nb-cesoir { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 14px; margin: 0 0 14px; border-radius: 16px; background: var(--g100); color: var(--texte); } .nb-cesoir > span:nth-child(2) { flex: 1; } .nb-cesoir b { display: block; font-size: 15px; } .nb-cesoir small { font-size: 12.5px; color: var(--texte2); } .nb-cesoir > .sf { color: var(--texte3); }
.nb-cesoir-ic { width: 38px; height: 38px; border-radius: 19px; background: #fff; display: grid; place-items: center; color: var(--bx700); box-shadow: 0 1px 2px rgba(0,30,50,.08); }
.nb-eps { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.nb-ep { height: 36px; border-radius: 10px; background: #fff; font-size: 13px; font-weight: 600; color: var(--texte2); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--filet); } .nb-fiche.t .nb-ep { background: var(--g100); box-shadow: none; }
.nb-ep.vu { background: var(--ol500) !important; color: #fff; box-shadow: none; } .nb-ep.suiv { box-shadow: inset 0 0 0 2px var(--ol500) !important; color: var(--ol700); }
.btn-gris .sf, .btn-gris.petit .sf { color: var(--texte); }
/* ménage : journée finie */
.nb-bravo { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 0 0 12px; border-radius: 16px; background: var(--ol50); box-shadow: inset 0 0 0 1px var(--ol200); }
.nb-bravo b { display: block; font-size: 15px; } .nb-bravo small { font-size: 12.5px; color: var(--texte2); }
.nb-bravo-ic { width: 40px; height: 40px; border-radius: 20px; background: var(--ol500); color: #fff; display: grid; place-items: center; flex: none; }
/* sorties faites */
.nb-faites { display: flex; flex-direction: column; }
.nb-fa { display: flex; gap: 14px; padding: 12px 0; border-top: .5px solid var(--sep); } .nb-fa:first-child { border-top: 0; } .nb-fa .nb-ph-case { width: 76px; height: 76px; flex: none; }
.nb-fa-t b { display: block; font-size: 15px; } .nb-fa-t small { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--texte2); margin: 2px 0 6px; } .nb-fa-t p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.4; }
/* moodboard : tous les tableaux */
.nb-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding: 6px 4px; } .nb-tabs.t { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; padding: 0; }
.nb-tab { display: flex; flex-direction: column; gap: 10px; color: var(--texte); text-align: left; }
.nb-tab-liege { position: relative; aspect-ratio: 4 / 3; border-style: solid; border-width: 10px; border-color: transparent; border-image: url(assets/nb/liege-cadre.jpg) 52 stretch; background: url(assets/nb/liege-fond.jpg) center / cover; background-clip: padding-box; box-shadow: 0 4px 14px rgba(36,30,20,.16); overflow: hidden; }
.nb-tab-liege.vide { border-image: none; border: 2px dashed var(--filet3); background: var(--g50); display: grid; place-items: center; color: var(--texte3); box-shadow: none; }
.nb-tab-ph { position: absolute; width: 38%; aspect-ratio: 1; border: 4px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); left: calc(8% + var(--i) * 28%); top: calc(14% + var(--i) * 9%); transform: rotate(calc(var(--i) * 6deg - 6deg)); }
.nb-tab-t b { display: block; font-size: 15px; } .nb-tab-t small { font-size: 12.5px; color: var(--texte2); }
/* feuilles */
.nb-pg { display: flex; flex-direction: column; gap: 16px; padding: 4px 0 6px; }
.nb-pg-livre { display: flex; flex-direction: column; } .nb-pg-livre b.nb-titre { font-size: 22px; line-height: 1.2; } .nb-pg-livre small { font-size: 13px; color: var(--texte2); }
.nb-pg-livre.g { flex-direction: row; align-items: center; gap: 12px; margin-bottom: 14px; } .nb-pg-livre.g > .sf { color: var(--ol500); } .nb-pg-livre.g b { display: block; font-size: 16px; } .nb-pg-livre.g b.nb-titre { font-size: 19px; }
.nb-pg-n { display: flex; align-items: center; justify-content: center; gap: 26px; } .nb-pg-n > span { text-align: center; min-width: 140px; } .nb-pg-n b { display: block; font-size: 64px; font-weight: 700; letter-spacing: -2.4px; line-height: 70px; font-variant-numeric: tabular-nums; } .nb-pg-n small { font-size: 14px; color: var(--texte2); }
.nb-rond { width: 52px; height: 52px; border-radius: 26px; background: var(--remp2); display: grid; place-items: center; color: var(--texte); flex: none; } .nb-rond.petit { width: 36px; height: 36px; border-radius: 18px; position: relative; } .nb-rond.petit::after { content: ''; position: absolute; inset: -4px; } .nb-rond.on { background: var(--ol500); color: #fff; }
.nb-reglette { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--ol500) var(--p), var(--remp2) var(--p)); outline: none; margin: 8px 0; }
.nb-reglette::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 14px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25), 0 0 0 .5px rgba(0,0,0,.08); }
.nb-pg-raccourcis { display: flex; gap: 8px; justify-content: center; }
.nb-pg-reste { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--texte2); } .nb-pg-reste .sf { color: var(--ol500); }
.nb-fini { align-self: stretch; } .nb-fini .sf { color: var(--ol600); }
.nb-titre-in { font-family: var(--livre); font-size: 17px; }
.nb-ets.in { gap: 4px; } .nb-ets.grand { display: flex; justify-content: center; gap: 10px; margin: 4px 0 10px; }
.nb-ta-cit { font-family: var(--livre); font-size: 18px; line-height: 1.35; }
.nb-astuce { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--texte2); padding: 12px 4px 0; } .nb-astuce .sf { color: var(--ol500); flex: none; }
.nb-rech-g { display: flex; height: 44px !important; border-radius: 12px !important; margin: 0 0 10px; width: 100%; font-size: 15px; }
.nb-res { display: flex; flex-direction: column; background: #fff; border-radius: 14px; padding: 0 12px; box-shadow: 0 1px 2px rgba(0,30,50,.05); }
.nb-res-l { display: flex; align-items: center; gap: 10px; min-height: 58px; border-top: .5px solid var(--sep); } .nb-res-l:first-child { border-top: 0; } .nb-res-l .nb-lieu-ic { background: var(--g100); box-shadow: none; } .nb-res-l .vp-plus { margin-left: 0; }
.nb-deja { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ol600); }
.nb-choisis { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0 0; }
.nb-cs { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 6px 0 4px; }
.nb-cs-pile { position: relative; width: 100%; height: 230px; }
.nb-cs-c { position: absolute; left: 50%; top: 10px; width: 120px; transform: translateX(calc(-50% + (var(--i) - 1.5) * 46px)) rotate(calc((var(--i) - 1.5) * 9deg)); transform-origin: 50% 120%; }
.nb-cs-c .nb-aff { box-shadow: 0 6px 18px rgba(0,0,0,.18); background: var(--sa200); } .nb-cs-c:has(.gagne) { z-index: 3; } .nb-aff.gagne { background: var(--sa300); outline: 3px solid var(--ol500); outline-offset: 3px; transform: translateY(-12px) scale(1.08); }
.nb-cs-res { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; } .nb-cs-res b { font-size: 22px; letter-spacing: -.4px; } .nb-cs-res small { font-size: 13px; color: var(--texte2); }
.nb-cs-f, .nb-quoi .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.nb-fete-act { display: flex; gap: 10px; width: 100%; } .nb-fete-act > * { flex: 1; }
.nb-quoi { display: flex; flex-direction: column; align-items: stretch; gap: 10px; } .nb-quoi .pr-cap { text-align: center; } .nb-quoi .nb-cs-res .nb-lieu-ic { background: var(--ol100); color: var(--ol700); box-shadow: none; width: 38px; height: 38px; border-radius: 19px; }
.nb-de { position: relative; width: 76px; height: 76px; margin: 6px auto 4px; border-radius: 18px; background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.16), inset 0 0 0 1px rgba(0,0,0,.06); }
.nb-de i { position: absolute; width: 13px; height: 13px; border-radius: 7px; background: var(--bx700); } .nb-de i:nth-child(1) { left: 14px; top: 14px; } .nb-de i:nth-child(2) { right: 14px; top: 14px; } .nb-de i:nth-child(3) { left: 31.5px; top: 31.5px; } .nb-de i:nth-child(4) { left: 14px; bottom: 14px; } .nb-de i:nth-child(5) { right: 14px; bottom: 14px; }
.nb-pi-ap { display: grid; place-items: center; padding: 26px 0 8px; } .nb-pi-ap .nb-postit { position: relative; width: 220px; min-height: 180px; font-size: 18px; transform: rotate(-2deg); } .nb-pi-ap .nb-postit p { outline: none; }
.nb-pi-cs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); justify-items: center; row-gap: 6px; } .nb-pi-cs .nb-pastille-c { width: 40px; height: 40px; border-radius: 20px; } .nb-pi-cs span { font-size: 12px; color: var(--texte2); grid-row: 2; }
.nb-bloc-t.c { justify-content: center; margin: 4px 0 0; }
/* la fête du livre fini */
.feuille.nb-fete { left: 50%; top: 50%; right: auto; bottom: auto; width: 420px; max-width: calc(100% - 32px); transform: translate(-50%, -50%) scale(.92); border-radius: 28px; overflow: visible; background: #fff; }
.feuille.nb-fete.vu { transform: translate(-50%, -50%) scale(1); }
body.tel .feuille.nb-fete { bottom: auto; }
.nb-fete .feuille-corps { overflow: visible; padding: 0; }
.nb-fete-c { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 34px 26px 24px; }
.nb-fete-livre { display: block; animation: nb-saut 1s var(--rebond) .15s both; }
.nb-fete-sur { font-size: 13px; font-weight: 700; color: var(--ol600); text-transform: uppercase; letter-spacing: .08em; margin-top: 8px; }
.nb-fete h2 { font-size: 28px; line-height: 1.15; margin: 0; }
.nb-fete p { margin: 0 0 10px; font-size: 14px; color: var(--texte2); } .nb-fete sup { font-size: 9px; }
.nb-confettis { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 60; }
.nb-fete .nb-confettis { position: absolute; inset: -260px -200px; }
.nb-confettis i { position: absolute; top: -24px; border-radius: 2px; animation: nb-tombe linear both; }
/* ===== Animations (toutes coupées si « Réduire les animations ») ===== */
@keyframes nb-tombe { from { transform: translate(0, 0) rotate(0); opacity: 1; } 85% { opacity: 1; } to { transform: translate(var(--x), 105vh) rotate(var(--r)); opacity: 0; } }
@keyframes nb-saut { 0% { transform: translateY(40px) scale(.6) rotate(-14deg); opacity: 0; } 60% { transform: translateY(-10px) scale(1.08) rotate(4deg); opacity: 1; } 100% { transform: none; } }
@keyframes nb-pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.22); opacity: 1; } 100% { transform: scale(1); } }
@keyframes nb-roule { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes nb-barre { from { transform: scaleX(0); } }
@keyframes nb-anneau { from { stroke-dashoffset: var(--de); } to { stroke-dashoffset: var(--a); } }
@keyframes nb-vol { from { left: 0; } }
@keyframes nb-pose { from { transform: translateY(-46px) rotate(calc(var(--a, 0deg) - 10deg)) scale(1.06); opacity: 0; } 70% { opacity: 1; } }
@keyframes nb-epingle { 0% { transform: translateX(-50%) translateY(-34px) rotate(50deg); opacity: 0; } 70% { transform: translateX(-50%) translateY(3px) rotate(8deg); opacity: 1; } 100% { transform: translateX(-50%) rotate(12deg); } }
@keyframes nb-bat { 0% { transform: translateX(-50%) translateY(10px) rotate(calc(var(--i) * 70deg - 100deg)); opacity: .3; } 45% { transform: translateX(calc(-50% + (1.5 - var(--i)) * 60px)) rotate(calc((1.5 - var(--i)) * 14deg)); opacity: 1; } }
@keyframes nb-gagne { 0%, 55% { transform: none; outline-color: transparent; } 100% { transform: translateY(-12px) scale(1.08); } }
@keyframes nb-de { 0% { transform: rotate(-600deg) scale(.5); } 70% { transform: rotate(20deg) scale(1.08); } 100% { transform: none; } }
@keyframes nb-raye { from { background-size: 0 1.5px; } }
@keyframes nb-scintille { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.25) rotate(14deg); } }
@keyframes nb-monte { from { transform: translateY(14px); opacity: 0; } }
.nb-roll, .nb-flip { display: inline-block; animation: nb-roule .6s var(--ressort) both; }
.pa-barre i { transform-origin: left; animation: nb-barre .9s var(--ressort) .1s both; }
.nb-arc { animation: nb-anneau 1.1s var(--ressort) .2s both; }
.nb-avion { animation: nb-vol 1.6s var(--sortie) .3s both; }
.nb-ets.grand .nb-et, .nb-fiche .nb-ets .nb-et.on { animation: nb-pop .5s var(--rebond) both; animation-delay: calc(var(--i, 1) * 70ms + .15s); }
.pa-coche.lu .sf, .nb-ep.vu .sf { animation: nb-pop .4s var(--rebond) both; }
.nb-t.fait .nb-t-t b { text-decoration: none !important; background: linear-gradient(currentColor, currentColor) 0 55% / 100% 1.5px no-repeat; animation: nb-raye .5s var(--sortie) .2s both; }
.nb-liege .nb-photo, .nb-liege .nb-postit, .nb-pose { animation: nb-pose .7s var(--rebond) both; animation-delay: calc(var(--n, 0) * 70ms); }
.nb-liege .nb-epingle, .nb-pose .nb-epingle { animation: nb-epingle .5s var(--rebond) both; animation-delay: calc(var(--n, 0) * 70ms + .45s); }
.nb-cs-c { animation: nb-bat 1.3s var(--ressort) both; animation-delay: calc(var(--i) * 60ms); } .nb-aff.gagne { animation: nb-gagne 1.6s var(--rebond) both; }
.nb-cs-res, .nb-quoi .nb-cs-res { animation: nb-monte .5s var(--sortie) 1.1s both; }
.nb-de { animation: nb-de 1s var(--ressort) both; }
.nb-bravo { animation: nb-pop .5s var(--rebond) both; } .nb-bravo-ic .sf { animation: nb-scintille 1.6s ease-in-out .5s 2; }
.nb-sel-cadre { animation: nb-pop .4s var(--rebond) 1s both; }
@media (prefers-reduced-motion: reduce) { [class*="nb-"], [class*="nb-"] *, .pa-barre i, .pa-coche .sf { animation: none !important; } .nb-confettis { display: none; } }

.nb-t.fait .nb-t-t b { align-self: flex-start; }
.feuille.nb-fete, body.tel .feuille.nb-fete { left: 50% !important; top: 50% !important; right: auto !important; bottom: auto !important; width: min(420px, calc(100% - 32px)) !important; max-height: none !important; border-radius: 28px !important; transform: translate(-50%, -50%) scale(.92) !important; padding: 0 !important; }
.feuille.nb-fete.vu, body.tel .feuille.nb-fete.vu { transform: translate(-50%, -50%) !important; }
.nb-fete .feuille-poignee { display: none; }
.nb-tuile-h { min-height: 44px; margin: -10px 0 -8px; }
.btn-noir.large, .btn-gris.large { height: 44px; border-radius: 22px; }
.nb-ep, .pr-cat { position: relative; } .nb-ep::after, .pr-cat::after { content: ''; position: absolute; inset: -4px -2px; } .pr-cat::after { inset: -8px -2px; }
.nb-reglette { height: 44px; background: linear-gradient(90deg, var(--ol500) var(--p), var(--remp2) var(--p)) center / 100% 8px no-repeat; margin: 0; }
.vp-note { min-height: 44px; }

/* ===== Moodboard v3 (30 nov.) : comme un vrai tableau en liège =====
   photos tirées sur papier (bord blanc, léger reflet), post-its carrés qui se décollent en bas, punaise ou masking tape,
   nuancier de peinture, échantillon de tissu aux bords dentelés ; ombres qui suivent la hauteur de l'objet. */
.nb-liege-in { inset: 30px 26px 100px; }
.nb-photo { padding: 7px 7px 0; background: #fff; border-radius: 1px;
  box-shadow: 0 1px 1px rgba(0,0,0,.22), 0 4px 6px rgba(40,25,10,.22), 0 14px 22px -6px rgba(40,25,10,.38); }
.nb-photo:not(:has(figcaption)) { padding-bottom: 7px; }
.nb-photo-img { background: var(--sa200) center / cover; position: relative; }
.nb-photo-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255,255,255,.22), rgba(255,255,255,0) 38%); }
.nb-photo figcaption { font-size: 12.5px; color: var(--texte); padding: 7px 0 9px; }
/* post-it : carré, plus foncé là où il colle, coin bas qui se soulève */
.nb-postit { aspect-ratio: 1; min-height: 0; padding: 22px 13px 12px; border-radius: 0 0 2px 2px;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,0) 22%), var(--pi, var(--sa200));
  box-shadow: 0 1px 1px rgba(0,0,0,.12), 0 6px 8px -3px rgba(40,25,10,.28), 7px 14px 14px -9px rgba(40,25,10,.5); }
.nb-postit::after { content: ''; position: absolute; right: 0; bottom: 0; width: 34%; height: 18%; background: linear-gradient(160deg, rgba(255,255,255,0) 40%, rgba(0,0,0,.07)); pointer-events: none; }
.nb-postit p { font-size: 14.5px; line-height: 1.32; letter-spacing: -.1px; }
/* masking tape : bande translucide aux bouts déchirés */
.nb-scotch { position: absolute; top: -12px; left: 50%; width: 46%; max-width: 92px; height: 24px; transform: translateX(-50%) rotate(-3deg); z-index: 2;
  background: rgba(241,236,229,.78); box-shadow: 0 1px 2px rgba(0,0,0,.12);
  clip-path: polygon(0 8%, 4% 0, 9% 10%, 14% 0, 86% 0, 91% 9%, 96% 0, 100% 10%, 100% 92%, 95% 100%, 90% 90%, 85% 100%, 15% 100%, 10% 91%, 5% 100%, 0 90%); }
.nb-epingle { top: -12px; filter: drop-shadow(1px 4px 2px rgba(30,15,5,.45)); }
/* nuancier de peinture */
.nb-nuancier { position: absolute; margin: 0; padding: 7px 7px 4px; background: #fff; border-radius: 3px; display: grid; grid-template-columns: 1fr; box-shadow: 0 1px 1px rgba(0,0,0,.2), 0 8px 16px -4px rgba(40,25,10,.35); }
.nb-nu-c { display: block; height: 30px; border-radius: 1px; }
.nb-nu-n { font-size: 11px; font-weight: 600; color: var(--texte2); padding: 3px 0 6px; }
/* échantillon de tissu : bords dentelés (ciseaux cranteurs) */
.nb-tissu { position: absolute; margin: 0; filter: drop-shadow(0 6px 6px rgba(40,25,10,.35)); }
.nb-tissu-img { display: block; aspect-ratio: 1; background: var(--bx700) center / cover;
  clip-path: polygon(0 0, 6% 3%, 12% 0, 18% 3%, 24% 0, 30% 3%, 36% 0, 42% 3%, 48% 0, 54% 3%, 60% 0, 66% 3%, 72% 0, 78% 3%, 84% 0, 90% 3%, 96% 0, 100% 3%, 97% 9%, 100% 15%, 97% 21%, 100% 27%, 97% 33%, 100% 39%, 97% 45%, 100% 51%, 97% 57%, 100% 63%, 97% 69%, 100% 75%, 97% 81%, 100% 87%, 97% 93%, 100% 100%, 94% 97%, 88% 100%, 82% 97%, 76% 100%, 70% 97%, 64% 100%, 58% 97%, 52% 100%, 46% 97%, 40% 100%, 34% 97%, 28% 100%, 22% 97%, 16% 100%, 10% 97%, 4% 100%, 0 97%, 3% 91%, 0 85%, 3% 79%, 0 73%, 3% 67%, 0 61%, 3% 55%, 0 49%, 3% 43%, 0 37%, 3% 31%, 0 25%, 3% 19%, 0 13%, 3% 7%); }
.nb-tissu figcaption { position: absolute; right: -6px; bottom: 10px; background: #fff; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 2px; transform: rotate(6deg); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.nb-liege .nb-nuancier, .nb-liege .nb-tissu { animation: nb-pose .7s var(--rebond) both; animation-delay: calc(var(--n, 0) * 70ms); }
.nb-liege .nb-scotch { animation: nb-monte .4s var(--sortie) both; animation-delay: calc(var(--n, 0) * 70ms + .45s); }
.tel .nb-liege { height: 700px; }
.tel .nb-liege-in { inset: 24px 14px 24px; }
.tel .nb-postit { font-size: 13px; padding: 18px 10px 8px; } .tel .nb-postit p { font-size: 13px; }
.tel .nb-nu-c { height: 22px; }
.nb-tab-ph { background: var(--sa200) center / cover; }
