/* Pages intérieures du site de Matthieu Legouge.
   S'ajoute à site.css (fondations et composants communs). Mobile d'abord, mêmes paliers : 40, 48, 60, 64, 72em. */

/* Police du livre (Literata, licence SIL OFL), hébergée sur le site */
@font-face { font-family: 'Literata'; src: url('../polices/literata.woff2') format('woff2'); font-weight: 200 900; font-style: normal; font-display: swap; }
:root { --serif: 'Literata', Georgia, serif; }

/* ---------- Utilitaires de couleur ---------- */
.vert { color: var(--green); } .rose { color: var(--pink); } .cyan { color: var(--cyan); } .orange { color: var(--orange); } .bleu { color: var(--blue); }
.p-orange { color: var(--t-orange); } .p-rose { color: var(--t-pink); }
.lien-mono.jaune { color: var(--t-yellow); }

/* ---------- Ouverture des pages intérieures ---------- */
.ouverture .ancres { display: flex; flex-wrap: wrap; gap: .5rem; }
.ancres a { --ac: var(--green); display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .45rem .9rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font: .78rem var(--mono); font-stretch: 87.5%; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.ancres a span { color: var(--ac); }
.ancres a:hover, .ancres a:focus-visible { border-color: var(--ac); transform: translateY(-2px); }

/* Composants communs aux pages */
.coches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; font-size: .95rem; line-height: 1.5; }
.coches li { display: grid; grid-template-columns: 1.5em minmax(0, 1fr); }
.coches li::before { content: '✓'; color: var(--green); font-family: var(--mono); }
.coches li.non::before { content: '✗'; color: var(--muted); }
.coches li.plus::before { content: '+'; color: var(--blue); }
.coches li.info::before { content: '→'; color: var(--blue); }

/* ==========================================================================
   Offres
   ========================================================================== */
.resume .term-corps { padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }
.resume-cmd { margin-bottom: 1rem; }
.resume dl { margin: 0; display: grid; gap: .55rem; }
.resume dl div { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.resume dt { color: var(--t-soft); }
.resume dd { margin: 0 0 0 auto; font-weight: 700; text-align: right; }
.resume-note { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--t-line); font-size: .72rem; color: var(--t-muted); }

.offres-sites { display: grid; gap: 1rem; }
.offre { padding: clamp(1.4rem, 1rem + 1.2vw, 2rem); display: flex; flex-direction: column; gap: 1rem; transition: transform .25s ease, box-shadow .25s ease; }
.offre:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20, 21, 26, .1); }
.offre.sombre:hover { box-shadow: 0 20px 44px rgba(20, 21, 26, .28); }
.offre-tag { display: flex; justify-content: space-between; gap: 1rem; font: .75rem var(--mono); font-stretch: 87.5%; color: var(--muted); }
.offre-tag span:first-child { color: var(--green); }
.offre h3 { font-family: var(--mono); font-stretch: 87.5%; font-weight: 700; font-size: clamp(1.35rem, 1.2rem + .5vw, 1.6rem); line-height: 1.2; }
.offre-prix { font-family: var(--mono); font-stretch: 87.5%; font-weight: 800; font-size: clamp(2.3rem, 2rem + 1.2vw, 3rem); line-height: 1; letter-spacing: -.03em; color: var(--green); white-space: nowrap; }
.offre-prix small { font-size: .3em; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-right: .4em; }
.offre-texte { color: var(--soft); padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.offre .coches { margin-bottom: .5rem; }
.offre .btn { margin-top: auto; align-self: flex-start; }
.offre.sombre { background: var(--t-bg); color: var(--t-text); border-color: var(--t-bg); }
.offre.sombre .offre-tag, .offre.sombre .offre-prix small { color: var(--t-muted); }
.offre.sombre .offre-tag span:first-child, .offre.sombre .offre-prix, .offre.sombre .coches li::before { color: var(--t-green); }
.offre.sombre .offre-texte { color: var(--t-soft); border-color: var(--t-line); }
.offre.sombre .coches li.info::before { color: var(--t-blue); }
:root[data-theme="sombre"] .offre.sombre { border-color: var(--t-green); }
.offres-notes { margin-top: 1.25rem; display: grid; gap: .6rem; color: var(--soft); font-size: .95rem; }
@media (min-width: 48em) { .offres-sites { grid-template-columns: repeat(2, minmax(0, 1fr)); } .offres-sites .offre:last-child { grid-column: 1 / -1; } }
@media (min-width: 64em) { .offres-sites { grid-template-columns: repeat(3, minmax(0, 1fr)); } .offres-sites .offre:last-child { grid-column: auto; } }

.heberg { background: var(--t-bg); color: var(--t-text); border-radius: var(--radius-lg); padding: clamp(1.75rem, 1rem + 3vw, 3.75rem); display: grid; gap: 2rem; }
.heberg .kicker { color: var(--t-muted); }
.heberg .h2 { color: var(--t-text); }
.heberg-lead { color: var(--t-soft); margin: 1rem 0 1.5rem; }
.heberg .liste-coche { color: var(--t-text); font-family: var(--sans); font-size: .95rem; }
.heberg .liste-coche li::before { color: var(--t-green); }
.domaine { margin-top: 1.5rem; display: grid; grid-template-columns: 1.4em minmax(0, 1fr); padding: 1rem 1.1rem; border: 1px dashed var(--t-yellow); border-radius: 12px; color: var(--t-soft); }
.domaine > span:first-child { color: var(--t-green); }
.domaine b { color: var(--t-yellow); }
.heberg-prix { background: #11141C; border: 1px solid var(--t-line); border-radius: 16px; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); display: flex; flex-direction: column; gap: .9rem; }
.tarif > span { display: block; font: .75rem var(--mono); font-stretch: 87.5%; color: var(--t-muted); }
.tarif b { font: 800 clamp(2rem, 1.7rem + 1vw, 2.6rem) var(--mono); font-stretch: 87.5%; letter-spacing: -.03em; white-space: nowrap; }
.tarif.vert b { color: var(--t-green); }
.tarif small { margin-left: .35em; font: .75rem var(--mono); font-stretch: 87.5%; color: var(--t-muted); white-space: nowrap; }
.heberg-prix p { font-size: .9rem; color: var(--t-soft); }
.heberg-prix .note { color: var(--t-muted); font-size: .82rem; }
@media (min-width: 48em) { .heberg .liste-coche { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.5rem; } }
@media (min-width: 64em) { .heberg { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 3rem; align-items: center; } }

.ia-etapes { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 1rem; }
.ia-etapes li { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); display: flex; flex-direction: column; gap: .5rem; }
.ia-etapes .n { font: 700 1.5rem var(--mono); font-stretch: 87.5%; color: var(--cyan); }
.ia-etapes b { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.ia-etapes li > span:last-child { color: var(--soft); font-size: .95rem; }
.ia-bas { display: grid; gap: 1rem; }
.ia-term { display: flex; flex-direction: column; gap: .5rem; padding: clamp(1.25rem, 1rem + 1vw, 2rem); }
.ia-term div { display: grid; grid-template-columns: 1.5em minmax(0, 1fr); }
.ia-term div:first-child { display: block; margin-bottom: .25rem; }
/* Offres : logiciel sur mesure (Octave) */
.octave-offre { padding: clamp(1.4rem, 1rem + 1.5vw, 2.25rem); display: grid; gap: 1.25rem 2.5rem; align-items: center; border-top: 4px solid var(--ocre); }
.oo-tete { display: flex; align-items: center; gap: 1rem; }
.oo-tete .kicker { margin: 0; }
.oo-nom { color: var(--ocre); font-weight: 700; }
.oo-avatar { flex: none; width: 4.5rem; height: 4.5rem; } .oo-avatar svg { width: 100%; height: 100%; }
.oo-texte { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.oo-texte p { color: var(--soft); }
.oo-pour { list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; font: .76rem var(--mono); font-stretch: 87.5%; }
.oo-pour li { padding: .3rem .7rem; border-radius: 999px; background: color-mix(in srgb, var(--ocre) 12%, var(--surface)); }
.oo-actions { display: flex; flex-direction: column; align-items: stretch; gap: .6rem; }
.oo-tarif { font: 600 .82rem var(--mono); font-stretch: 87.5%; color: var(--muted); text-align: center; }
.oo-actions .lien-mono { align-self: center; }
@media (min-width: 64em) { .octave-offre { grid-template-columns: auto minmax(0, 1fr) minmax(14rem, auto); } .oo-tete { flex-direction: column; align-items: flex-start; } }
.ia-tarif { padding: clamp(1.25rem, 1rem + 1vw, 2rem); display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
.ia-tarif .kicker { margin: 0; }
.ia-tarif b { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); font-weight: 600; }
.ia-tarif p { color: var(--soft); font-size: .95rem; margin-bottom: .5rem; }
.ia-tarif .ia-prix { margin: 0; font: .85rem var(--mono); font-stretch: 87.5%; color: var(--soft); } .ia-tarif .ia-prix b { font-size: 1rem; font-weight: 700; color: var(--green); }
@media (min-width: 48em) { .ia-etapes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 60em) { .ia-bas { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }

.guide { display: grid; gap: 1rem; }
.guide-couv { background: var(--t-bg); color: var(--t-text); border-radius: var(--radius-lg); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; min-height: clamp(16rem, 30vw, 26rem); }
.guide-couv .etat { font: .72rem var(--mono); font-stretch: 87.5%; color: var(--t-yellow); }
.guide-couv .titre-couv { font: 800 clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem)/1.1 var(--mono); font-stretch: 87.5%; letter-spacing: -.03em; }
.guide-couv .titre-couv span:not(.curseur) { color: var(--t-yellow); }
.guide-couv .curseur { background: var(--t-yellow); }
.guide-couv .meta { font: .7rem var(--mono); font-stretch: 87.5%; color: var(--t-muted); overflow-wrap: anywhere; }
.guide-texte { padding: clamp(1.4rem, 1rem + 1.5vw, 2.5rem); display: flex; flex-direction: column; gap: 1.1rem; }
.guide-texte .kicker { margin: 0; }
.formules-guide { border: 0; margin: 0; padding: 0; display: grid; gap: .75rem; }
.g-opt { --ac: var(--green); position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 1.1rem 1.2rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.g-opt:hover { border-color: var(--ac); transform: translateY(-2px); }
.g-opt input { position: absolute; opacity: 0; pointer-events: none; }
.g-opt:has(input:checked) { border: 2px solid var(--ac); padding: calc(1.1rem - 1px) calc(1.2rem - 1px); background: color-mix(in srgb, var(--ac) 10%, var(--surface)); box-shadow: 4px 4px 0 var(--ac); }
.g-opt:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.g-tete { display: flex; align-items: center; gap: .55rem; font: .78rem var(--mono); font-stretch: 87.5%; color: var(--muted); }
.g-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ac); flex: none; display: grid; place-items: center; }
.g-dot::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ac); transform: scale(0); transition: transform .2s ease; }
.g-opt:has(input:checked) .g-dot::after { transform: scale(1); }
.g-ico { width: 26px; height: 26px; margin-left: auto; color: var(--ac); }
.g-prix { font: 800 1.9rem var(--mono); font-stretch: 87.5%; letter-spacing: -.03em; display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; }
.g-prix .remise, .g-prix .badge { display: none; }
.g-prix s { font-size: .55em; font-weight: 400; color: var(--muted); }
.g-prix .badge { font: 700 .7rem var(--mono); background: var(--pink); color: #fff; padding: .2rem .45rem; border-radius: 6px; letter-spacing: 0; align-self: center; }
.guide:has(.g-sw input:checked) .g-prix .normal { display: none; }
.guide:has(.g-sw input:checked) .g-prix .remise, .guide:has(.g-sw input:checked) .g-prix .badge { display: inline; }
.g-lignes { display: flex; flex-direction: column; gap: .25rem; font: .76rem var(--mono); font-stretch: 87.5%; color: var(--soft); }
.g-lignes span::before { content: '✓ '; color: var(--ac); }
.g-sw { display: flex; align-items: center; gap: .85rem; cursor: pointer; font-size: .92rem; color: var(--soft); }
.g-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.g-sw .piste { width: 42px; height: 24px; border-radius: 999px; background: var(--border); flex: none; position: relative; transition: background .2s ease; }
.g-sw .piste span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: transform .2s ease; }
.g-sw input:checked + .piste { background: var(--green); }
.g-sw input:checked + .piste span { transform: translateX(18px); }
.g-sw input:focus-visible + .piste { outline: 2px solid var(--blue); outline-offset: 3px; }
.g-sw b { color: var(--green); }
.guide-pied { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.g-choix { font: .75rem var(--mono); font-stretch: 87.5%; color: var(--muted); }
@media (min-width: 40em) { .formules-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .guide { grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr); } }

/* ==========================================================================
   Contact
   ========================================================================== */
.ct-infos { margin: 0; display: grid; }
.ct-infos div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--border); }
.ct-infos div:last-child { border-bottom: 1px solid var(--border); }
.ct-infos dt { font: .78rem var(--mono); font-stretch: 87.5%; color: var(--ic); padding-top: .2rem; }
.ct-infos dd { margin: 0; }
@media (min-width: 60em) { .ct-ouv { align-items: start; } .ct-infos { margin-top: 1.5rem; } }

