/*
Theme Name: Saint-Louis informatique 2026
Description: Thème du site de l'option informatique de l'Institut Saint-Louis de Waremme. En-tête et sections clés sombres, façon « tech », le reste clair et lisible ; les couleurs reprennent celles de l'Institut. Tous les textes de l'accueil se règlent dans Apparence → Personnaliser.
Author: Degueldre C.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: sli
*/

/* =====================================================================
   VARIABLES
   Les couleurs sont celles du site de l'Institut (bleu, vert, orange,
   magenta), posées sur un bleu nuit pour les sections sombres.
   ===================================================================== */
:root {
  --nuit:        #0f0e2e;
  --nuit-2:      #1d1c4d;
  --nuit-trait:  rgba(255, 255, 255, .1);
  --bleu:        #2b2a6e;
  --bleu-clair:  #ececf6;
  --vert:        #6ea31f;
  --vert-vif:    #9bd43a;
  --orange:      #e8741b;
  --magenta:     #d6247a;
  --cyan:        #3fd0e0;

  --fond:        #f7f7fb;
  --surface:     #ffffff;
  --encre:       #17182c;
  --gris:        #5b5d75;
  --trait:       #e3e3ee;

  --police-titre: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --police-texte: "Inter", "Segoe UI", system-ui, sans-serif;
  --police-code:  "JetBrains Mono", Consolas, monospace;

  --largeur: 1200px;
  --lecture: 760px;
  --rayon:   14px;
  --rayon-lg: 22px;
  --ombre:   0 10px 30px rgba(15, 14, 46, .08);
  --transition: .2s ease;
}

/* =====================================================================
   BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  /* Le pied de page reste en bas, même sur une page courte. */
  min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--police-texte); font-size: 1.04rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--bleu); text-underline-offset: .18em; }
