/* Look volontairement "site perso fait sous Dreamweaver en 2001". Mobile first : la colonne
   fait toute la largeur sur téléphone, et reste une colonne de téléphone sur PC. */

:root {
  --ciel-haut: #0b2a6f;
  --ciel-bas: #6fa8ff;
  --page: #fffef6;
  --encre: #111133;
  --lien: #0000ee;
  --lien-vu: #551a8b;
  --gris: #c0c0c0;
  --gris-clair: #ffffff;
  --gris-fonce: #808080;
  --gris-noir: #404040;
  --jaune: #ffff00;
  --rouge: #d40000;
  --vert-compteur: #39ff14;
  --bandeau: #000080;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--encre);
  background-color: var(--ciel-haut);
  background-image: linear-gradient(180deg, var(--ciel-haut) 0%, #2856b8 45%, var(--ciel-bas) 100%);
  background-attachment: fixed;
  font-family: "Comic Sans MS", "Comic Neue", "Chalkboard SE", cursive;
  font-size: 17px;
  line-height: 1.45;
  overflow-x: hidden;
}

a { color: var(--lien); font-weight: bold; }
a:visited { color: var(--lien-vu); }

/* --- Décor : montagnes, neige, skieurs (derrière la colonne) --- */

#decor { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#montagnes { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 55vh; }
/* La neige et la traînée du curseur tombent devant la page, sans bloquer les clics. */
#neige { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 20; pointer-events: none; }
#curseur {
  position: fixed; left: 0; top: 0; z-index: 30;
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  pointer-events: none; will-change: transform;
}
html.curseur-skieur, html.curseur-skieur * { cursor: none !important; }
html.curseur-skieur input[type="text"], html.curseur-skieur input[type="tel"] { cursor: text !important; }
.skieur-qui-passe {
  position: absolute;
  width: 70px;
  height: 70px;
  will-change: transform;
}

/* --- La colonne --- */

#page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--page);
  background-image: radial-gradient(#e6eefc 1px, transparent 1px);
  background-size: 14px 14px;
  min-height: 100vh;
  box-shadow: 0 0 0 3px #000, 0 0 0 6px var(--jaune), 0 0 0 9px #000;
}

@media (min-width: 520px) {
  #page { margin: 24px auto; min-height: 0; }
}

.defile {
  display: block;
  background: var(--bandeau);
  color: var(--jaune);
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 15px;
  padding: 4px 0;
  border-bottom: 3px ridge var(--gris);
}

/* --- En-tête --- */

header.accueil {
  text-align: center;
  padding: 18px 16px 8px;
}

