/* ==========================================================================
   Thème du site de Matthieu Legouge — feuille de style unique
   Mobile d'abord : les styles de base visent le téléphone, puis trois paliers
   (40em ≈ 640 px, 60em ≈ 960 px, 80em ≈ 1280 px).
   ========================================================================== */

/* ---------- Polices hébergées sur le site ---------- */
@font-face {
  font-family: 'Martian Mono';
  src: url('../polices/martian-mono.woff2') format('woff2-variations');
  font-weight: 100 800; font-stretch: 75% 112.5%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../polices/instrument-sans.woff2') format('woff2-variations');
  font-weight: 400 700; font-style: normal; font-display: swap;
}

/* ---------- Jetons de design ---------- */
:root {
  --bg: #F5F4EF; --surface: #FFFFFF; --panel: #ECEAE2; --text: #14151A; --soft: #3A3D48; --muted: #5B5E6B; --border: #DEDCD3;
  --green: #1C7C45; --cyan: #0B7488; --pink: #B5307A; --blue: #3152C2; --orange: #B4501A; --cursor: #14151A;
  --pink-bg: #FBE3F1; --green-bg: #E3F6E8; --blue-bg: #E3E8F8; --cyan-bg: #DFF1F4; --orange-bg: #F8E6DA; --violet-bg: #F0E7F8;
  /* constantes du terminal, identiques dans les deux thèmes */
  --t-bg: #0B0D12; --t-line: #262B3B; --t-text: #E6E8EF; --t-soft: #C3C7D6; --t-muted: #8A90A6;
  --t-green: #7EE787; --t-cyan: #5CCFE6; --t-pink: #F07AC8; --t-blue: #7AA2F7; --t-orange: #FF9E64; --t-yellow: #FFD23F; --t-red: #FF6B6B; --t-violet: #C792EA; --t-teal: #8BD5CA; --t-gris: #6C7390; --t-corail: #F08A74;
  --yellow: #FFD23F; --violet: #8E5BC2; --teal: #2E8C80;

  --mono: 'Martian Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* typographie fluide : de 360 px à 1440 px */
  --fs-h1: clamp(2.1rem, 1.45rem + 2.9vw, 3.9rem);
  --fs-h2: clamp(1.75rem, 1.35rem + 1.75vw, 2.75rem);
  --fs-h2xl: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --fs-h3: clamp(1.25rem, 1.05rem + .9vw, 1.9rem);
  --fs-lead: clamp(1.06rem, .98rem + .4vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-mono: clamp(.78rem, .74rem + .2vw, .875rem);

  /* espacements */
  --gutter: clamp(1.25rem, 4.6vw, 5.5rem);
  --max: 79rem; /* 1264 px de contenu, soit 1440 px avec les marges */
  --section: clamp(4.5rem, 3rem + 7vw, 10rem);
  --radius: 18px; --radius-lg: 24px;
}
:root[data-theme="sombre"] {
  --bg: #0E1016; --surface: #151924; --panel: #12151E; --text: #E6E8EF; --soft: #C3C7D6; --muted: #8A90A6; --border: #262B3B;
  --green: #7EE787; --cyan: #5CCFE6; --pink: #F07AC8; --blue: #7AA2F7; --orange: #FF9E64; --cursor: #FFD23F; --violet: #C792EA; --teal: #8BD5CA;
  --pink-bg: #3E1A33; --green-bg: #14261B; --blue-bg: #161E36; --cyan-bg: #12303A; --orange-bg: #3A2416; --violet-bg: #2A1E3A;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: var(--fs-body); line-height: 1.6; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-stretch: 87.5%; }
.lien-evitement { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--yellow); color: #14151A; padding: .6rem 1rem; border-radius: 8px; font-weight: 600; }
.lien-evitement:focus { top: 1rem; }

/* conteneur : largeur maximale centrée, marges qui respirent */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-top: var(--section); }

/* ---------- Titres et éléments de texte communs ---------- */
.kicker { font-family: var(--mono); font-stretch: 87.5%; font-size: var(--fs-mono); color: var(--muted); margin-bottom: .9rem; }
.kicker b { font-weight: 400; color: var(--green); }
.kicker b.rose { color: var(--pink); } .kicker b.cyan { color: var(--cyan); }
.h1 { font-family: var(--mono); font-stretch: 87.5%; font-weight: 800; font-size: var(--fs-h1); line-height: 1.1; letter-spacing: -.03em; }
.h2 { font-family: var(--mono); font-stretch: 87.5%; font-weight: 700; font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -.02em; }
.h2.xl { font-weight: 800; font-size: var(--fs-h2xl); line-height: 1.08; letter-spacing: -.03em; }
.h3 { font-weight: 600; font-size: var(--fs-h3); line-height: 1.22; }
.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--soft); }
.texte { color: var(--soft); }
/* curseur en ligne (et non en bloc) : il ne passe jamais seul à la ligne suivante */
.curseur { display: inline; font-size: .8em; padding-left: .75ch; margin-left: .08em; vertical-align: .06em; background: var(--cursor); animation: clignote 1s steps(1) infinite; }
@keyframes clignote { 50% { opacity: 0; } }