a:hover { color: var(--magenta); }
h1, h2, h3, h4 { font-family: var(--police-titre); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
code, kbd { font-family: var(--police-code); font-size: .92em; }

.conteneur { width: min(100% - 32px, var(--largeur)); margin-inline: auto; }
.conteneur--lecture { max-width: var(--lecture); }
.saut-contenu { position: absolute; left: -9999px; }
.saut-contenu:focus { left: 16px; top: 16px; z-index: 1000; background: #fff; padding: 10px 16px; border-radius: 8px; }
.visuellement-cache { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* =====================================================================
   BOUTONS ET PETITS ÉLÉMENTS
   ===================================================================== */
.bouton {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--police-titre); font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: var(--transition);
}
.bouton--plein { background: var(--orange); color: #fff; }
.bouton--plein:hover { background: #cf6210; color: #fff; transform: translateY(-2px); }
.bouton--contour { border-color: currentColor; color: inherit; }
.bouton--contour:hover { background: rgba(255, 255, 255, .08); color: inherit; transform: translateY(-2px); }
.section--claire .bouton--contour:hover { background: var(--bleu-clair); }

.surtitre {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--police-code); font-size: .82rem; font-weight: 500;
  letter-spacing: .04em; color: var(--vert); margin-bottom: 14px;
}
.surtitre::before { content: "//"; opacity: .7; }
.sombre .surtitre { color: var(--vert-vif); }

/* =====================================================================
   EN-TÊTE
   ===================================================================== */
.bandeau-annonce { background: var(--orange); color: #fff; text-align: center; font-size: .92rem; padding: 9px 16px; }
.bandeau-annonce a { color: #fff; font-weight: 600; }

.entete {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 14, 46, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nuit-trait); color: #fff;
}
.entete__barre { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; flex-shrink: 0; }
.logo img { width: 44px; height: 44px; object-fit: contain; }
.logo__texte { font-family: var(--police-titre); font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.logo__texte span { display: block; font-family: var(--police-code); font-weight: 400; font-size: .72rem; color: var(--vert-vif); letter-spacing: .03em; margin-top: 3px; }
.logo:hover { color: #fff; }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav a {
  display: block; padding: 9px 14px; border-radius: 10px;
  color: rgba(255, 255, 255, .86); text-decoration: none;
  font-family: var(--police-titre); font-weight: 500; transition: var(--transition);
}
.nav a:hover, .nav .current-menu-item > a, .nav .current_page_item > a { color: #fff; background: rgba(255, 255, 255, .08); }
.nav .current-menu-item > a, .nav .current_page_item > a { box-shadow: inset 0 -2px 0 var(--vert-vif); }
.entete__action { margin-left: 8px; padding: 10px 18px; font-size: .95rem; }

.burger { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }

@media (max-width: 960px) {
  .burger { display: block; }
  .entete__action { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    background: var(--nuit); border-bottom: 1px solid var(--nuit-trait);
    padding: 8px 16px 20px; display: none;
  }
  .nav[data-ouvert="true"] { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a { padding: 13px 12px; }
}

/* =====================================================================
   SECTIONS
   ===================================================================== */
.section { padding-block: clamp(56px, 7vw, 104px); }
.section--claire { background: var(--surface); }
.section--grise { background: var(--fond); }
.sombre { background: var(--nuit); color: rgba(255, 255, 255, .82); }
.sombre h1, .sombre h2, .sombre h3 { color: #fff; }
.sombre a:not(.bouton) { color: var(--vert-vif); }
.section__tete { max-width: 680px; margin-bottom: 44px; }
.section__tete p { color: var(--gris); font-size: 1.08rem; }
.sombre .section__tete p { color: rgba(255, 255, 255, .7); }
.section__pied { margin-top: 40px; }

/* Grille de points en fond des sections sombres : le clin d'œil « circuit ». */
.sombre--motif {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 0),
    radial-gradient(ellipse at 85% 0%, rgba(214, 36, 122, .22), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(110, 163, 31, .18), transparent 50%);
  background-size: 26px 26px, 100% 100%, 100% 100%;
}

/* =====================================================================
   ACCUEIL — EN-TÊTE
   ===================================================================== */
.hero { padding-block: clamp(56px, 8vw, 120px) clamp(64px, 8vw, 120px); overflow: hidden; }
.hero__grille { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero__grille { grid-template-columns: 1.1fr .9fr; gap: 64px; } }
.hero h1 { margin-bottom: .4em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--vert-vif), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__texte { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); max-width: 54ch; color: rgba(255, 255, 255, .78); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__actions .bouton--contour { color: #fff; border-color: rgba(255, 255, 255, .4); }

/* La fenêtre de terminal */
.terminal {
  background: #0a0a20; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--rayon-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(155, 212, 58, .06);
  font-family: var(--police-code); font-size: .92rem; overflow: hidden;
}
.terminal__barre { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.terminal__barre i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.terminal__barre i:nth-child(2) { background: #febc2e; }
.terminal__barre i:nth-child(3) { background: #28c840; }
.terminal__barre span { margin-left: 10px; color: rgba(255, 255, 255, .45); font-size: .8rem; }
.terminal__corps { padding: 20px 22px 26px; min-height: 280px; color: #d8dbff; }
.terminal__ligne { margin: 0 0 6px; white-space: pre-wrap; word-break: break-word; }
.terminal__ligne--commande::before { content: "$ "; color: var(--vert-vif); }
.terminal__ligne--sortie { color: rgba(216, 219, 255, .62); }
.terminal__curseur { display: inline-block; width: .6em; height: 1.1em; background: var(--vert-vif); vertical-align: text-bottom; animation: clignoter 1s steps(1) infinite; }
@keyframes clignoter { 50% { opacity: 0; } }

/* =====================================================================
   ACCUEIL — CHIFFRES
   ===================================================================== */
.chiffres { background: var(--nuit-2); color: #fff; padding-block: 34px; border-top: 1px solid var(--nuit-trait); }
.chiffres__grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.chiffre strong { display: block; font-family: var(--police-titre); font-size: 2.3rem; line-height: 1; color: var(--vert-vif); }
.chiffre span { color: rgba(255, 255, 255, .72); font-size: .95rem; }

/* =====================================================================
   CARTES — ce qu'on apprend
   ===================================================================== */
.cartes { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.carte {
  position: relative; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon-lg);
  padding: 30px 26px; transition: var(--transition);
}
.carte:hover { transform: translateY(-4px); box-shadow: var(--ombre); border-color: transparent; }
.carte__icone {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--teinte, var(--bleu)); color: #fff; margin-bottom: 20px;
}
.carte__icone svg { width: 26px; height: 26px; }
.carte h3 { margin-bottom: .4em; }
.carte p { color: var(--gris); margin: 0; font-size: .98rem; }
.carte--vert    { --teinte: var(--vert); }
.carte--orange  { --teinte: var(--orange); }
.carte--magenta { --teinte: var(--magenta); }
.carte--bleu    { --teinte: var(--bleu); }

/* =====================================================================
   PARCOURS — de la 3e à la 6e
   ===================================================================== */
.parcours { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: etape; }
.etape { position: relative; padding: 26px 24px 24px; border-radius: var(--rayon-lg); background: var(--surface); border: 1px solid var(--trait); }
.etape__annee { font-family: var(--police-code); font-size: .82rem; color: var(--magenta); font-weight: 600; }
.etape h3 { margin: 6px 0 10px; }
.etape p { color: var(--gris); font-size: .96rem; margin: 0; }
.etape__degre { position: absolute; top: 22px; right: 22px; font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bleu-clair); color: var(--bleu); }

/* =====================================================================
   DUO — texte + vidéo
   ===================================================================== */
.duo { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; gap: 64px; } }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--rayon-lg); overflow: hidden; background: var(--nuit-2); box-shadow: var(--ombre); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.liste-coches { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.liste-coches li { padding-left: 32px; position: relative; }
.liste-coches li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 6px; background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* =====================================================================
   TRAVAUX D'ÉLÈVES — mosaïque
   ===================================================================== */
.mosaique { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; grid-auto-flow: dense; }
@media (min-width: 800px) { .mosaique { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; } }
.mosaique a { position: relative; display: block; border-radius: var(--rayon); overflow: hidden; background: var(--nuit-2); }
.mosaique a:first-child { grid-row: span 2; grid-column: span 2; }
.mosaique img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s ease; filter: saturate(.92); }
.mosaique a:hover img { transform: scale(1.06); filter: saturate(1.1); }

/* =====================================================================
   ACTUALITÉS
   ===================================================================== */
.actus { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.actu { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon-lg); overflow: hidden; transition: var(--transition); text-decoration: none; color: inherit; }
.actu:hover { transform: translateY(-4px); box-shadow: var(--ombre); color: inherit; }
.actu__image { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--nuit-2), var(--bleu)); overflow: hidden; }
.actu__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.actu__image--vide { display: grid; place-items: center; color: var(--vert-vif); font-family: var(--police-code); font-size: 1.6rem; }
.actu__corps { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.actu time { font-family: var(--police-code); font-size: .8rem; color: var(--magenta); }
.actu h3 { margin: 0; font-size: 1.18rem; }
.actu p { color: var(--gris); font-size: .95rem; margin: 0; }

/* =====================================================================
   APPEL FINAL
   ===================================================================== */
.appel { border-radius: 28px; padding: clamp(36px, 5vw, 64px); display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .appel { grid-template-columns: 1.4fr auto; } }
.appel h2 { margin-bottom: .3em; }
.appel p { margin: 0; color: rgba(255, 255, 255, .78); max-width: 56ch; }
.appel .hero__actions { margin: 0; }

/* =====================================================================
   PAGES INTÉRIEURES
   ===================================================================== */
.page-tete { padding-block: clamp(48px, 6vw, 84px); }
.page-tete h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); margin: 0; }
.page-tete p { margin: 14px 0 0; color: rgba(255, 255, 255, .72); max-width: 60ch; }
.fil { font-family: var(--police-code); font-size: .82rem; color: rgba(255, 255, 255, .55); margin-bottom: 18px; }
.fil a { color: rgba(255, 255, 255, .75) !important; text-decoration: none; }
.fil a:hover { color: var(--vert-vif) !important; }

.contenu { padding-block: clamp(44px, 6vw, 80px); }
.prose { max-width: var(--lecture); margin-inline: auto; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.8rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { margin-inline: 0; padding: 18px 24px; border-left: 4px solid var(--vert); background: var(--surface); border-radius: 0 var(--rayon) var(--rayon) 0; }
.prose img { border-radius: var(--rayon); }
.prose .alignwide { max-width: min(100vw - 32px, 1100px); margin-inline: calc((var(--lecture) - min(100vw - 32px, 1100px)) / 2); }
.prose .alignfull { max-width: 100vw; margin-inline: calc(50% - 50vw); }
@media (max-width: 1100px) { .prose .alignwide { margin-inline: 0; max-width: 100%; } }

/* Les blocs de l'éditeur, habillés aux couleurs du thème */
.prose .wp-block-image figcaption, .prose .wp-element-caption { font-size: .88rem; color: var(--gris); text-align: center; }
.prose .wp-block-gallery { gap: 12px !important; }
.prose .wp-block-gallery .wp-block-image img { border-radius: var(--rayon); }
.prose .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; border-radius: var(--rayon-lg); overflow: hidden; }
.prose .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.prose .wp-block-separator { border: 0; height: 1px; background: var(--trait); margin-block: 2.4em; }
.prose .wp-block-button__link { border-radius: 999px; background: var(--orange); font-family: var(--police-titre); font-weight: 600; }
.prose .wp-block-group.has-background, .prose .wp-block-column.has-background { border-radius: var(--rayon-lg); padding: 28px; }
.prose .wp-block-columns { gap: 22px; }

main { flex: 1 0 auto; }
.pied { flex-shrink: 0; }

/* Les blocs « maison », proposés par leur classe CSS dans l'éditeur
   (Bloc → Avancé → Classe CSS additionnelle) :
   - carte-bloc   : une carte blanche bordée (dans un Groupe) ;
   - bloc-sombre  : un encadré bleu nuit, texte blanc (dans un Groupe) ;
   - surtitre-bloc: la petite ligne verte en police code (un Paragraphe) ;
   - etiquette    : la pastille au-dessus du titre d'une carte (un Paragraphe). */
.prose .wp-block-columns { margin-block: 1.4em 2.6em; }
.prose .wp-block-column { display: flex; flex-direction: column; }
.prose .carte-bloc {
  flex: 1; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon-lg);
  padding: 26px 24px; transition: var(--transition);
}
.prose .carte-bloc:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.prose .carte-bloc > * { margin-block: 0 .7em; }
.prose .carte-bloc > :last-child { margin-bottom: 0; }
.prose .carte-bloc h3 { margin-top: 0; font-size: 1.2rem; }
.prose .carte-bloc p { font-size: .97rem; color: var(--gris); }
.prose .carte-bloc strong { color: var(--encre); }
.prose .etiquette {
  display: inline-block; font-family: var(--police-code); font-size: .76rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; background: var(--bleu-clair); color: var(--bleu);
}
.prose .wp-block-column:nth-child(3n + 2) .etiquette { background: #f0f7e4; color: #4d7614; }
.prose .wp-block-column:nth-child(3n + 3) .etiquette { background: #fdeaf3; color: #a8185e; }
.prose .surtitre-bloc { font-family: var(--police-code); font-size: .85rem; font-weight: 500; color: var(--vert); margin: 2.6em 0 .3em; }
.prose .surtitre-bloc + h2 { margin-top: 0; }
.prose .bloc-sombre {
  background: var(--nuit); color: rgba(255, 255, 255, .8); border-radius: 26px;
  padding: clamp(28px, 4vw, 48px) !important; margin-block: 3em 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 0), radial-gradient(ellipse at 100% 0%, rgba(214, 36, 122, .25), transparent 55%);
  background-size: 26px 26px, 100% 100%;
}
.prose .bloc-sombre h2, .prose .bloc-sombre h3 { color: #fff; }
.prose .bloc-sombre > * { max-width: none !important; margin-inline: 0 !important; }
.prose .bloc-sombre li { color: rgba(255, 255, 255, .85); }
.prose .bloc-sombre a:not(.wp-block-button__link) { color: var(--vert-vif); }
.prose .bloc-sombre .surtitre-bloc { color: var(--vert-vif); margin-top: 0; }
.prose .bloc-sombre .wp-block-columns { margin-bottom: 0; align-items: center; }
.prose .bloc-sombre ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.prose .bloc-sombre li { padding-left: 32px; position: relative; }
.prose .bloc-sombre li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 6px; background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
.prose .bloc-sombre .wp-block-buttons { margin-top: 1.6em; gap: 12px; }
.prose .bloc-sombre .wp-block-button:nth-child(n + 2) .wp-block-button__link { background: transparent; border: 2px solid rgba(255, 255, 255, .45); }

/* La page des travaux : les galeries passent en pleine largeur */
.page-large .prose { max-width: 1100px; }
.page-large .prose .wp-block-image:not(.wp-block-gallery .wp-block-image) { margin-inline: 0; }
.page-large .prose .wp-block-image:not(.wp-block-gallery .wp-block-image) img { width: 100%; height: auto; }

/* Article seul */
.article__meta { font-family: var(--police-code); font-size: .85rem; color: var(--vert-vif); margin-bottom: 12px; display: block; }
.navigation-articles { display: flex; justify-content: space-between; gap: 20px; max-width: var(--lecture); margin: 56px auto 0; padding-top: 28px; border-top: 1px solid var(--trait); }
.navigation-articles a { text-decoration: none; font-family: var(--police-titre); font-weight: 600; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--trait); background: var(--surface); text-decoration: none; font-weight: 600; }
.pagination .current { background: var(--bleu); color: #fff; border-color: var(--bleu); }

/* =====================================================================
   VISIONNEUSE — un clic sur une image de galerie l'agrandit
   ===================================================================== */
.visionneuse { position: fixed; inset: 0; z-index: 500; background: rgba(8, 8, 26, .94); display: none; align-items: center; justify-content: center; padding: 24px; }
.visionneuse[data-ouverte="true"] { display: flex; }
.visionneuse img { max-width: 100%; max-height: 86vh; border-radius: var(--rayon); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.visionneuse button { position: absolute; background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.visionneuse button:hover { background: rgba(255, 255, 255, .2); }
.visionneuse__fermer { top: 18px; right: 18px; }
.visionneuse__prec { left: 18px; top: 50%; transform: translateY(-50%); }
.visionneuse__suiv { right: 18px; top: 50%; transform: translateY(-50%); }

/* =====================================================================
   PIED DE PAGE
   ===================================================================== */
.pied { background: var(--nuit); color: rgba(255, 255, 255, .7); padding-block: 64px 28px; font-size: .95rem; }
.pied__grille { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pied h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pied a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.pied a:hover { color: var(--vert-vif); }
.pied__bas { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--nuit-trait); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; font-family: var(--police-code); }

/* Les animations d'apparition s'effacent devant la préférence du visiteur */
@media (prefers-reduced-motion: no-preference) {
  .apparait { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .apparait.est-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .terminal__curseur { animation: none; }
}
.prose[data-galerie] img, .mosaique img { cursor: zoom-in; }
.prose[data-galerie] a img { cursor: pointer; }