.wordart {
  margin: 6px 0 2px;
  font-family: Impact, "Anton", "Arial Black", sans-serif;
  font-size: 54px;
  line-height: 1;
  letter-spacing: 1px;
  transform: rotate(-4deg) skewX(-6deg);
  background: linear-gradient(180deg, #fff200 0%, #ff8a00 45%, #ff0080 55%, #7a00ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 2px #000;
  filter: drop-shadow(4px 4px 0 #000) drop-shadow(2px 2px 0 #00e5ff);
}

.sous-titre {
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 21px;
  margin: 14px 0 6px;
  color: #000;
  text-shadow: 1px 1px 0 #fff;
}

.dates {
  display: inline-block;
  margin: 8px 0;
  padding: 8px 12px;
  background: var(--jaune);
  border: 3px dashed var(--rouge);
  font-weight: bold;
  transform: rotate(1.5deg);
}
.dates small { display: block; font-weight: normal; font-size: 14px; }

.clignote { animation: clignote 1s steps(1) infinite; }
@keyframes clignote { 50% { visibility: hidden; } }

.compte-a-rebours {
  font-family: "Press Start 2P", "Courier New", monospace;
  font-size: 12px;
  margin: 10px 0 4px;
  color: var(--rouge);
}

/* --- Gros bouton façon bannière --- */

.gros-bouton {
  display: inline-block;
  margin: 10px 0 6px;
  padding: 12px 18px;
  min-height: 48px;
  font-family: Impact, "Anton", "Arial Black", sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--jaune);
  background: linear-gradient(180deg, #ff2a2a, #a00000);
  border: 4px outset #ff8080;
  text-decoration: none;
  text-shadow: 2px 2px 0 #000;
}
.gros-bouton:visited { color: var(--jaune); }
.gros-bouton:active { border-style: inset; }

/* --- Sommaire en tableau --- */

table.sommaire {
  width: calc(100% - 32px);
  margin: 12px 16px;
  border: 3px outset var(--gris);
  border-collapse: separate;
  border-spacing: 3px;
  background: var(--gris);
  font-family: Verdana, Arial, sans-serif;
  font-size: 15px;
}
table.sommaire th {
  background: var(--bandeau);
  color: #fff;
  padding: 4px;
}
table.sommaire td { border: 2px inset var(--gris); background: #fff; padding: 0; }
table.sommaire a { display: block; padding: 10px 8px; min-height: 44px; text-decoration: underline; }

/* --- Séparateurs et sections --- */

hr.arc-en-ciel {
  height: 6px;
  border: 0;
  margin: 26px 0 18px;
  background: linear-gradient(90deg, red, orange, yellow, lime, cyan, blue, magenta, red);
}

section { padding: 0 16px; scroll-margin-top: 8px; }

h2 {
  font-family: "Times New Roman", Times, serif;
  font-size: 28px;
  margin: 0 0 10px;
  color: var(--rouge);
  text-shadow: 2px 2px 0 var(--jaune);
  text-decoration: underline wavy #00a;
  text-underline-offset: 6px;
}
h2 .emoji { text-decoration: none; display: inline-block; }

h3 {
  font-family: Verdana, Arial, sans-serif;
  font-size: 18px;
  margin: 0;
  padding: 4px 8px;
  background: linear-gradient(90deg, var(--bandeau), #1084d0);
  color: #fff;
}

.nouveau {
  display: inline-block;
  margin-left: 6px;
  padding: 0 4px;
  font-family: Verdana, Arial, sans-serif;
  font-size: 11px;
  color: #fff;
  background: var(--rouge);
  transform: rotate(-8deg);
  animation: clignote 0.8s steps(1) infinite;
}

/* --- Fenêtre façon Windows 98, pour les blocs d'activité --- */

.fenetre {
  margin: 16px 0;
  background: var(--gris);
  border: 3px outset var(--gris);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.35);
}
.fenetre .barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fenetre .boutons-fenetre { display: flex; gap: 2px; padding-right: 4px; }
.fenetre .boutons-fenetre button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 26px;
  padding: 0;
  background: var(--gris);
  border: 2px outset var(--gris);
  font: bold 14px/1 Verdana, sans-serif;
  color: #000;
  touch-action: manipulation;
}
.fenetre .boutons-fenetre button:active { border-style: inset; }
.fenetre .contenu .defile { margin: -10px -10px 10px; }
.fenetre .contenu { padding: 10px; background: var(--page); border: 2px inset var(--gris); margin: 4px; }
.fenetre p { margin: 8px 0; }
.fenetre ul { margin: 8px 0; padding-left: 20px; }

.photo {
  display: block;
  width: 100%;
  margin: 0;
  padding: 4px;
  background: #fff;
  border: 3px ridge #b08d57;
}
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.legende {
  display: block;
  font-family: "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 14px;
  text-align: center;
  padding-top: 4px;
}

.galerie {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}
.galerie .photo { padding: 3px; border-width: 2px; }
.galerie .photo img { aspect-ratio: 1 / 1; }
.galerie .grande { grid-column: span 2; }
.galerie .grande img { aspect-ratio: 16 / 10; }

.intro { padding: 4px 16px 0; font-size: 18px; }
.intro p { margin: 10px 0; }
.prix { padding: 8px; background: #ffffb0; border: 2px dashed #008000; }
.rythme { display: grid; gap: 8px; margin: 10px 0; }
.rythme-bloc { padding: 10px; background: #fff; border: 3px ridge var(--gris); }
.rythme-bloc:last-child { background: #ffe0f4; }
.aide { display: block; margin-top: 6px; font-size: 14px; color: #333; }
form.reponse input[type="tel"] {
  width: 100%;
  min-height: 44px;
  padding: 8px;
  font: 18px "Courier New", monospace;
  border: 3px inset var(--gris);
  background: #fff;
  color: #000;
}

details.plans { margin-top: 4px; }
details.plans summary {
  min-height: 44px;
  padding: 10px;
  font: bold 15px Verdana, Arial, sans-serif;
  background: var(--gris);
  border: 3px outset var(--gris);
}
details.plans[open] summary { border-style: inset; }

ul.coches { list-style: none; padding-left: 0; }
ul.coches li { padding-left: 26px; position: relative; margin: 4px 0; }
ul.coches li::before { content: "✔"; position: absolute; left: 4px; color: #008000; font-weight: bold; }

.travaux {
  margin: 14px 0;
  padding: 8px;
  text-align: center;
  font-family: Verdana, Arial, sans-serif;
  font-weight: bold;
  font-size: 14px;
  color: #000;
  background: repeating-linear-gradient(-45deg, var(--jaune) 0 14px, #000 14px 28px);
}
.travaux span { background: var(--jaune); padding: 2px 6px; }

/* --- Formulaire "Tu viens ?" --- */

form.reponse fieldset {
  margin: 12px 0;
  border: 2px groove var(--gris);
  padding: 8px 10px 12px;
}
form.reponse legend { font-family: Verdana, Arial, sans-serif; font-weight: bold; font-size: 15px; padding: 0 4px; }

form.reponse input[type="text"] {
  width: 100%;
  min-height: 44px;
  padding: 8px;
  font: 18px "Courier New", monospace;
  border: 3px inset var(--gris);
  background: #fff;
  color: #000;
}

.choix-statut { display: grid; gap: 6px; }
.choix-statut label, .nuit {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 8px;
  background: #fff;
  border: 2px outset var(--gris);
}
.choix-statut input, .nuit input { width: 22px; height: 22px; flex: none; accent-color: var(--bandeau); }
.choix-statut label:has(input:checked), .nuit:has(input:checked) { background: #ffffb0; border-style: inset; }

.nuits { display: grid; gap: 6px; }
.nuit .quand { flex: 1; }
.nuit .quand b { display: block; }
.nuit .quand small { color: #444; }
.nuit.paques { border-color: #e000a0; }
.nuit.paques .quand small { color: #8a0060; font-weight: bold; }
.bouton98.format[aria-pressed="true"] { border-style: inset; background: #ffffb0; }

.actions-nuits { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }

.bouton98 {
  min-height: 44px;
  padding: 8px 14px;
  font: bold 16px Verdana, Arial, sans-serif;
  color: #000;
  background: var(--gris);
  border: 3px outset var(--gris);
}
.bouton98:active { border-style: inset; }
.bouton98.principal { font-size: 20px; width: 100%; background: #d4d0c8; outline: 2px solid #000; outline-offset: -6px; }
.bouton98:disabled { color: var(--gris-fonce); }

.message-form { margin: 10px 0; padding: 8px; font-weight: bold; }
.message-form.ok { background: #d8ffd0; border: 2px solid #008000; }
.message-form.erreur { background: #ffd8d8; border: 2px solid var(--rouge); }
.lien-perso {
  display: block;
  margin-top: 6px;
  padding: 6px;
  font: 13px "Courier New", monospace;
  word-break: break-all;
  background: #fff;
  border: 2px inset var(--gris);
}

/* --- Tableau des présences --- */

.tableau-scroll { overflow-x: auto; margin: 10px 0; border: 3px outset var(--gris); background: var(--gris); }
table.presences { border-collapse: separate; border-spacing: 2px; font-family: Verdana, Arial, sans-serif; font-size: 13px; min-width: 100%; }
table.presences th, table.presences td { background: #fff; border: 1px inset var(--gris); padding: 4px; text-align: center; white-space: nowrap; }
table.presences thead th { background: var(--bandeau); color: #fff; font-weight: bold; }
table.presences th.nom { text-align: left; position: sticky; left: 0; background: #ffffe0; z-index: 1; }
table.presences thead th.nom { background: var(--bandeau); color: #fff; }
table.presences td.dort { background: #9cff9c; font-weight: bold; }
table.presences td.peutetre { background: #fff3a0; }
table.presences tfoot td, table.presences tfoot th { background: #e0e0ff; font-weight: bold; }
.vide { font-style: italic; text-align: center; padding: 12px; }
.qui-vient-pas { font-size: 15px; }

/* --- Pied de page --- */

footer {
  margin-top: 26px;
  padding: 14px 16px 22px;
  text-align: center;
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  background: var(--gris);
  border-top: 3px ridge var(--gris);
}
.compteur {
  display: inline-flex;
  gap: 2px;
  margin: 6px 0;
  padding: 3px;
  background: #000;
  border: 2px inset var(--gris);
}
.compteur span {
  display: inline-block;
  min-width: 18px;
  padding: 2px 3px;
  font: 18px "Press Start 2P", "Courier New", monospace;
  color: var(--vert-compteur);
  background: #111;
  border: 1px solid #333;
}
details.credits { margin: 12px 0 4px; font-size: 12px; text-align: left; }
details.credits summary { text-align: center; min-height: 32px; text-decoration: underline; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.badge88 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 31px;
  font: bold 9px/1.1 Verdana, Arial, sans-serif;
  text-align: center;
  border: 2px outset #ddd;
}

/* --- Visionneuse photo --- */

#visionneuse { padding: 0; border: 3px outset var(--gris); background: var(--gris); max-width: min(94vw, 900px); }
#visionneuse::backdrop { background: rgba(0, 0, 40, 0.75); }
#visionneuse img { display: block; max-width: 100%; max-height: 78vh; margin: 4px; border: 2px inset var(--gris); }
#visionneuse .legende { padding: 4px 8px 8px; font-size: 16px; }
#visionneuse .boutons-fenetre button {
  width: 32px; height: 28px; margin: 2px 4px 2px 0;
  font: bold 16px Verdana, sans-serif;
  background: var(--gris); border: 2px outset var(--gris);
}

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

@media (prefers-reduced-motion: reduce) {
  .clignote, .nouveau { animation: none; }
  html { scroll-behavior: auto; }
  .wordart, .arc-texte, hr.arc-en-ciel, .travaux, .ouvrier, .skieur-piste, h2 .emoji,
  .jeu-titre, .boite98 .clignote-doux, .modem .jauge98 span { animation: none !important; }
}

/* Companions: one row per person who comes with you. */
.accompagnants { display: grid; gap: 8px; margin-top: 10px; }
.accompagnant { display: grid; grid-template-columns: 1fr 1fr 44px; gap: 6px; }
form.reponse .accompagnant input { min-width: 0; font-size: 16px; }
.accompagnant .retirer { min-width: 44px; padding: 0; }

/* --- Ce qui bouge et réagit (retro-fun.js) --- */

body.avec-barre-taches { padding-bottom: 46px; }
.jeu-ecran[hidden], .ligne-avalanche small[hidden], .bulle[hidden] { display: none; }

.wordart { cursor: pointer; animation: wordart-danse 3.2s ease-in-out infinite; }
@keyframes wordart-danse {
  0%, 100% { transform: rotate(-4deg) skewX(-6deg) scale(1); }
  50% { transform: rotate(-1deg) skewX(-10deg) scale(1.06); }
}

.arc-texte {
  background: linear-gradient(90deg, #d40000, #ff8a00, #c9a800, #00a000, #0070d0, #8000c0, #d40000);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  font-weight: bold;
  animation: arc-glisse 3s linear infinite;
}
@keyframes arc-glisse { to { background-position: -200% 0; } }

hr.arc-en-ciel { background-size: 200% 100%; animation: arc-glisse 4s linear infinite; }

h2 .emoji.vu { animation: emoji-saut 0.7s ease-out 2; }
@keyframes emoji-saut {
  0%, 100% { transform: translateY(0) rotate(0); }
  40% { transform: translateY(-14px) rotate(-12deg) scale(1.2); }
  70% { transform: translateY(0) rotate(8deg); }
}

marquee.defile { cursor: pointer; }
marquee.defile.turbo { color: #39ff14; background: #000; }

/* Barre de titre : on la tire au doigt (à l'horizontale sur téléphone, la page défile toujours). */
.fenetre .barre { background: linear-gradient(90deg, var(--bandeau), #1084d0); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.fenetre .barre h3 { flex: 1; min-width: 0; background: none; }
.fenetre.attrapee { position: relative; z-index: 5; box-shadow: 10px 12px 0 rgba(0,0,0,0.35); }
.fenetre.attrapee .barre { cursor: grabbing; background: linear-gradient(90deg, #a00078, #ff4fd8); }
.fenetre.maxi {
  position: fixed;
  inset: 0 0 40px 0;
  z-index: 45;
  margin: 0;
  overflow: auto;
  transform: none !important;
}
.fenetre.maxi .contenu { font-size: 19px; }

.fantome {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 16px 0;
  padding: 10px;
  font: bold 15px Verdana, Arial, sans-serif;
  color: #000080;
  text-align: left;
  background: repeating-linear-gradient(45deg, #e8e8e8 0 8px, #d8d8d8 8px 16px);
  border: 2px dashed var(--gris-fonce);
}

.eclat {
  position: fixed;
  z-index: 35;
  font-size: 22px;
  line-height: 1;
  pointer-events: none;
  will-change: transform, opacity;
  text-shadow: 0 0 4px #fff;
}

/* Barre de progression de la page en haut, façon copie de fichier Windows. */
.progression {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  height: 8px;
  background: var(--gris);
  border-bottom: 1px solid var(--gris-fonce);
  pointer-events: none;
}
.progression span {
  display: block;
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(90deg, #000080 0 10px, transparent 10px 12px);
}
.progression i {
  position: absolute;
  top: -2px;
  font-style: normal;
  font-size: 16px;
  transform: translateX(-50%) scaleX(-1);
}

/* Le skieur qui fait des allers-retours dans l'en-tête. */
.piste {
  position: relative;
  height: 78px;
  margin: 10px 0 0;
  border-bottom: 6px solid #fff;
  background: linear-gradient(180deg, transparent 60%, #eef4ff 60%);
  box-shadow: 0 4px 0 #9db6e8;
}
.skieur-piste {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60px; height: 60px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  animation: skieur-va-vient 7s linear infinite;
}
.skieur-piste img { display: block; width: 100%; height: 100%; }
@keyframes skieur-va-vient {
  0% { left: 0; transform: scaleX(1); }
  49.9% { left: calc(100% - 60px); transform: scaleX(1); }
  50% { left: calc(100% - 60px); transform: scaleX(-1); }
  99.9% { left: 0; transform: scaleX(-1); }
  100% { left: 0; transform: scaleX(1); }
}
.piste.arret .skieur-piste { animation-play-state: paused; }
.bulle {
  position: absolute;
  z-index: 3;
  padding: 4px 8px;
  font: bold 14px "Comic Sans MS", "Comic Neue", cursive;
  color: #000;
  white-space: nowrap;
  background: #fff;
  border: 2px solid #000;
  border-radius: 12px;
  box-shadow: 2px 2px 0 #000;
  pointer-events: none;
}
#bulle-skieur { top: -6px; transform: translateX(-50%); }
.piste-infos { margin: 8px 0 0; font-size: 13px; }
.lcd-mini, .lcd-panneau b, .lcd {
  font-family: "Press Start 2P", "Courier New", monospace;
  color: var(--vert-compteur);
  background: #000;
  text-shadow: 0 0 6px rgba(57, 255, 20, 0.7);
}
.lcd-mini { display: inline-block; margin-top: 6px; padding: 4px 6px; font-size: 10px; border: 2px inset var(--gris); }
.lcd-mini b { font-weight: normal; }

.ligne-avalanche { margin: 12px 0 4px; }
.ligne-avalanche small { display: block; margin-top: 4px; font-size: 13px; }
.bouton98.avalanche.en-cours { background: #fff; border-style: inset; }

/* Panneau "en construction" qu'on peut taper. */
button.travaux {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: calc(100% - 32px);
  margin: 14px 16px;
  border: 3px outset #000;
  cursor: pointer;
  animation: travaux-defile 1s linear infinite;
  touch-action: manipulation;
}
/* One stripe period measured horizontally (28px / cos 45°), so the loop has no seam. */
@keyframes travaux-defile { to { background-position: 39.6px 0; } }
button.travaux .travaux-jauge { flex-basis: 100%; font-size: 13px; font-weight: normal; }
.ouvrier { display: inline-block; font-size: 22px; background: none !important; animation: marteau 0.5s ease-in-out infinite alternate; }
@keyframes marteau { from { transform: rotate(-15deg); } to { transform: rotate(15deg); } }

/* Compteur de visites qui roule. */
.compteur { cursor: pointer; }
.compteur.roule span { animation: chiffre-roule 0.7s steps(7) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes chiffre-roule {
  0% { transform: translateY(-60%); opacity: 0.2; color: #fff; }
  60% { transform: translateY(20%); }
  100% { transform: none; opacity: 1; }
}

/* Jeu des flocons. */
.lcd-panneau { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; text-align: center; font: bold 11px Verdana, Arial, sans-serif; }
.lcd-panneau span { display: grid; gap: 4px; }
.lcd-panneau b { display: block; padding: 8px 2px; font-size: 16px; font-weight: normal; border: 3px inset var(--gris); }
.lcd-panneau b.flash { color: #fff200; }
.jeu-zone {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(180deg, #000033 0%, #102a7a 70%, #eef4ff 70%, #fff 100%);
  border: 3px inset var(--gris);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.jeu-ecran { position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; text-align: center; z-index: 2; }
.jeu-titre { margin: 0; font: 14px/1.6 "Press Start 2P", "Courier New", monospace; color: #fff200; text-shadow: 2px 2px 0 #ff0080; animation: clignote 1s steps(1) infinite; }
.jeu-ecran .bouton98 { justify-self: center; }
.flocon-jeu {
  position: absolute;
  top: 0; left: 0;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  will-change: transform;
}
.jeu-points {
  position: absolute;
  z-index: 3;
  font: 14px "Press Start 2P", "Courier New", monospace;
  color: #fff200;
  text-shadow: 2px 2px 0 #000;
  pointer-events: none;
}
.jeu-points.moins { color: #ff4040; }

/* Barre des tâches et menu Démarrer. */
.barre-taches {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 3px 4px;
  background: var(--gris);
  border-top: 2px solid #fff;
  box-shadow: 0 -1px 0 var(--gris-fonce);
  font: 13px Verdana, Arial, sans-serif;
}
.barre-taches button {
  height: 32px;
  padding: 0 8px;
  font: bold 13px Verdana, Arial, sans-serif;
  color: #000;
  background: var(--gris);
  border: 2px outset var(--gris);
  white-space: nowrap;
  touch-action: manipulation;
}
.barre-taches button:active, .barre-taches button[aria-expanded="true"] { border-style: inset; }
.barre-taches .taches { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.barre-taches .taches button { max-width: 150px; overflow: hidden; text-overflow: ellipsis; font-weight: normal; animation: tache-arrive 0.3s ease-out; }
@keyframes tache-arrive { from { transform: translateY(100%); } }
.barre-taches .zone-notif { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px; border: 2px inset var(--gris); }
.barre-taches .zone-notif button { height: 26px; padding: 0 4px; border: 0; background: none; font-size: 16px; }
.barre-taches .horloge { font-size: 12px; }
.menu-demarrer {
  position: fixed;
  left: 2px; bottom: 40px;
  z-index: 51;
  display: flex;
  width: 240px;
  background: var(--gris);
  border: 2px outset var(--gris);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.4);
}
.menu-demarrer[hidden] { display: none; }
.menu-bandeau {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 8px 4px;
  font: bold 18px Verdana, Arial, sans-serif;
  color: #c0c0ff;
  background: linear-gradient(0deg, #000080, #1084d0);
}
.menu-bandeau b { color: #fff; }
.menu-demarrer ul { flex: 1; margin: 0; padding: 2px; list-style: none; }
.menu-demarrer li button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 6px 8px;
  text-align: left;
  font: 15px Verdana, Arial, sans-serif;
  color: #000;
  background: none;
  border: 0;
}
.menu-demarrer li button:hover, .menu-demarrer li button:focus-visible { color: #fff; background: #000080; }

/* Boîtes de dialogue Windows 98 (popup du visiteur, confirmation de fermeture). */
.boite98 {
  position: fixed;
  left: 50%; top: 50%;
  z-index: 60;
  width: min(340px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
  margin: 0;
}
.boite98 .contenu { display: flex; gap: 10px; align-items: flex-start; }
.boite98 .icone { font-size: 34px; line-height: 1; }
.boite98 .actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 4px 4px; }
.boite98 .actions .bouton98 { flex: 1; }
.clignote-doux { animation: clignote-couleur 0.6s steps(1) infinite; }
@keyframes clignote-couleur { 50% { color: #d40000; } }

/* Connexion modem au premier affichage. */
.modem { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(0, 128, 128, 0.92); cursor: pointer; transition: opacity 0.3s; }
.modem.fini { opacity: 0; pointer-events: none; }
.modem .fenetre { width: min(360px, 100%); margin: 0; }
.modem-etape { min-height: 3em; font-family: "Courier New", monospace; font-weight: bold; }
.jauge98 { height: 22px; padding: 2px; background: #fff; border: 2px inset var(--gris); }
.jauge98 span { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, #000080 0 12px, transparent 12px 15px); }
.modem-astuce { font-size: 13px; text-align: center; color: #444; }

/* Yéti qui passe la tête par le bord de l'écran. */
.yeti {
  position: fixed;
  right: 0;
  bottom: 70px;
  z-index: 42;
  width: 76px; height: 76px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: translateX(110%) rotate(0);
  transition: transform 0.45s cubic-bezier(.3,1.6,.5,1);
  touch-action: manipulation;
}
.yeti img { display: block; width: 100%; height: 100%; filter: drop-shadow(2px 2px 0 rgba(0,0,0,0.4)); }
.yeti.coucou { transform: translateX(45%) rotate(-18deg); }
.yeti.sorti { transform: translateX(-8px) rotate(0); }
.yeti .bulle { right: 70px; top: -10px; }

/* Avalanche et feu d'artifice, devant tout mais sans bloquer les clics. */
.couche-effet { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#avalanche-neige { z-index: 21; }
#feu-artifice { z-index: 65; }
.merci-geant {
  position: fixed;
  left: 50%; top: 40%;
  z-index: 66;
  margin: 0;
  font: 64px/1 Impact, "Anton", "Arial Black", sans-serif;
  white-space: nowrap;
  background: linear-gradient(180deg, #fff200 0%, #ff8a00 45%, #ff0080 55%, #7a00ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 2px #000;
  filter: drop-shadow(4px 4px 0 #000);
  pointer-events: none;
}

/* The photo viewer sits in the top layer, above the skier cursor: give it the real cursor back. */
html.curseur-skieur dialog[open], html.curseur-skieur dialog[open] * { cursor: auto !important; }
html.curseur-skieur dialog[open] [data-fermer] { cursor: pointer !important; }
