/* TETALAB — ULTRA SYNTHWAVE
   Nuit violette, soleil couchant rayé, grille néon qui file vers l'horizon et lettres chromées.
   Cette feuille remplace celles d'Antimatter : seule Font Awesome est gardée. */

@font-face { font-family: "Orbitron"; src: url(fonts/orbitron-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Orbitron"; src: url(fonts/orbitron-latin-900-normal.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url(fonts/exo-2-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url(fonts/exo-2-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url(fonts/exo-2-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Mr Dafoe"; src: url(fonts/mr-dafoe-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "VT323"; src: url(fonts/vt323-400-normal.woff2) format("woff2"); font-display: swap; }

:root {
  --nuit: #0d0221;
  --nuit-2: #1a0636;
  --aubergine: #2b0b4f;
  --panneau: rgba(23, 5, 48, 0.82);
  --texte: #ece2ff;
  --texte-doux: #b9a6dc;
  --rose: #ff2975;
  --magenta: #f222ff;
  --violet: #8c1eff;
  --cyan: #00f0ff;
  --jaune: #ffd319;
  --orange: #ff901f;
  --titre: "Orbitron", "Arial Black", sans-serif;
  --corps: "Exo 2", "Segoe UI", system-ui, sans-serif;
  --script: "Mr Dafoe", "Brush Script MT", cursive;
  --osd: "VT323", "Courier New", monospace;
  --couchant: linear-gradient(90deg, var(--jaune), var(--orange) 25%, var(--rose) 55%, var(--magenta) 80%, var(--violet));
  --lueur-rose: 0 0 4px #fff3, 0 0 10px var(--rose), 0 0 24px var(--rose);
  --lueur-cyan: 0 0 4px #fff3, 0 0 10px var(--cyan), 0 0 24px var(--cyan);
  --vitesse-grille: 1.6s;
}

/* --- Base ------------------------------------------------------------------------------------------ */

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

html { font-size: 18px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--nuit) 0, var(--nuit-2) 60%, #22083f 100%) fixed;
  color: var(--texte);
  font-family: var(--corps);
  line-height: 1.65;
  overflow-x: hidden;
}

button, input, select, textarea { font: inherit; color: inherit; }

img, iframe, video { max-width: 100%; }

img { height: auto; }

::selection { background: var(--rose); color: #fff; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; box-shadow: 0 0 12px var(--cyan); }

.hidden {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--titre); font-weight: 700; line-height: 1.2; letter-spacing: 0.02em; margin: 1.6em 0 0.6em; }

h1, h2 {
  background: var(--couchant);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
  text-transform: uppercase;
  filter: drop-shadow(0 0 10px rgba(255, 41, 117, 0.45));
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.65rem; }
h3 { color: var(--cyan); font-size: 1.3rem; text-shadow: 0 0 12px rgba(0, 240, 255, 0.55); }
h4 { color: var(--rose); font-size: 1.12rem; text-shadow: 0 0 12px rgba(255, 41, 117, 0.5); }
h5 { color: var(--jaune); font-size: 1rem; }
h6 { color: var(--texte-doux); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.12em; }

p { margin: 0 0 1em; }

strong, b { color: #fff; font-weight: 700; }

em, i:not(.fa) { color: #ffc6e0; }

a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(255, 41, 117, 0.7);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  transition: color 0.15s, text-shadow 0.15s;
}

a:hover { color: #fff; text-decoration-color: var(--rose); text-shadow: var(--lueur-cyan); }

ul, ol { margin: 0 0 1em; padding-left: 1.5em; }

li::marker { color: var(--rose); }

hr {
  border: 0;
  height: 2px;
  margin: 2em 0;
  background: var(--couchant);
  box-shadow: 0 0 12px var(--rose);
}

blockquote {
  background: linear-gradient(90deg, rgba(140, 30, 255, 0.18), transparent);
  border-left: 4px solid var(--magenta);
  box-shadow: -6px 0 14px -6px var(--magenta);
  color: #f3d9ff;
  font-style: italic;
  margin: 1.2em 0;
  padding: 0.6em 1em;
}

blockquote p:last-child { margin-bottom: 0; }

code, kbd, samp { background: rgba(0, 240, 255, 0.08); border-radius: 3px; color: var(--cyan); font-family: var(--osd); font-size: 1.15em; padding: 0 0.25em; }

pre {
  background: #07010f;
  border: 1px solid rgba(0, 240, 255, 0.5);
  border-radius: 4px;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.15), inset 0 0 30px rgba(0, 240, 255, 0.05);
  color: var(--cyan);
  font-family: var(--osd);
  font-size: 1.1rem;
  line-height: 1.25;
  overflow-x: auto;
  padding: 0.9em 1em;
}

pre code { background: none; font-size: inherit; padding: 0; }

table { border-collapse: collapse; margin-bottom: 1.2em; width: 100%; }

th {
  background: linear-gradient(90deg, var(--rose), var(--violet));
  color: #fff;
  font-family: var(--titre);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

th, td { border: 1px solid rgba(242, 34, 255, 0.3); padding: 0.35em 0.7em; overflow-wrap: anywhere; }

tr:nth-child(even) td { background: rgba(140, 30, 255, 0.08); }

input[type="text"], input[type="email"], input[type="search"], textarea, select {
  background: rgba(7, 1, 15, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.45);
  border-radius: 3px;
  color: var(--texte);
  padding: 0.35em 0.6em;
  width: 100%;
}

input:focus, textarea:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 10px rgba(0, 240, 255, 0.5); outline: none; }

.button, input[type="submit"], button[type="submit"], .bouton-neon {
  background: transparent;
  border: 2px solid var(--rose);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(255, 41, 117, 0.55), inset 0 0 10px rgba(255, 41, 117, 0.35);
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: var(--titre);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.45em 1em;
  text-decoration: none;
  text-shadow: 0 0 6px var(--rose);
  text-transform: uppercase;
  transition: background 0.15s, box-shadow 0.15s;
}

.button:hover, input[type="submit"]:hover, button[type="submit"]:hover, .bouton-neon:hover {
  background: var(--rose);
  box-shadow: 0 0 22px var(--rose), 0 0 44px rgba(255, 41, 117, 0.5);
  color: #fff;
  text-shadow: none;
}

/* --- Le ciel étoilé ------------------------------------------------------------------------------------- */

#ciel {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 7% 12%, #fff, transparent),
    radial-gradient(1px 1px at 19% 31%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 27% 8%, #ffd6f0, transparent),
    radial-gradient(1px 1px at 38% 22%, #fff, transparent),
    radial-gradient(1px 1px at 46% 41%, #cfefff, transparent),
    radial-gradient(1.5px 1.5px at 58% 15%, #fff, transparent),
    radial-gradient(1px 1px at 66% 34%, #fff, transparent),
    radial-gradient(1px 1px at 74% 6%, #ffd6f0, transparent),
    radial-gradient(1.5px 1.5px at 83% 27%, #fff, transparent),
    radial-gradient(1px 1px at 91% 45%, #cfefff, transparent),
    radial-gradient(1px 1px at 12% 58%, #fff, transparent),
    radial-gradient(1px 1px at 33% 70%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 52% 63%, #ffd6f0, transparent),
    radial-gradient(1px 1px at 71% 77%, #fff, transparent),
    radial-gradient(1px 1px at 88% 66%, #fff, transparent),
    radial-gradient(1px 1px at 4% 88%, #cfefff, transparent),
    radial-gradient(1px 1px at 42% 92%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 96% 90%, #fff, transparent);
  animation: scintille 5s ease-in-out infinite alternate;
}

@keyframes scintille { from { opacity: 0.45; } to { opacity: 1; } }

/* --- L'en-tête : le couchant ------------------------------------------------------------------------------ */

/* Le ciel garde ses dimensions ; seule la route (--route) se règle. */
#header {
  --ciel: clamp(192px, 25.6vw, 301px);
  --route: clamp(30px, 4.11vw, 49px);
  height: calc(var(--ciel) + var(--route));
  overflow: hidden;
  position: relative;
}

.horizon { position: absolute; inset: 0; }

/* Le soleil, rayé de bas en haut, posé sur l'horizon. */
.soleil {
  aspect-ratio: 1;
  bottom: var(--route);
  left: 50%;
  position: absolute;
  transform: translate(-50%, 16%);
  width: min(40vw, 360px);
}

.soleil::before, .soleil::after {
  border-radius: 50%;
  content: "";
  inset: 0;
  position: absolute;
}

.soleil::before {
  background: radial-gradient(circle, rgba(255, 41, 117, 0.55), rgba(242, 34, 255, 0.15) 55%, transparent 70%);
  filter: blur(18px);
  inset: -35%;
}

.soleil::after {
  background: linear-gradient(180deg, var(--jaune) 0%, var(--orange) 32%, var(--rose) 62%, var(--magenta) 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0 44%, transparent 44% 46%, #000 46% 53%, transparent 53% 56.5%, #000 56.5% 62%, transparent 62% 66.5%, #000 66.5% 71%, transparent 71% 76.5%, #000 76.5% 80%, transparent 80%);
  mask-image: linear-gradient(180deg, #000 0 44%, transparent 44% 46%, #000 46% 53%, transparent 53% 56.5%, #000 56.5% 62%, transparent 62% 66.5%, #000 66.5% 71%, transparent 71% 76.5%, #000 76.5% 80%, transparent 80%);
  animation: respire 6s ease-in-out infinite alternate;
}

@keyframes respire { to { filter: brightness(1.12) saturate(1.15); } }

.montagnes {
  bottom: var(--route);
  height: clamp(66px, 8.8vw, 103px);
  left: 0;
  position: absolute;
  width: 100%;
}

.montagne-loin { fill: #2a0b55; stroke: var(--violet); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

.montagne-pres { fill: #12022a; stroke: var(--magenta); stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px var(--magenta)); }

/* Le sol : une grille en perspective qui file vers nous. */
.sol, .sol-pied {
  background: linear-gradient(180deg, #2c0457, #0d0221 70%);
  border-top: 2px solid var(--magenta);
  box-shadow: 0 -2px 22px var(--magenta), 0 -1px 4px #fff;
  overflow: hidden;
  perspective: 260px;
  perspective-origin: 50% 0;
  position: absolute;
  left: 0;
  right: 0;
}

.sol { height: var(--route); bottom: 0; }

.grille {
  background-image:
    linear-gradient(90deg, rgba(242, 34, 255, 0.85) 2px, transparent 2px),
    linear-gradient(0deg, rgba(242, 34, 255, 0.85) 2px, transparent 2px);
  background-size: 70px 70px;
  height: 300%;
  left: -100%;
  position: absolute;
  top: 0;
  transform: rotateX(72deg);
  transform-origin: 50% 0;
  width: 300%;
  animation: defile var(--vitesse-grille) linear infinite;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%);
  mask-image: linear-gradient(180deg, transparent, #000 12%);
}

@keyframes defile { to { background-position: 0 70px; } }

/* L'enseigne : logo et lettres chromées par-dessus le soleil. */
.enseigne {
  align-items: center;
  display: flex;
  gap: clamp(0.8rem, 3vw, 2.5rem);
  justify-content: center;
  left: 0;
  padding: 0 1rem;
  position: absolute;
  right: 0;
  top: clamp(51px, 6.8vw, 80px);
  z-index: 2;
}

#logo { display: block; flex: 0 0 auto; transition: transform 0.2s; }

#logo img {
  display: block;
  filter: drop-shadow(0 0 6px rgba(255, 211, 25, 0.8)) drop-shadow(0 0 18px var(--rose));
  height: clamp(80px, 12vw, 150px);
  width: auto;
}

#logo:hover { transform: rotate(-6deg) scale(1.05); }

.titre { margin: 0; position: relative; }

.titre a, .titre a:hover { text-decoration: none; text-shadow: none; }

.chrome {
  display: block;
  font-family: var(--titre);
  font-size: clamp(2.6rem, 10.5vw, 7.4rem);
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  position: relative;
  transform: skewX(-9deg);
}

/* Deux couches : le contour néon derrière, le chrome devant. */
.chrome::before, .chrome::after {
  content: attr(data-texte);
  left: 0;
  position: absolute;
  top: 0;
}

.chrome { color: transparent; -webkit-text-stroke: 2px var(--rose); filter: drop-shadow(0 0 10px var(--rose)) drop-shadow(0 0 28px rgba(242, 34, 255, 0.6)); }

.chrome::after {
  background: linear-gradient(180deg, #f8fdff 0%, #9ad9ff 38%, #23124a 49%, #3b1d6e 51%, #ff9bd8 66%, #fff4fb 88%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.6);
}

/* Le reflet qui passe sur le chrome. */
.chrome::before {
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.95) 50%, transparent 60%) no-repeat;
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 0;
  z-index: 1;
  animation: reflet 7s ease-in-out infinite;
}

@keyframes reflet { 0%, 70% { background-position: 150% 0; } 100% { background-position: -60% 0; } }

.signature {
  bottom: -0.35em;
  color: #fff;
  font-family: var(--script);
  font-size: clamp(1.8rem, 5.2vw, 3.6rem);
  line-height: 1;
  position: absolute;
  right: -0.4em;
  text-shadow: 0 0 2px #fff, 0 0 8px var(--cyan), 0 0 18px var(--cyan), 0 0 36px var(--cyan);
  transform: rotate(-9deg);
  white-space: nowrap;
  z-index: 3;
  animation: clignote 9s infinite;
}

/* Le néon fatigué qui grésille de temps en temps. */
@keyframes clignote {
  0%, 91%, 93%, 95.5%, 100% { opacity: 1; }
  92%, 94.5% { opacity: 0.25; }
}

/* L'affichage du magnétoscope, en haut à gauche. */
#osd {
  color: #fff;
  display: flex;
  font-family: var(--osd);
  font-size: 1.35rem;
  gap: 1.5rem;
  left: 1.2rem;
  letter-spacing: 0.06em;
  position: absolute;
  right: 1.2rem;
  text-shadow: 2px 0 rgba(255, 41, 117, 0.8), -2px 0 rgba(0, 240, 255, 0.8);
  top: 0.6rem;
  z-index: 3;
}

#osd .facultatif { margin-left: auto; }

.osd-icone { color: var(--cyan); }

/* --- La navigation ---------------------------------------------------------------------------------------- */

#navbar {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(13, 2, 33, 0.82);
  border-bottom: 1px solid transparent;
  border-image: var(--couchant) 1;
  box-shadow: 0 6px 24px rgba(242, 34, 255, 0.2);
  padding: 0.6rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 8;
}

.navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.4rem;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navigation a {
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--texte);
  display: block;
  font-family: var(--titre);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.4em 0.9em;
  text-decoration: none;
  text-transform: uppercase;
}

.navigation a:hover { border-color: var(--cyan); box-shadow: 0 0 10px rgba(0, 240, 255, 0.5), inset 0 0 8px rgba(0, 240, 255, 0.3); color: #fff; text-shadow: var(--lueur-cyan); }

.navigation .active > a {
  border-color: var(--rose);
  box-shadow: 0 0 12px rgba(255, 41, 117, 0.7), inset 0 0 10px rgba(255, 41, 117, 0.4);
  color: #fff;
  text-shadow: var(--lueur-rose);
}

.navigation .fa { margin-right: 0.3em; }

/* --- La devise : des enseignes au néon qui s'allument tour à tour ------------------------------------------- */

.blog-header {
  align-items: center;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin: 0 0 2rem;
}

.devise { flex: 1; min-width: 0; }

.blog-header h2 { font-size: clamp(1.4rem, 3.2vw, 2.1rem); margin: 0.2rem 0 0; }

/* Les six mots sur une seule ligne, tant que la place le permet. */
h2.neons {
  background: none;
  color: inherit;
  display: flex;
  filter: none;
  flex-wrap: wrap;
  font-size: 0.95rem; /* comme le menu principal */
  gap: 0.45em 0.6em;
  justify-content: center;
  line-height: 1.3;
}

.neons .neon {
  --couleur: var(--rose);
  border: 2px solid var(--couleur);
  border-radius: 0.4em;
  color: #fff;
  opacity: 0.4;
  padding: 0.05em 0.45em;
  transition: opacity 0.3s, box-shadow 0.3s, text-shadow 0.3s;
}

.neons .neon:nth-child(4n+2) { --couleur: var(--cyan); }
.neons .neon:nth-child(4n+3) { --couleur: var(--jaune); }
.neons .neon:nth-child(4n+4) { --couleur: var(--magenta); }

.neons .neon.allume {
  box-shadow: 0 0 8px var(--couleur), 0 0 22px var(--couleur), inset 0 0 12px var(--couleur);
  opacity: 1;
  text-shadow: 0 0 6px var(--couleur), 0 0 16px var(--couleur);
  animation: amorce 0.45s steps(1);
}

/* Un néon qu'on allume hésite toujours un peu. */
@keyframes amorce { 0% { opacity: 1; } 20% { opacity: 0.3; } 35% { opacity: 1; } 50% { opacity: 0.5; } 60% { opacity: 1; } }

/* La cassette. */
/* La colonne de droite : la face B, et la cassette posée dessous. */
.colonne-droite { align-self: start; min-width: 0; }

.k7 { display: block; filter: drop-shadow(0 0 14px rgba(140, 30, 255, 0.7)); margin: 0 auto 2.2rem; transform: rotate(4deg); width: 220px; }

.k7-boitier { fill: #1c0b33; stroke: var(--cyan); stroke-width: 2; }

.k7-titre { fill: #1c0b33; font-family: var(--script); font-size: 22px; }

.k7-fenetre { fill: #07010f; stroke: #fff; stroke-opacity: 0.5; }

.k7-bobine circle { fill: #f0e8ff; stroke: #1c0b33; stroke-width: 6; }

.k7-bobine path { stroke: #1c0b33; stroke-linecap: round; stroke-width: 3; }

.k7-bobine { animation: bobine 4s linear infinite; transform-box: fill-box; transform-origin: center; }

@keyframes bobine { to { rotate: 360deg; } }

.k7-face { fill: #1c0b33; font-family: var(--titre); font-size: 14px; font-weight: 900; }

.k7-bas { fill: #12052a; stroke: var(--cyan); stroke-opacity: 0.6; stroke-width: 2; }

.k7-trou { fill: #07010f; }

/* --- Le laser raptor : il garde la face B ------------------------------------------------------------------- */

.raptor-cadre { margin: 1.5rem 0 0; text-align: center; }

.raptor {
  display: block;
  filter: drop-shadow(0 0 10px rgba(242, 34, 255, 0.3));
  width: 100%;
}

.raptor-legende {
  color: #fff;
  font-family: var(--script);
  font-size: 2rem;
  line-height: 1;
  margin-top: 0.3rem;
  text-shadow: var(--lueur-rose);
}

/* --- Contenu ---------------------------------------------------------------------------------------------- */

#body { margin: 0 auto; max-width: 1280px; padding: 2.5rem 1.5rem 3rem; }

#body > :first-child { margin-top: 0; }

#breadcrumbs {
  color: var(--texte-doux);
  font-family: var(--osd);
  font-size: 1.2rem;
  height: auto;
  letter-spacing: 0.05em;
  line-height: inherit;
  margin-bottom: 1.2rem;
  padding: 0;
}

#breadcrumbs::before { color: var(--rose); content: "\25B6\25B6  "; }

#breadcrumbs span { display: inline; padding: 0; }

#breadcrumbs > i { color: var(--cyan); font-size: 0.6em; margin: 0 0.5em; width: auto; }

#breadcrumbs a { color: var(--cyan); text-decoration: none; }

.blog-content-list, .blog-content-item {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) 20rem;
}

#listing:only-child, #item:only-child { grid-column: 1 / -1; }

/* Les articles et les pages : des panneaux bordés de néon. */
.list-item, #body > .default, .panneau-page {
  background: var(--panneau);
  border: 1px solid rgba(255, 41, 117, 0.45);
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.08), 0 0 26px rgba(242, 34, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  margin-bottom: 2.2rem;
  padding: 1.6rem 1.8rem 1.4rem;
  position: relative;
}

.list-item::before {
  background: var(--couchant);
  border-radius: 6px 6px 0 0;
  box-shadow: 0 0 14px var(--rose);
  content: "";
  height: 3px;
  left: -1px;
  position: absolute;
  right: -1px;
  top: -1px;
}

.list-blog-header::after { clear: both; content: ""; display: table; }

.list-blog-date {
  color: var(--jaune);
  float: right;
  font-family: var(--osd);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  margin-left: 1em;
  text-shadow: 0 0 8px rgba(255, 211, 25, 0.6);
}

.list-item .p-name { font-size: 1.45rem; font-weight: 900; margin: 0 0 0.4em; text-transform: uppercase; }

.list-item .p-name a {
  background: linear-gradient(90deg, #fff, #ffc6e0 60%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

.list-item .p-name a:hover { filter: drop-shadow(0 0 8px var(--rose)); text-shadow: none; }

.list-item .p-name .fa { color: var(--rose); }

.list-item .p-name .fa-calendar-o { display: none; }

.list-blog-header img {
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 4px;
  display: block;
  margin: 0.8rem 0;
}

.list-blog-padding { overflow-wrap: anywhere; }

.tags { display: block; margin-bottom: 0.4rem; }

.tags a {
  border: 1px solid rgba(242, 34, 255, 0.6);
  border-radius: 999px;
  color: #f6c8ff;
  display: inline-block;
  font-size: 0.8rem;
  margin: 0 0.35em 0.35em 0;
  padding: 0 0.7em;
  text-decoration: none;
}

.tags a::before { color: var(--magenta); content: "#"; }

.tags a:hover { background: var(--magenta); box-shadow: 0 0 12px var(--magenta); color: #fff; text-shadow: none; }

.tags a:hover::before { color: #fff; }

/* Le lien de suite devient une touche « lecture ». */
.p-summary > p:last-child > a:only-child {
  font-family: var(--titre);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.p-summary > p:last-child > a:only-child::before { content: "\25B6  "; color: var(--rose); }

.prev-next { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: space-between; margin-top: 1.8rem; }

.image-credit-wrapper { max-width: 1000px; overflow: hidden; position: relative; }

.image-credit { background: rgba(13, 2, 33, 0.85); bottom: 0; color: var(--texte); font-size: 0.75rem; padding: 0 0.5em; position: absolute; right: 0; }

.image-credit a { color: inherit; }

/* Les liens externes : l'icône du plugin est remplacée par une flèche néon. */
#body a.external-link, #body a.external, #footer a.external-link { background-image: none; padding-right: 0; }

#body a.external-link::after, #body a.external::after { color: var(--rose); content: "\2197"; font-size: 0.8em; margin-left: 0.1em; text-shadow: none; }

a.external-link.icon:hover, a.external-link.no-image:hover, a.external:hover, a.mailto:hover { background-color: transparent; }

/* --- Avis ---------------------------------------------------------------------------------------------------- */

.notices, .notices.yellow, .notices.red, .notices.blue, .notices.green {
  --couleur: var(--jaune);
  background: rgba(13, 2, 33, 0.9);
  border: 2px solid var(--couleur);
  border-radius: 6px;
  box-shadow: 0 0 16px var(--couleur), inset 0 0 18px color-mix(in srgb, var(--couleur) 25%, transparent);
  color: var(--texte);
  margin: 0 0 2rem;
  padding: 0.8rem 1.2rem;
}

.notices.red { --couleur: var(--rose); }
.notices.blue { --couleur: var(--cyan); }
.notices.green { --couleur: #39ff8e; }

.notices h1, .notices h2, .notices h3, .notices h4, .notices h5, .notices h6 {
  background: none;
  color: var(--couleur);
  filter: none;
  margin: 0 0 0.3em;
  text-shadow: 0 0 10px var(--couleur);
}

.notices h5 { font-size: 1.15rem; }

.notices h6 { font-size: 0.9rem; letter-spacing: 0.04em; text-transform: none; }

.notices p { margin: 0; }

.notices.yellow::before {
  color: var(--couleur);
  content: "\26A1  Flash spécial";
  display: block;
  font-family: var(--osd);
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: clignote 4s infinite;
}

/* --- Colonne de droite : la face B ---------------------------------------------------------------------------- */

#sidebar {
  align-self: start;
  background: var(--panneau);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 6px;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.12);
  font-size: 0.92rem;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 1.2rem 1.3rem;
}

#sidebar::before {
  color: var(--cyan);
  content: "Face B";
  display: block;
  font-family: var(--script);
  font-size: 2.2rem;
  line-height: 1;
  text-shadow: var(--lueur-cyan);
}

#sidebar h1, #sidebar h2, #sidebar h3, #sidebar h4, #sidebar h5, #sidebar h6 {
  background: none;
  border-bottom: 1px solid rgba(255, 41, 117, 0.5);
  color: var(--rose);
  filter: none;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  margin: 1.5em 0 0.6em;
  padding-bottom: 0.3em;
  text-shadow: 0 0 8px rgba(255, 41, 117, 0.6);
  text-transform: uppercase;
}

#sidebar ul { list-style: none; margin: 0 0 0.6em; padding: 0; }

#sidebar li::before { color: var(--magenta); content: "\25B8  "; }

#sidebar .tags a { font-size: 0.75rem; }

#sidebar .syndicate .button { margin: 0 0.4em 0.4em 0; }

#sidebar .search-wrapper { position: relative; }

#sidebar .search-wrapper .search-submit { display: none; }

/* --- Pagination, 404 ------------------------------------------------------------------------------------------- */

.pagination { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; list-style: none; margin: 2.2rem 0 0; padding: 0; }

.pagination li { border: 0; display: block; }

.pagination a, .pagination span {
  border: 1px solid rgba(0, 240, 255, 0.45);
  border-radius: 3px;
  color: var(--texte);
  display: block;
  font-family: var(--titre);
  font-size: 0.8rem;
  font-weight: 900;
  padding: 0.35em 0.8em;
  text-decoration: none;
}

.pagination a:hover { border-color: var(--cyan); box-shadow: 0 0 12px var(--cyan); text-shadow: var(--lueur-cyan); }

.pagination .active { background: var(--rose); border-color: var(--rose); box-shadow: 0 0 14px var(--rose); color: #fff; }

/* « et » deviennent les touches du magnétoscope. */
.pagination li:first-child > *, .pagination li:last-child > * { font-size: 0; }

.pagination li:first-child > *::before { content: "\25C0\25C0  REW"; font-size: 0.8rem; }

.pagination li:last-child > *::before { content: "FF  \25B6\25B6"; font-size: 0.8rem; }

.pagination li:first-child > span, .pagination li:last-child > span { border-color: rgba(255, 255, 255, 0.1); color: #6d5c8c; }

#error { padding: 3rem 0; text-align: center; }

#error .erreur-osd {
  color: #fff;
  font-family: var(--osd);
  font-size: 2.4rem;
  letter-spacing: 0.2em;
  text-shadow: 3px 0 var(--rose), -3px 0 var(--cyan);
  animation: tracking 2.5s steps(1) infinite;
}

@keyframes tracking { 0%, 85% { transform: none; } 88% { transform: translateX(-6px) skewX(12deg); } 92% { transform: translateX(5px); } }

#error h1 { font-size: 3rem; margin-top: 0; }

#error .gag { color: var(--texte-doux); }

/* --- Pied de page : le sol néon revient ------------------------------------------------------------------------- */

#footer { margin-top: 2rem; min-height: 230px; overflow: hidden; position: relative; }

#footer .sol-pied { top: 0; bottom: 0; }

.pied-contenu {
  align-items: center;
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  gap: 1rem;
  padding: 2.5rem 1.5rem 3rem;
  position: relative;
  text-align: center;
  z-index: 1;
}

.pied-contenu p { margin: 0; text-shadow: 0 0 6px var(--nuit), 0 0 12px var(--nuit); }

.pied-contenu a { color: #fff; text-shadow: var(--lueur-rose); }

#cassette .cassette-icone { color: var(--cyan); display: inline-block; margin-right: 0.4em; }

#cassette[aria-pressed="true"] { background: var(--rose); color: #fff; }

#cassette[aria-pressed="true"] .cassette-icone { color: #fff; }

/* --- La cassette tourne : tout s'emballe ------------------------------------------------------------------------ */

html.joue { --vitesse-grille: 0.6s; }

html.joue .k7-bobine { animation-duration: 1s; }

html.joue .soleil::after { animation: pulsation 0.545s ease-in-out infinite alternate; }

@keyframes pulsation { to { filter: brightness(1.35) saturate(1.3); } }

/* Le code de triche : on passe en turbo. */
html.turbo { --vitesse-grille: 0.25s; }

html.turbo body { animation: arc-en-ciel 3s linear infinite; }

@keyframes arc-en-ciel { to { filter: hue-rotate(360deg); } }

/* --- Sans décor (intégration en iframe) ----------------------------------------------------------------------- */

.sans-decor { background: var(--nuit); }

.sans-decor #body { max-width: none; padding: 1rem; }

/* --- Première page de la session : la bande se cale -------------------------------------------------------------- */

html.vhs::after {
  animation: calage 0.9s steps(9) forwards;
  background:
    linear-gradient(180deg, transparent 0 40%, rgba(255, 255, 255, 0.5) 40% 42%, transparent 42% 70%, rgba(0, 240, 255, 0.35) 70% 71%, transparent 71%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 4px),
    #0d0221;
  background-size: 100% 300%, auto, auto;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 20;
}

@keyframes calage {
  0% { background-position: 0 0, 0 0, 0 0; opacity: 1; }
  80% { opacity: 0.85; }
  100% { background-position: 0 -300%, 0 0, 0 0; opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.vhs::after { display: none; }
  #ciel, .grille, .soleil::after, .chrome::before, .signature, .k7-bobine, .neons .neon.allume,
  .notices.yellow::before, #error .erreur-osd, html.turbo body { animation: none !important; }
  .neons .neon { opacity: 1; }
}

/* --- Petits écrans ---------------------------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .blog-content-list, .blog-content-item { grid-template-columns: minmax(0, 1fr); }
}


@media (max-width: 700px) {
  html { font-size: 17px; }

  #osd { font-size: 1.1rem; gap: 1rem; }

  #osd .facultatif { display: none; }

  .enseigne { flex-direction: column; gap: 0.4rem; top: 48px; }

  #header { --ciel: 238px; --route: 29px; }

  .montagnes { height: 75px; }

  .soleil { width: 62vw; }

  .signature { right: 0; }

  #navbar { padding: 0.5rem 0.6rem; }

  .navigation a { font-size: 0.78rem; letter-spacing: 0.06em; padding: 0.35em 0.6em; }

  h2.neons { font-size: 0.78rem; }

  #body { padding: 1.5rem 0.8rem 2rem; }

  .list-item, #body > .default { padding: 1.2rem 1.1rem 1rem; }

  .list-item .p-name { font-size: 1.15rem; }

  .list-blog-date { float: none; display: block; margin: 0 0 0.2rem; }
}
