/* Vixya Studio · l'appli de contenu de Maoni. Même habit que l'appli d'appels (vitrine/site/appels.css) : fond nuit,
   texte blanc et argent, le chrome réservé au logo, aux nombres et aux filets, l'iris seulement en points et en traits.
   Pensée pour le téléphone (390 px) : une colonne, les écrans en onglets en bas, l'action principale en grand. */
@font-face { font-family: "Syncopate"; src: url("polices/syncopate.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Onest"; src: url("polices/onest.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --nuit: #0B0B0E; --carte: #121216; --carte-haute: #22232A; --creux: #0B0B0E; --filet: #22232A; --graphite: #2A2C31;
  --blanc: #EDEDF0; --argent: #A6A9B1;
  --turquoise: #4FD1C5; --bleu: #8AB4FF; --rose: #F29BC4; --or: #FFD27A;
  --chrome: linear-gradient(100deg, #B9BCC6 0%, #FFFFFF 22%, #9EA2AD 40%, #FFFFFF 58%, #C9CCD3 75%, #FFFFFF 90%, #AEB2BC 100%);
  --filet-chrome: linear-gradient(90deg, rgba(255, 255, 255, .42), rgba(226, 232, 255, .2) 45%, rgba(255, 255, 255, .03));
  --f: "Onest", "Segoe UI", system-ui, sans-serif;
  --f-titre: "Syncopate", "Onest", system-ui, sans-serif;
  --onglets: 64px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--nuit); }
body { margin: 0; isolation: isolate; min-height: 100svh; background: var(--nuit); color: var(--blanc); font: 400 16px/1.5 var(--f); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }

/* Le fond : le studio de la vitrine, un ciel de nuit avec sa lumière et la bille chromée qui change de place d'un écran à l'autre. */
@property --trace { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --lueur { syntax: "<color>"; inherits: true; initial-value: rgba(255, 255, 255, 0); }
body { --lueur: rgba(79, 209, 197, .55); }
body:has(.tete) { --lueur: rgba(110, 220, 210, .45); }
body:has(.porte) { --lueur: rgba(170, 190, 255, .35); }
.studio { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; --b: min(46vw, 26svh); background: var(--nuit); }
.studio .plateau { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.studio .toile { position: absolute; inset: 0; }
.studio .toile > i { position: absolute; display: block; }
.studio .mur { inset: 0; }
.studio .sol { left: 0; right: 0; top: var(--h); bottom: 0; -webkit-mask: linear-gradient(transparent, #000 var(--fondu, 12svh)); mask: linear-gradient(transparent, #000 var(--fondu, 12svh)); }
.studio .p-liste { opacity: 1; }
body:has(.tete) .studio .p-liste, body:has(.porte) .studio .p-liste { opacity: 0; }
body:has(.tete) .studio .p-fiche, body:has(.porte) .studio .p-porte { opacity: 1; }
.p-liste { --h: 91svh; }
.p-liste .mur { background:
  radial-gradient(90% 46% at 50% var(--h), rgba(79, 209, 197, .30) 0%, rgba(138, 180, 255, .10) 42%, rgba(11, 11, 14, 0) 72%),
  radial-gradient(70% 40% at 50% 0%, #15161D 0%, rgba(11, 11, 14, 0) 70%),
  linear-gradient(180deg, #08090C 0%, #0B0D11 100%); }
.p-liste .astre { left: 50%; top: var(--h); width: 340vmax; height: 340vmax; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, #050607 96%, #0B1416 99%, #12302E 100%);
  box-shadow: 0 0 0 1px rgba(196, 246, 240, .55), 0 -2px 28px 2px rgba(79, 209, 197, .45), 0 -20px 90px 10px rgba(79, 209, 197, .16), inset 0 26px 60px -20px rgba(79, 209, 197, .28); }
.p-liste .voile { inset: 0; background: radial-gradient(120% 70% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .45) 100%); }
.p-fiche { --h: 90svh; }
.p-fiche .toile { opacity: .62; }
.p-fiche .mur { background: radial-gradient(80% 40% at 50% var(--h), rgba(79, 209, 197, .12), rgba(0, 0, 0, 0) 70%), linear-gradient(180deg, #05060A 0%, #090B12 var(--h)); }
.p-fiche .sol { --fondu: 1px; background: radial-gradient(60% 50% at 50% 0%, rgba(79, 209, 197, .08), rgba(0, 0, 0, 0) 70%), linear-gradient(180deg, #0A0C11 0%, #050507 100%); }
.p-fiche .voile { left: -25vw; right: -25vw; height: 72svh;
  -webkit-mask: linear-gradient(90deg, transparent 4%, #000 26%, #000 74%, transparent 96%), repeating-linear-gradient(90deg, rgba(0, 0, 0, .76) 0 2px, #000 2px 11px); -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, transparent 4%, #000 26%, #000 74%, transparent 96%), repeating-linear-gradient(90deg, rgba(0, 0, 0, .76) 0 2px, #000 2px 11px); mask-composite: intersect; }
.p-fiche .v1 { top: 4svh; rotate: -7deg; background: radial-gradient(farthest-side at 50% 100%, rgba(79, 209, 197, 0) 60%, rgba(79, 209, 197, .42) 74%, rgba(138, 180, 255, .24) 85%, rgba(242, 155, 196, .18) 93%, rgba(242, 155, 196, 0) 100%); }
.p-fiche .v2 { top: 20svh; left: 5vw; right: -45vw; rotate: 9deg; opacity: .7; background: radial-gradient(farthest-side at 50% 100%, rgba(79, 209, 197, 0) 66%, rgba(79, 209, 197, .3) 78%, rgba(160, 150, 255, .2) 88%, rgba(242, 155, 196, .14) 95%, rgba(242, 155, 196, 0) 100%); }
.p-porte .mur { background: radial-gradient(60% 35% at 50% 100%, rgba(138, 180, 255, .10), rgba(0, 0, 0, 0) 70%), linear-gradient(180deg, #050507 0%, #07070A 100%); }
.p-porte .halo, .p-porte .couronne, .p-porte .limbe { left: 50%; top: calc(100svh + var(--b) * .1); translate: -50% -50%; border-radius: 50%; }
.p-porte .couronne { width: calc(var(--b) * 1.3 * 1.35); height: calc(var(--b) * 1.3 * 1.35); opacity: .8;
  background: conic-gradient(from 210deg, #4FD1C5, #8AB4FF, #F29BC4, #FFD27A, #4FD1C5);
  -webkit-mask: radial-gradient(closest-side, transparent 72%, #000 75%, rgba(0, 0, 0, .35) 84%, transparent 100%); mask: radial-gradient(closest-side, transparent 72%, #000 75%, rgba(0, 0, 0, .35) 84%, transparent 100%); }
.p-porte .limbe { width: calc(var(--b) * 1.3 * 1.04); height: calc(var(--b) * 1.3 * 1.04); box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 0 24px 4px rgba(255, 255, 255, .28); }
.p-porte .halo { width: calc(var(--b) * 1.3 * 3.4); height: calc(var(--b) * 1.3 * 3.4); background: radial-gradient(closest-side, rgba(170, 190, 255, .16), rgba(242, 155, 196, .06) 55%, rgba(0, 0, 0, 0) 100%); }
.studio .objet { position: absolute; left: 0; top: 0; z-index: 2; width: var(--b); height: var(--b); will-change: transform; --x: 88vw; --y: 9svh; --s: .24;
  transform: translate3d(calc(var(--x) - 50%), calc(var(--y) - 50%), 0) scale(var(--s)); transition: transform 1.2s cubic-bezier(.45, .05, .25, 1); }
body:has(.tete) .studio .objet { --x: 89vw; --y: 10svh; --s: .2; }
body:has(.porte) .studio .objet { --x: 50vw; --y: calc(100svh + var(--b) * .1); --s: 1.3; }
.studio .forme { position: absolute; inset: 0; border-radius: 50%; }
.studio .forme i { position: absolute; inset: 0; border-radius: inherit; }
.studio .bille .peau-nuit { background:
  radial-gradient(circle at 34% 24%, rgba(255, 255, 255, .95) 0 2.2%, rgba(255, 255, 255, .3) 3.6%, rgba(255, 255, 255, 0) 7.5%),
  radial-gradient(circle at 50% 50%, transparent 60%, rgba(138, 180, 255, .2) 82%, rgba(242, 155, 196, .28) 93%, rgba(255, 255, 255, .5) 100%),
  linear-gradient(180deg, #4A4E5A 0%, #1A1B21 38%, #8A8E9C 47%, #23252C 53%, #121318 78%, #2E3038 100%); }
.studio .bille .iris { inset: 7%; opacity: .07; background: conic-gradient(from 200deg, #4FD1C5, #8AB4FF, #F29BC4, #FFD27A, #4FD1C5); }
.studio .forme .lueur { background: radial-gradient(110% 70% at 50% 108%, var(--lueur) 0%, rgba(255, 255, 255, 0) 62%); transition: --lueur 1s ease; }
.studio .ceinture { position: absolute; inset: -24%; --trace: 360deg; transform: perspective(800px) rotate(-10deg) rotateX(74deg); }
.studio .ceinture.arriere { -webkit-mask: linear-gradient(#000 50%, transparent 50%); mask: linear-gradient(#000 50%, transparent 50%); }
.studio .ceinture.avant { -webkit-mask: linear-gradient(transparent 50%, #000 50%); mask: linear-gradient(transparent 50%, #000 50%); }
.studio .ceinture i { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(160deg, #9AA0AE, #1A1B21 28%, #E6E8EE 44%, #2A2C33 60%, #6B6F7B 80%, #23252C);
  -webkit-mask: radial-gradient(farthest-side, transparent 73%, #000 74%), conic-gradient(from 90deg, #000 var(--trace), transparent 0); -webkit-mask-composite: source-in;
  mask: radial-gradient(farthest-side, transparent 73%, #000 74%), conic-gradient(from 90deg, #000 var(--trace), transparent 0); mask-composite: intersect; }
@media (prefers-reduced-motion: reduce) { .studio .plateau, .studio .objet { transition: none; } }
@media (min-width: 900px) {
  .studio .objet { --x: 80vw; --y: 25svh; --s: .6; }
  body:has(.tete) .studio .objet { --x: 82vw; --y: 29svh; --s: .5; }
  body:has(.porte) .studio .objet { --x: 50vw; --y: calc(100svh + var(--b) * .25); --s: 1.7; }
}

button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 3px; }
[hidden] { display: none !important; }

/* La barre du haut */
.barre { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 16px 12px; background: rgba(11, 11, 14, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.barre::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--filet-chrome); opacity: .6; }
.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.marque img { display: block; height: 22px; width: auto; }
.marque span { padding-left: 10px; border-left: 1px solid var(--graphite); font-weight: 500; font-size: 16px; color: var(--argent); line-height: 1; }
.moi { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--argent); }
.lien { padding: 6px 0; border: 0; background: none; color: var(--argent); text-decoration: underline; text-decoration-color: var(--graphite); text-underline-offset: 4px; cursor: pointer; font-size: 16px; }

.ecran { width: 100%; max-width: 560px; margin: 0 auto; padding: 18px 16px calc(var(--onglets) + 40px + env(safe-area-inset-bottom)); display: grid; gap: 22px; align-content: start; }
.attente { color: var(--argent); text-align: center; padding: 48px 0; }
.vide { margin: 0; padding: 15px 16px; border-radius: 16px; border: 1px dashed var(--graphite); color: var(--argent); }
.erreur { margin: 0; color: var(--rose); font-weight: 500; }

/* Les onglets, en bas : les cinq écrans, l'actif en blanc. */
.onglets { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--onglets) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(11, 11, 14, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.onglets::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--filet-chrome); opacity: .6; }
.onglets a { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; text-decoration: none; color: var(--argent); font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.onglets svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.onglets a.actif { color: var(--blanc); }
.onglets a.actif::after { content: ""; position: absolute; top: 0; width: 28px; height: 2px; background: var(--turquoise); border-radius: 0 0 2px 2px; }
.onglets .nombre { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--or); color: var(--nuit); font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; }
@media (min-width: 900px) { .onglets { max-width: 560px; margin: 0 auto; border-radius: 18px 18px 0 0; } }

/* Connexion */
.porte { display: grid; gap: 16px; padding-top: 9vh; }
.porte h1 { margin: 0; font-size: 30px; font-weight: 600; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.porte p { margin: 0; color: var(--argent); }
.champ { display: grid; gap: 8px; }
.champ > span { font-weight: 600; font-size: 16px; color: var(--argent); }
.champ input, .champ textarea, .champ select { width: 100%; min-height: 52px; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--graphite); background: var(--creux); color: var(--blanc); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.champ textarea { min-height: 116px; resize: vertical; }
.champ input::placeholder, .champ textarea::placeholder { color: var(--argent); opacity: .6; }
.champ input:focus, .champ textarea:focus, .champ select:focus { outline: none; box-shadow: inset 0 -2px 0 var(--turquoise); }
.champ input[type="number"] { font-variant-numeric: tabular-nums; }

/* Les boutons : blanc pour l'action principale, sombre pour les autres. */
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--blanc); color: var(--nuit); font-weight: 600; font-size: 16px; text-align: center; text-decoration: none; cursor: pointer; transition: transform .15s, background-color .2s, opacity .2s; }
.bouton:active { transform: scale(.97); }
.bouton[disabled] { opacity: .45; }
.bouton.second { background: var(--carte); color: var(--blanc); box-shadow: inset 0 0 0 1px var(--graphite); }
.bouton.second:active { background: var(--carte-haute); }
.bouton.plein { width: 100%; }
.bouton.petit { min-height: 44px; padding: 0 16px; font-size: 15px; }
.bouton.non { background: var(--rose); color: var(--nuit); }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Un titre d'écran et sa ligne d'explication */
.titre { display: grid; gap: 6px; }
.titre h1 { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.titre p { margin: 0; color: var(--argent); }
.retour { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0; border: 0; background: none; color: var(--argent); font-weight: 600; text-decoration: none; cursor: pointer; }

/* Les sections et les cartes */
.section { display: grid; gap: 10px; }
.section > h2 { margin: 0; display: flex; align-items: center; gap: 10px; font: 700 12px/1.3 var(--f-titre); letter-spacing: .06em; text-transform: uppercase; color: var(--argent); }
.section > h2::after { content: ""; flex: 1; height: 1px; background: var(--filet-chrome); opacity: .55; }
.section > h2 small { font: 600 16px/1 var(--f); letter-spacing: 0; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bloc { display: grid; gap: 12px; padding: 18px 16px; border-radius: 20px; background: color-mix(in srgb, var(--carte) 86%, transparent); border: 1px solid var(--filet); }
.bloc p { margin: 0; }
.bloc h2 { margin: 0; display: flex; align-items: center; gap: 10px; font: 700 12px/1.3 var(--f-titre); letter-spacing: .06em; text-transform: uppercase; color: var(--argent); }
.bloc h2::after { content: ""; flex: 1; height: 1px; background: var(--filet-chrome); opacity: .5; }
.carte { position: relative; display: grid; gap: 6px; padding: 16px; border-radius: 18px; background: color-mix(in srgb, var(--carte) 86%, transparent); border: 1px solid var(--filet); text-decoration: none; transition: border-color .2s, transform .15s; }
a.carte:active { transform: scale(.99); border-color: var(--graphite); }
.carte .nom { font-weight: 600; font-size: 17px; line-height: 1.3; }
.carte .ou { color: var(--argent); }
.note { margin: 0; color: var(--argent); }
.chrome { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* L'état : une pastille sombre, la couleur seulement dans le point. */
.pastille { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 3px 12px; border-radius: 18px; font-size: 15px; font-weight: 600; line-height: 1.3; background: var(--carte-haute); color: var(--blanc); box-shadow: inset 0 0 0 1px var(--graphite); --point: var(--argent); --halo: 0 0 0 transparent; }
.pastille::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--point); box-shadow: var(--halo); flex: none; }
.pastille.idee { --point: var(--argent); }
.pastille.production { --point: var(--bleu); --halo: 0 0 10px var(--bleu); }
.pastille.a_valider { --point: var(--or); --halo: 0 0 10px var(--or); }
.pastille.validee { --point: var(--turquoise); --halo: 0 0 10px var(--turquoise); }
.pastille.publiee { --point: #FFFFFF; --halo: 0 0 10px #FFFFFF; }
.pastille.refusee { --point: var(--rose); --halo: 0 0 10px var(--rose); }
.pastille.type { --point: var(--graphite); color: var(--argent); }

/* Cette semaine : une ligne par jour. La couleur de la ligne dit l'état de la pièce (un trait à gauche). */
.semaine { display: grid; gap: 8px; }
.jour { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px 14px 12px 0; border-radius: 18px; background: color-mix(in srgb, var(--carte) 86%, transparent); border: 1px solid var(--filet); }
.jour.aujourdhui { border-color: color-mix(in srgb, var(--turquoise) 50%, var(--filet)); }
.jour .date { display: grid; justify-items: center; align-content: start; padding-top: 2px; border-right: 1px solid var(--filet); }
.jour .date b { font-size: 24px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.jour .date span { font-size: 13px; color: var(--argent); text-transform: uppercase; letter-spacing: .06em; }
.jour.aujourdhui .date b { color: var(--turquoise); }
.jour .pieces { display: grid; gap: 8px; align-content: start; }
.jour .pieces .vide { padding: 8px 0; border: 0; }
.ligne { --c: var(--argent); display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 44px; padding: 4px 0; text-decoration: none; }
.ligne::before { content: ""; align-self: stretch; border-radius: 2px; background: var(--c); box-shadow: 0 0 8px var(--c); }
.ligne .nom { font-weight: 600; line-height: 1.3; }
.ligne .nom small { display: block; font-weight: 400; color: var(--argent); font-size: 14px; }
.ligne .etat { font-size: 13px; font-weight: 600; color: var(--c); white-space: nowrap; }
.ligne.idee { --c: var(--argent); }
.ligne.production { --c: var(--bleu); }
.ligne.a_valider { --c: var(--or); }
.ligne.validee { --c: var(--turquoise); }
.ligne.publiee { --c: #FFFFFF; }
.ligne.refusee { --c: var(--rose); }
.legende-etats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--argent); }
.legende-etats li { display: inline-flex; align-items: center; gap: 6px; }
.legende-etats i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* La pièce : vidéo, carrousel ou post, en grand. */
.media { display: block; width: 100%; max-height: 62svh; aspect-ratio: 9 / 16; object-fit: contain; border-radius: 18px; background: #000; box-shadow: inset 0 0 0 1px var(--filet); }
.carrousel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 18px; -webkit-overflow-scrolling: touch; }
.carrousel::-webkit-scrollbar { display: none; }
.carrousel img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; scroll-snap-align: center; scroll-snap-stop: always; border-radius: 18px; background: #000; }
.compteur { justify-self: center; margin: -6px 0 0; font-size: 14px; color: var(--argent); font-variant-numeric: tabular-nums; }
.post { margin: 0; padding: 18px 16px; border-radius: 18px; background: color-mix(in srgb, var(--carte) 86%, transparent); border: 1px solid var(--filet); white-space: pre-wrap; line-height: 1.55; }
.accroche { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.tete { display: grid; gap: 8px; }
.tete h1 { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.tete p { margin: 0; color: var(--argent); }
.tete .pastilles { display: flex; flex-wrap: wrap; gap: 8px; }
.legende { margin: 0; white-space: pre-wrap; line-height: 1.55; color: var(--blanc); }
/* Une longue légende est repliée sur ses premières lignes ; un bouton la déplie, le même la replie. */
.legende.repliee { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.deplier { justify-self: start; min-height: 40px; padding: 0; border: 0; background: none; color: var(--argent); font-weight: 600; text-decoration: underline; text-decoration-color: var(--graphite); text-underline-offset: 4px; cursor: pointer; }
.reseau .actions .bouton { flex: 1 1 auto; }
.publie { color: var(--argent); }
.publie b { color: var(--blanc); }

/* À valider : les deux gestes, au-dessus des onglets. */
.decision { position: fixed; left: 0; right: 0; bottom: calc(var(--onglets) + env(safe-area-inset-bottom)); z-index: 6; padding: 12px 16px; background: rgba(11, 11, 14, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.decision::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--filet-chrome); opacity: .6; }
.decision-corps { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.res { --c: var(--blanc); min-height: 56px; padding: 0 8px; border-radius: 16px; border: 0; background: var(--carte); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 38%, transparent); color: var(--c); font-weight: 700; font-size: 16px; letter-spacing: -.01em; cursor: pointer; transition: transform .15s, background-color .2s; }
.res:active { transform: scale(.95); background: color-mix(in srgb, var(--c) 12%, var(--carte)); }
.res.oui { --c: var(--turquoise); }
.res.non { --c: var(--rose); }
body:has(.decision) .ecran { padding-bottom: calc(var(--onglets) + 120px + env(safe-area-inset-bottom)); }
.file { font-size: 14px; color: var(--argent); font-variant-numeric: tabular-nums; }

/* Les idées */
.idee { display: grid; gap: 8px; padding: 16px; border-radius: 18px; background: color-mix(in srgb, var(--carte) 86%, transparent); border: 1px solid var(--filet); }
.idee p { margin: 0; white-space: pre-wrap; }
.idee .ou { color: var(--argent); font-size: 14px; }
.idee .retenue { color: var(--turquoise); font-weight: 600; text-decoration: none; }
.dictee[aria-pressed="true"] { background: var(--blanc); color: var(--nuit); box-shadow: inset 0 0 0 2px var(--rose); }
.dictee[aria-pressed="true"]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--rose); animation: bat 1s ease-in-out infinite; }
@keyframes bat { 50% { opacity: .3; } }

/* Les chiffres */
.constance { display: grid; gap: 4px; padding: 20px 16px; border-radius: 20px; background: color-mix(in srgb, var(--carte) 86%, transparent); border: 1px solid var(--filet); }
.constance .grand { font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.constance .jours { display: flex; gap: 6px; margin-top: 8px; }
.constance .jours i { flex: 1; height: 6px; border-radius: 3px; background: var(--graphite); }
.constance .jours i.oui { background: var(--turquoise); box-shadow: 0 0 8px var(--turquoise); }
.chiffres-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chiffres-grille .champ { align-content: end; }
.chiffres-grille .champ input { min-height: 48px; }
.journal-export { width: 100%; min-height: 160px; padding: 12px; border-radius: 14px; border: 1px solid var(--graphite); background: var(--creux); color: var(--blanc); font: 13px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; white-space: pre; overflow: auto; resize: vertical; }

/* Les règles */
.regles ul, .regles ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.regles li { line-height: 1.5; }
.regles li::marker { color: var(--argent); font-weight: 700; }
.regles p { margin: 0; }
.regles b { color: var(--blanc); }

/* La feuille qui monte du bas */
.feuille { width: 100%; max-width: 560px; max-height: 92svh; margin: auto auto 0; padding: 0; border: 0; border-radius: 26px 26px 0 0; background: var(--carte); color: var(--blanc); box-shadow: 0 -24px 60px -20px rgba(0, 0, 0, .9); }
.feuille::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--filet-chrome); opacity: .7; }
.feuille::backdrop { background: rgba(5, 5, 8, .62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.feuille[open] { animation: monte .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes monte { from { transform: translateY(40px); opacity: 0; } }
.feuille-corps { display: grid; gap: 14px; padding: 26px 16px max(22px, env(safe-area-inset-bottom)); }
.feuille-corps::before { content: ""; position: absolute; top: 10px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: var(--graphite); }
.feuille h2 { margin: 0; font-size: 23px; font-weight: 600; letter-spacing: -.02em; }
.feuille p { margin: 0; color: var(--argent); }
.feuille .citation { color: var(--blanc); font-weight: 600; }
.choix { display: grid; gap: 10px; }
.choix .bouton { min-height: 58px; border-radius: 18px; padding-block: 10px; line-height: 1.3; }

.toast { position: fixed; left: 50%; bottom: calc(var(--onglets) + 24px + env(safe-area-inset-bottom)); z-index: 20; transform: translateX(-50%); margin: 0; padding: 12px 20px; border-radius: 999px; background: var(--blanc); color: var(--nuit); font-weight: 600; box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .9); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { .feuille[open] { animation: none; } .bouton, .res, .carte { transition: none; } }