/* en-tête de section : titre à gauche, texte à droite à partir de 60em */
.tete { display: grid; gap: 1.25rem; margin-bottom: clamp(1.75rem, 1rem + 2vw, 3rem); }
@media (min-width: 60em) { .tete { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4.5rem; align-items: end; } }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 48px; padding: .95rem 1.6rem; border-radius: 8px; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; border: 0; transition: transform .18s ease, box-shadow .18s ease; }
.btn-jaune { background: var(--yellow); color: #14151A; box-shadow: 0 0 0 var(--ombre, #14151A); }
.btn-jaune:hover, .btn-jaune:focus-visible { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--ombre, #14151A); outline: none; }
:root[data-theme="sombre"] .btn-jaune { --ombre: #FFD23F55; }
.btn-contour { border: 1px solid var(--text); color: var(--text); background: transparent; padding: calc(.95rem - 1px) 1.6rem; } /* transparent : un <button> a sinon le fond clair du navigateur */
.btn-contour:hover { background: var(--text); color: var(--bg); }
.btn-encre { background: #14151A; color: var(--yellow); }
.btn-encre:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 #14151A44; }
.btn .fl { font-family: var(--mono); transition: transform .25s ease; }
.btn:hover .fl { transform: translateX(4px); }
.lien-mono { font-family: var(--mono); font-stretch: 87.5%; font-size: var(--fs-mono); color: var(--blue); text-underline-offset: 3px; }

/* ---------- En-tête du site ---------- */
.entete { border-bottom: 1px solid var(--border); }
.entete .wrap { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.logo { font-family: var(--mono); font-stretch: 87.5%; font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.logo .u { color: var(--green); } .logo .h { color: var(--blue); } .logo .m { color: var(--muted); }
.entete .outils { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.theme-btn { font: 400 .75rem var(--mono); font-stretch: 87.5%; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: .55rem .85rem; cursor: pointer; min-height: 40px; }
.theme-btn .lib { display: none; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; font: 600 .8rem var(--mono); font-stretch: 87.5%; background: var(--text); color: var(--bg); border-radius: 999px; padding: .6rem 1rem; min-height: 40px; display: flex; align-items: center; gap: .4rem; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary .ouvre { transform: rotate(90deg); }
.menu .ouvre { display: inline-block; transition: transform .2s ease; }
/* Menu : une barre de terminal, entrées numérotées comme des fenêtres ; la page en cours surlignée en jaune */
.n-index { --tc: var(--t-text); } .n-offres { --tc: var(--t-green); } .n-articles { --tc: var(--t-cyan); } .n-lab { --tc: var(--t-pink); }
.n-journal { --tc: var(--t-orange); } .n-a-propos { --tc: var(--t-blue); } .n-livre { --tc: var(--t-yellow); }
.menu nav { position: absolute; right: 0; top: calc(100% + .6rem); z-index: 20; width: min(82vw, 18rem); background: var(--t-bg); border: 1px solid var(--t-line); border-radius: 14px; padding: .4rem; box-shadow: 0 18px 40px rgba(20, 21, 26, .22); display: flex; flex-direction: column; gap: 2px; font-family: var(--mono); font-stretch: 87.5%; font-size: .9rem; }
.menu nav a:not(.btn) { display: flex; gap: .7em; text-decoration: none; text-transform: lowercase; color: var(--t-text); padding: .75rem .85rem; border-radius: 8px; }
.menu nav a .i { color: var(--t-muted); }
.menu nav a:not(.btn):hover { background: #151925; color: var(--tc); }
.menu nav a[aria-current] { background: var(--t-yellow); color: #14151A; font-weight: 700; }
.menu nav a[aria-current] .i { color: #6B5300; }
.menu nav .btn { margin-top: .4rem; font-family: var(--sans); font-stretch: normal; }
/* menu mobile : les sous-pages d'une entrée, en arborescence */
.menu-sous { display: flex; flex-direction: column; margin: -.25rem 0 .3rem 1.35rem; font-size: .9em; }
.menu nav .menu-sous a:not(.btn) { align-items: center; gap: .55em; padding: .5rem .6rem; text-transform: none; }
.menu-sous .arb, .sous-panneau .arb { color: #3A4057; }
.menu-sous .pt, .sous-panneau .pt { flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: var(--sc); }
.menu nav .menu-sous a[aria-current] { background: #151925; color: var(--sc); font-weight: 700; }
.nav-large, .entete .cta { display: none; }
@media (min-width: 40em) { .theme-btn .lib { display: inline; } }
/* la barre du menu demande de la place : en dessous de 1 152 px, le menu déroulant (même style) prend le relais */
@media (min-width: 72em) {
  .menu { display: none; }
  .theme-btn .lib { display: none; }
  .nav-large { display: flex; align-items: center; gap: 2px; margin-left: clamp(.5rem, 1.5vw, 1.25rem); background: var(--t-bg); border: 1px solid var(--t-line); border-radius: 12px; padding: 5px; font-family: var(--mono); font-stretch: 87.5%; font-size: .78rem; }
  .nav-large a { position: relative; display: flex; gap: .5em; text-decoration: none; text-transform: lowercase; color: var(--t-text); padding: .45rem .62rem; border-radius: 8px; transition: background .15s ease, color .15s ease; }
  .nav-large a .i { color: var(--t-muted); }
  .nav-large a:hover, .nav-large a:focus-visible { background: #151925; color: var(--tc); outline: none; }
  .nav-large a:focus-visible { box-shadow: 0 0 0 2px var(--tc); }
  .nav-large a[aria-current] { background: var(--t-yellow); color: #14151A; font-weight: 700; }
  .nav-large a[aria-current] .i { color: #6B5300; }
  /* entrée avec sous-menu : un bouton (details/summary) qui déplie la liste, sans JavaScript ; site.js la referme
     au clic à côté et à Échap */
  .nav-sous { position: relative; }
  .nav-sous > summary { list-style: none; cursor: pointer; display: flex; gap: .5em; text-transform: lowercase; color: var(--t-text); padding: .45rem .62rem; border-radius: 8px; transition: background .15s ease, color .15s ease; }
  .nav-sous > summary::-webkit-details-marker { display: none; }
  .nav-sous > summary .i, .nav-sous > summary .fl { color: var(--t-muted); }
  .nav-sous > summary .fl { transition: transform .2s ease; }
  .nav-sous[open] > summary .fl { transform: rotate(180deg); }
  .nav-sous > summary:hover, .nav-sous[open] > summary { background: #151925; color: var(--tc); }
  .nav-sous > summary:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--tc); }
  .nav-sous.actif > summary { background: var(--t-yellow); color: #14151A; font-weight: 700; }
  .nav-sous.actif > summary .i, .nav-sous.actif > summary .fl { color: #6B5300; }
  .sous-panneau { position: absolute; left: -6px; top: calc(100% + 12px); z-index: 30; width: 25rem; background: var(--t-bg); border: 1px solid var(--t-line); border-radius: 14px; padding: .85rem .6rem .6rem; box-shadow: 0 24px 50px rgba(0, 0, 0, .35); display: flex; flex-direction: column; gap: 1px; }
  .sous-panneau .sp-cmd { margin: 0 .5rem .45rem; color: var(--t-muted); }
  .sous-panneau .sp-cmd .p-ok { color: var(--t-green); } .sous-panneau .sp-cmd .p-dir { color: var(--t-cyan); }
  .nav-large .sous-panneau a { align-items: center; gap: .55em; padding: .55rem .5rem; text-transform: none; }
  .nav-large .sous-panneau a:hover, .nav-large .sous-panneau a:focus-visible { background: #151925; color: var(--sc); box-shadow: none; }
  .nav-large .sous-panneau a:focus-visible { box-shadow: inset 0 0 0 2px var(--sc); }
  .nav-large .sous-panneau a[aria-current] { background: #151925; color: var(--sc); font-weight: 700; }
  .sous-panneau .sl { flex: 1; }
  .sous-panneau .sp { color: var(--t-muted); font-size: .72rem; font-weight: 400; }
  .nav-large .sous-panneau .sp-tout { justify-content: flex-end; margin-top: .35rem; border-top: 1px solid var(--t-line); border-radius: 0 0 8px 8px; color: var(--t-yellow); }
  .nav-large .sous-panneau .sp-tout:hover { color: var(--t-yellow); }
  .entete .cta { display: inline-flex; min-height: 44px; padding: .75rem 1.25rem; }
  .entete .wrap { min-height: 96px; }
  .nav-large a, .entete .cta, .theme-btn { white-space: nowrap; }
  /* « Le guide » : le titre du livre s'écrit à sa place au survol (site.js). Dans la barre, l'entrée s'allonge au fil
     de la frappe ; s'il n'y a pas la place, le titre s'écrit dans une bulle sous la barre. */
  .nav-guide .tape { display: none; white-space: nowrap; }
  .nav-guide .tape .t2 { color: var(--t-green); }
  .nav-guide .tape .cur { display: inline-block; width: .55em; height: 1.1em; margin-left: .1em; vertical-align: -.2em; background: var(--t-yellow); animation: clignote 1s steps(1) infinite; }
  .nav-guide.tape-dans .lib { display: none; }
  .nav-guide.tape-dans .tape { display: inline; }
  .nav-guide[aria-current] .tape .t2 { color: #0F5A2A; } .nav-guide[aria-current] .tape .cur { background: #14151A; }
  .nav-guide.tape-dessous.tape-on .tape { display: block; position: absolute; top: calc(100% + .7rem); left: 0; z-index: 20; color: var(--t-text); background: var(--t-bg); border: 1px solid var(--t-line); border-radius: 10px; padding: .5rem .8rem; font-weight: 700; box-shadow: 0 12px 30px rgba(20, 21, 26, .18); }
}

/* ---------- Terminal (composant commun) ---------- */
.term { background: var(--t-bg); color: var(--t-text); border: 1px solid var(--t-line); border-radius: var(--radius); overflow: hidden; font-family: var(--mono); font-stretch: 87.5%; font-size: var(--fs-mono); line-height: 1.8; }
.term-barre { display: flex; align-items: center; gap: 8px; padding: .7rem 1rem; border-bottom: 1px solid var(--t-line); font-size: .75rem; color: var(--t-muted); }
.term-barre .pt { width: 10px; height: 10px; border-radius: 50%; background: var(--t-red); flex: none; }
.term-barre .pt:nth-child(2) { background: var(--t-yellow); } .term-barre .pt:nth-child(3) { background: var(--t-green); }
.term-barre .nom { margin-left: .5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-barre .droite { margin-left: auto; white-space: nowrap; }
.term-corps { padding: 1.1rem 1.25rem 1.25rem; }
.p-ok { color: var(--t-green); } .p-dir { color: var(--t-cyan); } .p-err { color: var(--t-red); } .p-dim { color: var(--t-muted); } .p-jaune { color: var(--t-yellow); } .p-rose { color: var(--t-pink); } .p-bleu { color: var(--t-blue); } .p-orange { color: var(--t-orange); } .p-violet { color: var(--t-violet); }
.term .curseur { background: var(--t-yellow); }

/* ---------- Cartes ---------- */
.carte { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.pastille { display: inline-block; font-family: var(--mono); font-stretch: 87.5%; font-size: .72rem; padding: .3rem .6rem; border-radius: 6px; }

/* ---------- Apparition au défilement (seulement si le JavaScript est actif) ---------- */
.js [data-apparait] { transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), translate .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.js [data-apparait]:not(.vu) { opacity: 0; translate: 0 20px; }
.js [data-apparait].lent { transition-duration: 1.1s, 1.1s, .25s, .25s, .25s; }

/* ==========================================================================
   Accueil
   ========================================================================== */

/* --- Ouverture --- */
.ouverture { padding-top: clamp(2.5rem, 1rem + 6vw, 6rem); display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: center; }
.ouverture .texte-ouv { display: flex; flex-direction: column; gap: clamp(1.25rem, 1rem + 1vw, 1.9rem); }
.ouverture .h1 .vert { color: var(--green); } .ouverture .h1 .cyan { color: var(--cyan); }
.ouverture .boutons { display: flex; flex-wrap: wrap; gap: .85rem; }
.ouverture .boutons .btn { flex: 1 1 12rem; }
.ouverture .note { font-family: var(--mono); font-stretch: 87.5%; font-size: .8rem; color: var(--muted); }
.portrait img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 45% 30%; }
.portrait figcaption { padding: .9rem 1.25rem; border-top: 1px solid var(--t-line); color: #D5D8E3; }
@media (min-width: 40em) { .ouverture .boutons .btn { flex: 0 0 auto; } }
@media (min-width: 60em) {
  .ouverture { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .portrait img { aspect-ratio: auto; height: clamp(26rem, 38vw, 35rem); }
}

/* --- Orientation --- */
.orientation .term-corps { padding: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); }
.orientation .question { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.25rem; margin-bottom: 1.25rem; font-size: clamp(1rem, .9rem + .5vw, 1.25rem); }
.orientation .astuce { font-size: .75rem; color: var(--t-muted); align-self: center; }
.choix { display: grid; gap: .75rem; }
.choix a { --oc: var(--t-green); display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--t-text); background: #11141C; border: 1px solid var(--t-line); border-radius: 12px; padding: 1rem 1.15rem; min-height: 56px; transition: border-color .2s ease, background .2s ease, transform .25s ease, box-shadow .25s ease; }
.choix a:nth-child(2) { --oc: var(--t-cyan); } .choix a:nth-child(3) { --oc: var(--t-pink); }
.choix .cle { color: var(--oc); border-radius: 6px; padding: 2px 4px; transition: background .2s ease, color .2s ease; }
.choix .ent { margin-left: auto; color: var(--oc); opacity: 0; transform: translateX(-6px); transition: opacity .2s ease, transform .2s ease; }
.choix a:hover, .choix a:focus-visible, .choix a[aria-current="true"] { border-color: var(--oc); background: #161A24; transform: translateX(4px); box-shadow: 0 0 0 3px color-mix(in srgb, var(--oc) 22%, transparent); outline: none; }
.choix a:hover .cle, .choix a:focus-visible .cle, .choix a[aria-current="true"] .cle { background: var(--oc); color: var(--t-bg); }
.choix a:hover .ent, .choix a:focus-visible .ent, .choix a[aria-current="true"] .ent { opacity: 1; transform: none; }
.reponse { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px dashed var(--t-line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; color: #D5D8E3; animation: entre .45s cubic-bezier(.2, .7, .2, 1) both; }
.reponse[hidden] { display: none; }
.reponse a { text-decoration: none; color: var(--t-bg); font-weight: 700; padding: .75rem 1.1rem; border-radius: 8px; white-space: nowrap; }
@keyframes entre { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (min-width: 48em) { .choix { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choix .tape { display: none; }
.choix a.tape-on .tape { display: inline; }
.choix .tape .t { color: var(--oc); }
.choix .tape .cur { display: inline-block; width: .55em; height: 1.1em; margin-left: .1em; vertical-align: -.2em; background: var(--t-yellow); animation: clignote 1s steps(1) infinite; }

/* --- Articles vérifiés (cartes qui se retournent) --- */
.articles-grille { display: grid; gap: 2.25rem 1.75rem; }
.article { display: flex; flex-direction: column; gap: 1rem; }
.article h3 a { text-decoration: none; }
.article h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.article h3 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.3rem); font-weight: 600; line-height: 1.3; }
.article.une h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.65rem); line-height: 1.25; }
.article .source { font-family: var(--mono); font-stretch: 87.5%; font-size: .75rem; color: var(--muted); }
.retourne { container-type: inline-size; position: relative; display: block; width: 100%; height: clamp(17rem, 14rem + 10vw, 22.5rem); perspective: 1400px; background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.retourne .dedans { display: block; position: relative; height: 100%; transition: transform .75s cubic-bezier(.3, .1, .2, 1); transform-style: preserve-3d; }
.retourne .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1vw, 1.9rem); display: flex; flex-direction: column; }
.retourne .avant { justify-content: space-between; }
.retourne .avant .haut { display: flex; justify-content: space-between; font-family: var(--mono); font-stretch: 87.5%; font-size: .75rem; }
.retourne .avant .gros { font-family: var(--mono); font-stretch: 87.5%; font-weight: 800; line-height: .98; letter-spacing: -.04em; font-size: clamp(2.2rem, 12cqi, 5.25rem); overflow-wrap: anywhere; hyphens: auto; }
.retourne .arriere { transform: rotateY(180deg); background: var(--t-bg); color: var(--t-text); border: 1px solid var(--t-line); gap: .85rem; font-family: var(--mono); font-stretch: 87.5%; font-size: .85rem; line-height: 1.7; }
.retourne .arriere .avis { font-family: var(--sans); color: #D5D8E3; font-size: clamp(1rem, .95rem + .25vw, 1.1rem); line-height: 1.55; }
.retourne .arriere .lire { margin-top: auto; min-height: 1.7em; }
/* le vrai lien vers l'article : posé sur le bas de la face arrière, visible (et cliquable) quand la carte est
   retournée ; au clavier, il retourne la carte quand il prend le focus */
.carte-avis { position: relative; }
.carte-avis .lire-lien { position: absolute; left: 1px; bottom: 1px; z-index: 1; padding: .6rem clamp(1.25rem, 1rem + 1vw, 1.9rem) clamp(1.25rem, 1rem + 1vw, 1.9rem); font-family: var(--mono); font-stretch: 87.5%; font-size: .85rem; line-height: 1.7; color: var(--t-yellow); text-decoration: none; border-radius: 0 8px 0 var(--radius); opacity: 0; pointer-events: none; transition: opacity .15s; }
.carte-avis .lire-lien:hover { text-decoration: underline; text-underline-offset: 4px; }
.carte-avis:has(.est-retourne) .lire-lien, .carte-avis .lire-lien:focus-visible { opacity: 1; pointer-events: auto; transition: opacity .25s .35s; }
.carte-avis:has(.lire-lien:focus-visible) .dedans { transform: rotateY(180deg); }
/* avis très long : coupé proprement pour que « lire » reste sur la carte */
.retourne .arriere { overflow: hidden; }
.retourne .arriere .avis { min-height: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; }
.retourne.est-retourne .dedans { transform: rotateY(180deg); }
@media (hover: hover) { .carte-avis:hover .dedans, .retourne:focus-visible .dedans { transform: rotateY(180deg); } .carte-avis:hover .lire-lien { opacity: 1; pointer-events: auto; transition: opacity .25s .35s; } }
.articles-pied { margin-top: 2.75rem; padding-top: 1.6rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 1rem; font-size: .95rem; color: var(--soft); }
@media (min-width: 48em) { .articles-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } .article.une { grid-column: 1 / -1; } }
@media (min-width: 64em) {
  .articles-grille { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
  .article.une { grid-column: auto; }
  .articles-pied { flex-direction: row; justify-content: space-between; align-items: center; }
  .articles-pied p { max-width: 45rem; }
}

/* --- Pourquoi moi --- */
.pourquoi { display: grid; gap: 2.5rem; }
.pourquoi .gauche { display: flex; flex-direction: column; gap: 1.5rem; }
.verifs .ligne { margin-bottom: .9rem; } .verifs .ligne span { display: block; padding-left: 1.1rem; }
.atouts { display: grid; gap: 1rem; }
.atout { --mc: var(--green); padding: clamp(1.25rem, 1rem + .8vw, 1.75rem); display: flex; flex-direction: column; gap: .75rem; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.atout:nth-child(2) { --mc: var(--cyan); } .atout:nth-child(3) { --mc: var(--pink); } .atout:nth-child(4) { --mc: var(--orange); }
.atout:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--mc); border-color: var(--mc); }
.atout .drapeau { font-family: var(--mono); font-stretch: 87.5%; font-size: .85rem; color: var(--mc); }
.atout h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.25; }
.atout p { color: var(--soft); }
.atout .preuve { margin-top: auto; padding-top: .9rem; border-top: 1px dashed var(--border); font-family: var(--mono); font-stretch: 87.5%; font-size: .78rem; color: var(--soft); }
.atout .preuve::before { content: '✓ '; color: var(--mc); }
.veille { margin-top: 1.75rem; overflow: hidden; }
.veille .barre { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: .85rem 1.25rem; border-bottom: 1px solid var(--border); font-family: var(--mono); font-stretch: 87.5%; font-size: .8rem; color: var(--muted); }
.veille .barre .p { color: var(--green); }
.veille ul { list-style: none; margin: 0; padding: 0; display: grid; }
.veille li { --vc: var(--green); position: relative; padding: 1rem 1.25rem 1rem 2.6rem; border-bottom: 1px dashed var(--border); transition: background .2s ease; }
.veille li:nth-child(3n+2) { --vc: var(--blue); } .veille li:nth-child(3n) { --vc: var(--pink); }
.veille li::before { content: '●'; position: absolute; left: 1.25rem; top: 1rem; color: var(--vc); font-size: .7rem; line-height: 2.2; }
.veille li:hover { background: color-mix(in srgb, var(--vc) 8%, transparent); }
.veille li b { display: block; font-weight: 600; }
.veille li span { color: var(--soft); font-size: .92rem; }
.veille .maintenant { font-family: var(--mono); font-stretch: 87.5%; font-size: .68rem; color: var(--cyan); border: 1px solid currentColor; border-radius: 4px; padding: 0 .35rem; margin-left: .4rem; vertical-align: 2px; font-weight: 400; }
@media (min-width: 40em) { .atouts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60em) { .veille ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .veille li:nth-child(odd) { border-right: 1px dashed var(--border); } }
@media (min-width: 64em) { .pourquoi { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4.5rem; align-items: start; } }

/* --- Offres --- */
.offres-bloc { background: var(--panel); border-radius: clamp(20px, 2vw, 28px); padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0 clamp(3rem, 2.5rem + 3vw, 4.5rem); margin-inline: clamp(.5rem, 2.8vw, 2.5rem); }
.onglets { display: grid; gap: .75rem; margin-bottom: 1.25rem; }
.onglet { --oc: var(--green); display: flex; flex-direction: column; gap: .6rem; text-decoration: none; background: var(--surface); border: 2px solid var(--border); border-radius: 16px; padding: clamp(1.1rem, .9rem + .8vw, 1.65rem) clamp(1.2rem, 1rem + .8vw, 1.75rem); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.onglet:nth-child(2) { --oc: var(--cyan); } .onglet:nth-child(3) { --oc: var(--pink); }
.onglet .cmd { font-family: var(--mono); font-stretch: 87.5%; font-size: clamp(.85rem, .8rem + .2vw, 1rem); color: var(--oc); display: flex; justify-content: space-between; align-items: center; }
.onglet .cmd .c { border-radius: 6px; padding: 2px 6px; margin: -2px -6px; transition: background-color .2s ease, color .2s ease; }
.onglet .go { font-size: .75rem; opacity: 0; transform: translateX(-6px); transition: opacity .2s ease, transform .2s ease; }
.onglet b { font-size: clamp(1.05rem, .85rem + .6vw, 1.5rem); font-weight: 600; line-height: 1.25; overflow-wrap: break-word; hyphens: auto; }
.onglet .prix { font-family: var(--mono); font-stretch: 87.5%; font-size: clamp(.8rem, .75rem + .2vw, .95rem); color: var(--text); }
.onglet:hover, .onglet:focus-visible { border-color: var(--oc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--oc) 18%, transparent); transform: translateY(-3px); outline: none; }
.onglet:hover .go, .onglet:focus-visible .go, .onglet[aria-selected="true"] .go { opacity: 1; transform: none; }
.onglet:not([aria-selected="true"]):hover .cmd .c, .onglet:not([aria-selected="true"]):focus-visible .cmd .c { background: var(--oc); color: #fff; }
.onglet[aria-selected="true"] { background: var(--t-bg); border-color: var(--oc); color: var(--t-text); }
.onglet[aria-selected="true"] .cmd { color: var(--t-green); } .onglet:nth-child(2)[aria-selected="true"] .cmd { color: var(--t-cyan); } .onglet:nth-child(3)[aria-selected="true"] .cmd { color: var(--t-pink); }
.onglet[aria-selected="true"] .prix { color: var(--t-soft); }
.panneau { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.js .panneau[hidden] { display: none; }
.panneau + .panneau { margin-top: 1.25rem; }
.js .panneau + .panneau { margin-top: 0; }
.panneau .tete-p { display: grid; gap: 1rem; margin-bottom: 1.75rem; }
.formules { display: grid; gap: 1rem; }
/* Formules : une face épurée, un dos en terminal (survol, focus ou toucher) ; les deux faces sont toujours dans la page */
.formule-carte { container-type: inline-size; min-width: 0; display: flex; width: 100%; perspective: 1400px; background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; border-radius: 18px; }
.formule-carte .dedans { flex: 1; display: grid; min-height: 17rem; transition: transform .75s cubic-bezier(.3, .1, .2, 1); transform-style: preserve-3d; }
.formule-carte .face { grid-area: 1 / 1; display: flex; flex-direction: column; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.formule-carte .avant { background: var(--bg); border: 1px solid var(--border); padding: clamp(1.4rem, 1rem + 1.4vw, 2.25rem); gap: 1rem; }
.formule-carte .haut { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-stretch: 87.5%; font-size: .875rem; }
.formule-carte .tag { color: var(--green); } .formule-carte:nth-child(2) .tag { color: var(--cyan); }
.formule-carte .indice { color: var(--muted); }
.formule-carte .montant { font-family: var(--mono); font-stretch: 87.5%; font-weight: 800; font-size: clamp(2rem, 14cqi, 4rem); line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
.formule-carte .texte { font-size: clamp(1rem, .95rem + .25vw, 1.125rem); line-height: 1.6; color: var(--soft); max-width: 28rem; }
.formule-carte .ideal { margin-top: auto; font-family: var(--mono); font-stretch: 87.5%; font-size: .8rem; color: var(--muted); }
.formule-carte .arriere { transform: rotateY(180deg); background: var(--t-bg); color: var(--t-text); border: 1px solid var(--t-line); padding: clamp(1.4rem, 1rem + 1vw, 2rem); font-family: var(--mono); font-stretch: 87.5%; font-size: clamp(.82rem, .78rem + .2vw, .95rem); line-height: 1.75; gap: .15rem; }
.formule-carte .arriere .cmd { margin-bottom: .4rem; }
.formule-carte .arriere .cmd .p-dim { white-space: nowrap; }
.formule-carte .arriere .c { color: var(--t-green); } .formule-carte:nth-child(2) .arriere .c { color: var(--t-cyan); }
.formule-carte .lt { display: grid; grid-template-columns: 1.5em minmax(0, 1fr); }
.formule-carte .lt .m { color: var(--t-green); } .formule-carte .lt.non .m { color: var(--t-red); } .formule-carte .lt.plus .m { color: var(--t-yellow); } .formule-carte .lt.info .m { color: var(--t-cyan); }
.formule-carte.est-retourne .dedans { transform: rotateY(180deg); }
.formule-carte:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
@media (hover: hover) { .formule-carte:hover .dedans, .formule-carte:focus-visible .dedans { transform: rotateY(180deg); } }
.liste-coche { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; font-family: var(--mono); font-stretch: 87.5%; font-size: .82rem; line-height: 1.55; }
.liste-coche li { display: grid; grid-template-columns: 1.4em minmax(0, 1fr); }
.liste-coche li::before { content: '✓'; color: var(--green); }
.hebergement { margin-top: 1rem; background: var(--t-bg); color: var(--t-text); border-radius: 16px; padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); display: grid; gap: 1.5rem; }
.hebergement .pastille { background: var(--t-green); color: var(--t-bg); font-weight: 700; }
.hebergement h3 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); font-weight: 600; margin: .6rem 0 .5rem; }
.hebergement p { color: var(--t-soft); font-size: .92rem; }
.hebergement .liste-coche { color: var(--t-text); }
.hebergement .liste-coche li::before { color: var(--t-green); }
.hebergement .tarifs { display: flex; flex-wrap: wrap; gap: 1rem 2rem; font-family: var(--mono); font-stretch: 87.5%; }
.hebergement .tarifs div span { display: block; font-size: .75rem; color: var(--t-muted); }
.hebergement .tarifs b { font-size: clamp(1.9rem, 1.6rem + 1vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; }
.hebergement .tarifs .vert b { color: var(--t-green); }
.hebergement .tarifs small { font-size: .75rem; color: var(--t-muted); }
.hebergement .note { font-size: .8rem; color: var(--t-muted); }
.panneau-pied { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; color: var(--soft); font-size: .95rem; }
.panneau-duo { background: none; border: 0; padding: 0; display: grid; gap: 1.25rem; }
.duo-texte { border-radius: 18px; padding: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); display: flex; flex-direction: column; gap: 1.35rem; }
.duo-texte > .btn, .duo-texte > .pastille { align-self: flex-start; }
.duo-texte .texte { font-size: clamp(1rem, .95rem + .2vw, 1.0625rem); line-height: 1.65; color: var(--soft); }
.encadres { display: grid; gap: .75rem; }
.encadres div { border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.1rem; }
.encadres b { display: block; font-weight: 600; }
.encadres span { display: block; margin-top: .25rem; color: var(--soft); font-size: .95rem; line-height: 1.5; }
.prix-guide { display: grid; gap: .75rem; }
.prix-guide div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--border); border-radius: 12px; }
.prix-guide b { font-size: 1.5rem; font-weight: 600; }
.prix-guide p { font-size: .95rem; color: var(--soft); }
.duo-term { border-radius: 18px; display: flex; flex-direction: column; }
.duo-term .term-corps { flex: 1; padding: clamp(1.4rem, 1rem + 1vw, 1.9rem); font-size: clamp(.85rem, .8rem + .25vw, 1rem); line-height: 1.65; }
.duo-term .term-corps > div { margin-bottom: .45em; }
.duo-term .lt { display: flex; gap: .9em; }
.duo-term .lt .m { width: 1.2em; flex: none; }
.duo-term .lt > span:last-child { color: #D5D8E3; }
.duo-term .invite { margin-top: .5rem; }
.duo-term .curseur { background: var(--t-text); }
@keyframes f-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes f-line { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.js .panneau:not([hidden]) > * { animation: f-in .45s cubic-bezier(.2, .7, .2, 1) both; }
.js .panneau:not([hidden]) .duo-term .lt { animation: f-line .3s ease-out both; animation-delay: calc(.15s + var(--k, 0) * .14s); }
@media (min-width: 48em) {
  .onglets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .formules { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .formule-carte .dedans { min-height: clamp(21rem, 18rem + 6vw, 24rem); }
  .panneau-pied { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 60em) {
  .panneau .tete-p { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
  .panneau-duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.75rem; align-items: stretch; }
  .duo-term .term-corps { line-height: 2.1; }
  .duo-term .term-corps > div { margin-bottom: 0; }
}
@media (min-width: 72em) { .hebergement { grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr) minmax(0, .8fr); align-items: center; } .hebergement .liste-coche { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.5rem; } .hebergement .tarifs { flex-direction: column; } }

/* --- Comment ça se passe --- */
/* bandeau vers la page locale (Châtellerault), sous les offres */
.bandeau-local { margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--t-bg); color: var(--t-soft); border-radius: var(--radius); padding: 1rem clamp(1.1rem, 1rem + 1vw, 1.75rem); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 2rem; }
.bandeau-local .bl-texte { display: inline-flex; align-items: baseline; gap: .7rem; color: var(--t-text); }
.bandeau-local .bl-point { flex: none; width: .6rem; height: .6rem; border-radius: 50%; background: var(--t-yellow); box-shadow: 0 0 0 4px #FFD23F33; transform: translateY(-.05rem); }
.bandeau-local .lien-mono { color: var(--t-yellow); }
.etapes-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1.5rem; margin: clamp(3.5rem, 3rem + 3vw, 6rem) 0 1.75rem; }
.etapes-tete h3 { font-family: var(--mono); font-stretch: 87.5%; font-weight: 700; font-size: clamp(1.35rem, 1.2rem + .6vw, 1.75rem); }
.etapes-tete p { color: var(--soft); }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: e; }
.etape { --ec: var(--green); display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 1rem; position: relative; padding-bottom: 1.25rem; }
.etape:nth-child(2) { --ec: var(--cyan); } .etape:nth-child(3) { --ec: var(--pink); } .etape:nth-child(4) { --ec: var(--orange); } .etape:nth-child(5) { --ec: var(--blue); }
.etape .num { width: 30px; height: 30px; border-radius: 50%; background: var(--ec); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-stretch: 87.5%; font-size: .75rem; font-weight: 700; position: relative; z-index: 1; }
:root[data-theme="sombre"] .etape .num { color: var(--t-bg); }
.etape::before, .etape::after { content: ''; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px; background: var(--border); }
.etape::after { background: var(--ec); transform-origin: top; transition: transform .6s ease; }
.etape:last-child::before, .etape:last-child::after { display: none; }
.js [data-frise] > li { transition: opacity .4s ease, translate .4s ease; }
.js [data-frise] > li:not(.on) { opacity: 0; translate: 0 10px; }
.js [data-frise] .etape:not(.plein)::after { transform: scaleY(0); }
.etape .carte { padding: 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .5rem; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.etape:hover .carte { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ec); border-color: var(--ec); }
.etape .carte .t { font-family: var(--mono); font-stretch: 87.5%; font-size: .78rem; color: var(--ec); }
.etape .carte b { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.etape .carte span:last-child { color: var(--soft); font-size: .95rem; }
.etape:last-child .carte { background: transparent; border-style: dashed; border-color: var(--blue); }
@media (min-width: 64em) {
  .etapes { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; }
  .etape { grid-template-columns: none; grid-template-rows: 30px 1fr; gap: 1rem; padding: 0; }
  .etape::before, .etape::after { left: 30px; right: -14px; top: 14px; bottom: auto; width: auto; height: 2px; }
  .etape::after { transform-origin: left; }
  .js [data-frise] .etape:not(.plein)::after { transform: scaleX(0); }
  .etape .carte { height: 100%; }
}

/* --- Un site se construit sous vos yeux --- */
.construction { background: var(--t-bg); color: var(--t-text); border-radius: clamp(20px, 2vw, 28px); margin-inline: clamp(.5rem, 2.8vw, 2.5rem); padding: clamp(3.5rem, 2.5rem + 4vw, 5.5rem) 0; overflow: hidden; }
.construction .kicker { color: var(--t-muted); } .construction .kicker b { color: var(--t-green); }
.construction .lead { color: var(--t-soft); }
.construction .curseur { background: var(--t-yellow); }
.clients { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.25rem; }
.clients button { font: 400 .8rem var(--mono); font-stretch: 87.5%; color: var(--t-text); background: #151924; border: 1px solid var(--t-line); border-radius: 999px; padding: .6rem 1rem; min-height: 44px; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.clients button .pt { color: var(--pc); }
.clients button span.genre { color: var(--t-muted); }
@media (max-width: 39.99em) { .clients button span.genre { display: none; } }
.clients button[aria-selected="true"] { background: var(--t-yellow); color: var(--t-bg); border-color: var(--t-yellow); }
.clients button[aria-selected="true"] .pt { color: var(--t-bg); }
.clients button[aria-selected="true"] span.genre { color: #4A3D0A; }
.clients button:not([aria-selected="true"]):hover { border-color: var(--t-green); color: var(--t-green); }
.chantier { display: grid; gap: 1rem; }
.js .chantier[hidden] { display: none; }
.chantier + .chantier { margin-top: 2rem; }
.js .chantier + .chantier { margin-top: 0; }
.code { margin: 0; background: #0E1118; border: 1px solid var(--t-line); border-radius: 14px; overflow: hidden; }
.code pre { margin: 0; padding: 1rem 1.1rem; font-family: var(--mono); font-stretch: 87.5%; font-size: .78rem; line-height: 1.75; color: var(--t-text); overflow-x: auto; max-height: 18rem; }
.code .num { display: inline-block; width: 2.2em; color: #3A4054; user-select: none; }
.code .b { color: var(--t-pink); } .code .a { color: var(--t-blue); } .code .v { color: var(--t-green); } .code .c { color: #6C7390; } .code .t { color: var(--t-text); }
.apercu { margin: 0; border-radius: 14px; overflow: hidden; background: #EFE8DC; border: 1px solid var(--t-line); }
.apercu .barre { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .9rem; font-family: var(--mono); font-stretch: 87.5%; font-size: .7rem; color: #4F6468; background: #EAE3D8; }
.apercu.nuit .barre { background: #0A0E28; color: #A9AEC9; }
.apercu img { width: 100%; height: auto; }
.apercu .vues { display: grid; }
.apercu .vues img + img { border-top: 1px solid #0002; }
.construction .credit { font-family: var(--mono); font-stretch: 87.5%; font-size: .72rem; color: var(--t-muted); margin-top: .5rem; }
@media (min-width: 60em) { .chantier { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.5rem; align-items: start; } .code pre { max-height: 40rem; } }

/* --- Chiffres --- */
.chiffres { display: grid; gap: 1rem; }
.chiffre { padding: clamp(1.4rem, 1rem + 1.2vw, 2.1rem); display: flex; flex-direction: column; gap: .9rem; }
.chiffre .lib { font-family: var(--mono); font-stretch: 87.5%; font-size: .82rem; color: var(--muted); }
.chiffre .val { font-family: var(--mono); font-stretch: 87.5%; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-size: clamp(3rem, 2.2rem + 3.4vw, 5rem); font-variant-numeric: tabular-nums; }
.chiffre.sombre { background: var(--t-bg); border-color: var(--t-bg); color: var(--t-text); }
.chiffre.sombre .lib { color: var(--t-muted); }
.chiffre.sombre .val { color: var(--t-yellow); }
.chiffre .vert { color: var(--green); }
.chiffre .detail { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--t-line); display: flex; flex-direction: column; gap: .4rem; font-size: .92rem; }
.chiffre .detail .ligne { display: flex; justify-content: space-between; }
.chiffre .detail .ligne b { font-family: var(--mono); font-stretch: 87.5%; color: var(--t-yellow); font-weight: 400; }
.chiffre .detail small { font-family: var(--mono); font-stretch: 87.5%; font-size: .75rem; color: var(--t-muted); }
.chiffre .detail .medias { color: #D5D8E3; line-height: 1.6; }
.chiffre p { color: var(--soft); font-size: .95rem; }
.etiquettes { display: flex; flex-wrap: wrap; gap: .45rem; }
.etiquettes span { font-family: var(--mono); font-stretch: 87.5%; font-size: .75rem; background: var(--panel); border-radius: 6px; padding: .3rem .55rem; }
.barres { display: flex; align-items: flex-end; gap: clamp(.6rem, 1.5vw, 1.1rem); height: 8.5rem; }
.barres div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .35rem; height: 100%; justify-content: flex-end; font-family: var(--mono); font-stretch: 87.5%; }
.barres b { color: var(--cyan); font-size: 1.15rem; }
.barres i { display: block; width: 100%; background: var(--cyan); border-radius: 4px 4px 0 0; height: var(--h); transition: height 1.4s cubic-bezier(.2, .7, .2, 1); }
.js .barres:not(.vu) i { height: 0; }
.barres span { font-size: .75rem; color: var(--muted); }
.chiffres-pied { margin-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-family: var(--mono); font-stretch: 87.5%; font-size: .78rem; color: var(--muted); }
@media (min-width: 48em) { .chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); } .chiffre.sombre { grid-column: 1 / -1; } }
@media (min-width: 64em) { .chiffres { grid-template-columns: repeat(3, minmax(0, 1fr)); } .chiffre.sombre { grid-column: auto; } }

/* --- Lab et Journal --- */
.lab-journal { display: grid; gap: var(--section); }
/* « En bref » : les derniers articles IA et logiciels, en colonne de journal sous « Ce que j'ai vérifié » */
.en-bref { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); display: grid; gap: 1rem; }
.eb-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; padding-bottom: .75rem; border-bottom: 2px solid var(--text); }
.eb-tete h3 { font: 800 1.25rem var(--mono); font-stretch: 87.5%; letter-spacing: -.01em; }
.eb-tete span { font: .74rem var(--mono); font-stretch: 87.5%; color: var(--muted); }
.en-bref ol { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: 1rem; }
/* sur téléphone, quatre cartes suffisent : la bande reste au second plan */
@media (max-width: 39.99em) { .en-bref li:nth-child(n+5) { display: none; } }
@media (min-width: 40em) { .en-bref ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .en-bref ol { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* six petites cartes teintées, chacune sa couleur (comme les grandes cartes au-dessus) : aucune teinte ne l'emporte */
.en-bref li { --vif: var(--t-yellow); }
.en-bref li:nth-child(6n+2) { --vif: var(--t-pink); }
.en-bref li:nth-child(6n+3) { --vif: var(--t-green); }
.en-bref li:nth-child(6n+4) { --vif: var(--t-orange); }
.en-bref li:nth-child(6n+5) { --vif: var(--t-violet); }
.en-bref li:nth-child(6n+6) { --vif: var(--t-cyan); }
.en-bref a { --fort: color-mix(in srgb, var(--vif) 40%, var(--text)); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "jour fl" "txt txt"; gap: .6rem 1rem; height: 100%; padding: 1.3rem 1.1rem 1.1rem; border-radius: 16px; background: color-mix(in srgb, var(--vif) 22%, var(--bg)); box-shadow: inset 0 6px 0 var(--vif); color: var(--text); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.eb-jour { grid-area: jour; display: flex; align-items: baseline; gap: .3rem; font-family: var(--mono); font-stretch: 87.5%; line-height: 1; }
.eb-jour b { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.eb-jour span { font-size: .7rem; color: var(--fort); }
.eb-txt { grid-area: txt; display: flex; flex-direction: column; gap: .6rem; min-width: 0; height: 100%; }
.eb-t { font-size: .98rem; line-height: 1.4; font-weight: 500; }
.eb-tag { font: .68rem var(--mono); font-stretch: 87.5%; color: var(--fort); margin-top: auto; }
.eb-fl { grid-area: fl; font-family: var(--mono); font-size: .8rem; color: var(--fort); transition: transform .2s ease, color .2s ease; }
.en-bref a:hover, .en-bref a:focus-visible { transform: translate(-4px, -4px); box-shadow: inset 0 6px 0 var(--vif), 4px 4px 0 0 var(--text); }
.en-bref a:hover .eb-fl, .en-bref a:focus-visible .eb-fl { transform: translate(3px, -3px); color: var(--text); }
.en-bref a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .eb-fl, .en-bref a { transition: none; } .en-bref a:hover, .en-bref a:focus-visible { transform: none; } }
.lab-cartes { display: grid; gap: 1.1rem; }
.lab-carte { text-decoration: none; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.lab-carte:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20, 21, 26, .1); }
.lab-carte .visuel { position: relative; background: var(--t-bg); height: 10.5rem; overflow: hidden; }
.lab-carte .corps { padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; }
.lab-carte .corps b { font-size: 1.3rem; font-weight: 600; }
.lab-carte .corps p { color: var(--soft); font-size: .95rem; }
.lab-carte .corps .devise { font-family: var(--mono); font-stretch: 87.5%; font-size: .75rem; color: var(--muted); }
.p-encours { background: var(--pink-bg); color: var(--pink); } .p-dev { background: var(--blue-bg); color: var(--blue); } .p-service { background: var(--green-bg); color: var(--green); } .p-neutre { background: var(--panel); color: var(--soft); }
.feuillets { position: absolute; inset: 0; }
.feuillets i { position: absolute; width: 9.4rem; height: 6.9rem; border-radius: 8px; top: 1.6rem; }
.feuillets i:nth-child(1) { left: 12%; background: #1C2130; transform: rotate(-6deg); }
.feuillets i:nth-child(2) { left: 20%; background: #262B3B; transform: rotate(-2deg); top: 1.3rem; }
.feuillets i:nth-child(3) { left: 28%; background: #F5F4EF; top: 1.1rem; padding: .8rem; }
.feuillets i:nth-child(3)::before { content: ''; display: block; height: 8px; width: 60%; background: #14151A; border-radius: 3px; box-shadow: 0 14px 0 -2px #C9C7BE, 0 24px 0 -2px #C9C7BE; }
.feuillets i:nth-child(3)::after { content: ''; display: block; height: 16px; width: 50%; background: var(--t-yellow); border-radius: 4px; margin-top: 30px; }
.lab-carte .titre { display: flex; align-items: center; gap: .75rem; }
.lab-carte .avatar { width: 52px; height: 52px; flex: none; }
/* Cadence et Résonances : éléments communs aux cartes de l'accueil, du Lab et aux fiches */
.cad-barre { display: flex; justify-content: space-between; gap: .75rem; font: .75rem var(--mono); font-stretch: 87.5%; color: var(--t-muted); }
.cad-barre > span:last-child { white-space: nowrap; }
.cad-direct { display: inline-flex; align-items: center; color: var(--t-green); white-space: nowrap; font: .72rem var(--mono); font-stretch: 87.5%; }
.cad-direct i { width: 7px; height: 7px; border-radius: 50%; background: var(--t-green); margin-right: 6px; animation: cad-pouls 1.6s ease-in-out infinite; }
@keyframes cad-pouls { 50% { opacity: .25; } }
/* Timbre : « le carrefour ». Vos mots et vos chiffres entrent, des textes, des conseils et des actions à valider sortent.
   Image complète sans JavaScript ; l’animation (CSS) ne fait que faire circuler les flux. */
.tb-car { position: relative; width: 100%; aspect-ratio: 400 / 260; max-width: 100%; }
.tb-car-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tb-car-t { font-family: var(--mono); font-stretch: 87.5%; font-size: 13px; }
.tb-car-nom { font-size: 12px; letter-spacing: .08em; }
.tb-car-ok { font-size: 12px; }
.tb-car-av { position: absolute; left: 50%; top: 50%; width: 15%; aspect-ratio: 1; transform: translate(-50%, -54%); }
@media (prefers-reduced-motion: no-preference) {
  .tb-car-flux { animation: tb-car-flux 1.2s linear infinite; }
  .tb-car-sort { animation-delay: -.6s; }
  .tb-car-anneau { transform-box: fill-box; transform-origin: center; animation: tb-car-pouls 3s ease-in-out infinite; }
  .tb-car-barre { transform-box: fill-box; transform-origin: bottom; animation: tb-car-barre 4s ease-in-out infinite; animation-delay: calc(var(--k) * -.7s); }
}
@keyframes tb-car-flux { to { stroke-dashoffset: -24; } }
@keyframes tb-car-pouls { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: .55; } }
@keyframes tb-car-barre { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.7); } }
.vis-ex { position: absolute; right: 1.1rem; bottom: .8rem; font: .66rem var(--mono); font-stretch: 87.5%; color: #6C7390; }
.vis-cad-mini svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.vis-cad-mini .cad-direct { position: absolute; left: 1rem; top: .85rem; }
.cad-point-mini { position: absolute; right: 0; top: 29.3%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--t-cyan); animation: cad-pouls 1.6s ease-in-out infinite; }
.r-scene { position: relative; height: 15.5rem; margin-top: .5rem; }
.r-scene.r-petit { position: absolute; inset: 0; height: auto; margin: 0; }
.r-fixe, .r-ondes { position: absolute; inset: 0; width: 100%; height: 100%; }
.js .r-fixe { display: none; }
.r-centre { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; background: var(--t-orange); color: #14151A; font: 700 .78rem var(--mono); font-stretch: 87.5%; padding: .45rem .75rem; border-radius: 999px; white-space: nowrap; }
.r-petit .r-centre { font-size: .7rem; }
.r-cible { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4px; font: .74rem var(--mono); font-stretch: 87.5%; line-height: 1.3; }
.r-cible.r-g { align-items: flex-start; } .r-cible.r-d { align-items: flex-end; }
.r-cible b { background: #151925; border: 1px solid var(--t-line); padding: .35rem .65rem; border-radius: 8px; font-weight: 700; color: var(--t-text); transition: border-color .8s ease; }
.r-cible > span { font-size: .66rem; color: var(--t-muted); transition: color .8s ease; }
.r-cible.oui > span { color: var(--t-green); } .r-cible.non > span { color: #6C7390; }
.r-cible.oui b { border-color: color-mix(in srgb, var(--t-green) 55%, var(--t-line)); }
.r-cible.vibre b { animation: r-souleve 1.1s ease-in-out; }
@keyframes r-souleve { 0%, 100% { transform: none; } 30% { transform: translateY(-3px); } 60% { transform: translateY(1px); } }
/* carte d'Octave sur l'accueil : une console d'exemple réduite (la console complète est sur la fiche, pages.css) */
.vis-oc-mini { color: var(--t-text); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; justify-content: center; gap: .7rem; font-family: var(--mono); font-stretch: 87.5%; }
.lab-large .visuel.vis-oc-mini { align-items: stretch; padding: 1.5rem clamp(1.1rem, 1rem + 1.5vw, 2rem); }
.ocm-tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.ocm-tuiles > span { display: flex; flex-direction: column; gap: .15rem; padding: .55rem .7rem; border: 1px solid var(--t-line); border-top: 3px solid var(--tc); border-radius: 8px; background: #11141C; min-width: 0; }
.ocm-tuiles small { font-size: .66rem; color: var(--t-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ocm-tuiles b { font-size: 1.05rem; font-weight: 700; color: var(--t-text); }
.ocm-alerte { display: flex; align-items: center; gap: .55rem; padding: .5rem .65rem; border-radius: 8px; background: #2A1A12; color: var(--t-soft); font-size: .74rem; }
.ocm-alerte > span:nth-child(2) { flex: 1; min-width: 0; }
.ocm-pt { flex: none; display: grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--t-orange); color: var(--t-bg); font-weight: 800; }
.ocm-btn { flex: none; padding: .15rem .5rem; border-radius: 5px; background: var(--t-yellow); color: var(--t-bg); font-weight: 700; }
.lab-rubiii { display: grid; }
.lab-large { display: grid; }
.lab-large .visuel { height: auto; display: flex; align-items: center; padding: 1.2rem; }
.lab-rubiii .flux { background: var(--t-bg); color: var(--t-text); padding: 1.5rem 1.4rem; display: flex; flex-direction: column; justify-content: center; gap: .55rem; font-family: var(--mono); font-stretch: 87.5%; font-size: .8rem; }
.lab-rubiii .flux > * { align-self: flex-start; }
.lab-rubiii .flux .bulle { border-radius: 8px; padding: .5rem .7rem; }
.lab-rubiii .flux .fleche { color: #5C6380; padding-left: .9rem; }
.lab-rubiii .flux .rangee { display: flex; flex-wrap: wrap; gap: .45rem; }
.lab-rubiii .titre { display: flex; align-items: center; gap: .75rem; }
.lab-rubiii .avatar { width: 60px; height: 60px; flex: none; }
.journal-term .entree { display: block; text-decoration: none; padding: 1rem 1.25rem; border-left: 3px solid transparent; transition: background .2s, border-color .2s; }
.journal-term .entree:hover, .journal-term .entree:focus-visible { background: #151925; border-left-color: var(--t-yellow); outline: none; }
.journal-term .meta { font-size: .75rem; color: var(--t-muted); }
.journal-term .meta i { font-style: normal; color: var(--c, var(--t-cyan)); }
.journal-term .entree b { display: block; font-family: var(--sans); font-weight: 600; font-size: 1.08rem; line-height: 1.35; margin: .25rem 0 .35rem; }
.journal-term .entree:hover b { color: var(--t-green); }
.journal-term .entree span { display: block; font-family: var(--sans); font-size: .9rem; line-height: 1.55; color: var(--t-muted); }
@keyframes r-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.js [data-cascade]:not(.vu) .entree { opacity: 0; }
.js [data-cascade].vu .entree { animation: r-in .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--k, 0) * .18s); }
/* Lignes de terminal qui arrivent une à une quand le bloc entre à l'écran (classe lc, rang --k) */
.js [data-cascade]:not(.vu) .lc { opacity: 0; }
.js [data-cascade].vu .lc { animation: f-line .35s ease-out both; animation-delay: calc(.15s + var(--k, 0) * .24s); }
/* Offres : les lignes du résumé arrivent une à une, comme une commande qui s'affiche */
.js .resume[data-cascade]:not(.vu) dl > div, .js .resume[data-cascade]:not(.vu) .resume-note { opacity: 0; }
.js .resume[data-cascade].vu dl > div, .js .resume[data-cascade].vu .resume-note { animation: f-line .35s ease-out both; animation-delay: .15s; }
.js .resume[data-cascade].vu dl > div:nth-child(2) { animation-delay: .39s; } .js .resume[data-cascade].vu dl > div:nth-child(3) { animation-delay: .63s; }
.js .resume[data-cascade].vu dl > div:nth-child(4) { animation-delay: .87s; } .js .resume[data-cascade].vu dl > div:nth-child(5) { animation-delay: 1.11s; }
.js .resume[data-cascade].vu dl > div:nth-child(6) { animation-delay: 1.35s; } .js .resume[data-cascade].vu dl > div:nth-child(7) { animation-delay: 1.59s; }
.js .resume[data-cascade].vu .resume-note { animation-delay: 1.75s; }
.journal-term .pied { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.25rem; border-top: 1px solid var(--t-line); }
.journal-term .pied a { color: var(--t-yellow); text-decoration: none; }
.journal-term .pied a:hover { text-decoration: underline; }
.voir-tout { margin-top: 1rem; text-align: right; }
@media (min-width: 40em) { .lab-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lab-rubiii, .lab-large { grid-column: 1 / -1; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } .lab-large { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
@media (min-width: 72em) { .lab-journal { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; } }
/* le Journal, plus court que les cartes du Lab, les accompagne au défilement (si l'écran est assez haut pour le montrer en entier) */
@media (min-width: 72em) and (min-height: 46em) { .lab-journal > div:last-child { position: sticky; top: 2rem; } }

/* --- Questions --- */
.questions { display: grid; gap: 1.75rem; }
.questions details { border-bottom: 1px solid var(--border); padding: 1.25rem .25rem; }
.questions summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; font-size: 1.1rem; line-height: 1.4; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary .plus { font-family: var(--mono); color: var(--green); transition: transform .2s ease; flex: none; }
.questions details[open] .plus { transform: rotate(45deg); }
.questions details p { margin-top: .75rem; color: var(--soft); }
@media (min-width: 60em) { .questions { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 4.5rem; align-items: start; } }
/* le titre de la FAQ reste à l'écran pendant qu'on parcourt les questions (écrans assez hauts) */
@media (min-width: 60em) and (min-height: 40em) { .questions > :first-child { position: sticky; top: clamp(2rem, 12vh, 5rem); } }

/* --- Appel final --- */
.appel { background: var(--yellow); color: #14151A; border-radius: var(--radius-lg); padding: clamp(2.25rem, 1.5rem + 4vw, 5rem) clamp(1.5rem, 1rem + 3vw, 4rem); display: grid; gap: 1.5rem; }
.appel .kicker { color: #14151A; }
.appel .curseur { background: #14151A; }
.appel p { font-size: 1.05rem; line-height: 1.6; margin-bottom: 1.25rem; }
@media (min-width: 60em) { .appel { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; } }

/* ---------- Pied de page ---------- */
.pied-site { margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); padding: 1.5rem 0 3rem; }
.pied-site .wrap { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; flex-direction: column; gap: .6rem; align-items: center; text-align: center; font-size: .875rem; color: var(--muted); }
.pied-site .mono { font-size: .75rem; }
@media (min-width: 48em) { .pied-site .wrap { flex-direction: row; justify-content: space-between; } }

/* ---------- Visuels animés (Atlas, Rùbiii) ---------- */
.a-draw { stroke-dasharray: 100; animation: a-draw 7s ease-in-out infinite; }
@keyframes a-draw { 0% { stroke-dashoffset: 100; } 35%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
.a-sum { transform-box: fill-box; transform-origin: center; animation: a-sum 2.6s ease-out infinite; }
@keyframes a-sum { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }

/* ---------- Rùbiii (avatar) ---------- */
.rb-plume{transform-box:view-box;transform-origin:100px 122px;transform:rotate(var(--r))}
.rb-anim .rb-plume{animation:rb-roue 5s ease-in-out infinite}
@keyframes rb-roue{0%,100%{transform:rotate(calc(var(--r) * .86)) scale(.96)}45%,60%{transform:rotate(var(--r)) scale(1.03)}}
.rb-tete{transform-box:view-box;transform-origin:112px 112px}
.rb-anim .rb-tete{animation:rb-tete 5s ease-in-out infinite}
@keyframes rb-tete{0%,100%{transform:rotate(-5deg)}18%{transform:rotate(7deg) translate(1px,-3px)}32%{transform:rotate(-3deg)}48%{transform:rotate(12deg) translate(2px,-3px)}56%{transform:rotate(-9deg) translateY(-2px)}62%{transform:rotate(8deg)}68%{transform:rotate(-6deg)}76%{transform:rotate(2deg)}}
.rb-paup{transform-box:fill-box;transform-origin:50% 100%;transform:scaleY(0)}
.rb-anim .rb-paup{animation:rb-cligne 4.2s linear infinite}
@keyframes rb-cligne{0%,46%,52%,100%{transform:scaleY(0)}49%{transform:scaleY(1)}}
.rb-barbe{transform-box:view-box;transform-origin:133px 76px}
.rb-anim .rb-barbe{animation:rb-barbe 2.5s ease-in-out infinite}
@keyframes rb-barbe{0%,100%{transform:rotate(-6deg)}50%{transform:rotate(8deg)}}
.rb-anim .rb-pupille{animation:rb-regard 7s ease-in-out infinite}
@keyframes rb-regard{0%,40%,100%{transform:none}50%,70%{transform:translate(-1.6px,.4px)}}
.rb-anim .rb-halo{animation:rb-halo 3s ease-in-out infinite}
@keyframes rb-halo{0%,100%{opacity:.55}50%{opacity:1}}
.rb-anim:hover .rb-tete,.rb-glou .rb-tete{animation:rb-glou .5s ease-in-out 2}
@keyframes rb-glou{0%,100%{transform:rotate(0)}25%{transform:rotate(-9deg) translateY(-2px)}50%{transform:rotate(7deg)}75%{transform:rotate(-5deg)}}
@media (prefers-reduced-motion: reduce){.rb-anim .rb-plume,.rb-anim .rb-tete,.rb-anim .rb-paup,.rb-anim .rb-barbe,.rb-anim .rb-pupille,.rb-anim .rb-halo{animation:none}}

/* ---------- Vignettes du Lab : le castor (moteur), le colibri (Cadence), la chauve-souris (Résonances) ---------- */
.vg-av .vg-halo{animation:vg-halo 3s ease-in-out infinite}
@keyframes vg-halo{0%,100%{opacity:.5}50%{opacity:1}}
.vg-av .vg-cligne{transform-box:fill-box;transform-origin:50% 50%;animation:vg-cligne 4.4s linear infinite}
@keyframes vg-cligne{0%,46%,52%,100%{transform:scaleY(1)}49%{transform:scaleY(.1)}}
/* le poulpe (Octave) : sa gamme de huit notes s'allume de bas en haut */
.oc-av .oc-notes circle{animation:oc-note 2.4s ease-in-out infinite;animation-delay:calc(var(--n,0)*.14s)}
@keyframes oc-note{0%,70%,100%{opacity:.45}18%{opacity:1}}
/* le castor tape de la queue, son casque de chantier sautille */
.cs-queue{transform-box:view-box;transform-origin:128px 150px;animation:cs-queue 2.6s ease-in-out infinite}
@keyframes cs-queue{0%,60%,100%{transform:rotate(0)}70%{transform:rotate(-16deg)}80%{transform:rotate(4deg)}88%{transform:rotate(-10deg)}}
.cs-tete{transform-box:view-box;transform-origin:100px 130px;animation:cs-tete 5s ease-in-out infinite}
@keyframes cs-tete{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(4deg) translateY(-2px)}}
/* le colibri vole sur place devant ses barres de mesure */
.co-oiseau{transform-box:view-box;animation:co-plane 2.4s ease-in-out infinite}
@keyframes co-plane{0%,100%{transform:translate(0,0)}50%{transform:translate(0,-5px)}}
.co-aile{transform-box:view-box;transform-origin:98px 96px;animation:co-aile .14s linear infinite alternate}
@keyframes co-aile{from{transform:rotate(-38deg) scaleY(1)}to{transform:rotate(14deg) scaleY(.75)}}
.co-barre{transform-box:fill-box;transform-origin:bottom;animation:co-barre 3.6s ease-in-out infinite}
.co-b2{animation-delay:.25s}.co-b3{animation-delay:.5s}
@keyframes co-barre{0%,100%{transform:scaleY(.55)}50%{transform:scaleY(1)}}
/* la chauve-souris émet, l'écho revient */
.cv-ailes{transform-box:view-box;transform-origin:100px 112px;animation:cv-ailes 3.2s ease-in-out infinite}
@keyframes cv-ailes{0%,100%{transform:scaleY(1)}50%{transform:scaleY(.9) translateY(2px)}}
.cv-arc{opacity:0;transform-box:view-box;transform-origin:100px 78px;animation:cv-arc 4.8s ease-out infinite}
.cv-a2{animation-delay:.5s}.cv-a3{animation-delay:1s}
@keyframes cv-arc{0%{opacity:0;transform:scale(.5)}12%{opacity:.9}45%,100%{opacity:0;transform:scale(1.35)}}
.cv-echo{opacity:0;animation:cv-echo 4.8s ease-in-out infinite}
@keyframes cv-echo{0%,45%{opacity:0}55%{opacity:.9}80%,100%{opacity:0}}
/* le mainate (Timbre) chante : le bec s'ouvre, la bulle se dessine, trois mots s'y posent */
.mn-av .mn-oiseau{transform-box:view-box;animation:mn-hoche 5s ease-in-out infinite}
@keyframes mn-hoche{0%,12%,26%,48%,90%,96%,100%{transform:translate(0,0)}6%,30%,36%,42%{transform:translate(0,-1.5px)}33%,39%,45%{transform:translate(0,0)}93%{transform:translate(0,-6px)}}
.mn-av .mn-tete{transform-box:fill-box;transform-origin:17% 85%;animation:mn-tete 5s ease-in-out infinite}
@keyframes mn-tete{0%,50%,80%,100%{transform:rotate(0deg)}4%,14%,28%,44%{transform:rotate(-4deg)}58%,72%{transform:rotate(-11deg)}64%{transform:rotate(-8deg)}}
.mn-av .mn-queue{transform-box:fill-box;transform-origin:89% 17%;animation:mn-queue 5s ease-in-out infinite}
@keyframes mn-queue{0%,73%,86%,100%{transform:rotate(0deg)}76%{transform:rotate(10deg)}79%{transform:rotate(-5deg)}82%{transform:rotate(6deg)}}
.mn-av .mn-aile{transform-box:fill-box;transform-origin:75% 10%;animation:mn-aile 5s ease-in-out infinite}
@keyframes mn-aile{0%,83%,92%,100%{transform:rotate(0deg)}86%{transform:rotate(-8deg)}89%{transform:rotate(3deg)}}
.mn-av .mn-bec{transform-box:fill-box;transform-origin:0% 30%;animation:mn-chante 5s ease-in-out infinite}
@keyframes mn-chante{0%,16%,26%,45%,52%,90%,96%,100%{transform:rotate(0deg)}4%,12%{transform:rotate(13deg)}8%{transform:rotate(3deg)}29%,35%,41%{transform:rotate(12deg)}32%,38%{transform:rotate(2deg)}55%,61%,67%{transform:rotate(9deg)}58%,64%{transform:rotate(1deg)}70%{transform:rotate(0deg)}93%{transform:rotate(10deg)}}
.mn-av .mn-bulle{animation:mn-bulle 5s linear infinite}
@keyframes mn-bulle{0%,90%{opacity:1}98%,100%{opacity:0}}
.mn-av .mn-trace{stroke-dasharray:104 104;animation:mn-trace 5s ease-out infinite}
@keyframes mn-trace{0%{stroke-dashoffset:104;fill-opacity:0}18%{stroke-dashoffset:0;fill-opacity:0}19%,100%{stroke-dashoffset:0;stroke-dasharray:none}27%,100%{fill-opacity:.16}}
.mn-av .mn-mot{transform-box:fill-box;transform-origin:left center}
.mn-av .mn-m1{animation:mn-m1 5s ease-out infinite}@keyframes mn-m1{0%,26%{transform:scaleX(0)}36%,100%{transform:scaleX(1)}}
.mn-av .mn-m2{animation:mn-m2 5s ease-out infinite}@keyframes mn-m2{0%,32%{transform:scaleX(0)}42%,100%{transform:scaleX(1)}}
.mn-av .mn-m3{animation:mn-m3 5s ease-out infinite}@keyframes mn-m3{0%,38%{transform:scaleX(0)}48%,100%{transform:scaleX(1)}}
.mn-av .mn-feuille{transform-box:fill-box;transform-origin:0% 100%;animation:mn-vent 3.4s ease-in-out infinite}
.mn-av .mn-f2{transform-origin:0% 0%;animation-delay:.6s}.mn-av .mn-f3{transform-origin:100% 100%;animation-delay:1.2s}
@keyframes mn-vent{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-9deg)}}
@media (prefers-reduced-motion: reduce){.vg-av *{animation:none!important}.vg-av .cv-arc:not(.cv-a2):not(.cv-a3){opacity:.9}}

/* ---------- Animations réduites : tout reste, rien ne bouge ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-apparait]:not(.vu) { opacity: 1; translate: none; }
  .js .barres:not(.vu) i { height: var(--h); }
  .a-ag { display: none; }
  .a-draw { stroke-dasharray: none; }
}

/* Prix : jamais coupés */
.tarifs b, .tarifs small, .prix-guide b { white-space: nowrap; }
.tarifs small { display: inline-block; }

/* ---------- Bandeau d'annonce (module annonce) : une ligne de terminal ---------- */
.annonce { background: var(--t-bg); color: var(--t-text); border-bottom: 1px solid var(--t-line); font-family: var(--mono); font-stretch: 87.5%; font-size: var(--fs-mono); }
.annonce p { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; padding: .7rem 0; line-height: 1.55; }
.annonce p::before { content: '[info]'; color: var(--t-cyan); margin-right: .6em; }
.annonce--important p::before { content: '[!]'; color: var(--t-yellow); font-weight: 700; }
.annonce--important { box-shadow: inset 0 -2px 0 var(--t-yellow); }
.annonce a { color: var(--t-yellow); text-underline-offset: 3px; white-space: nowrap; }
.annonce a:hover { color: var(--t-text); }

/* Pages de retour du formulaire de contact (module contact du moteur) */
.ct-retour-carte { max-width: 46rem; padding: clamp(1.5rem, 1rem + 2vw, 2.75rem); display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
.ct-retour .boutons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.ct-retour .contact-raisons { margin: 0; padding-left: 1.2rem; color: var(--text); }
.ct-retour .contact-texte { width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--t-bg); color: var(--t-text); border-radius: 12px; padding: 1rem 1.25rem; font: .85rem/1.6 var(--mono); }
