/* ─────────────────────────────────────────────
   Ressources NSI et SNT : feuille de style

   Ambiance « réseau la nuit » : une ville, une liaison montante,
   des néons. Deux affichages, clair et obscur, au choix dans la
   barre du haut (ou selon le réglage de l'appareil).
   Les couleurs des rubriques et des thèmes sont dans les listes
   (ressources.js) et dans assets/site.js.
   ───────────────────────────────────────────── */

/* ── Affichage clair (par défaut) ─────────── */
:root {
  --bg: #EDF1F7;
  --bg-grille: rgba(20, 32, 70, .055);
  --panel: #FFFFFF;
  --panel-2: #F5F7FB;
  --ink: #0D1530;
  --ink-soft: #4A5772;
  --line: #CDD6E6;
  --accent: #0891B2;
  --focus: #0A64E8;
  --lueur: 0;
  --alerte-bg: #FFF1F3;
  --alerte-trait: #E11D48;
  --hl: #22D3EE;

  --display: "Chakra Petch", "Bahnschrift", "Arial Narrow", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --coupe: 18px;
  color-scheme: light;
}

/* ── Affichage obscur : réglage de l'appareil… ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060A13;
    --bg-grille: rgba(34, 211, 238, .045);
    --panel: #0B1222;
    --panel-2: #0F182C;
    --ink: #E3EDFF;
    --ink-soft: #8D9CBA;
    --line: #1C2944;
    --accent: #5EEAFF;
    --focus: #5EEAFF;
    --lueur: 1;
    --alerte-bg: #2A0F1A;
    --alerte-trait: #FB7185;
    color-scheme: dark;
  }
}
/* …ou choix fait dans la barre du haut */
:root[data-theme="dark"] {
  --bg: #060A13;
  --bg-grille: rgba(34, 211, 238, .045);
  --panel: #0B1222;
  --panel-2: #0F182C;
  --ink: #E3EDFF;
  --ink-soft: #8D9CBA;
  --line: #1C2944;
  --accent: #5EEAFF;
  --focus: #5EEAFF;
  --lueur: 1;
  --alerte-bg: #2A0F1A;
  --alerte-trait: #FB7185;
  color-scheme: dark;
}

/* ── Base ─────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--bg-grille) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grille) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

code {
  font-family: var(--mono);
  font-size: .84em;
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: .05em .35em;
  border-radius: 2px;
}

.invisible {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.evitement {
  position: absolute;
  left: -9999px;
}
.evitement:focus {
  left: 16px;
  top: 16px;
  z-index: 50;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: .5rem 1rem;
}

.page {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px)  { .page { padding: 0 24px; } }
@media (min-width: 1024px) { .page { padding: 0 32px; } }

/* ── Barre du haut ────────────────────────── */

.barre-haut {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.barre-int {
  max-width: 76rem;
  margin: 0 auto;
  padding: .5rem 16px;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  grid-template-areas: "marque nav mode";
  align-items: center;
  gap: .5rem 1.25rem;
}
@media (min-width: 640px)  { .barre-int { padding: .55rem 24px; } }
@media (min-width: 1024px) { .barre-int { padding: .6rem 32px; } }

.marque {
  grid-area: marque;
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 0;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .01em;
}
.marque-logo { color: var(--accent); flex: none; display: flex; }
.marque-logo svg { width: 28px; height: 28px; }
.marque-nom {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav { grid-area: nav; min-width: 0; }
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: .15rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav ul::-webkit-scrollbar { display: none; }
.nav a {
  position: relative;
  display: block;
  padding: .45rem .7rem .5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: .98rem;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink-soft);
}
.nav a::after {
  content: "";
  position: absolute;
  left: .7rem;
  right: .7rem;
  bottom: .2rem;
  height: 2px;
  background: var(--hl);
  opacity: .45;
  transition: opacity .15s;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { opacity: 1; }
.nav a[aria-current="page"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--hl) 16%, transparent);
}
.nav a[aria-current="page"]::after {
  opacity: 1;
  box-shadow: 0 0 calc(var(--lueur) * 10px) var(--hl);
}