.ct-zone { display: grid; gap: 2.5rem; padding-top: clamp(2.5rem, 2rem + 3vw, 5rem); }
.ct-form { display: flex; flex-direction: column; gap: 2rem; }
.ct-groupe { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.ct-groupe legend, .ct-groupe .legende { padding: 0; font: 700 .9rem var(--mono); font-stretch: 87.5%; margin-bottom: .9rem; }
.ct-groupe .legende { margin-bottom: 0; }
.ct-groupe .opt { font-weight: 400; color: var(--muted); }
.ct-puces { display: flex; flex-wrap: wrap; gap: .55rem; }
.ct-puce { --pc: var(--text); position: relative; display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); cursor: pointer; font-size: .95rem; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.ct-puce input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ct-puce .pt { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--pc); display: grid; place-items: center; flex: none; }
.ct-puce .pt::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--pc); transform: scale(0); transition: transform .2s ease; }
.ct-puce:hover { border-color: var(--pc); transform: translateY(-2px); }
.ct-puce:has(input:checked) { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 12%, var(--surface)); box-shadow: 3px 3px 0 var(--pc); }
.ct-puce:has(input:checked) .pt::after { transform: scale(1); }
.ct-puce:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.ct-puces.petites .ct-puce { font: .78rem var(--mono); font-stretch: 87.5%; padding: .45rem .9rem; }
.ct-deux { display: grid; gap: .9rem; }
.ct-champ { display: flex; flex-direction: column; gap: .35rem; font-weight: 500; }
.ct-champ .req { font: 400 .7rem var(--mono); font-stretch: 87.5%; color: var(--muted); }
.ct-form input[type="text"], .ct-form input[type="email"], .ct-form input[type="tel"], .ct-form textarea { width: 100%; font: 1rem/1.5 var(--sans); color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .8rem .95rem; min-height: 48px; transition: border-color .2s ease, box-shadow .2s ease; }
.ct-form textarea { resize: vertical; min-height: 10rem; }
.ct-form input:focus, .ct-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 22%, transparent); }
.ct-form input[aria-invalid="true"], .ct-form textarea[aria-invalid="true"] { border-color: #C0392B; }
:root[data-theme="sombre"] .ct-form input[aria-invalid="true"], :root[data-theme="sombre"] .ct-form textarea[aria-invalid="true"] { border-color: var(--t-red); }
.ct-err { color: #C0392B; font-size: .88rem; }
:root[data-theme="sombre"] .ct-err { color: var(--t-red); }
.ct-sous { display: flex; justify-content: space-between; gap: 1rem; font: .72rem var(--mono); font-stretch: 87.5%; color: var(--muted); }
.ct-sous .ct-err { font-family: var(--sans); font-size: .88rem; }
.ct-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-accord { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--soft); cursor: pointer; }
.ct-accord input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--green); flex: none; }
.ct-envoi { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.ct-envoi p { font-size: .88rem; color: var(--soft); }
.ct-merci { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.ct-merci p { color: var(--soft); }
.ct-merci .boutons { display: flex; flex-wrap: wrap; gap: .75rem; }
.ct-merci:focus { outline: none; }

.ct-apercu { display: none; }
.js .ct-apercu { display: block; }
.ct-apercu .term-barre .etat { margin-left: auto; color: var(--t-yellow); }
.ct-apercu .term-barre .etat.envoi { color: var(--t-cyan); } .ct-apercu .term-barre .etat.ok { color: var(--t-green); }
.ct-apercu .term-corps { display: flex; flex-direction: column; gap: .3rem; padding: clamp(1.1rem, 1rem + .5vw, 1.5rem); font-size: .8rem; }
.ct-cmd { margin-bottom: .4rem; }
.ct-entetes { margin: 0; display: flex; flex-direction: column; gap: .3rem; }
.ct-entetes div { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: .5rem; }
.ct-entetes dt { color: var(--t-muted); }
.ct-entetes dd { margin: 0; overflow-wrap: anywhere; }
.ct-entetes dd.objet { color: var(--t-yellow); } .ct-entetes dd.budget { color: var(--t-pink); } .ct-entetes dd.faux { color: var(--t-red); }
.ct-apercu .vide { color: var(--t-muted); font-style: italic; }
.ct-corps { margin-top: .6rem; padding-top: .8rem; border-top: 1px dashed var(--t-line); min-height: 8rem; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.ct-corps .curseur { background: var(--t-text); }
.ct-jauge { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--t-line); display: flex; align-items: center; gap: .75rem; font-size: .72rem; color: var(--t-muted); }
.ct-jauge .barres-j { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.ct-jauge i { height: 6px; border-radius: 3px; background: var(--t-line); transition: background .3s ease; }
.ct-jauge i.ok { background: var(--t-green); }
.ct-jauge [data-pret] { color: var(--t-text); }
.ct-journal { display: flex; flex-direction: column; gap: .2rem; font-size: .75rem; }
.ct-journal div { animation: ct-log .3s ease both; }
@keyframes ct-log { from { opacity: 0; transform: translateX(-6px); } }
.ct-legende { margin-top: .9rem; font-size: .85rem; color: var(--soft); }
/* Sur mobile, l'aperçu se glisse juste avant le bouton d'envoi, pour relire son message. */
@media (max-width: 59.99em) {
  .js .ct-zone { display: flex; flex-direction: column; gap: 2rem; }
  .js .ct-col, .js .ct-form { display: contents; }
  .js .ct-apercu { order: 2; }
  .js .ct-envoi, .js .ct-merci { order: 3; }
  .ct-legende .sur-large { display: none; }
}
@media (min-width: 60em) { .ct-legende .sur-mobile { display: none; } }
@media (min-width: 40em) { .ct-deux { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60em) {
  .ct-zone { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2.5rem, 4vw, 4.5rem); align-items: start; }
  .ct-apercu { position: sticky; top: 1.5rem; }
}

.ct-conseils { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.ct-conseils li { padding: clamp(1.2rem, 1rem + .6vw, 1.5rem); display: flex; flex-direction: column; gap: .45rem; }
.ct-conseils .n { font: 700 1.35rem var(--mono); font-stretch: 87.5%; color: var(--kc); }
.ct-conseils b { font-size: 1.1rem; font-weight: 600; }
.ct-conseils li > span:last-child { color: var(--soft); font-size: .95rem; }
@media (min-width: 40em) { .ct-conseils { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .ct-conseils { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ct-suite { background: var(--t-bg); color: var(--t-text); border-radius: var(--radius-lg); padding: clamp(1.75rem, 1rem + 3vw, 3.75rem); }
.ct-suite .kicker { color: var(--t-muted); }
.ct-suite ol { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.ct-suite li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 1rem; row-gap: .35rem; align-content: start; }
.ct-suite li .num { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--sc); color: var(--t-bg); display: grid; place-items: center; font: 700 .72rem var(--mono); font-stretch: 87.5%; position: relative; z-index: 1; }
.ct-suite li b { font-size: 1.15rem; font-weight: 600; }
.ct-suite li > span:last-child { color: var(--t-soft); font-size: .95rem; grid-column: 2; }
.ct-suite li::before { content: ''; position: absolute; left: 14px; top: 30px; bottom: -1.5rem; width: 2px; background: var(--sc); opacity: .5; }
.ct-suite li:last-child::before { display: none; }
.ct-suite li::before { transform-origin: top; transition: transform .6s ease; }
.js .ct-suite [data-frise] li:not(.plein)::before { transform: scaleY(0); }
.ct-suite-pied { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--t-line); color: var(--t-muted); }
.ct-suite-pied a { color: var(--t-green); }
@media (min-width: 60em) {
  .ct-suite ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .ct-suite li { grid-template-columns: none; row-gap: .75rem; }
  .ct-suite li .num { grid-row: auto; }
  .ct-suite li > span:last-child { grid-column: auto; }
  .ct-suite li::before { left: 30px; right: -1.5rem; top: 14px; bottom: auto; width: auto; height: 2px; transform-origin: left; }
  .js .ct-suite [data-frise] li:not(.plein)::before { transform: scaleX(0); }
}

/* ==========================================================================
   Articles
   ========================================================================== */
@media (min-width: 48em) { .articles-grille.trois { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .articles-grille.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.repartition { display: grid; gap: 1rem; }
.rep-sujets { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); display: flex; flex-direction: column; gap: .55rem; }
.rep-titre, .rep-note { font: .75rem var(--mono); font-stretch: 87.5%; color: var(--muted); }
.rep-titre { margin-bottom: .4rem; }
.rep-note { margin-top: .5rem; }
.rep-ligne { display: grid; grid-template-columns: minmax(0, 1fr) minmax(4rem, 1fr) auto; gap: .9rem; align-items: center; font-size: .92rem; }
.rep-ligne.fort .nom { font-weight: 700; }
.rep-ligne .barre { height: 10px; border-radius: 5px; background: var(--panel); overflow: hidden; }
.rep-ligne .barre span { display: block; height: 100%; width: var(--w); background: repeating-linear-gradient(-45deg, var(--c) 0 4px, color-mix(in srgb, var(--c) 70%, transparent) 4px 8px); border-radius: 5px; }
.js .barres-h:not(.vu) .barre span { width: 0; }
.barres-h .barre span { transition: width 1.8s cubic-bezier(.2, .7, .2, 1); }
.rep-ligne .n { font: .78rem var(--mono); font-stretch: 87.5%; color: var(--soft); white-space: nowrap; min-width: 11ch; text-align: right; }
.rep-ligne .n span { color: var(--muted); }
.rep-faits { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); display: grid; gap: .6rem; }
.rep-faits div { background: var(--panel); border-radius: 12px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .25rem; }
.rep-faits .k { font: .68rem var(--mono); font-stretch: 87.5%; color: var(--muted); }
.rep-faits b { font: 800 1.5rem var(--mono); font-stretch: 87.5%; color: var(--fc); }
.rep-faits div > span:last-child { font-size: .85rem; color: var(--soft); }
.rep-annees { background: var(--t-bg); color: var(--t-text); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); display: flex; flex-direction: column; gap: 1rem; }
.rep-tete { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font: .75rem var(--mono); font-stretch: 87.5%; color: var(--t-muted); }
.histo { height: clamp(12rem, 9rem + 10vw, 17rem); display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: clamp(.3rem, 1vw, .75rem); align-items: end; }
.histo .an { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: .35rem; text-align: center; }
.histo .tot, .histo .lib { font: .68rem var(--mono); font-stretch: 87.5%; color: var(--t-soft); }
.histo .lib { color: var(--t-muted); }
.histo .pile { height: calc(var(--t) * (100% - 2.6rem)); display: flex; flex-direction: column-reverse; border-radius: 4px 4px 0 0; overflow: hidden; transform-origin: bottom; transition: transform 1.8s cubic-bezier(.2, .7, .2, 1), height .8s cubic-bezier(.3, .7, .2, 1); }
.js .rep-annees:not(.vu) .pile { transform: scaleY(0); }
/* Suivre un sujet : les autres segments se replient pendant que la colonne descend à la hauteur du sujet
   (--t recalculé par articles.js, à l'échelle du sujet) ; tout remonte quand on le désélectionne. */
.histo .pile span { flex: var(--n) 0 0; min-height: 0; transition: flex-grow .8s cubic-bezier(.3, .7, .2, 1), opacity .5s ease; }
.histo[data-suivi] .pile span { flex-grow: 0; opacity: 0; }
.histo[data-suivi="tv"] .pile [data-s="tv"], .histo[data-suivi="stream"] .pile [data-s="stream"], .histo[data-suivi="jeu"] .pile [data-s="jeu"], .histo[data-suivi="pc"] .pile [data-s="pc"],
.histo[data-suivi="science"] .pile [data-s="science"], .histo[data-suivi="logiciel"] .pile [data-s="logiciel"], .histo[data-suivi="ia"] .pile [data-s="ia"], .histo[data-suivi="autre"] .pile [data-s="autre"] { flex-grow: var(--n); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .histo .pile, .histo .pile span { transition: none; } }
.rep-legende { display: flex; flex-wrap: wrap; gap: .3rem .5rem; }
.rep-legende button { display: inline-flex; align-items: center; gap: .4rem; min-height: 32px; padding: .2rem .55rem; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--t-text); font: .72rem var(--mono); font-stretch: 87.5%; cursor: pointer; }
.rep-legende button span { width: 9px; height: 9px; border-radius: 2px; }
.rep-legende button[aria-pressed="true"] { border-color: var(--t-yellow); }
.rep-legende button:hover { border-color: var(--t-line); }
.rep-annees .rep-note { color: var(--t-muted); margin: 0; }
.no-js-only { }
@media (min-width: 40em) { .rep-faits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64em) { .repartition { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.s-console { background: var(--t-bg); color: var(--t-text); border-radius: var(--radius); padding: clamp(1rem, .8rem + 1vw, 1.75rem); display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; font-family: var(--mono); font-stretch: 87.5%; }
.s-champ { display: flex; align-items: center; gap: .75rem; background: #151924; border: 1px solid var(--t-line); border-radius: 10px; padding: .25rem .5rem .25rem 1rem; }
.s-champ > span { color: var(--t-yellow); }
.s-champ input { flex: 1; min-width: 0; background: none; border: 0; color: var(--t-text); font: 1.05rem var(--sans); min-height: 46px; }
.s-champ input:focus { outline: none; }
.s-champ input::-webkit-search-cancel-button { display: none; } /* le bouton « effacer » du site suffit */
.s-champ:focus-within { border-color: var(--t-yellow); }
.s-effacer, .s-reset { background: none; border: 1px solid var(--t-line); color: var(--t-soft); border-radius: 999px; padding: .35rem .75rem; font: .72rem var(--mono); cursor: pointer; }
.s-sugg { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .72rem; color: var(--t-muted); }
.s-sug { background: none; border: 1px solid var(--t-line); color: var(--t-cyan); border-radius: 999px; padding: .3rem .65rem; font: .72rem var(--mono); cursor: pointer; min-height: 32px; }
.s-sug:hover { border-color: var(--t-cyan); }
.s-filtres { display: grid; gap: .5rem 1rem; padding-top: 1rem; border-top: 1px solid var(--t-line); font-size: .75rem; color: var(--t-muted); }
.s-filtres > div { display: flex; flex-wrap: wrap; gap: .4rem; }
.s-console { scroll-margin-top: 1.5rem; }
.s-chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 34px; padding: .3rem .75rem; border: 1px solid #2C3244; border-radius: 999px; background: none; color: var(--t-text); font: .75rem var(--mono); font-stretch: 87.5%; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.s-chip .pt { width: 7px; height: 7px; border-radius: 50%; }
.s-chip .nb { color: var(--t-muted); }
.s-chip[aria-pressed="true"] { background: var(--t-yellow); border-color: var(--t-yellow); color: #14151A; }
.s-chip[aria-pressed="true"] .nb { color: #14151ACC; }
.s-chip:disabled { opacity: .4; cursor: default; }
.s-chip:not([aria-pressed="true"]):not(:disabled):hover { border-color: var(--t-soft); }
.s-resultat { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--t-line); font-size: .8rem; }
.s-resultat b { color: var(--t-yellow); }
.s-annee { display: flex; align-items: baseline; gap: 1rem; padding: .5rem .25rem; border-bottom: 2px solid var(--text); font: 700 1.5rem var(--mono); font-stretch: 87.5%; }
.s-annee .nb { font-size: .72rem; font-weight: 400; color: var(--muted); }
.s-liste { list-style: none; margin: 0 0 2rem; padding: 0; }
.s-liste li { border-bottom: 1px solid var(--border); }
.s-row { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: .25rem 1rem; padding: 1rem .25rem; text-decoration: none; transition: background .2s ease; }
.s-row:hover { background: var(--surface); }
.s-row time { font: .72rem var(--mono); font-stretch: 87.5%; color: var(--muted); padding-top: .2rem; }
.s-txt { display: flex; flex-direction: column; gap: .4rem; }
.s-titre { font-size: 1.02rem; line-height: 1.4; }
.s-titre mark { background: var(--yellow); color: #14151A; border-radius: 2px; }
.s-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font: .68rem var(--mono); font-stretch: 87.5%; }
.s-type { text-transform: uppercase; font-weight: 700; letter-spacing: .04em; padding: .15rem .45rem; border-radius: 4px; color: var(--tc); background: color-mix(in srgb, var(--tc) 13%, transparent); }
.s-type.actu { color: var(--muted); background: var(--panel); }
.s-tag { color: var(--cc); }
/* thème clair : teintes foncées d'un quart pour les petites étiquettes (contraste 4,5:1 au moins) */
:root:not([data-theme="sombre"]) .s-tag { color: color-mix(in srgb, var(--cc) 75%, #000); }
:root:not([data-theme="sombre"]) .s-type:not(.actu) { color: color-mix(in srgb, var(--tc) 75%, #000); }
.s-go { display: none; font: .72rem var(--mono); color: var(--muted); }
.s-row:hover .s-go { color: var(--blue); }
.s-vide { padding: 2rem 0; color: var(--soft); }
.s-vide button { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; font: inherit; cursor: pointer; }
.s-plus-zone { display: flex; flex-direction: column; align-items: center; gap: .6rem; font: .75rem var(--mono); font-stretch: 87.5%; color: var(--muted); }

/* Tous les articles, par année (pages lisibles sans JavaScript) */
.s-annees { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); padding-top: 1.25rem; border-top: 1px solid var(--border); font: .78rem var(--mono); font-stretch: 87.5%; color: var(--muted); }
.s-annees ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.s-annees a, .s-annees [aria-current] { display: inline-flex; align-items: baseline; gap: .45rem; min-height: 40px; align-items: center; padding: .35rem .8rem; border: 1px solid var(--border); border-radius: 999px; color: var(--text); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.s-annees a:hover, .s-annees a:focus-visible { border-color: var(--text); transform: translateY(-2px); }
.s-annees [aria-current] { background: var(--text); border-color: var(--text); color: var(--bg); }
.s-annees li span { color: var(--muted); }
.s-annees [aria-current] span { color: inherit; opacity: .7; }
.s-archive-ouv { padding-bottom: 0; }
.section.s-archive { padding-top: clamp(1.5rem, 1rem + 2vw, 3rem); }
@media (prefers-reduced-motion: reduce) { .s-annees a { transition: none; } .s-annees a:hover { transform: none; } }
.s-plus-zone[hidden] { display: none; }
.s-archive .s-plus-zone { margin: 2rem 0 1rem; }
/* archives d'une année : chaque paquet d'articles arrive ligne à ligne */
.s-liste li.s-arrive { animation: s-arrive .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(min(var(--k, 0), 14) * 45ms); }
@keyframes s-arrive { from { opacity: 0; transform: translateY(10px); } }
@media (min-width: 48em) {
  .s-filtres { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .s-row { grid-template-columns: 5rem minmax(0, 1fr) auto; align-items: center; }
  .s-go { display: block; }
}

.medias { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 64em) { .medias { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.media { padding: 1.25rem; display: flex; flex-direction: column; gap: .7rem; text-decoration: none; min-height: 10rem; transition: transform .25s ease, box-shadow .25s ease; }
a.media:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(20, 21, 26, .09); }
.logo-m { display: inline-flex; align-self: flex-start; align-items: center; padding: .4rem; background: #fff; border: 1px solid var(--border); border-radius: 10px; min-height: 48px; }
.logo-m img { width: auto; max-width: 9rem; }
.media b { font: 700 1.1rem var(--mono); font-stretch: 87.5%; }
.media .lien { margin-top: auto; font: .72rem var(--mono); font-stretch: 87.5%; color: var(--green); }
.media.disparu { background: transparent; }
.media.disparu .logo-m { filter: grayscale(1); opacity: .75; }
.media.disparu b { color: var(--muted); }
.media.disparu .lien { color: var(--muted); }
.media.clubic { background: var(--t-bg); color: var(--t-text); border-radius: var(--radius); }
.media.clubic .logo-m { background: none; border: 0; padding: 0; }
.media.clubic .texte-m { font: .78rem/1.7 var(--mono); font-stretch: 87.5%; color: var(--t-muted); }
.media.clubic .lien { color: var(--t-yellow); }

/* ==========================================================================
   Journal
   ========================================================================== */
.h1.geant { font-size: clamp(3rem, 2rem + 5vw, 6rem); line-height: 1; }
.j-ouv { padding-top: clamp(2.5rem, 1rem + 6vw, 6rem); }
.j-titre-ouv { display: grid; gap: 1.25rem; }
.j-outils { margin: 2rem 0 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; }
.j-filtres { display: flex; flex-wrap: wrap; gap: .45rem; }
.j-filtres button { min-height: 36px; padding: .35rem .85rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: .75rem var(--mono); font-stretch: 87.5%; cursor: pointer; }
.j-filtres button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.j-rss { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: .35rem .85rem; border: 1px solid var(--border); border-radius: 999px; font: .75rem var(--mono); font-stretch: 87.5%; color: var(--orange); text-decoration: none; background: var(--surface); }
.j-cartes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.j-carte a { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.j-carte a:hover, .j-carte a:focus-visible { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--jc); border-color: var(--text); outline: none; }
.j-haut { background: var(--jc); color: #14151A; padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 1.25rem; }
.j-motif .cur { display: inline-block; width: .5em; height: .85em; margin-left: .05em; vertical-align: -.05em; background: #14151A; animation: clignote 1s steps(1) infinite; }
.j-meta { display: flex; justify-content: space-between; font: .7rem var(--mono); font-stretch: 87.5%; }
.j-motif { font: 800 clamp(2rem, 1.6rem + 1.4vw, 2.6rem)/1 var(--mono); font-stretch: 87.5%; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.j-bas { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.j-bas b { font-size: 1.15rem; line-height: 1.3; }
.j-extrait { color: var(--soft); font-size: .92rem; }
.j-cta { margin-top: auto; font: .75rem var(--mono); font-stretch: 87.5%; color: var(--blue); }
@media (min-width: 48em) { .j-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.j-carte { transition: opacity .35s ease, filter .35s ease; }
.j-carte.j-hors { opacity: .35; filter: grayscale(1); }
.j-carte.j-hors:hover, .j-carte.j-hors:focus-within { opacity: .7; }
@media (min-width: 64em) { .j-cartes { gap: 1.5rem; } .j-titre-ouv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 4.5rem; } }
/* cartes avec image (façon média) : le haut coloré garde son mot ; dessous l'image 16:9, puis catégorie · date */
.j-carte.a-image .j-haut, .j-next.a-image .j-haut { gap: .9rem; }
.j-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--t-bg); border-bottom: 1px solid var(--border); }
.j-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.j-carte a:hover .j-img img, .j-carte a:focus-visible .j-img img, .j-next:hover .j-img img, .j-next:focus-visible .j-img img { transform: scale(1.03); }
.j-surmeta { font: .72rem var(--mono); font-stretch: 87.5%; color: var(--muted); }
.j-surmeta .c { color: var(--text); font-weight: 700; }
/* une note sans image à côté d'une note avec image : son haut coloré prend la hauteur, le mot descend en bas */
@media (min-width: 48em) { .j-carte:not(.a-image):not(.j-une) .j-haut { flex: 1; justify-content: space-between; min-height: 9.5rem; } .j-carte:not(.a-image):not(.j-une) .j-bas { flex: none; } }
/* la note à la une : toute la largeur, mot et titre plus grands ; avec image, image à gauche et texte à droite */
.j-une { grid-column: 1 / -1; }
.j-une-lib { display: inline-flex; align-items: center; gap: .4rem; }
.j-une-lib::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: #14151A; }
.j-une .j-motif { font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4.6rem); }
.j-une .j-bas b { font-size: clamp(1.4rem, 1.15rem + 1vw, 2.1rem); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.j-une .j-extrait { font-size: clamp(.95rem, .9rem + .2vw, 1.06rem); line-height: 1.65; }
.j-une:not(.a-image) .j-haut { padding-block: 1.4rem 1.75rem; }
@media (min-width: 64em) {
  .j-une.a-image a { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr; }
  .j-une.a-image .j-haut { grid-column: 1 / -1; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 2rem; padding: 1.4rem 1.75rem 1.5rem; }
  .j-une.a-image .j-meta { flex-direction: column; justify-content: flex-end; gap: .35rem; text-align: right; order: 2; flex: none; }
  .j-une.a-image .j-img { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid var(--border); }
  .j-une.a-image .j-bas { padding: 2rem 2rem 1.75rem; gap: .9rem; justify-content: center; }
  .j-une.a-image .j-cta { margin-top: .5rem; }
}
/* ouverture : la liste des notes, comme au terminal */
.j-titre-txt { display: flex; flex-direction: column; gap: 1.25rem; }
.j-ls .term-corps { font-size: .78rem; }
.j-ls ul { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.j-ls a { display: grid; grid-template-columns: auto 4.5rem 2.6rem 3.4rem minmax(0, 1fr); gap: .8rem; align-items: baseline; padding: .3rem .5rem; margin: 0 -.5rem; border-radius: 6px; color: var(--t-text); text-decoration: none; transition: background .2s ease; }
.j-ls a:hover, .j-ls a:focus-visible { background: #151924; outline: none; }
.j-ls a:hover .f, .j-ls a:focus-visible .f { text-decoration: underline; text-underline-offset: 3px; }
.j-ls .perm { color: var(--t-muted); font-size: .7rem; }
.j-ls time { color: var(--t-soft); }
.j-ls .cat { color: var(--jc); font-weight: 700; }
.j-ls .du { color: var(--t-muted); }
.j-ls .f { color: var(--t-blue); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.j-ls-total { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--t-line); font-size: .72rem; }
@media (max-width: 39.99em) { .j-ls .perm { display: none; } .j-ls a { grid-template-columns: 4.2rem 2.4rem minmax(0, 1fr); } .j-ls .du { display: none; } }

.j-note { margin-top: clamp(3rem, 2rem + 4vw, 6rem); padding-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); border-top: 2px solid var(--text); display: grid; gap: 2.5rem; }
.j-retour { padding-top: 2rem; }
.j-retour + .j-note { margin-top: 1.5rem; border-top: 0; padding-top: 0; }
.j-retour a { font: .8rem var(--mono); font-stretch: 87.5%; color: var(--blue); }
.j-texte { max-width: 42rem; min-width: 0; }
.j-surtitre { font: .8rem var(--mono); font-stretch: 87.5%; color: var(--jt); margin-bottom: .75rem; }
.j-surtitre a { color: inherit; text-underline-offset: 2px; }
/* image de la note, en tête (dans une fenêtre de terminal), et images du texte */
.j-couv-fig { margin: 0 0 2rem; }
.j-couv { margin: 0; overflow: hidden; }
/* pied de l'image en tête : légende à gauche (// …), crédit (« © … ») à droite, discrets, sous la fenêtre de terminal */
.j-pied { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; margin-top: .6rem; font: .8rem/1.5 var(--mono); font-stretch: 87.5%; color: var(--soft); }
.j-pied:not(.avec-credit)::before, .j-pied .md-legende::before { content: '// '; color: var(--jt); }
.j-texte .md-credit { display: block; margin-left: auto; text-align: right; font: .72rem/1.4 var(--mono); font-stretch: 87.5%; color: var(--muted); }
.j-texte .md-credit a { color: inherit; text-underline-offset: 2px; }
.j-texte .md-image figcaption.avec-credit { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; }
.j-texte .md-image figcaption.avec-credit::before { content: none; }
.j-texte .md-image figcaption .md-legende::before { content: '// '; color: var(--jt); }
.j-texte .md-image figcaption .md-credit { margin: 0 0 0 auto; }
/* images du texte : elles mènent à leur grande version (journal.js les ouvre par-dessus la page) */
.j-texte .md-agrandir { display: block; cursor: zoom-in; border-radius: 12px; }
.j-texte .md-agrandir:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.j-couv img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
/* l'image en tête mène à sa grande version (journal.js l'ouvre par-dessus la page) */
.j-agrandir { display: block; position: relative; cursor: zoom-in; }
.j-agrandir:focus-visible { outline: 2px solid var(--t-yellow); outline-offset: -4px; border-radius: 0; }
.j-agrandir-pastille { position: absolute; right: .75rem; bottom: .75rem; padding: .3rem .6rem; border-radius: 999px; background: rgba(11, 13, 18, .78); color: var(--t-text); font: .7rem var(--mono); font-stretch: 87.5%; opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.j-agrandir:hover .j-agrandir-pastille, .j-agrandir:focus-visible .j-agrandir-pastille { opacity: 1; transform: none; }
@media (hover: none) { .j-agrandir-pastille { opacity: 1; transform: none; } }
/* une note (ou un projet du Lab) glissée dans le texte : carte « à lire aussi », fabriquée à la génération */
.note-liee { margin: 2.25rem 0; }
.note-liee .nl-lib { display: block; margin-bottom: .55rem; font: .75rem var(--mono); font-stretch: 87.5%; color: var(--muted); }
.note-liee .nl-lib b { font-weight: 400; color: var(--jt); }
.note-liee a { display: grid; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.note-liee a:hover, .note-liee a:focus-visible { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--jc); border-color: var(--text); outline: none; }
.nl-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--t-bg); }
.nl-img img { width: 100%; height: 100%; object-fit: cover; }
.nl-motif { display: flex; align-items: flex-end; aspect-ratio: 16 / 9; padding: 1rem 1.1rem; background: var(--jc); color: #14151A; font: 800 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1 var(--mono); font-stretch: 87.5%; letter-spacing: -.03em; overflow: hidden; }
.nl-avatar { align-items: center; justify-content: center; padding: 1rem; }
.nl-avatar svg { width: auto; height: 5.5rem; max-width: 80%; }
.nl-txt { display: flex; flex-direction: column; gap: .45rem; padding: 1rem 1.15rem 1.1rem; min-width: 0; }
.nl-meta { font: .7rem var(--mono); font-stretch: 87.5%; color: var(--muted); }
.nl-meta .c { color: var(--text); font-weight: 700; }
.nl-txt b { font-size: 1.05rem; line-height: 1.3; }
.nl-extrait { color: var(--soft); font-size: .88rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 36em) {
  .note-liee a { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .nl-img, .nl-motif { aspect-ratio: auto; min-height: 100%; }
  .nl-txt { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .note-liee a { transition: none; } }
/* « ♥ j'aime » (module partage) : un petit cœur au bout de la barre de lecture, et une ligne dans « // partager » */
.j-prog .j-prog-txt { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.j-coeur-mini { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 32px; padding: .2rem .6rem .2rem .45rem; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--muted); font: .7rem var(--mono); font-stretch: 87.5%; text-decoration: none; transition: color .2s ease, border-color .2s ease; }
.j-coeur-mini .c { color: var(--pink); font-size: .85rem; line-height: 1; transition: transform .25s ease; }
.j-coeur-mini:hover, .j-coeur-mini:focus-visible { color: var(--text); border-color: var(--pink); outline: none; }
.j-coeur-mini:hover .c, .j-coeur-mini:focus-visible .c { transform: scale(1.2); }
.j-coeur-mini:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--pink); }
.j-partage .j-aime { color: var(--pink); }
.j-aime .c, .j-coeur-mini .c { display: inline-block; }
.aime .c { animation: battement .5s ease-out; }
@keyframes battement { 0% { transform: scale(1); } 30% { transform: scale(1.45); } 55% { transform: scale(.9); } 100% { transform: scale(1); } }
@media (max-width: 39.99em) { .j-coeur-mini .lib { display: none; } .j-coeur-mini { padding: .2rem .5rem; } }
/* la fenêtre de partage : l'aperçu de ce qui sera partagé, aux couleurs du thème */
.partage { width: min(100vw - 2rem, 46rem); max-width: none; max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); overflow: auto; }
.partage::backdrop { background: rgba(6, 7, 10, .62); }
.partage[open] { animation: p-ouvre .24s ease-out; }
@keyframes p-ouvre { from { opacity: 0; transform: translateY(10px); } }
.partage-tete { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem .2rem; }
.partage-tete h2 { margin: 0; font: 600 clamp(1.15rem, 1rem + .6vw, 1.4rem)/1.25 var(--sans); }
.partage-c { color: var(--pink); display: inline-block; animation: battement .6s .1s ease-out both; }
.partage-fermer { margin-left: auto; flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text); font: 1rem var(--mono); cursor: pointer; }
.partage-fermer:hover, .partage-fermer:focus-visible { border-color: var(--text); outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--blue); }
.partage-invite { margin: 0; padding: 0 1.4rem; color: var(--soft); font-size: .95rem; }
.partage-apercu { margin: 1.1rem 1.4rem 0; display: grid; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.partage-img { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--t-bg); }
.partage-img img { width: 100%; height: 100%; object-fit: cover; }
.partage-txt { display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1.15rem 1.1rem; min-width: 0; }
.partage-meta { font: .72rem var(--mono); font-stretch: 87.5%; color: var(--muted); }
.partage-meta b { color: var(--text); }
.partage-txt strong { font: 600 1.12rem/1.3 var(--sans); text-wrap: balance; }
.partage-extrait { color: var(--soft); font-size: .88rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.partage-domaine { margin-top: auto; padding-top: .3rem; font: .72rem var(--mono); font-stretch: 87.5%; color: var(--muted); }
@media (min-width: 40em) { .partage-apercu { grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); } .partage-img { aspect-ratio: auto; min-height: 100%; } }
.partage-actions { display: grid; gap: .9rem; padding: 1.1rem 1.4rem 1.3rem; }
.partage-lien { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.partage-lien input { flex: 1; min-width: 0; padding: .65rem .85rem; border: 0; background: transparent; color: var(--text); font: .85rem var(--mono); font-stretch: 87.5%; }
.partage-lien input:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.partage-lien button { flex: none; min-height: 44px; padding: 0 1rem; border: 0; background: var(--text); color: var(--bg); font: 600 .8rem var(--mono); font-stretch: 87.5%; cursor: pointer; }
.partage-lien button:focus-visible { outline: 2px solid var(--blue); outline-offset: -4px; }
.partage-reseaux { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem 1.1rem; margin: 0; padding: 0; list-style: none; font-size: .95rem; }
.partage-ou { font: .75rem var(--mono); font-stretch: 87.5%; color: var(--muted); }
.partage-reseaux a { display: inline-block; padding: .35rem 0; color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--border); text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color .2s ease; }
.partage-reseaux a:hover, .partage-reseaux a:focus-visible { text-decoration-color: var(--pink); outline: none; }
.partage-reseaux a:focus-visible { box-shadow: 0 2px 0 var(--pink); }
.partage-systeme { justify-self: start; display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 1.2rem; border: 0; border-radius: 999px; background: var(--text); color: var(--bg); font: 600 .95rem var(--sans); cursor: pointer; }
.partage-pied { margin: 0; padding: .75rem 1.4rem .9rem; border-top: 1px solid var(--border); font: .72rem/1.5 var(--mono); font-stretch: 87.5%; color: var(--muted); }
@media (max-width: 39.99em) {
  .partage { width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 0; }
  .partage[open] { animation-name: p-monte; }
  @keyframes p-monte { from { transform: translateY(100%); } }
  .partage-tete, .partage-invite, .partage-actions, .partage-pied { padding-left: 1.1rem; padding-right: 1.1rem; }
  .partage-apercu { margin-left: 1.1rem; margin-right: 1.1rem; }
  .partage-systeme { justify-self: stretch; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .partage[open], .partage-c, .aime .c { animation: none; } .j-coeur-mini, .j-coeur-mini .c { transition: none; } }
/* l'image ouverte en grand : fenêtre de dialogue en terminal */
.j-visionneuse { width: min(100vw - 2rem, 92rem); max-width: none; max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid var(--t-line); border-radius: var(--radius); background: var(--t-bg); color: var(--t-text); overflow: hidden; font-family: var(--mono); font-stretch: 87.5%; }
.j-visionneuse::backdrop { background: rgba(6, 7, 10, .88); }
.j-visionneuse[open] { display: flex; flex-direction: column; animation: v-ouvre .22s ease-out; }
@keyframes v-ouvre { from { opacity: 0; transform: scale(.98); } }
.j-visionneuse .term-barre { flex: none; }
.j-visionneuse .fermer { margin-left: auto; display: inline-flex; align-items: center; gap: .5rem; min-height: 36px; padding: .3rem .75rem; border: 1px solid var(--t-line); border-radius: 999px; background: transparent; color: var(--t-text); font: .75rem var(--mono); font-stretch: 87.5%; cursor: pointer; }
.j-visionneuse .fermer:hover, .j-visionneuse .fermer:focus-visible { background: #151924; outline: 2px solid var(--t-yellow); outline-offset: 2px; }
.j-visionneuse .fermer kbd { font: inherit; color: var(--t-muted); }
.j-visionneuse .v-img { flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; background: #06070A; }
/* une image en hauteur tient entière dans la fenêtre (barre et pied ≈ 6,5 rem, marges de 2 rem sur ordinateur) */
.j-visionneuse .v-img img { max-width: 100%; max-height: calc(100dvh - 8.5rem); width: auto; height: auto; object-fit: contain; }
.j-visionneuse .v-pied { flex: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.25rem; padding: .7rem 1rem .8rem; border-top: 1px solid var(--t-line); font-size: .72rem; line-height: 1.5; color: var(--t-muted); }
.j-visionneuse .v-pied a { color: var(--t-blue); }
.j-visionneuse .v-credit { color: var(--t-soft); }
.j-visionneuse .v-legende { flex: 1 1 16rem; color: var(--t-text); }
.j-visionneuse .v-legende::before { content: '// '; color: var(--t-muted); }
@media (max-width: 39.99em) {
  .j-visionneuse { width: 100vw; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .j-visionneuse .term-barre .nom { display: none; }
  /* téléphone : la fenêtre a toute la hauteur ; l'image prend ce qui reste entre la barre et le pied (qui grandit avec la légende) */
  .j-visionneuse[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
  .j-visionneuse .v-img { position: relative; height: 100%; }
  .j-visionneuse .v-img img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; }
}
@media (hover: none) { .j-visionneuse .fermer kbd { display: none; } }
@media (prefers-reduced-motion: reduce) { .j-visionneuse[open] { animation: none; } .j-img img, .j-agrandir-pastille { transition: none; } }
.j-texte .md-image { margin: 2rem 0; }
.j-texte .md-image img { display: block; width: auto; max-width: 100%; height: auto; max-height: 80vh; margin-inline: auto; border-radius: 12px; } /* une photo en hauteur reste à l'écran */
.j-texte .md-image figcaption { margin-top: .6rem; font: .8rem var(--mono); font-stretch: 87.5%; color: var(--soft); }
.j-texte .md-image figcaption::before { content: '// '; color: var(--jt); }
.j-titre { margin-bottom: 1.25rem; }
.j-chapo { font-size: var(--fs-lead); line-height: 1.6; margin-bottom: 2rem; }
.j-texte h2:not(.j-titre), .j-texte h3 { font: 700 clamp(1.1rem, 1rem + .4vw, 1.3rem)/1.35 var(--mono); font-stretch: 87.5%; color: var(--jt); margin: 2.25rem 0 .75rem; scroll-margin-top: 4rem; }
.j-texte > p:not(.j-surtitre):not(.j-chapo) { color: var(--soft); line-height: 1.75; margin-bottom: 1rem; }
.j-texte ol { list-style: none; counter-reset: point; margin: 0 0 1rem; padding: 0; }
.j-texte ol li { counter-increment: point; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); padding: .8rem 0; border-bottom: 1px solid var(--border); color: var(--soft); line-height: 1.7; }
.j-texte ol li::before { content: counter(point, decimal-leading-zero); font: 700 .85rem var(--mono); color: var(--jt); padding-top: .2rem; }
.j-point { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); padding: .8rem 0; border-bottom: 1px solid var(--border); margin: 0 !important; }
.j-point span:first-child { font: 700 .85rem var(--mono); color: var(--jt); }
.j-texte blockquote, .j-cite { margin: 2rem 0; background: var(--t-bg); color: var(--t-text); border-radius: 14px; padding: 1.25rem 1.5rem; font: clamp(.9rem, .85rem + .25vw, 1rem)/1.7 var(--mono); font-stretch: 87.5%; }
.j-cite span { color: var(--t-green); }
.j-texte blockquote p { margin: 0 !important; color: var(--t-text) !important; line-height: 1.7 !important; }
.j-texte blockquote p::before { content: '// '; color: var(--t-green); }
.j-prog { position: sticky; top: 0; z-index: 5; display: none; align-items: center; gap: .75rem; padding: .55rem 0; margin-bottom: 1.5rem; background: var(--bg); font: .7rem var(--mono); font-stretch: 87.5%; color: var(--muted); border-bottom: 1px solid var(--border); }
.js .j-prog { display: flex; }
.j-barre { color: var(--muted); white-space: nowrap; }
.j-barre [data-barre] { color: var(--jt); letter-spacing: -.04em; }
.j-barre .vide { color: var(--border); letter-spacing: 0; }
.j-pc { color: var(--text); }
.j-fin { margin-top: 2.5rem; padding: 1.25rem 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: .75rem; font: .78rem var(--mono); font-stretch: 87.5%; color: var(--muted); }
.j-fin a { color: var(--blue); }
.j-lue { color: var(--green); animation: f-line .4s ease-out both; }
/* fin de note : la note suivante en grande carte, puis l'historique du journal */
.j-lib-suite { margin-top: 2rem; margin-bottom: .6rem; }
.j-next { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.j-next:hover, .j-next:focus-visible { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--jc); border-color: var(--text); outline: none; }
.j-next .j-motif { font-size: clamp(2.2rem, 1.7rem + 2vw, 3.2rem); }
.j-gitlog { margin-top: 1.5rem; }
.j-gitlog .term-corps { font-size: .78rem; }
.j-gitlog ul { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.j-gl { font-family: var(--mono); font-stretch: 87.5%; line-height: 1.5; display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; gap: .8rem; align-items: baseline; padding: .3rem .5rem; margin: 0 -.5rem; border-radius: 6px; color: var(--t-text); text-decoration: none; }
.j-gl .hash { color: var(--t-yellow); }
.j-gl .gl-msg { color: var(--jc); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.j-gl:hover, a.j-gl:focus-visible { background: #151924; outline: none; }
a.j-gl:hover .gl-msg, a.j-gl:focus-visible .gl-msg { text-decoration: underline; text-underline-offset: 3px; }
.j-gl.ici { background: #151924; }
@media (max-width: 39.99em) { .j-gl { grid-template-columns: 4.2rem minmax(0, 1fr); row-gap: 0; } .j-gl .gl-msg { white-space: normal; } .j-gl > :last-child { grid-column: 2; font-size: .7rem; } }
/* lecture mise en scène : titre et citations tapés, intertitres qui arrivent */
.j-tape .cur { display: inline-block; width: .5em; height: 1em; margin-left: .04em; vertical-align: -.12em; background: var(--yellow); animation: clignote 1s steps(1) infinite; }
.j-texte blockquote .j-tape .cur { background: var(--t-green); }
.j-tape .reste { color: transparent; }
.js .j-texte h3.j-attend { opacity: 0; }
.js .j-texte h3.j-vu { animation: pr-in .5s cubic-bezier(.2, .8, .2, 1) both; }
@media (prefers-reduced-motion: reduce) { .j-next { transition: none; } .js .j-texte h3.j-attend { opacity: 1; } .j-lue { animation: none; } }
.j-ponts { margin-top: 1.5rem; }
.j-ponts > div { display: grid; gap: .75rem; margin-top: .75rem; }
.j-pont { padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .3rem; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.j-pont:hover { transform: translateY(-3px); border-color: var(--text); }
.j-pont span:not(.j-cta) { color: var(--soft); font-size: .9rem; }
.j-lib { font: .75rem var(--mono); font-stretch: 87.5%; color: var(--muted); }
.j-cote { display: flex; flex-direction: column; gap: 1.5rem; order: 2; }
.j-fiche .term-corps { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; white-space: pre; }
.j-toc { display: none; }
.j-toc ol { list-style: none; margin: .6rem 0 0; padding: 0; border-left: 1px solid var(--border); }
.j-toc a { display: block; padding: .45rem .85rem; font: .72rem/1.5 var(--mono); font-stretch: 87.5%; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; margin-left: -1px; }
.j-toc a:hover { color: var(--text); }
.j-toc a[aria-current="true"] { color: var(--jt); border-left-color: var(--jt); }
.j-bloc { display: flex; flex-direction: column; gap: .5rem; }
.j-bloc a, .j-bloc button { font: .78rem var(--mono); font-stretch: 87.5%; color: var(--blue); background: none; border: 0; padding: .2rem 0; text-align: left; cursor: pointer; text-decoration: none; min-height: 32px; }
.j-bloc a:hover, .j-bloc button:hover { text-decoration: underline; }
@media (min-width: 40em) { .j-ponts > div { grid-template-columns: repeat(2, minmax(0, 1fr)); } .j-fin { flex-direction: row; justify-content: space-between; } }
@media (min-width: 64em) {
  .j-note { grid-template-columns: 15rem minmax(0, 42rem); justify-content: center; gap: clamp(3rem, 5vw, 5rem); align-items: start; }
  .j-cote { order: 0; position: sticky; top: 1.5rem; }
  .j-toc { display: block; }
}

.j-suivre { background: var(--t-bg); color: var(--t-text); border-radius: var(--radius-lg); padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); display: grid; gap: 1.5rem; }
.j-suivre .kicker { color: var(--t-muted); }
.j-suivre p:not(.kicker) { color: var(--t-soft); margin-bottom: .9rem; }
@media (min-width: 60em) { .j-suivre { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; } }

/* ==========================================================================
   À propos
   ========================================================================== */
:root { --ocre: #A07C00; }
:root[data-theme="sombre"] { --ocre: #FFD23F; }
.h3-mono { font: 700 clamp(1.3rem, 1.15rem + .6vw, 1.7rem)/1.25 var(--mono); font-stretch: 87.5%; margin-bottom: 1.25rem; }
.ancres.statiques { display: flex; flex-wrap: wrap; gap: .5rem; }
.ancres.statiques > span { --ac: var(--green); display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font: .75rem var(--mono); font-stretch: 87.5%; }
.ancres.statiques > span > span { color: var(--ac); }
.ap-portrait { position: relative; margin: 0; padding-bottom: 1.5rem; }
.ap-portrait img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 50% 25%; }
.ap-badge { position: absolute; left: -.5rem; bottom: 0; background: var(--yellow); color: #14151A; border-radius: 12px; padding: .9rem 1.2rem; box-shadow: 0 14px 30px rgba(20, 21, 26, .18); display: flex; flex-direction: column; gap: .2rem; }
.ap-badge b { font: 800 1.6rem var(--mono); font-stretch: 87.5%; }
.ap-badge > span { font: .72rem var(--mono); font-stretch: 87.5%; }
@media (min-width: 60em) { .ap-badge { left: -2rem; bottom: 1.5rem; } .ap-portrait { padding-bottom: 0; } }

.roles { display: grid; gap: 1rem; }
.role { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); display: flex; flex-direction: column; gap: .75rem; }
.role-tete { display: flex; justify-content: space-between; gap: 1rem; font: .72rem var(--mono); font-stretch: 87.5%; color: var(--muted); }
.role-tete .etat { color: var(--rc); }
.role h3 { font: 700 clamp(1.3rem, 1.15rem + .6vw, 1.6rem)/1.2 var(--mono); font-stretch: 87.5%; color: var(--rc); }
.role p { color: var(--soft); }
.role a { margin-top: auto; padding-top: .5rem; font: .78rem var(--mono); font-stretch: 87.5%; color: var(--blue); }
@media (min-width: 48em) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .role.large { grid-column: 1 / -1; } }
/* toute la carte est cliquable ; au survol elle se soulève et laisse voir son ombre de couleur, comme les projets du Lab */
.role { position: relative; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.role a { text-decoration: none; }
.role a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.role:hover, .role:focus-within { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--rc); border-color: var(--rc); }
.role:hover a, .role:focus-within a { text-decoration: underline; text-underline-offset: 3px; }
.role a:focus-visible { outline: none; }

.parcours { display: grid; gap: 2rem; }
.parcours-cote { display: flex; flex-direction: column; gap: 1rem; }
.bilan { margin-top: 1rem; padding: 1.4rem 1.6rem; display: flex; flex-direction: column; }
.bilan .kicker { font-size: .85rem; margin-bottom: .4rem; }
.bilan > div { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: .75rem 0; border-top: 1px dashed var(--border); font-size: 1rem; line-height: 1.45; }
.bilan > div b { font: 800 1.55rem var(--mono); letter-spacing: -.02em; font-stretch: 87.5%; text-align: right; white-space: nowrap; }
.git-log { list-style: none; margin: 0; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--t-bg); color: var(--t-text); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 1.6rem; }
.git-log li { position: relative; padding-left: 1.75rem; display: flex; flex-direction: column; gap: .3rem; }
.git-log .pt { position: absolute; left: 0; top: .3rem; width: 11px; height: 11px; border-radius: 50%; background: var(--pc); }
.git-log li:not(.head)::after { content: ''; position: absolute; left: 5px; top: 1.2rem; bottom: -1.4rem; width: 1px; background: var(--t-line); }
.git-log .quand { font: .7rem var(--mono); font-stretch: 87.5%; color: var(--t-muted); }
.git-log .hash { color: var(--t-yellow); }
.git-log b { font: 700 1rem var(--mono); font-stretch: 87.5%; color: var(--pc); }
.git-log .txt { color: var(--t-soft); font-size: .93rem; }
.git-log .head { font: .75rem var(--mono); font-stretch: 87.5%; color: var(--t-muted); padding-left: 1.75rem; }
.git-log .head .curseur { background: var(--t-text); }
@media (min-width: 64em) { .parcours { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; } }
/* le titre et le bilan accompagnent le parcours au défilement, si la fenêtre est assez haute pour les montrer en entier */
@media (min-width: 64em) and (min-height: 48em) { .parcours-cote { position: sticky; top: 2rem; } }

.principes { display: grid; gap: 1rem; }
.principe { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; }
.principe .n { font: 800 1.6rem var(--mono); font-stretch: 87.5%; color: var(--pc); }
.principe b { font-size: 1.15rem; font-weight: 600; display: block; margin-bottom: .4rem; }
.principe p { color: var(--soft); font-size: .95rem; }
.pr-lignes { margin-top: 1rem; background: var(--panel); border-radius: 10px; padding: .75rem .9rem; font: .72rem var(--mono); font-stretch: 87.5%; display: flex; flex-direction: column; gap: .3rem; }
.pr-lignes div { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); }
.pr-lignes b { font-size: inherit; margin: 0; display: inline; color: var(--pc); font-weight: 700; text-align: right; }
@media (min-width: 48em) { .principes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* le numéro et le titre de chaque principe arrivent l'un après l'autre ; le reste de la carte est déjà là */
.js .principes[data-cascade]:not(.vu) .principe .n, .js .principes[data-cascade]:not(.vu) .pr-titre { opacity: 0; }
.js .principes[data-cascade].vu .principe .n, .js .principes[data-cascade].vu .pr-titre { animation: pr-in .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.15s + var(--k, 0) * .45s); }
/* translate (et non transform) : le numéro peut encore pivoter au survol une fois arrivé */
@keyframes pr-in { from { opacity: 0; translate: -10px 0; } }
/* au survol : un trait de couleur sur le bord, le numéro qui pivote */
.principe { position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.principe::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--pc); transform: scaleY(0); transform-origin: top; transition: transform .35s ease; }
.principe:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20, 21, 26, .1); }
.principe:hover::before { transform: scaleY(1); }
.principe .n { display: inline-block; transition: transform .3s ease; }
.principe:hover .n { transform: scale(1.12) rotate(-4deg); }
@media (prefers-reduced-motion: reduce) { .role, .principe, .principe::before, .principe .n { transition: none; } }

.ap-moment { display: grid; gap: 1rem; }
.moment { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.moment ul { list-style: none; margin: 0; padding: 0; }
.moment li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); padding: .8rem 0; border-top: 1px solid var(--border); }
.moment .fl { color: var(--mc); font-family: var(--mono); }
.moment li b { display: block; font-weight: 600; }
.moment li span span { color: var(--soft); font-size: .9rem; }
.poste .term-corps { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); display: flex; flex-direction: column; height: 100%; }
.poste .h3-mono { color: var(--t-text); margin-top: .5rem; }
.arbre { display: flex; flex-direction: column; gap: .35rem; font-size: .8rem; overflow-x: auto; padding-bottom: .25rem; }
.arbre > div { white-space: pre; }
.arbre .br { color: var(--t-muted); white-space: pre; }
.note-poste { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--t-line); font-size: .72rem; }
@media (min-width: 64em) { .ap-moment { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .note-poste { margin-top: 2rem; } }
.boutons-appel { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.lien-encre { font: .85rem var(--mono); font-stretch: 87.5%; color: #14151A; }

/* ==========================================================================
   Livre
   ========================================================================== */
.couv { font-stretch: 87.5%; }
.etiq { font: .72rem var(--mono); font-stretch: 87.5%; padding: .2rem .45rem; border-radius: 5px; background: var(--panel); }
.btn-contour:hover .etiq { background: var(--yellow); color: #14151A; }
.livre-etat { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.p-attente { color: var(--muted); }
.livre-3d { display: flex; justify-content: center; perspective: 1800px; padding: 1rem 0 2rem; }
.l-book { width: min(100%, 27.5rem); transform: rotateY(-14deg) rotateX(3deg); transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2, .7, .2, 1); box-shadow: 30px 34px 60px rgba(20, 21, 26, .28), 2px 2px 0 rgba(20, 21, 26, .08); border-radius: 3px 8px 8px 3px; overflow: hidden; }
.l-book:hover { transform: rotateY(-4deg) rotateX(1deg); }
@media (max-width: 39.99em) { .l-book { width: 78%; } }

.citation-livre { margin: 0; background: var(--t-bg); color: var(--t-text); border-radius: var(--radius-lg); padding: clamp(1.75rem, 1rem + 3.5vw, 4.5rem); }
.citation-livre .cmd { font: .8rem var(--mono); font-stretch: 87.5%; color: var(--t-muted); margin-bottom: 1.25rem; }
.citation-livre blockquote { margin: 0; }
.citation-livre blockquote p { font: 400 clamp(1.4rem, 1.1rem + 1.6vw, 2.4rem)/1.35 var(--serif); }
.citation-livre figcaption { margin-top: 1.25rem; font: .75rem var(--mono); font-stretch: 87.5%; color: var(--t-muted); }

.piliers { display: grid; gap: 1rem; }
.pilier { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); display: flex; flex-direction: column; gap: .6rem; }
.pilier .cmd { font: .75rem var(--mono); font-stretch: 87.5%; color: var(--pc); }
.pilier h3 { font: 700 1.3rem var(--mono); font-stretch: 87.5%; }
.pilier p { color: var(--soft); }
.promesse { margin-top: clamp(2.5rem, 2rem + 3vw, 5rem); display: grid; gap: 1rem; }
.veut, .veut-pas { padding: clamp(1.4rem, 1rem + 1.5vw, 2.25rem); border-top: 3px solid var(--green); }
.veut-pas { background: var(--pink-bg); border-color: transparent; border-top-color: var(--pink); }
.veut h3, .veut-pas h3 { font: 700 clamp(1.15rem, 1.05rem + .4vw, 1.35rem) var(--mono); font-stretch: 87.5%; color: var(--green); margin-bottom: 1.25rem; }
.veut-pas h3 { color: var(--pink); }
.veut-pas h3 .curseur { background: var(--pink); }
.veut ul, .veut-pas ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.veut li, .veut-pas li { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr); gap: .6rem; line-height: 1.55; }
.veut .m, .veut-pas .m { width: 1.4rem; height: 1.4rem; border-radius: 5px; display: grid; place-items: center; font: 700 .85rem var(--mono); background: var(--green-bg); color: var(--green); }
.veut-pas .m { background: var(--surface); color: var(--pink); }
.veut-pas s { text-decoration-color: var(--pink); text-decoration-thickness: 2px; }
@media (min-width: 48em) { .piliers { grid-template-columns: repeat(3, minmax(0, 1fr)); } .promesse { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.extraits { display: grid; gap: 1rem; }
.extraits-onglets { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .4rem; scroll-snap-type: x mandatory; }
.extraits-onglets [role="tab"] { flex: 0 0 min(78%, 16rem); scroll-snap-align: start; display: flex; flex-direction: column; gap: .3rem; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.extraits-onglets [role="tab"]:hover { transform: translateY(-2px); border-color: var(--text); }
.extraits-onglets .lieu { font: .68rem var(--mono); font-stretch: 87.5%; color: var(--muted); }
.extraits-onglets b { font-size: .95rem; line-height: 1.3; }
.extraits-onglets [aria-selected="true"] { background: var(--t-bg); border-color: var(--t-bg); color: var(--t-text); }
.extraits-onglets [aria-selected="true"] .lieu { color: var(--t-green); }
.extraits-panneaux { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.js .extrait[hidden] { display: none; }
.page-livre { margin: clamp(.75rem, 2vw, 1.5rem); background: #FBF9F4; color: #23252D; border-radius: 4px; padding: clamp(1.25rem, 1rem + 3vw, 3rem); font: 400 1.02rem/1.85 var(--serif); }
.page-livre .lieu { font: .7rem var(--mono); font-stretch: 87.5%; letter-spacing: .08em; text-transform: uppercase; color: #6B6E78; margin-bottom: .6rem; }
.page-livre h3 { font: 500 clamp(1.3rem, 1.15rem + .6vw, 1.7rem)/1.25 var(--serif); margin-bottom: 1.25rem; }
.page-livre p + p { margin-top: 1rem; }
.page-livre .coupe { text-align: center; color: #8A8D96; }
@media (min-width: 64em) {
  .extraits { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
  .extraits-onglets { flex-direction: column; overflow: visible; }
  .extraits-onglets [role="tab"] { flex: none; }
}

.sommaire-livre { display: grid; gap: 1.75rem; }
.sommaire-livre .term-corps { font-size: .8rem; overflow-x: auto; }
.arbre-livre { list-style: none; margin: .35rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.arbre-livre li { display: flex; gap: .55rem; white-space: nowrap; }
.arbre-livre .br { color: var(--t-muted); }
.arbre-livre .niv1 { padding-left: 1.4rem; color: var(--t-soft); }
.arbre-livre .fait { color: var(--t-text); }
.arbre-livre .fait .mk { color: var(--t-green); }
.arbre-livre .prevu { color: var(--t-muted); }
@media (min-width: 64em) { .sommaire-livre { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; } }

.formules-livre { display: grid; gap: 1.25rem; }
.f-livre { position: relative; padding: clamp(1.4rem, 1rem + 1.5vw, 2.25rem); display: flex; flex-direction: column; gap: 1.25rem; transition: transform .25s ease, box-shadow .25s ease; }
.f-livre:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--text); }
.f-livre.sombre { background: var(--t-bg); color: var(--t-text); border-radius: var(--radius); }
.f-livre.sombre:hover { box-shadow: 6px 6px 0 var(--t-pink); }
.f-haut { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem; gap: 1rem; align-items: start; }
.f-livre .cmd { font: .75rem var(--mono); font-stretch: 87.5%; color: var(--muted); }
.f-livre.sombre .cmd { color: var(--t-muted); }
.f-livre h3 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); font-weight: 600; line-height: 1.25; margin: .4rem 0 .6rem; }
.f-prix { font: 800 clamp(2.2rem, 1.9rem + 1.2vw, 3rem)/1 var(--mono); font-stretch: 87.5%; letter-spacing: -.03em; }
.f-livre.sombre .f-prix { color: var(--t-yellow); }
.f-mini { perspective: 700px; }
.f-mini .couv, .f-flip-in { transform: rotate(-4deg); transition: transform .5s cubic-bezier(.2, .7, .2, 1); box-shadow: 8px 10px 20px rgba(20, 21, 26, .25); border-radius: 2px 5px 5px 2px; overflow: hidden; }
.f-livre:hover .f-mini:not(.f-flip) .couv { transform: rotateY(-22deg) rotate(-1deg) translateY(-6px); }
.f-flip-in { position: relative; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, .1, .2, 1); box-shadow: none; overflow: visible; }
.f-flip-in .couv { transform: none; box-shadow: 8px 10px 20px rgba(0, 0, 0, .35); }
.f-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.f-dos { position: absolute; inset: 0; transform: rotateY(180deg); background: var(--t-pink); color: #14151A; border-radius: 2px 5px 5px 2px; display: flex; flex-direction: column; justify-content: center; gap: .1rem; padding: .5rem; font: .5rem/1.3 var(--mono); }
.f-dos b { font-size: 1.1rem; }
.f-dos .avec { margin-top: .3rem; opacity: .8; }
.f-livre:hover .f-flip-in { transform: rotateY(180deg) rotate(4deg); }
.mono-liste { font: .8rem var(--mono); font-stretch: 87.5%; }
.f-livre.sombre .coches li::before { color: var(--t-green); }
.f-livre.sombre .coches li.pc::before { content: '%'; color: var(--t-orange); }
.f-remise { position: absolute; top: -.75rem; left: 1.25rem; background: var(--t-pink); color: #14151A; font: 700 .7rem var(--mono); font-stretch: 87.5%; padding: .3rem .7rem; border-radius: 999px; }
.f-bientot { margin-top: auto; display: block; text-align: center; padding: .9rem; border-radius: 8px; background: var(--panel); color: var(--muted); font-weight: 600; }
.f-livre.sombre .f-bientot { background: #1A1F2C; color: var(--t-muted); }
.formules-pied { margin-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; font-size: .9rem; color: var(--soft); }
@media (min-width: 48em) { .formules-livre { grid-template-columns: repeat(2, minmax(0, 1fr)); } .f-haut { grid-template-columns: minmax(0, 1fr) 6.5rem; } }

.auteur { padding: clamp(1.25rem, 1rem + 2vw, 2.75rem); display: grid; gap: 1.5rem; }
.auteur img { width: 100%; max-width: 20rem; border-radius: 14px; aspect-ratio: 1; object-fit: cover; }
.auteur-texte { font-size: 1.1rem; margin-bottom: 1rem; }
.auteur blockquote { margin: 0 0 1.25rem; padding-left: 1rem; border-left: 3px solid var(--green); font: 400 1.02rem/1.7 var(--serif); color: var(--soft); }
@media (min-width: 48em) { .auteur { grid-template-columns: 14rem minmax(0, 1fr); gap: 2.5rem; align-items: center; } }
@media (prefers-reduced-motion: reduce) { .l-book, .f-mini .couv, .f-flip-in, .f-livre { transition: none; } .f-livre:hover .f-flip-in { transform: rotate(-4deg); } }

/* ==========================================================================
   Lab
   ========================================================================== */
.pastille.neutre { background: var(--panel); color: var(--soft); }
.lab-ls .term-corps { font-size: .82rem; }
.lab-ls ul { list-style: none; margin: .75rem 0 0; padding: 0; }
.lab-ls a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .55rem .5rem; margin: 0 -.5rem; border-radius: 6px; text-decoration: none; transition: background .2s ease; }
.lab-ls a:hover, .lab-ls a:focus-visible { background: #151924; outline: none; }
.lab-ls a:hover .dir { text-decoration: underline; }
.lab-ls .perm { color: var(--t-muted); font-size: .72rem; }
.lab-ls .dir { color: var(--t-blue); font-weight: 700; }
.lab-ls .st { color: var(--sc); display: inline-flex; align-items: center; gap: .45rem; font-size: .75rem; }
.lab-ls .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--sc); animation: lb-pulse 2.4s ease-in-out infinite; }
@keyframes lb-pulse { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 5px rgba(255, 255, 255, .1); } }
.lab-total { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--t-line); font-size: .72rem; }
@media (max-width: 39.99em) { .lab-ls .perm { display: none; } .lab-ls a { grid-template-columns: minmax(0, 1fr) auto; } }

.lab-statuts { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); display: grid; gap: .6rem; }
.lab-statuts .carte { padding: .9rem 1rem; display: flex; flex-direction: column; gap: .3rem; font-size: .92rem; }
.lab-statuts b { font: 700 .72rem var(--mono); font-stretch: 87.5%; color: var(--sc); }
.lab-statuts span { color: var(--soft); }
@media (min-width: 48em) { .lab-statuts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.lab-projets { display: flex; flex-direction: column; gap: 1.25rem; }
.projet { overflow: hidden; display: grid; border-radius: var(--radius-lg); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; scroll-margin-top: 1.5rem; }
.projet:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--ac); border-color: var(--ac); }
.projet-vis { background: var(--t-bg); color: var(--t-text); padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); display: flex; flex-direction: column; justify-content: center; font: .8rem var(--mono); font-stretch: 87.5%; min-height: 14rem; }
.projet-texte { padding: clamp(1.4rem, 1rem + 2vw, 2.75rem); display: flex; flex-direction: column; gap: .9rem; }
.projet-texte > p { color: var(--soft); font-size: 1.02rem; }
.pastilles { display: flex; flex-wrap: wrap; gap: .4rem; }
.titre-avatar { display: flex; align-items: center; gap: .9rem; }
.titre-avatar .avatar { width: 72px; height: 72px; flex: none; }
.projet .h3-mono { margin: 0; font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem); }
.mono-liste.m-rose li::before { color: var(--pink); } .mono-liste.m-bleu li::before { color: var(--blue); } .mono-liste.m-cyan li::before { color: var(--cyan); } .mono-liste.m-orange li::before { color: var(--orange); } .mono-liste.m-violet li::before { color: var(--violet); }
.lab-appel h2 + p { margin-top: 1rem; }
.projet-pied { margin-top: auto; padding-top: .75rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tags span { font: .7rem var(--mono); font-stretch: 87.5%; padding: .25rem .6rem; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }
.devise { font: .78rem var(--mono); font-stretch: 87.5%; color: var(--muted); }
.lien-projet { font: 700 .88rem var(--mono); font-stretch: 87.5%; color: var(--ac); text-decoration: none; }
.lien-projet span { display: inline-block; transition: transform .25s ease; }
.projet:hover .lien-projet span, .lien-projet:hover span { transform: translateX(5px); }
.lien-projet::after { content: ''; position: absolute; inset: 0; }
.projet { position: relative; }
.projet a:not(.lien-projet) { position: relative; z-index: 1; }

.vis-rubiii { align-items: flex-start; gap: .4rem; }
.vis-rubiii .bloc { display: inline-block; padding: .55rem .8rem; border-radius: 8px; }
.vis-rubiii .b1 { background: #1A1F2C; border: 1px solid #2C3244; }
.vis-rubiii .b2 { background: #0F3A40; color: var(--t-cyan); }
.vis-rubiii .b3 { background: #1E3A24; color: var(--t-green); }
.vis-rubiii .b4 { background: #3A2E10; color: var(--t-yellow); }
.vis-rubiii .b5 { background: #3A1E33; color: var(--t-pink); }
.vis-rubiii .fl { color: #5C6380; padding-left: .8rem; }
.vis-rubiii .sorties { display: flex; flex-wrap: wrap; gap: .4rem; }
.vis-moteur { gap: .35rem; }
.vis-moteur .entree { display: flex; align-items: center; }
.vis-moteur .fichiers { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .5rem; }
.vis-moteur .fichiers span { background: #151924; border: 1px solid var(--t-line); border-radius: 8px; padding: .55rem .7rem; }
.vis-moteur svg { flex: none; }
.vis-moteur .flux { stroke-dasharray: 6 10; animation: lb-flow 1.2s linear infinite; }
@keyframes lb-flow { to { stroke-dashoffset: -16; } }
.vis-moteur .noyau { flex: 1; min-width: 0; text-align: center; background: #1C2130; border: 1px solid #2C3244; border-radius: 8px; padding: .75rem; font-weight: 700; }
.vis-moteur .fl { text-align: right; padding-right: 22%; color: #5C6380; }
.vis-moteur .sorties { display: flex; gap: .6rem; }
.vis-moteur .sorties > span { flex: 1; border-radius: 8px; padding: .6rem .75rem; }
.vis-moteur .statique { background: #1E3A24; color: var(--t-green); } .vis-moteur .statique span { color: #7EB58A; }
.vis-moteur .admin { background: #3A1E33; color: var(--t-pink); } .vis-moteur .admin span { color: #C98AB5; }
.vis-atlas { position: relative; padding: 0; min-height: clamp(16rem, 12rem + 12vw, 22rem); overflow: hidden; }
/* Cadence : la journée qui se dessine, couche par couche ; Résonances : les ondes (styles communs dans site.css) */
.vis-cadence, .vis-resonances { position: relative; overflow: hidden; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(1.25rem, 1rem + 1.5vw, 2.25rem) 2.6rem; display: flex; flex-direction: column; justify-content: center; font: .8rem var(--mono); font-stretch: 87.5%; }
.cad-chiffre { margin-top: .9rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
.cad-chiffre b { font-size: 2.6rem; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cad-chiffre span { font-size: .74rem; color: var(--t-muted); }
.cad-trace { position: relative; margin-top: .5rem; }
.cad-courbe { width: 100%; height: 8.1rem; display: block; overflow: visible; }
.cad-hier { fill: none; stroke: #3A4054; stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.cad-bord { fill: none; stroke-width: 1.2; opacity: .8; vector-effect: non-scaling-stroke; }
.cad-jour { fill: none; stroke: var(--t-cyan); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cad-point { position: absolute; left: 79.5%; top: 23.1%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--t-cyan); box-shadow: 0 0 0 4px rgba(92, 207, 230, .18); }
.cad-rideau { transform-box: view-box; transform-origin: 0 0; }
.cad-sources { margin-top: 1rem; display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; }
.cad-sources span { transform-origin: left; }
.cad-legende { margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .2rem .9rem; font-size: .72rem; color: var(--t-soft); }
.cad-legende i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: .4rem; }
.js .vis-cadence:not(.vu) .cad-rideau, .js .vis-cadence:not(.vu) .cad-sources span { transform: scaleX(0); }
.js .vis-cadence:not(.vu) .cad-point { opacity: 0; }
.js .vis-cadence.vu .cad-rideau { animation: cad-rideau 2.6s cubic-bezier(.3, .6, .3, 1) .3s both; }
.js .vis-cadence.vu .cad-point { animation: cad-apparait .4s ease 2.7s both, cad-pouls 1.6s ease-in-out 3.1s infinite; }
.js .vis-cadence.vu .cad-sources span { animation: cad-rideau .9s cubic-bezier(.2, .7, .2, 1) calc(.8s + var(--i, 0) * .12s) both; }
@keyframes cad-rideau { from { transform: scaleX(0); } }
@keyframes cad-apparait { from { opacity: 0; } }
.projet-vis.vis-resonances .r-scene { height: 14rem; }
.fiche-hero-vis.vis-timbre { display: flex; align-items: center; padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); }
.vis-resonances .r-scene { flex: 1; min-height: 14rem; }
.vis-resonances .r-ondes, .vis-resonances .r-fixe { inset: -3rem -2.5rem; width: calc(100% + 5rem); height: calc(100% + 6rem); }
.regles .n { color: var(--rc); }
.lab-appel .btn { align-self: center; }
@media (min-width: 64em) {
  .projet { grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); }
  .projet-vis { min-height: 100%; }
}
@media (prefers-reduced-motion: reduce) { .vis-moteur .flux, .lab-ls .pulse { animation: none; } .projet, .lien-projet span { transition: none; } }

/* ==========================================================================
   Fiches du Lab
   ========================================================================== */
.fil-ariane { padding-top: 1.5rem; font: .8rem var(--mono); font-stretch: 87.5%; color: var(--muted); }
.fil-ariane a { color: var(--blue); }
.fil-ariane [aria-current] { color: var(--text); }
.fiche-hero { margin-top: 1.25rem; background: var(--t-bg); color: var(--t-text); border-radius: var(--radius-lg); overflow: hidden; display: grid; }
.fiche-hero-txt { padding: clamp(1.5rem, 1rem + 3vw, 3.5rem); display: flex; flex-direction: column; gap: 1.1rem; }
.fiche-hero .h1 { color: var(--t-text); }
.fiche-hero .curseur { background: var(--t-text); }
.fiche-hero .lead { color: var(--t-soft); }
.devise-hero { margin-top: auto; font: .82rem var(--mono); font-stretch: 87.5%; color: var(--t-muted); }
.p-bleu { color: var(--t-blue); }
.pastille.sombre-neutre { background: #1A1F2C; color: var(--t-soft); }
.pastille.sombre-bleu { background: #1A2440; color: var(--t-blue); }
.pastille.sombre-vert { background: #14261B; color: var(--t-green); }
.pastille.sombre-rose { background: #3E1A33; color: var(--t-pink); }
.fiche-hero-vis { position: relative; min-height: 16rem; border-top: 1px solid var(--t-line); }
.fiche-hero-vis.vis-moteur, .fiche-hero-vis.vis-rub { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; font: .8rem var(--mono); font-stretch: 87.5%; }
.vis-rub { flex-direction: row !important; align-items: center; gap: 1.25rem; flex-wrap: wrap; justify-content: center !important; }
.avatar-grand { width: clamp(8.5rem, 6rem + 9vw, 12.5rem); aspect-ratio: 1; flex: none; }
.bulles { display: flex; flex-direction: column; gap: .6rem; max-width: 15rem; font-family: var(--sans); font-size: .9rem; }
.bulle { background: #123A40; border: 1px solid #1B4B52; border-radius: 14px 14px 14px 4px; padding: .6rem .8rem; }
/* Fiche du moteur : l'avatar en grand avec ses bulles (comme Rùbiii), le visuel du projet en dessous */
.vis-perso { gap: 1.75rem; }
.perso-tete { display: flex; align-items: center; justify-content: center; gap: 1.25rem; flex-wrap: wrap; }
.vis-moteur.vis-perso .bulle { background: #3A1E33; border-color: #5A2A4C; }
.perso-suite { display: flex; flex-direction: column; gap: .35rem; }
.perso-tete { position: relative; z-index: 3; }
@media (min-width: 64em) {
  .fiche-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .fiche-hero-vis { border-top: 0; border-left: 1px solid var(--t-line); }
}

.fiche-corps { display: grid; gap: 2.5rem; padding-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.fiche-main { display: flex; flex-direction: column; gap: clamp(3rem, 2.5rem + 3vw, 5rem); min-width: 0; }
.fi-k { font: .8rem var(--mono); font-stretch: 87.5%; color: var(--muted); margin-bottom: .6rem; }
.fi-k span { color: var(--ac); }
.fi-h { font: 700 clamp(1.4rem, 1.2rem + 1vw, 2rem)/1.2 var(--mono); font-stretch: 87.5%; letter-spacing: -.02em; margin-bottom: 1.1rem; }
.fi-p { font-size: 1.05rem; line-height: 1.7; color: var(--soft); max-width: 45rem; }
.fi-p + .fi-p { margin-top: .9rem; }
.fonctions { display: grid; gap: .75rem; }
.fonction { padding: 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .4rem; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.fonction:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--fc); border-color: var(--fc); }
.fonction .ico { width: 2.2rem; height: 2.2rem; border-radius: 8px; display: grid; place-items: center; color: var(--fc); background: color-mix(in srgb, var(--fc) 13%, transparent); margin-bottom: .35rem; transition: transform .3s ease; }
.fonction:hover .ico { transform: scale(1.1) rotate(-4deg); }
.fonction .ico svg { width: 1.25rem; height: 1.25rem; }
.fonction b { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.fonction > span:last-child { font-size: .9rem; color: var(--soft); }
@media (min-width: 40em) { .fonctions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72em) { .fonctions { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.feuille { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.feuille li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 1rem; }
.feuille .num { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed var(--ec); color: var(--ec); display: grid; place-items: center; font: 700 .7rem var(--mono); background: var(--bg); position: relative; z-index: 1; }
.feuille .plein .num { background: var(--ec); border-style: solid; color: #fff; }
:root[data-theme="sombre"] .feuille .plein .num { color: var(--t-bg); }
.feuille li:not(:last-child)::before { content: ''; position: absolute; left: 14px; top: 30px; bottom: -1.5rem; width: 2px; background: var(--border); }
.feuille .txt { display: flex; flex-direction: column; gap: .2rem; }
.feuille .etat { font: .72rem var(--mono); font-stretch: 87.5%; color: var(--ec); }
.feuille b { font-size: 1.15rem; font-weight: 600; }
.feuille .txt > span:last-child { color: var(--soft); }

.fiche-cote { display: flex; flex-direction: column; gap: 1rem; }
.fiche-meta { margin: 0; padding: 1.1rem 1.25rem; }
.fiche-meta div { padding: .8rem 0; border-bottom: 1px solid var(--border); }
.fiche-meta div:last-child { border-bottom: 0; }
.fiche-meta dt { font: .7rem var(--mono); font-stretch: 87.5%; color: var(--muted); margin-bottom: .2rem; }
.fiche-meta dd { margin: 0; }
.fiche-cta { background: var(--cc); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.fiche-cta b { font-size: 1.1rem; line-height: 1.3; }
.fiche-cta p { font-size: .92rem; color: var(--soft); margin-bottom: .4rem; }
@media (min-width: 64em) {
  .fiche-corps { grid-template-columns: minmax(0, 1fr) 17rem; gap: clamp(3rem, 5vw, 5rem); align-items: start; }
  .fiche-cote { position: sticky; top: 1.5rem; }
}

.fiche-nav { display: grid; gap: .75rem; }
.fiche-nav a { padding: 1.1rem 1.25rem; text-decoration: none; display: flex; flex-direction: column; gap: .25rem; transition: transform .25s ease, box-shadow .25s ease; }
.fiche-nav a:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--text); }
.fiche-nav span { font: .72rem var(--mono); font-stretch: 87.5%; color: var(--muted); }
.fiche-nav b { font-size: 1.1rem; }
@media (min-width: 48em) { .fiche-nav { grid-template-columns: 1fr 1fr; } .fiche-nav a:last-child { text-align: right; } }

/* Démo Atlas */
.demo-atlas { margin-top: 1.5rem; }
.demo-atlas .term-barre .budget, .demo-rub .term-barre .budget { margin-left: auto; font-size: .7rem; }
.demo-atlas [data-budget] { color: var(--t-green); }
.demo-atlas [data-budget].entame { color: var(--t-yellow); }
.demo-grille { display: grid; }
.demo-reqs { padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.fi-req { border: 1px solid var(--t-line); border-radius: 12px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .45rem; transition: border-color .3s ease, background .3s ease, opacity .3s ease; }
.req-tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; font-size: .7rem; }
.req-tete .agent { color: var(--rc); }
.req-tete .regle { color: var(--t-muted); }
.fi-req .quoi { font-family: var(--sans); font-size: 1rem; color: var(--t-text); }
.fi-req .detail { font-size: .7rem; color: var(--t-muted); }
.fi-req .verdict { font-size: .72rem; color: var(--t-muted); }
.fi-req.actif { border-color: var(--rc); background: #151924; animation: fi-on .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes fi-on { from { transform: translateY(8px); } }
.fi-req.attente { border-style: dashed; } /* en attente : bordure en pointillé plutôt qu'un texte pâli illisible */
.fi-req.attente .quoi { color: var(--t-soft); }
.fi-req .verdict.ok { color: var(--t-green); } .fi-req .verdict.non { color: var(--t-orange); }
.req-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }
.req-btns[hidden] { display: none; }
.fi-btn { font: .78rem var(--mono); border-radius: 8px; padding: .55rem .8rem; cursor: pointer; border: 1px solid; min-height: 40px; transition: transform .15s ease, box-shadow .15s ease; }
.fi-ok { background: #1E3A24; color: var(--t-green); border-color: #2F5C38; }
.fi-no { background: transparent; color: var(--t-soft); border-color: #3A4054; }
.fi-btn:hover, .fi-btn:focus-visible { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 currentColor; outline: none; }
.demo-rejouer { align-self: flex-start; background: none; border: 1px solid var(--t-line); color: var(--t-soft); border-radius: 999px; padding: .4rem .85rem; font: .72rem var(--mono); cursor: pointer; }
.demo-audit { padding: 1rem; border-top: 1px solid var(--t-line); font-size: .72rem; display: flex; flex-direction: column; gap: .4rem; min-height: 8rem; }
.demo-audit .lib { color: var(--t-muted); }
.demo-audit [data-audit] div { display: grid; grid-template-columns: 3rem minmax(0, 1fr); animation: ct-log .3s ease both; }
.demo-audit [data-audit] span:first-child { color: var(--t-muted); }
.demo-audit .vide { color: var(--t-muted); font-style: italic; }
.demo-sans-js { margin-top: .6rem; font: .75rem var(--mono); font-stretch: 87.5%; color: var(--muted); }
.js .demo-sans-js { display: none; }
@media (min-width: 48em) { .demo-grille { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } .demo-audit { border-top: 0; border-left: 1px solid var(--t-line); } }

/* Démo Rùbiii */
.demo-rub { margin-top: 1.5rem; }
.demo-rub .mini-av { width: 22px; height: 22px; flex: none; }
.demo-rub .nom b { color: var(--t-text); font-weight: 700; }
.demo-rub .fil { padding: 1rem; display: flex; flex-direction: column; gap: 1rem; min-height: 14rem; }
.echange { display: flex; flex-direction: column; gap: .75rem; }
.js .echange:not(.vue) { display: none; }
.echange + .echange { padding-top: 1rem; border-top: 1px dashed var(--t-line); }
.js .echange + .echange { padding-top: 0; border-top: 0; }
.msg { font-family: var(--sans); font-size: .95rem; line-height: 1.55; padding: .7rem .9rem; white-space: pre-line; animation: fi-msg .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes fi-msg { from { opacity: 0; transform: translateY(8px); } }
.msg.moi { align-self: flex-end; max-width: 80%; background: #1C2130; border: 1px solid #2C3244; border-radius: 14px 14px 4px 14px; }
.msg.elle { align-self: flex-start; max-width: 90%; background: #123A40; border: 1px solid #1B4B52; border-radius: 14px 14px 14px 4px; }
.msg .src { display: block; margin-top: .5rem; font: .68rem var(--mono); color: var(--t-cyan); }
.js .echange.attend .msg.elle { display: none; }
.ecrit { font: .75rem var(--mono); color: var(--t-muted); display: flex; align-items: center; gap: .5rem; }
.dots { display: inline-flex; gap: 3px; } .dots i { width: 5px; height: 5px; border-radius: 50%; background: #5C6380; animation: fi-dot 1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes fi-dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; transform: translateY(-2px); } }
.q-chips { padding: .9rem 1rem; border-top: 1px solid var(--t-line); display: flex; flex-wrap: wrap; gap: .45rem; }
.q-chip { background: none; border: 1px solid var(--t-line); color: var(--t-soft); border-radius: 999px; padding: .45rem .8rem; font: .72rem var(--mono); cursor: pointer; min-height: 36px; text-align: left; }
.q-chip[aria-pressed="true"] { border-color: var(--t-green); color: var(--t-green); }

/* Démo moteur : le site d'un client dans un navigateur, son administration par-dessus, la publication au terminal */
.dm2 { margin-top: 1.5rem; display: grid; gap: 1rem; }
.dm2-scene { display: grid; gap: 1rem; }
.dm2-nav { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #FAF6F0; color: #1D1B18; box-shadow: 0 18px 40px rgba(20, 21, 26, .08); }
.dm2-barre { display: flex; align-items: center; gap: 6px; padding: .55rem .8rem; background: #EFE8DC; font: .7rem var(--mono); font-stretch: 87.5%; color: #6B655B; }
.dm2-barre .pt { width: 9px; height: 9px; border-radius: 50%; background: #D8CDBB; flex: none; }
.dm2-url { margin-left: .5rem; flex: 1; min-width: 0; background: #FAF6F0; border-radius: 6px; padding: .25rem .6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm2-etat { white-space: nowrap; color: #176B3B; } .dm2-etat.sale { color: #B4501A; } .dm2-etat.gen { color: #0B7488; }
.dm2-site { padding: clamp(1rem, .8rem + 1vw, 1.6rem); display: flex; flex-direction: column; gap: 1rem; }
.dm2-entete { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: .7rem; border-bottom: 1px solid #E6DCCB; font-size: .78rem; }
.dm2-entete b { font: 600 .95rem var(--serif); }
.dm2-entete span { color: #8A8274; }
.dm2-hero { display: grid; grid-template-columns: minmax(0, 1fr) clamp(5.5rem, 4rem + 6vw, 8.5rem); gap: 1rem; align-items: end; }
.dm2-texte { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.dm2-titre { font: 500 clamp(1.35rem, 1.1rem + 1vw, 1.9rem)/1.15 var(--serif); }
.dm2-accroche { font-size: .9rem; line-height: 1.55; color: #4A463F; }
.dm2-btn { background: var(--bt); color: #fff; font-size: .82rem; font-weight: 600; border-radius: 999px; padding: .55rem 1rem; transition: background .4s ease; }
.dm2-vases { width: 100%; height: auto; }
.dm2-vases .v1 { fill: var(--bt); transition: fill .4s ease; }
.dm2-pied { font-size: .75rem; color: #8A8274; border-top: 1px solid #E6DCCB; padding-top: .7rem; }
/* ce qui vient de changer sur la page est surligné un instant */
.dm2-site .change { animation: dm2-change 1.6s ease-out; border-radius: 4px; }
@keyframes dm2-change { 0%, 30% { background-color: rgba(255, 210, 63, .55); box-shadow: 0 0 0 4px rgba(255, 210, 63, .55); } 100% { background-color: transparent; box-shadow: 0 0 0 4px transparent; } }
.dm2-btn.change { animation: dm2-btn 1.6s ease-out; }
@keyframes dm2-btn { 0%, 30% { box-shadow: 0 0 0 5px rgba(255, 210, 63, .8); } 100% { box-shadow: 0 0 0 5px transparent; } }
.dm2-admin { padding: 1.1rem; display: flex; flex-direction: column; gap: .8rem; font-size: .88rem; font-weight: 600; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(20, 21, 26, .12); }
.dm2-k { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font: 400 .72rem var(--mono); font-stretch: 87.5%; color: var(--pink); }
.dm2-brouillon { background: var(--yellow); color: #14151A; border-radius: 999px; padding: .1rem .55rem; }
.dm2-admin label { display: flex; flex-direction: column; gap: .3rem; }
.dm2-admin input, .dm2-admin textarea { font: 400 .9rem var(--sans); padding: .55rem .7rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); resize: vertical; }
.dm2-admin input:focus, .dm2-admin textarea:focus { outline: none; border-color: var(--pink); box-shadow: 2px 2px 0 var(--pink); }
.dm2-bas { display: grid; line-height: 1.6; }
.dm2-log { padding: 1rem 1.1rem; font-size: .76rem; display: flex; flex-direction: column; gap: .15rem; min-height: 8.5rem; }
.dm2-log .lib, .dm2-versions .lib { color: var(--t-muted); font-size: .7rem; margin-bottom: .35rem; }
.dm2-log .ligne { animation: f-line .3s ease-out both; }
.dm2-log .p-err { color: var(--t-orange); }
.dm2-versions { padding: 1rem 1.1rem; border-top: 1px solid var(--t-line); font-size: .74rem; }
.dm2-versions ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.dm2-v { width: 100%; display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: .6rem; align-items: center; text-align: left; background: none; border: 1px solid transparent; border-radius: 8px; padding: .4rem .6rem; color: var(--t-text); font: inherit; cursor: pointer; min-height: 38px; transition: background .2s ease, border-color .2s ease; }
.dm2-v .q { color: var(--t-muted); }
.dm2-v .r { color: var(--t-cyan); font-size: .68rem; white-space: nowrap; }
.dm2-v:hover, .dm2-v:focus-visible { background: #151924; border-color: var(--t-line); outline: none; }
.dm2-v[aria-pressed="true"] { border-color: var(--t-green); cursor: default; }
.dm2-v[aria-pressed="true"] .r { color: var(--t-green); }
.dm2-v.neuve { animation: f-line .35s ease-out both; }
@media (max-width: 39.99em) { .dm2-v { grid-template-columns: minmax(0, 1fr) auto; row-gap: .1rem; } .dm2-v .q { grid-column: 1 / -1; font-size: .66rem; } }
@media (min-width: 48em) { .dm2-bas { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } .dm2-versions { border-top: 0; border-left: 1px solid var(--t-line); } }
/* sur grand écran, l'administration se pose par-dessus le bord du navigateur, comme une fenêtre ouverte à côté */
@media (min-width: 64em) {
  .dm2-scene { grid-template-columns: minmax(0, 1fr) 17rem; align-items: center; }
  .dm2-admin { margin-left: -3.5rem; position: relative; z-index: 1; }
  /* le navigateur garde son contenu hors de la zone recouverte */
  .dm2-barre { padding-right: 4.5rem; } .dm2-site { padding-right: calc(3.5rem + 1.6rem); }
}
@media (prefers-reduced-motion: reduce) { .dm2-site .change, .dm2-btn.change, .dm2-log .ligne, .dm2-v.neuve { animation: none; } .dm2-btn, .dm2-vases .v1 { transition: none; } }
.dm-teintes { display: flex; flex-direction: column; gap: .4rem; }
.dm-teintes > span { display: flex; gap: .5rem; }
.fi-sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface); background: var(--sw); cursor: pointer; transition: transform .15s ease; box-shadow: 0 0 0 1px var(--border); }
.fi-sw[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--text); }
.fi-sw:hover { transform: scale(1.1); }
.fi-pub { font: 600 .9rem var(--sans); background: var(--yellow); color: #14151A; border: 0; border-radius: 8px; padding: .7rem .9rem; cursor: pointer; min-height: 44px; }
.fi-pub:disabled { cursor: default; opacity: .85; }
.fi-pub:not(:disabled):hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 #14151A; }
@keyframes fi-sale { from { background: rgba(255, 210, 63, .25); } }
@media (prefers-reduced-motion: reduce) { .fonction, .fonction .ico, .fi-btn, .fiche-nav a { transition: none; } .msg, .fi-req.actif, .dots i, .dm-apercu.flash { animation: none; } }
.h1.grand { font-size: clamp(2.3rem, 1.6rem + 3.2vw, 4.4rem); line-height: 1.04; }

/* Vignette à côté du titre d'une fiche */
.fiche-titre { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem clamp(.75rem, .5rem + 1vw, 1.25rem); }
.fiche-titre .avatar { width: clamp(3.75rem, 3rem + 3vw, 5.75rem); aspect-ratio: 1; flex: none; }
.fiche-titre .h1 { min-width: 0; }
.fiche-signature { margin-top: -.5rem; font: .8rem var(--mono); font-stretch: 87.5%; color: var(--t-muted); }
.fiche-signature b { color: var(--t-text); font-weight: 600; }

/* Démo Cadence */
.demo-cad { margin-top: 1.5rem; line-height: 1.6; }
.demo-cad .term-barre .budget, .demo-res .term-barre .budget { margin-left: auto; font-size: .7rem; white-space: nowrap; }
.demo-cad [data-jour] { color: var(--t-cyan); }
.demo-cad .lib { color: var(--t-muted); font-size: .7rem; }
.demo-cad .lib span { color: #6C7390; }
.dc-grille { display: grid; }
.dc-journal { padding: 1rem; display: flex; flex-direction: column; gap: .6rem; font-size: .75rem; }
.dc-journal ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.dc-visite { width: 100%; display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: .6rem; align-items: center; text-align: left; background: none; border: 1px solid transparent; border-radius: 8px; padding: .45rem .6rem; color: var(--t-text); font: inherit; cursor: pointer; min-height: 40px; transition: background .2s ease, border-color .2s ease; }
.dc-visite:hover, .dc-visite:focus-visible { background: #151924; border-color: var(--t-line); outline: none; }
.dc-visite[aria-pressed="true"] { background: #151924; border-color: var(--t-cyan); }
.dc-visite .h { color: var(--t-muted); }
.dc-visite .pg { overflow-wrap: anywhere; }
.dc-visite .src { color: var(--sc); font-size: .68rem; white-space: nowrap; }
.dc-sep { display: block; text-align: center; color: #6C7390; font-size: .68rem; margin: .5rem 0 .3rem; }
.dc-ign { display: block; padding: .5rem .6rem; border: 1px dashed #3A4054; border-radius: 8px; color: var(--t-muted); font-size: .7rem; animation: fi-msg .4s cubic-bezier(.2, .8, .2, 1) both; }
.dc-ign .h { margin-right: .4rem; }
.dc-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .5rem; }
.demo-cad .demo-rejouer { min-height: 36px; }
.demo-cad .demo-rejouer:hover, .demo-cad .demo-rejouer:focus-visible { border-color: var(--t-cyan); color: var(--t-cyan); outline: none; }
.demo-cad .demo-rejouer[aria-pressed="true"] { border-color: var(--t-orange); color: var(--t-orange); }
.dc-detail { padding: 1rem; border-top: 1px solid var(--t-line); display: grid; gap: 1.25rem; align-content: start; font-size: .75rem; }
.dc-detail .lib.ok { color: var(--t-green); } .dc-detail .lib.non { color: var(--t-orange); }
.dc-garde dl { margin: .5rem 0 0; display: grid; gap: .25rem; }
.dc-garde dl div { display: grid; grid-template-columns: 9.6rem minmax(0, 1fr); gap: .5rem; }
.dc-garde dt { color: var(--t-muted); }
.dc-garde dd { margin: 0; overflow-wrap: anywhere; }
.dc-garde .emp { color: var(--t-yellow); }
.dc-garde dd.change { animation: fi-sale .7s ease; }
.dc-note { margin-top: .7rem; font-family: var(--sans); font-size: .9rem; line-height: 1.5; color: var(--t-soft); }
.dc-jamais ul { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .5rem; }
.dc-jamais li { display: grid; }
.dc-jamais b { font-weight: 400; color: var(--t-text); text-decoration: line-through; text-decoration-color: rgba(255, 158, 100, .7); }
.dc-jamais li span { font-family: var(--sans); font-size: .85rem; line-height: 1.45; color: var(--t-muted); }
@media (min-width: 48em) { .dc-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .dc-detail { border-top: 0; border-left: 1px solid var(--t-line); } }

/* Démo Résonances */
.demo-res { margin-top: 1.5rem; display: grid; gap: 1.5rem; }
.demo-res .term { line-height: 1.6; }
.dr-q { padding: 1rem 1.1rem; border-bottom: 1px solid var(--t-line); font-size: .72rem; }
.dr-q .lib { color: var(--t-muted); }
.dr-q p { margin-top: .35rem; font-family: var(--sans); font-size: 1rem; color: var(--t-text); }
.dr-reponses { list-style: none; margin: 0; padding: 1rem; display: grid; gap: .7rem; }
.dr-r { border: 1px solid var(--t-line); border-radius: 12px; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .35rem; font-size: .72rem; transition: border-color .5s ease; }
.dr-tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .75rem; }
.dr-tete b { color: var(--t-text); }
.dr-r.oui { border-color: color-mix(in srgb, var(--t-green) 40%, var(--t-line)); }
.dr-r.oui .dr-etat { color: var(--t-green); } .dr-r.non .dr-etat { color: var(--t-muted); }
.dr-extrait { font-family: var(--sans); font-size: .92rem; line-height: 1.5; color: var(--t-soft); }
.dr-pourquoi { color: var(--t-muted); }
.dr-apres { color: var(--t-cyan); border-top: 1px dashed var(--t-line); padding-top: .45rem; }
.js .demo-res:not(.suivant) .dr-apres { display: none; }
.dr-r.change { animation: fi-on .5s cubic-bezier(.2, .8, .2, 1) both; }
.dr-k { font: .8rem var(--mono); font-stretch: 87.5%; color: var(--muted); margin-bottom: .6rem; }
.dr-actions ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.dr-action { padding: 1rem 1.1rem; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; transition: border-color .3s ease, box-shadow .3s ease; }
.dr-action .n { font: 700 .72rem var(--mono); color: var(--orange); }
.dr-action b { font-size: 1.02rem; font-weight: 600; line-height: 1.3; }
.dr-action .txt { font-size: .9rem; color: var(--soft); }
.dr-action.fait { border-color: var(--green); box-shadow: 4px 4px 0 var(--green); }
.dr-fait { margin-top: auto; padding-top: .35rem; font: .75rem var(--mono); font-stretch: 87.5%; color: var(--green); }
.dr-btn { margin-top: auto; font: 600 .85rem var(--sans); background: var(--yellow); color: #14151A; border: 0; border-radius: 8px; padding: .6rem .9rem; min-height: 42px; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease; }
.dr-btn:not(:disabled):hover, .dr-btn:not(:disabled):focus-visible { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 #14151A; outline: none; }
.dr-btn:disabled { opacity: .45; cursor: default; }
.dr-bilan { margin-top: 1.1rem; font: 700 .9rem var(--mono); font-stretch: 87.5%; }
.dr-boutons { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .7rem; }
.dr-boutons .dr-btn { margin-top: 0; }
.dr-rejouer { background: none; border-color: var(--border); color: var(--soft); min-height: 36px; }
@media (min-width: 48em) { .dr-reponses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .dr-actions ol { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .dc-visite, .dr-btn, .dr-action { transition: none; } .dc-ign, .dr-r.change, .dc-garde dd.change { animation: none; } }

/* ==========================================================================
   Page introuvable (404)
   ========================================================================== */
.e4-scene { position: relative; padding-top: clamp(2.5rem, 1rem + 6vw, 6rem); display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: center; }
.e4-big { font: 800 clamp(6rem, 4rem + 9vw, 9.5rem)/1 var(--mono); font-stretch: 87.5%; letter-spacing: -.06em; margin: .25rem 0 .5rem; white-space: nowrap; }
.e4-big .curseur { font-size: .5em; }
.e4-h1 { margin: 1rem 0; }
.e4-blague { display: flex; gap: .6rem; margin: 1rem 0 1.75rem; font: .85rem/1.6 var(--mono); font-stretch: 87.5%; color: var(--muted); min-height: 3.2em; }
.e4-blague [data-blague].change { animation: e4-a .5s ease both; }
@keyframes e4-a { from { opacity: 0; transform: translateY(6px); } }
.e4-texte .boutons { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.lien-signal { color: var(--blue); }
.e4-term .term-corps { min-height: 20rem; display: flex; flex-direction: column; gap: .1rem; }
.e4-term .term-corps > div { overflow-wrap: anywhere; }
.e4-dirs { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; margin-bottom: .25rem; }
.e4-dirs a { font-weight: 700; text-decoration: none; }
.e4-dirs a:hover, .e4-dirs a:focus-visible { text-decoration: underline; outline: none; }
.e4-histo div { white-space: pre-wrap; animation: e4-a .25s ease-out both; }
.e4-form { display: flex; align-items: center; gap: .5rem; }
.e4-form[hidden], .e4-chips[hidden] { display: none; }
.e4-form input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--t-text); font: inherit; caret-color: var(--t-yellow); min-height: 36px; }
.e4-form input::placeholder { color: #5B6075; }
.e4-chips { margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--t-line); display: flex; flex-wrap: wrap; gap: .45rem; }
.e4-chips button { font: .75rem var(--mono); background: #151924; color: var(--t-soft); border: 1px solid var(--t-line); border-radius: 999px; padding: .4rem .75rem; min-height: 34px; cursor: pointer; transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.e4-chips button:hover, .e4-chips button:focus-visible { border-color: var(--t-yellow); color: var(--t-yellow); transform: translateY(-2px); outline: none; }
@media (min-width: 60em) { .e4-scene { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Le 0 se fend, le bug sort se promener (repris de la maquette) */
.e4-zero { position: relative; display: inline-block; }
.ph-tremble { animation: e4-trem 1.1s ease-in-out; transform-origin: 50% 85%; }
@keyframes e4-trem { 0%, 100% { transform: none; } 15% { transform: rotate(-7deg); } 35% { transform: rotate(6deg); } 55% { transform: rotate(-4deg); } 75% { transform: rotate(3deg); } }
.z-entier { display: inline-block; transition: opacity .5s ease, transform .5s cubic-bezier(.3, 1.5, .5, 1); }
.z-part { position: absolute; left: 0; top: 0; opacity: 0; }
.z-bas { clip-path: polygon(0 48%, 12% 54%, 25% 45%, 37% 54%, 50% 45%, 62% 54%, 75% 45%, 87% 54%, 100% 48%, 100% 130%, 0 130%); z-index: 1; }
.z-f1 { clip-path: polygon(0 -30%, 39% -30%, 42% 20%, 37% 54%, 25% 45%, 12% 54%, 0 48%); }
.z-f2 { clip-path: polygon(39% -30%, 64% -30%, 60% 22%, 62% 54%, 50% 45%, 37% 54%, 42% 20%); }
.z-f3 { clip-path: polygon(64% -30%, 100% -30%, 100% 48%, 87% 54%, 75% 45%, 62% 54%, 60% 22%); }
.z-fente { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; pointer-events: none; }
.z-fente polyline { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .5s ease; }
.ph-fissure .z-entier, .ph-ouvert .z-entier, .ph-dehors .z-entier, .ph-retour .z-entier { opacity: 0; transition: none; }
.ph-fissure .z-part, .ph-ouvert .z-part, .ph-dehors .z-part, .ph-retour .z-part { opacity: 1; }
.ph-fissure .z-fente { opacity: 1; } .ph-fissure .z-fente polyline { stroke-dashoffset: 0; }
.ph-ouvert .z-f1, .ph-dehors .z-f1, .ph-retour .z-f1 { animation: z-c1 1.5s cubic-bezier(.45, 0, .85, .35) forwards; }
.ph-ouvert .z-f2, .ph-dehors .z-f2, .ph-retour .z-f2 { animation: z-c2 1.7s cubic-bezier(.45, 0, .85, .35) .06s forwards; }
.ph-ouvert .z-f3, .ph-dehors .z-f3, .ph-retour .z-f3 { animation: z-c3 1.6s cubic-bezier(.45, 0, .85, .35) .12s forwards; }
@keyframes z-c1 { 0% { transform: none; } 14% { transform: translate(-10px, -22px) rotate(-14deg); } 100% { transform: translate(-90px, 120vh) rotate(-220deg); } }
@keyframes z-c2 { 0% { transform: none; } 14% { transform: translate(2px, -30px) rotate(8deg); } 100% { transform: translate(30px, 125vh) rotate(260deg); } }
@keyframes z-c3 { 0% { transform: none; } 14% { transform: translate(12px, -20px) rotate(16deg); } 100% { transform: translate(110px, 118vh) rotate(190deg); } }
.calme-retour .z-entier { animation: z-pousse .6s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes z-pousse { from { opacity: 0; transform: scale(.85); } }
.z-bug { position: absolute; left: 50%; top: 30%; width: .36em; height: .29em; margin-left: -.18em; opacity: 0; transform: translateY(.12em); transition: opacity .25s ease, transform .45s cubic-bezier(.3, 1.5, .5, 1); z-index: 0; color: var(--green); }
.ph-ouvert .z-bug, .ph-retour .z-bug { opacity: 1; transform: translateY(-.1em); }
.e4-eye { transform-box: fill-box; transform-origin: center; animation: e4-cligne 3.2s linear infinite; }
@keyframes e4-cligne { 0%, 40%, 44%, 100% { transform: none; } 42% { transform: scaleY(.15); } }
.e4-prom { position: absolute; left: 0; top: 0; width: 46px; height: 38px; pointer-events: none; z-index: 5; opacity: 0; transition: opacity .25s ease; will-change: transform; color: var(--green); }
.e4-prom.dehors { opacity: 1; }
.e4-prom .fA { animation: e4-pa .32s steps(1) infinite; } .e4-prom .fB { animation: e4-pb .32s steps(1) infinite; }
@keyframes e4-pa { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes e4-pb { 0% { opacity: 0; } 50% { opacity: 1; } }
.e4-prom.arret .fA { animation: none; opacity: 1; } .e4-prom.arret .fB { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .e4-prom { display: none; } .e4-eye, .e4-histo div { animation: none; } .e4-chips button { transition: none; } }
.e4-main { overflow: clip; }

/* ==========================================================================
   Informations légales
   ========================================================================== */
.lg-ouv { padding-top: clamp(2.5rem, 1rem + 6vw, 6rem); display: flex; flex-direction: column; gap: 1.1rem; }
.lg-ouv .lead { max-width: 46rem; }
.lg-corps { display: grid; gap: 2rem; padding-top: clamp(2.5rem, 2rem + 3vw, 4rem); }
.lg-nav { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font: .78rem var(--mono); font-stretch: 87.5%; }
.lg-nav .lg-dossier { color: var(--muted); width: 100%; }
.lg-nav a { --lc: var(--green); display: inline-flex; gap: .45rem; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--soft); background: var(--surface); }
.lg-nav a .ico { color: var(--lc); }
.lg-nav a[aria-current="true"] { color: var(--text); border-color: var(--lc); }
.lg-nav .lg-maj { width: 100%; margin-top: .5rem; color: var(--muted); font-size: .72rem; }
.lg-docs { display: flex; flex-direction: column; gap: clamp(3rem, 2rem + 4vw, 5rem); min-width: 0; max-width: 46rem; }
.lg-doc { scroll-margin-top: 1.5rem; }
.lg-doc .kicker b { color: var(--lc); }
.lg-doc .h2 { margin-bottom: 1.25rem; }
.lg-bref { background: var(--t-bg); color: var(--t-text); border-radius: 14px; padding: 1.1rem 1.25rem; margin-bottom: 1.75rem; font: .85rem/1.6 var(--mono); font-stretch: 87.5%; display: flex; flex-direction: column; gap: .35rem; }
.lg-bref > span { color: var(--t-muted); }
.lg-bref p span { color: var(--t-green); }
.lg-doc h3 { font: 700 1.05rem var(--mono); font-stretch: 87.5%; color: var(--lc); margin: 1.75rem 0 .6rem; }
.lg-doc > p:not(.kicker) { color: var(--soft); line-height: 1.75; }
.lg-doc > p + p { margin-top: .6rem; }
.lg-doc a { color: var(--blue); overflow-wrap: anywhere; }
@media (min-width: 64em) {
  .lg-corps { grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(3rem, 5vw, 5rem); align-items: start; }
  .lg-nav { position: sticky; top: 1.5rem; flex-direction: column; align-items: stretch; }
  .lg-nav a { border-color: transparent; background: transparent; }
  .lg-nav a[aria-current="true"] { background: var(--surface); border-color: var(--border); }
  .lg-nav a[aria-current="true"] .ico::before { content: '▸'; }
  .lg-nav a[aria-current="true"] .ico { font-size: 0; } .lg-nav a[aria-current="true"] .ico::before { font-size: .78rem; }
}

/* Fiche Timbre : l'éditeur (quatre demandes) puis l'assistant (quatre questions), en simulation.
   Sans JavaScript, toutes les propositions et toutes les réponses sont visibles. */
.demo-tb { margin-top: 1.5rem; display: grid; gap: .75rem; }
.demo-tb .term { line-height: 1.6; }
.demo-tb .term-barre .budget { margin-left: auto; font-size: .7rem; white-space: nowrap; }
@media (max-width: 26em) { .demo-tb .term-barre .budget { display: none; } }
.tb-champ { padding: 1rem 1.1rem; border-bottom: 1px solid var(--t-line); display: flex; flex-direction: column; gap: .45rem; font-size: .72rem; }
.tb-champ .lib { color: var(--t-muted); }
.tb-texte { font: 1rem/1.6 var(--sans); color: var(--t-text); background: #151924; border: 1px solid var(--t-line); border-radius: 10px; padding: .8rem .9rem; transition: border-color .4s ease; }
.demo-tb.remplace .tb-texte { border-color: var(--t-violet); animation: fi-on .5s cubic-bezier(.2, .8, .2, 1) both; }
.tb-statut { color: var(--t-green); }
.tb-statut:empty { margin-top: -.45rem; }
.tb-outils { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .65rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--t-line); font-size: .72rem; }
.tb-marque { color: var(--t-violet); font-weight: 700; }
.tb-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.tb-outil { font: .74rem var(--mono); font-stretch: 87.5%; background: none; color: var(--t-soft); border: 1px solid var(--t-line); border-radius: 999px; padding: .35rem .8rem; min-height: 36px; cursor: pointer; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.tb-outil:not(:disabled):hover { border-color: var(--t-violet); color: var(--t-violet); }
.tb-outil:focus-visible, .tb-garder:focus-visible { outline: 2px solid var(--t-violet); outline-offset: 2px; }
.tb-outil[aria-pressed="true"] { background: rgba(199, 146, 234, .14); border-color: var(--t-violet); color: var(--t-violet); }
.tb-outil:disabled { opacity: .45; cursor: default; }
.tb-jauge { margin-left: auto; display: inline-flex; align-items: center; gap: .45rem; color: var(--t-soft); }
.tb-jauge-barre { width: 4.5rem; height: 6px; border-radius: 3px; background: var(--t-line); overflow: hidden; }
.tb-jauge-barre i { display: block; height: 100%; width: var(--v); background: var(--t-green); transition: width .6s ease; }
.tb-props { padding: 1rem 1.1rem; display: grid; gap: .75rem; }
.js .demo-tb.vide .tb-props { display: none; }
.js .demo-tb.vide .tb-outils { border-bottom: 0; }
.tb-attente { display: flex; align-items: center; gap: .5rem; color: var(--t-muted); font-size: .75rem; }
.tb-prop { border: 1px solid rgba(199, 146, 234, .5); background: rgba(199, 146, 234, .06); border-radius: 12px; padding: .85rem .95rem; display: flex; flex-direction: column; gap: .45rem; }
.js .demo-tb .tb-prop { display: none; }
.js .demo-tb .tb-prop.vue { display: flex; animation: tb-fondu .45s ease both; }
@keyframes tb-fondu { from { opacity: 0; transform: translateY(6px); } }
.tb-prop-k { color: var(--t-violet); font-size: .72rem; }
.tb-prop-txt { font: 1rem/1.6 var(--sans); color: var(--t-text); }
.tb-repere { background: rgba(255, 210, 63, .16); color: var(--t-yellow); border-radius: 4px; padding: 0 .2em; font-family: var(--mono); font-stretch: 87.5%; font-size: .86em; }
.tb-note { color: var(--t-muted); font-size: .72rem; }
.tb-choix { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }
.tb-choix .dr-btn { margin-top: 0; }
.tb-garder { background: none; border: 1px solid var(--t-line); color: var(--t-soft); border-radius: 8px; padding: .6rem .9rem; min-height: 42px; font: 600 .85rem var(--sans); cursor: pointer; }
.tb-garder:hover { border-color: var(--t-soft); color: var(--t-text); }
.tb-pied { padding: .75rem 1.1rem; border-top: 1px solid var(--t-line); color: var(--t-muted); font-size: .7rem; }
.tb-change { list-style: none; margin: .15rem 0 0; padding: .55rem 0 0; border-top: 1px dashed rgba(199, 146, 234, .35); display: grid; gap: .25rem; font-size: .72rem; color: var(--t-soft); }
.tb-change li { display: grid; grid-template-columns: 1.3em minmax(0, 1fr); }
.tb-change li::before { content: '→'; color: var(--t-violet); }
.tb-assistant { border-top: 1px solid var(--t-line); }
.tb-assistant .lib { padding: 1rem 1.1rem 0; font-size: .72rem; color: var(--t-muted); }
.tb-assistant .q-chips { border-top: 0; padding: .6rem 1.1rem 0; }
.tb-assistant .fil { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .9rem; }
.msg.tb-lui { align-self: flex-start; max-width: 92%; white-space: normal; background: rgba(199, 146, 234, .09); border: 1px solid rgba(199, 146, 234, .42); border-radius: 14px 14px 14px 4px; display: flex; flex-direction: column; gap: .5rem; }
.msg.tb-lui .src { margin-top: 0; color: var(--t-violet); }
.js .echange.attend .msg.tb-lui { display: none; }
.tb-action { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; margin-top: .2rem; }
.tb-action .dr-btn { margin-top: 0; }
.tb-fait { font: .75rem var(--mono); font-stretch: 87.5%; color: var(--t-green); }
.tb-action-sansjs { font: .72rem var(--mono); font-stretch: 87.5%; color: var(--t-soft); }
.js .tb-action-sansjs { display: none; }
.tb-assistant .q-chip[aria-pressed="true"] { border-color: var(--t-violet); color: var(--t-violet); }
.tb-assistant .q-chip:focus-visible { outline: 2px solid var(--t-violet); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .js .demo-tb .tb-prop.vue, .demo-tb.remplace .tb-texte { animation: none; } .tb-jauge-barre i, .tb-outil, .tb-texte { transition: none; } }

/* ---------- Lab : Octave, la console sur mesure (couleur ocre, lisible sur fond clair) ---------- */
:root { --ocre-bg: #FBF0C9; }
:root[data-theme="sombre"] { --ocre-bg: #33290A; }
.mono-liste.m-ocre li::before { color: var(--ocre); }
/* la console d'exemple, en petit : carte du Lab et en-tête de la fiche */
.vis-octave { position: relative; overflow: hidden; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem) clamp(1.1rem, 1rem + 1vw, 1.75rem) 2.4rem; display: flex; flex-direction: column; justify-content: center; gap: .7rem; font: .72rem/1.45 var(--mono); font-stretch: 87.5%; color: var(--t-soft); }
.oc-tuiles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.oc-tuile { flex: 1 1 5.6rem; min-width: 0; display: flex; flex-direction: column; gap: .15rem; padding: .55rem .65rem; background: #11141C; border: 1px solid var(--t-line); border-top: 3px solid var(--tc); border-radius: 9px; }
.oc-tuile > span { font-size: .64rem; color: var(--t-muted); }
.oc-tuile b { font-size: 1rem; color: var(--t-text); font-variant-numeric: tabular-nums; }
.oc-tuile i { font-style: normal; font-size: .62rem; color: var(--tc); }
.oc-alerte { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; padding: .5rem .65rem; border: 1px solid var(--t-orange); border-radius: 9px; background: rgba(255, 158, 100, .08); color: var(--t-text); }
.oc-pt { flex: none; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--t-orange); color: var(--t-bg); display: grid; place-items: center; font-weight: 700; }
.oc-btn { margin-left: auto; padding: .2rem .6rem; border-radius: 6px; background: var(--t-orange); color: var(--t-bg); font-weight: 700; }
.oc-deux { display: flex; flex-wrap: wrap; gap: .45rem; }
.oc-bloc { flex: 1 1 9rem; min-width: 0; display: flex; flex-direction: column; gap: .35rem; padding: .6rem .7rem; background: #11141C; border: 1px solid var(--t-line); border-radius: 9px; }
.oc-lib { color: var(--t-muted); }
.oc-tache { display: flex; gap: .5rem; padding-top: .35rem; border-top: 1px solid var(--t-line); color: var(--t-text); }
.oc-tache > i { flex: none; width: .7rem; height: .7rem; margin-top: .15rem; border-radius: 3px; border: 1px solid var(--t-muted); }
.oc-tache.fait { color: var(--t-muted); } .oc-tache.fait > i { background: var(--t-green); border-color: var(--t-green); }
.oc-tache small { display: block; font-size: .62rem; color: var(--t-muted); }
.oc-barres { flex: 1; min-height: 4.2rem; display: flex; align-items: flex-end; gap: .3rem; }
.oc-barres i { flex: 1; background: var(--t-cyan); border-radius: 3px 3px 0 0; transform-origin: bottom; }
.oc-barres i.max { background: var(--t-yellow); } .oc-barres i.vide { background: var(--t-line); }
.js [data-cascade].vu .oc-barres i { animation: oc-monte .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(1.7s + var(--b, 0) * .06s); }
@keyframes oc-monte { from { transform: scaleY(0); } }
.projet-vis.vis-octave { min-height: 20rem; }
.vis-octave { container-type: inline-size; }
.vis-octave .oc-tuiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@container (max-width: 21rem) { .vis-octave .oc-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* la démonstration : trois consoles, on change d'activité sans JavaScript */
.demo-oc { margin-top: 1.5rem; position: relative; line-height: 1.55; }
.demo-oc .term-barre .budget { margin-left: auto; font-size: .7rem; white-space: nowrap; }
.oc-radio { position: absolute; opacity: 0; pointer-events: none; }
.oc-onglets { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .9rem 1rem; border-bottom: 1px solid var(--t-line); }
.oc-onglets .lib { color: var(--t-muted); font-size: .72rem; margin-right: .25rem; }
.oc-onglets label { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .95rem; border: 1px solid var(--t-line); border-radius: 999px; color: var(--t-soft); font-size: .78rem; cursor: pointer; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.oc-onglets label:hover { border-color: var(--t-yellow); color: var(--t-yellow); }
#oc-a0:checked ~ .oc-onglets label[for="oc-a0"], #oc-a1:checked ~ .oc-onglets label[for="oc-a1"], #oc-a2:checked ~ .oc-onglets label[for="oc-a2"] { background: var(--t-yellow); border-color: var(--t-yellow); color: var(--t-bg); font-weight: 700; }
#oc-a0:focus-visible ~ .oc-onglets label[for="oc-a0"], #oc-a1:focus-visible ~ .oc-onglets label[for="oc-a1"], #oc-a2:focus-visible ~ .oc-onglets label[for="oc-a2"] { outline: 2px solid var(--t-cyan); outline-offset: 2px; }
.oc-pan { display: none; }
#oc-a0:checked ~ .oc-pans .oc-pan:nth-child(1), #oc-a1:checked ~ .oc-pans .oc-pan:nth-child(2), #oc-a2:checked ~ .oc-pans .oc-pan:nth-child(3) { display: flex; flex-wrap: wrap; animation: fi-on .4s cubic-bezier(.2, .8, .2, 1) both; }
.oc-menu { flex: 1 1 9rem; display: flex; flex-wrap: wrap; align-content: flex-start; gap: .25rem; padding: 1rem .75rem; border-right: 1px solid var(--t-line); font-size: .74rem; }
.oc-menu span { flex: 1 1 8rem; display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; border-radius: 8px; color: var(--t-soft); }
.oc-menu span i { font-style: normal; font-size: .62rem; color: var(--t-muted); }
.oc-menu span.on { background: #1B2030; color: var(--t-yellow); } .oc-menu span.on i { color: var(--t-yellow); }
.oc-corps { flex: 999 1 20rem; min-width: 0; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; font-size: .76rem; }
.oc-qui { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; }
.oc-qui b { font-size: 1.05rem; color: var(--t-text); } .oc-qui span { color: var(--t-muted); font-size: .72rem; }
.oc-tuiles.grand .oc-tuile { flex-basis: 8.5rem; padding: .7rem .8rem; }
.oc-tuiles.grand .oc-tuile > span { font-size: .68rem; } .oc-tuiles.grand .oc-tuile b { font-size: 1.3rem; } .oc-tuiles.grand .oc-tuile i { font-size: .68rem; }
.oc-alerte.grand { padding: .75rem .85rem; gap: .5rem .75rem; }
.oc-alerte.grand p { flex: 1 1 12rem; display: flex; flex-direction: column; } .oc-alerte.grand p span { color: var(--t-soft); font-size: .72rem; }
.oc-alerte.grand .oc-btn { min-height: 40px; padding: 0 1rem; border: 0; font: 700 .78rem var(--mono); font-stretch: 87.5%; cursor: pointer; }
.oc-alerte.grand .oc-btn:hover, .oc-alerte.grand .oc-btn:focus-visible { background: var(--t-yellow); outline: none; }
.oc-alerte.fait { border-color: var(--t-green); background: rgba(126, 231, 135, .08); } .oc-alerte.fait .oc-pt { background: var(--t-green); }
.oc-fait { margin-left: auto; color: var(--t-green); } .oc-fait small { color: var(--t-muted); }
.demo-oc .oc-bloc { flex-basis: 14rem; padding: .8rem .9rem; gap: .5rem; }
.oc-liste, .oc-jauges, .oc-envois ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.oc-liste li { border-top: 1px solid var(--t-line); }
.oc-liste label { display: flex; gap: .6rem; align-items: flex-start; padding: .5rem 0; min-height: 40px; cursor: pointer; color: var(--t-text); }
.oc-liste input { flex: none; width: 1rem; height: 1rem; margin-top: .15rem; accent-color: var(--t-green); }
.oc-liste small { display: block; color: var(--t-muted); font-size: .68rem; }
.oc-liste input:checked + span { color: var(--t-muted); } .oc-liste input:checked + span .t { text-decoration: line-through; }
.oc-corps > .oc-envois { flex: none; }
.oc-jauges { gap: .6rem; }
.oc-jauges li > span { display: flex; justify-content: space-between; gap: .75rem; color: var(--t-text); } .oc-jauges b { font-weight: 400; color: var(--t-muted); white-space: nowrap; }
.oc-jauges li > i { display: block; height: 6px; margin-top: .3rem; border-radius: 999px; background: var(--t-line); } .oc-jauges li > i > i { display: block; height: 100%; border-radius: 999px; background: var(--t-violet); }
.oc-envois ul { gap: .3rem; } .oc-envois li { display: flex; gap: .55rem; color: var(--t-soft); } .oc-envois li::before { content: '✓'; color: var(--t-green); }