.mode {
  grid-area: mode;
  display: inline-flex;
  padding: 2px;
  gap: 2px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.mode-btn {
  appearance: none;
  border: 0;
  margin: 0;
  background: transparent;
  color: var(--ink-soft);
  font: 500 .74rem/1 var(--mono);
  padding: .42rem .55rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
}
.mode-btn:hover { color: var(--ink); }
.mode-btn[aria-pressed="true"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.mode-ico svg { width: 15px; height: 15px; display: block; }

@media (max-width: 860px) {
  .mode-nom { display: none; }
  .mode-btn { padding: .45rem .5rem; }
}
@media (max-width: 760px) {
  .barre-int {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "marque mode" "nav nav";
    padding-bottom: 0;
  }
  .nav { margin: 0 -16px; }
  .nav ul { padding: 0 10px .1rem; }
}
@media (max-width: 400px) {
  /* Indique que la liste des rubriques défile */
  .nav ul {
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
    mask-image: linear-gradient(90deg, #000 82%, transparent);
  }
}
@media (min-width: 640px) and (max-width: 760px) {
  .nav { margin: 0 -24px; }
  .nav ul { padding: 0 18px .1rem; }
}

/* ── Bandeau (accueil et rubriques) ───────── */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 1.25rem;
  color: #E6F0FF;
  background: #04060E;
  clip-path: polygon(0 0, calc(100% - var(--coupe)) 0, 100% var(--coupe), 100% 100%, var(--coupe) 100%, 0 calc(100% - var(--coupe)));
  padding-bottom: clamp(8rem, 17vw, 12rem);
}
.hero-rubrique {
  padding-bottom: clamp(6.5rem, 12vw, 8.5rem);
}

.hero .scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* Lignes de balayage et voile de lecture sur la gauche */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, rgba(4, 6, 14, .88) 0%, rgba(4, 6, 14, .55) 45%, rgba(4, 6, 14, 0) 75%);
}

.hero-contenu {
  position: relative;
  padding: clamp(1.4rem, 4.5vw, 3.25rem) clamp(1.1rem, 4.5vw, 3.25rem) 0;
  max-width: 44rem;
}

.invite {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--hl);
  margin: 0;
  letter-spacing: .02em;
}
.invite::after {
  content: "_";
  margin-left: .1em;
  animation: curseur 1.1s steps(1) infinite;
}
@keyframes curseur { 50% { opacity: 0; } }

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.35rem, 7.4vw, 5rem);
  line-height: .98;
  letter-spacing: -.005em;
  margin: .5rem 0 .9rem;
  color: #F4F8FF;
  text-shadow: -.03em 0 rgba(255, 61, 154, .55), .03em 0 rgba(34, 211, 238, .55);
  animation: decalage .9s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes decalage {
  0%   { text-shadow: -.22em 0 rgba(255, 61, 154, .8), .22em 0 rgba(34, 211, 238, .8); opacity: .2; }
  60%  { opacity: 1; }
  100% { text-shadow: -.03em 0 rgba(255, 61, 154, .55), .03em 0 rgba(34, 211, 238, .55); }
}

.hero .chapo {
  color: #B6C4E2;
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  max-width: 32em;
  margin: 0 0 1.4rem;
}

.hero .niveau {
  font-family: var(--mono);
  font-size: .95rem;
  color: #B6C4E2;
  margin: 0;
}

/* L'impulsion qui monte le long de la liaison */
.scene .impulsion {
  animation: monte 7s linear infinite;
}
@keyframes monte {
  0%   { transform: translateY(0); opacity: 0; }
  8%   { opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translateY(-300px); opacity: 0; }
}

/* ── Recherche ────────────────────────────── */

.cherche {
  position: relative;
  max-width: 32rem;
}
.cherche-ico {
  position: absolute;
  left: .85rem;
  top: 1.45rem;
  transform: translateY(-50%);
  color: var(--ink-soft);
  pointer-events: none;
}
.cherche-ico svg { width: 17px; height: 17px; display: block; }

.recherche {
  display: block;
  width: 100%;
  height: 2.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 .9rem 0 2.5rem;
}
.recherche::placeholder { color: var(--ink-soft); opacity: 1; }
.recherche:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 calc(var(--lueur) * 18px) color-mix(in srgb, var(--accent) 45%, transparent);
}

.hero .recherche {
  color: #EAF2FF;
  background: rgba(6, 10, 22, .78);
  border-color: rgba(94, 234, 255, .35);
}
.hero .recherche::placeholder { color: #8FA0C2; }
.hero .recherche:focus {
  border-color: #5EEAFF;
  box-shadow: 0 0 0 1px #5EEAFF, 0 0 18px rgba(94, 234, 255, .35);
}
.hero .cherche-ico { color: #8FA0C2; }

.statut {
  min-height: 1.4em;
  margin: .45rem 0 0;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--ink-soft);
}
.hero .statut { color: #9FB0D0; }

/* ── Accueil : les rubriques ──────────────── */

.noeuds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.noeud {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1.4rem 1.4rem 1.3rem;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: border-color .15s;
}
.noeud::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 42%;
  height: 3px;
  background: var(--hl);
  box-shadow: 0 0 calc(var(--lueur) * 14px) var(--hl);
}
.noeud:hover,
.noeud:focus-within {
  border-color: color-mix(in srgb, var(--hl) 60%, var(--line));
}

.noeud-meta {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--ink-soft);
  margin: 0 0 .3rem;
}

.noeud h2 {
  margin: 0 0 .55rem;
  line-height: 1.1;
}
.noeud-nom {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 1.95rem);
  text-decoration: none;
}
/* Toute la carte est cliquable */
.noeud-nom::after {
  content: "";
  position: absolute;
  inset: 0;
}
.noeud-nom:hover { text-shadow: 0 0 calc(var(--lueur) * 14px) color-mix(in srgb, var(--hl) 60%, transparent); }

.noeud-texte {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: .98rem;
}

.themes-mini {
  position: relative; /* au-dessus du lien de la carte */
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.themes-mini a {
  display: inline-block;
  font-size: .83rem;
  line-height: 1.3;
  padding: .2rem .5rem;
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--hl) 55%, var(--line));
  background: color-mix(in srgb, var(--hl) 9%, transparent);
}
.themes-mini a:hover { border-color: var(--hl); }
.themes-mini a.est-vide {
  color: var(--ink-soft);
  border: 1px dashed var(--line);
  background: none;
}

/* ── Page d'une rubrique ──────────────────── */

.intro {
  margin: 1.75rem 0 0;
}
.intro .chapo {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 44em;
  margin: 0 0 .75rem;
}

.reference {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .6rem;
  margin: 0;
  font-size: .95rem;
}
.reference-titre {
  font-family: var(--mono);
  font-size: .72rem;
  padding: .12rem .45rem;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink-soft);
}
.reference a {
  font-weight: 700;
  text-decoration-color: var(--accent);
  text-underline-offset: .2em;
}

.rub-corps {
  margin-top: 2rem;
}
.cote > * + * { margin-top: 1rem; }
@media (max-width: 1079px) {
  .cote { margin-bottom: 2.5rem; }
}

@media (min-width: 1080px) {
  .rub-corps {
    display: grid;
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
  }
  .rub-corps.sans-cote { display: block; }
  .cote {
    position: sticky;
    top: 4.6rem;
    max-height: calc(100vh - 5.6rem);
    overflow-y: auto;
    padding-bottom: 1rem;
  }
  .rub-corps #contenu { max-width: 50rem; }
}

/* Sommaire des thèmes */
.sommaire {
  border: 1px solid var(--line);
  background: var(--panel);
}
.sommaire summary {
  cursor: pointer;
  padding: .75rem 1rem;
  font-family: var(--display);
  font-weight: 600;
  list-style-position: inside;
}
.sommaire summary .nb { margin-left: .25rem; }
.sommaire ul {
  list-style: none;
  margin: 0;
  padding: .35rem 0 .5rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 1080px) {
  .sommaire { border: 0; background: none; }
  .sommaire summary { display: none; }
  .sommaire ul { border-top: 0; padding: 0; }
}
.sommaire a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
  padding: .38rem .85rem;
  font-size: .95rem;
  line-height: 1.3;
  text-decoration: none;
  border-left: 2px solid var(--line);
}
.sommaire a:hover { border-left-color: var(--hl); background: color-mix(in srgb, var(--hl) 8%, transparent); }
.sommaire a[aria-current] {
  border-left-color: var(--hl);
  background: color-mix(in srgb, var(--hl) 14%, transparent);
  font-weight: 700;
}
.sommaire a.est-vide { color: var(--ink-soft); }

.nb {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ── Thèmes ───────────────────────────────── */

.theme {
  margin-top: 3.5rem;
  scroll-margin-top: 5rem;
}
.zone > .theme:first-child { margin-top: 0; }

.theme h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.8vw, 1.95rem);
  line-height: 1.15;
  margin: 0 0 .9rem;
  padding-left: .85rem;
  border-left: 4px solid var(--hl);
  text-shadow: 0 0 calc(var(--lueur) * 22px) color-mix(in srgb, var(--hl) 35%, transparent);
}

/* Quand on arrive sur un thème depuis le sommaire */
.theme:target h2,
.theme.cible h2 {
  animation: signal .9s ease-out;
}
@keyframes signal {
  0%   { border-left-width: 14px; background: color-mix(in srgb, var(--hl) 25%, transparent); }
  100% { border-left-width: 4px; background: transparent; }
}

/* Les contenus du programme officiel */
.programme {
  margin: 0 0 1.4rem;
  padding: .75rem .9rem .85rem;
  background: var(--panel);
  border: 1px solid var(--line);
}
.programme-titre {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--ink-soft);
  margin: 0 0 .5rem;
}
.programme ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.programme li > * {
  display: inline-block;
  font-size: .86rem;
  line-height: 1.35;
  padding: .2rem .55rem;
  color: var(--ink-soft);
  border: 1px dashed var(--line);
}
.programme li > a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--hl);
  background: color-mix(in srgb, var(--hl) 12%, transparent);
}
.programme li > a:hover { background: color-mix(in srgb, var(--hl) 24%, transparent); }

.theme h3 {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--ink-soft);
  margin: 1.9rem 0 .35rem;
  scroll-margin-top: 5rem;
}
.theme h3::before {
  content: "";
  flex: none;
  width: .55rem;
  height: .55rem;
  background: var(--hl);
  box-shadow: 0 0 calc(var(--lueur) * 8px) var(--hl);
}

/* Thème encore vide : plus compact */
.theme.est-vide { margin-top: 2.5rem; }
.theme.est-vide h2 { font-size: clamp(1.2rem, 3vw, 1.45rem); }
.theme.est-vide .programme { margin-bottom: .6rem; }

/* ── Une ressource ────────────────────────── */

.ressources {
  list-style: none;
  margin: 0;
  padding: 0;
}

.res {
  overflow-wrap: break-word;
  padding: .95rem .25rem .95rem 1rem;
  border-left: 2px solid var(--line);
  transition: border-color .15s, background-color .15s;
}
.res + .res { margin-top: .4rem; }
.res:hover,
.res:focus-within {
  border-left-color: var(--hl);
  background: linear-gradient(90deg, color-mix(in srgb, var(--hl) 9%, transparent), transparent 70%);
}

.titre {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.25;
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, var(--hl) 75%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: .24em;
}
a.titre:hover {
  text-decoration-color: var(--hl);
  text-shadow: 0 0 calc(var(--lueur) * 12px) color-mix(in srgb, var(--hl) 55%, transparent);
}
.titre.sans-lien { text-decoration: none; }

.res p {
  margin: .4rem 0 0;
  max-width: 44em;
}

.res .chemin {
  margin-top: .15rem;
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--ink-soft);
}

.annexes {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .65rem !important;
}
.annexe {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  align-items: baseline;
  gap: 0 .4rem;
  padding: .22rem .6rem;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: .9rem;
}
.annexe:hover,
.annexe:focus-within { border-color: var(--hl); }
.annexe a {
  font-weight: 700;
  text-decoration: none;
}
.annexe a::before {
  content: "+";
  font-family: var(--mono);
  color: var(--hl);
  margin-right: .35rem;
}
.annexe .type {
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--ink-soft);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .45rem;
  margin-top: .65rem !important;
}
.tags span {
  font-family: var(--mono);
  font-size: .72rem;
  line-height: 1.5;
  padding: .05rem .5rem;
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.tags .site {
  border: 0;
  background: none;
  padding-left: .15rem;
  color: var(--ink-soft);
}

.resultats { margin-top: 2rem; }

.vide {
  margin: 0;
  color: var(--ink-soft);
  font-size: .95rem;
}
#contenu > .vide,
.zone > .vide { margin-top: 2rem; }

/* ── Message d'erreur dans une liste ──────── */

.alerte {
  margin: 1.5rem 0 0;
  padding: 1rem 1.15rem;
  background: var(--alerte-bg);
  border: 1px solid var(--alerte-trait);
  border-left-width: 4px;
}
.alerte p { margin: 0; }
.alerte ul { margin: .5rem 0; padding-left: 1.2rem; }
.alerte .petit { font-size: .9rem; color: var(--ink-soft); }

/* ── Pied de page ─────────────────────────── */

.pied {
  margin-top: 5rem;
  padding: 2rem 0 3.5rem;
  border-top: 1px solid var(--line);
}
.pied h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 .5rem;
}
.pied p {
  max-width: 44em;
  margin: .5rem 0;
  color: var(--ink-soft);
}
.pied .actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}
.pied .actions a {
  display: inline-block;
  padding: .45rem .8rem;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  text-decoration: none;
}
.pied .actions a:hover { border-color: var(--accent); }
.pied .petit {
  font-size: .85rem;
  margin-top: 1.5rem;
}

/* ── Petits écrans ────────────────────────── */

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero { --coupe: 12px; margin-top: 1rem; }
  .noeud { padding: 1.2rem 1.1rem 1.1rem; }
  .theme { margin-top: 2.75rem; }
  .titre { font-size: 1.12rem; }
  .res { padding-left: .85rem; }
}

/* ── Mouvements réduits ───────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1,
  .invite::after,
  .theme:target h2,
  .theme.cible h2 { animation: none; }
  .scene .impulsion { animation: none; opacity: 0; }
}

/* ── Impression : sobre, sans décor ───────── */

@media print {
  .barre-haut, .cote, .pied .actions, .scene { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { color: #000; background: none; clip-path: none; padding-bottom: 0; }
  .hero::after { display: none; }
  .hero h1 { color: #000; text-shadow: none; animation: none; }
}
