/* =========================================================
   RaYrO.MoE ~ feuille de style "fait main en 2003" (lol)

            /\      /\
           /  \____/  \
          |  ~~    ~~  |
          | (o)    (o) |     tu lis mon CSS ??? t'es un vrai toi
           \    w     /
        ____'.______.'____   pour la peine, voici un mot magique :
       /  ^   |    |   ^  \        m o c h i
      (  ( )  | <3 |  ( )  )
       \_/    |____|    \_/  tape-le sur le site (au clavier) nya~
             /  /\  \     ~~,
            /__/  \__\       )
            (__)  (__)    __/
   ========================================================= */

/* ---------- Curseurs pixel-art ---------- */
html {
  cursor: url("assets/cursor.png") 1 1, auto;
}
a, button, label, select, summary, [data-alert],
input[type="radio"], input[type="checkbox"], input[type="submit"] {
  cursor: url("assets/paw.png") 15 4, pointer;
}
input[type="text"], textarea {
  cursor: text;
}

/* ---------- Base ---------- */
html.intro-active,
html.intro-active body {
  overflow: hidden;
  height: 100%;
}
body {
  margin: 0;
  background: #ffb8e6 url("assets/bg-hearts.png") repeat;
  image-rendering: pixelated;
  color: #000;
  font: 15px/1.45 "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", cursive;
}
img, .intro {
  image-rendering: auto;
}
:focus-visible {
  outline: 3px dotted #ff00ff;
  outline-offset: 2px;
}
section[tabindex="-1"]:focus {
  outline: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* =========================================================
   INTRO
   ========================================================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
}
.intro-stage,
.checker {
  position: absolute;
  inset: 0;
}
.intro-full,
.half {
  position: absolute;
  inset: 0;
  background: url("assets/image.jpeg") 0 0 / 100% 100% no-repeat;
}
/* Découpe en zigzag au niveau du cœur (cœur brisé) */
.half-left {
  clip-path: polygon(0 0, 44.8% 0, 44.8% 27%, 47.5% 32%, 42.5% 38%, 47.5% 44%, 42% 50%, 47% 56%, 42.5% 62%, 46.5% 67%, 44.8% 72%, 44.8% 100%, 0 100%);
  transform-origin: 0 50%;
}
.half-right {
  clip-path: polygon(44.8% 0, 100% 0, 100% 100%, 44.8% 100%, 44.8% 72%, 46.5% 67%, 42.5% 62%, 47% 56%, 42% 50%, 47.5% 44%, 42.5% 38%, 47.5% 32%, 44.8% 27%);
  transform-origin: 100% 50%;
}
.crack {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  filter: drop-shadow(0 0 2px #000) drop-shadow(0 0 8px #ff00ff);
}
.crack polyline {
  fill: none;
  stroke: #fff;
  stroke-width: 8px;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}

/* Zone cliquable : le milieu de l'image */
.heart-btn {
  position: absolute;
  left: 30%;
  top: 30%;
  width: 30%;
  height: 40%;
  padding: 0;
  border: 0;
  border-radius: 40%;
  background: transparent;
}
.heart-btn:hover,
.heart-btn:focus-visible {
  outline: 4px dashed #ff00ff;
  outline-offset: -4px;
  animation: ants .4s steps(1) infinite;
}
@keyframes ants {
  50% { outline-color: #ffff00; }
}

.intro-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4%;
  margin: 0;
  text-align: center;
  font-size: clamp(18px, 3.4vw, 34px);
  font-weight: bold;
  pointer-events: none;
  animation: blink 1.1s steps(1) infinite;
}
.intro-hint.is-wrong {
  animation: wrong .1s steps(2) 6;
}
@keyframes wrong {
  0% { transform: translateX(-10px) rotate(-2deg); }
  100% { transform: translateX(10px) rotate(2deg); }
}
.skip-intro {
  position: absolute;
  right: 10px;
  bottom: 8px;
  padding: 1px 4px;
  background: #fff;
  color: #0000ee;
  font: 14px "Times New Roman", Times, serif;
  text-decoration: underline;
}
.skip-intro:visited { color: #551a8b; }

/* WordArt arc-en-ciel avec effet 3D extrudé */
.intro-wordart {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
/* Le texte lui-même sert d'extrusion 3D, le dégradé est posé par-dessus via ::after */
.wordart {
  position: relative;
  display: inline-block;
  font: 900 clamp(46px, 11vw, 170px)/1 Impact, "Arial Black", sans-serif;
  letter-spacing: 2px;
  color: #5a0030;
  text-shadow: 1px 1px #5a0030, 2px 2px #5a0030, 3px 3px #5a0030, 4px 4px #5a0030,
    5px 5px #5a0030, 6px 6px #5a0030, 7px 7px #5a0030, 8px 8px #5a0030, 10px 12px 12px rgba(0, 0, 0, .6);
  opacity: 0;
}
.wordart::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fff700 0%, #ff8c00 35%, #ff0080 62%, #8a00ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 3px #000;
  text-shadow: none;
}

/* --- Étapes de l'animation (classes ajoutées par script.js) --- */
.intro.is-started .heart-btn,
.intro.is-started .intro-hint,
.intro.is-started .skip-intro {
  visibility: hidden;
}
.intro.is-shaking .intro-stage {
  animation: teeter .12s steps(2) infinite;
}
@keyframes teeter {
  0% { transform: scale(1.06) rotate(-1.6deg) translateX(-8px); }
  100% { transform: scale(1.06) rotate(1.6deg) translateX(8px); }
}
.intro.is-flash .intro-stage {
  filter: invert(1) hue-rotate(180deg) saturate(3);
}
.intro.is-wordart .wordart {
  animation: wordart-in 1.1s steps(14) forwards;
}
@keyframes wordart-in {
  0% { opacity: 1; transform: rotate(-720deg) scale(0); }
  100% { opacity: 1; transform: rotate(-8deg) scale(1) skewX(-6deg); }
}
.intro.is-crack .wordart {
  animation: wordart-out .5s steps(6) forwards;
}
@keyframes wordart-out {
  0% { opacity: 1; transform: rotate(-8deg) scale(1) skewX(-6deg); }
  100% { opacity: 0; transform: rotate(20deg) scale(3) translateY(-40%); }
}
.intro.is-crack .crack {
  visibility: visible;
  animation: crack-draw .3s steps(6) forwards;
}
@keyframes crack-draw {
  to { clip-path: inset(0 0 0 0); }
}
.intro.is-open .intro-full,
.intro.is-open .crack {
  display: none;
}
.intro.is-open .half-left {
  animation: door-left 1.2s steps(10) forwards;
}
.intro.is-open .half-right {
  animation: door-right 1.2s steps(10) forwards;
}
@keyframes door-left {
  0% { transform: perspective(1400px); }
  25% { transform: perspective(1400px) translateX(-3%) rotateY(-14deg); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: perspective(1400px) translateX(-35%) rotateY(-95deg); }
}
@keyframes door-right {
  0% { transform: perspective(1400px); }
  25% { transform: perspective(1400px) translateX(3%) rotateY(14deg); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: perspective(1400px) translateX(35%) rotateY(95deg); }
}

/* Transition "damier" façon PowerPoint */
.checker {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(6, 1fr);
  visibility: hidden;
}
.checker i {
  background: #ff00ff;
}
.checker i.alt {
  background: #00ffff;
}
.intro.is-open .checker {
  visibility: visible;
}
.intro.is-reveal .checker i {
  animation: cell-out .24s steps(3) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes cell-out {
  to { transform: scale(0) rotate(90deg); opacity: 0; }
}

/* =========================================================
   EFFETS RÉUTILISABLES
   ========================================================= */
.glitter {
  display: inline-block;
  background: url("assets/glitter-pink.png") 0 0 / 48px 48px repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff)
    drop-shadow(0 -1px 0 #fff) drop-shadow(2px 2px 0 #3d0030);
  animation: shimmer .6s steps(1) infinite;
}
.glitter-pink { background-image: url("assets/glitter-pink.png"); }
.glitter-gold { background-image: url("assets/glitter-gold.png"); }
.glitter-silver { background-image: url("assets/glitter-silver.png"); }
.glitter-blue { background-image: url("assets/glitter-blue.png"); }
.glitter-purple { background-image: url("assets/glitter-purple.png"); }
.glitter-green { background-image: url("assets/glitter-green.png"); }
@keyframes shimmer {
  0% { background-position: 0 0; }
  33% { background-position: 17px 29px; }
  66% { background-position: 31px 11px; }
}

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

.rainbow-letters .rl {
  white-space: pre;
  text-shadow: 1px 1px 0 #000;
  animation: rainbow 1.4s steps(7) infinite;
  animation-delay: calc(var(--i) * -.1s);
}
.subtitle .rl {
  display: inline-block;
  animation: rainbow 1.4s steps(7) infinite, wave .8s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -.1s), calc(var(--i) * -.08s);
}
@keyframes rainbow {
  0% { color: #ff0000; }
  14% { color: #ff8800; }
  28% { color: #ffff00; }
  42% { color: #00ff00; }
  57% { color: #00ffff; }
  71% { color: #4466ff; }
  85% { color: #ff00ff; }
  100% { color: #ff0000; }
}
@keyframes wave {
  from { transform: translateY(-4px); }
  to { transform: translateY(4px); }
}

.rainbow-hr {
  height: 6px;
  margin: 18px 0;
  border: 0;
  background: linear-gradient(90deg, #f00, #f80, #ff0, #0f0, #0ff, #00f, #f0f);
}
.center { text-align: center; }
.tiny { font-size: 12px; }
.hot { color: #ff3399; }

/* Boutons façon Windows 98 */
.btn98 {
  padding: 4px 12px;
  border: 2px outset #fff;
  background: #c0c0c0;
  color: #000;
  font: 12px Tahoma, Verdana, sans-serif;
}
.btn98:active {
  border-style: inset;
}
.btn98:focus-visible {
  outline: 1px dotted #000;
  outline-offset: -5px;
}

/* =========================================================
   LE SITE
   ========================================================= */
.page {
  width: min(820px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
  background: #07002a url("assets/bg-stars.png") repeat;
  border: 6px ridge #ff00ff;
  box-shadow: 0 0 0 4px #00ffff, 0 0 40px #ff00ff;
}
.banner {
  padding: 14px 8px 0;
  text-align: center;
}
.site-title {
  margin: 0;
}
.wordart-glitter {
  font: 900 clamp(38px, 8.5vw, 72px)/1.05 Impact, "Arial Black", sans-serif;
  letter-spacing: 2px;
  transform: skewX(-8deg) rotate(-2deg);
}
.subtitle {
  margin: 10px 0;
  font-size: 18px;
  font-weight: bold;
}
marquee {
  display: block;
}
.marquee-top {
  padding: 4px 0;
  background: #ffff00;
  color: #ff0000;
  font-weight: bold;
  border-top: 3px solid #ff00ff;
  border-bottom: 3px solid #ff00ff;
}

.layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 170px;
  gap: 8px;
  padding: 8px;
}

/* ----- Colonnes ----- */
.sidebar {
  padding: 8px;
  font-size: 13px;
}
.sidebar-left {
  background: #330066;
  border: 4px outset #ff66cc;
  color: #fff;
}
.sidebar-right {
  background: #ff99cc;
  border: 4px inset #9900ff;
}
.box-title {
  margin: 0 0 6px;
  text-align: center;
  font: 900 24px/1.1 Impact, "Arial Black", sans-serif;
}
.box-title.small {
  font: bold 15px/1.2 "Comic Sans MS", "Comic Sans", cursive;
  color: #cc0000;
}
.menu {
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu a {
  display: block;
  margin: 5px 0;
  padding: 4px 6px;
  border: 3px outset #ffcc00;
  background: linear-gradient(#ffff66, #ff9900);
  color: #cc0000;
  font-weight: bold;
  text-decoration: none;
}
.menu a:hover,
.menu a:focus-visible {
  border-style: inset;
  background: #00ff00;
  color: #ff00ff;
}
.menu .arrow {
  display: inline-block;
  animation: blink .8s steps(1) infinite;
}
.box {
  margin: 10px 0;
  padding: 6px;
  border: 3px dashed #ff0000;
  background: #ffffcc;
  color: #000;
}
.box p {
  margin: 4px 0;
}
.box-msn {
  background: #ccffcc;
  border-color: #008000;
}
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid #004400;
  border-radius: 50%;
  background: #00dd00;
}
.box-humeur {
  background: #ccffff;
  border: 3px dotted #0000ff;
}
.humeur {
  font-weight: bold;
  color: #ff0080;
}
.new-badge {
  display: block;
  width: fit-content;
  margin: 14px auto 0;
  padding: 2px 8px;
  background: #ff0000;
  color: #ffff00;
  font: 900 20px Impact, "Arial Black", sans-serif;
  transform: rotate(-12deg);
  border: 2px solid #ffff00;
}
.new-badge.egg-fallen {
  animation: badge-fall 1.2s steps(10) forwards;
}
@keyframes badge-fall {
  0% { transform: rotate(-12deg); }
  15% { transform: rotate(-40deg) translateY(-6px); }
  70% { transform: rotate(95deg) translateY(150px); }
  85% { transform: rotate(80deg) translateY(130px); }
  100% { transform: rotate(92deg) translateY(150px); }
}

/* ----- Contenu principal ----- */
.content {
  min-width: 0;
  padding: 8px 12px;
  border: 4px double #00ffff;
  background: rgba(0, 0, 60, .55);
  color: #ffff00;
}
.content a { color: #00ffff; }
.content a:visited { color: #ff66ff; }
.content a:hover { background: #ffff00; color: #ff0000; }
.section-title {
  margin: 6px 0 12px;
  text-align: center;
  font: 900 clamp(22px, 4vw, 30px)/1.15 Impact, "Arial Black", sans-serif;
}
.intro-text {
  color: #fff;
  font-size: 16px;
}
.big-letter {
  float: left;
  margin: 2px 6px 0 0;
  color: #ffff00;
  font: bold 52px/0.9 "Times New Roman", Times, serif;
  text-shadow: 3px 3px 0 #ff00ff;
}
.construction {
  width: 90%;
  margin: 14px auto;
  padding: 10px;
  box-sizing: border-box;
  border: 3px solid #000;
  background: repeating-linear-gradient(-45deg, #ffd400 0 20px, #000 20px 40px);
  background-size: 56.57px 56.57px;
  text-align: center;
  animation: stripes 1s linear infinite;
}
@keyframes stripes {
  to { background-position: 56.57px 0; }
}
.construction-text {
  display: inline-block;
  padding: 4px 10px;
  border: 2px solid #000;
  background: #ffd400;
  color: #000;
  font: 900 18px Impact, "Arial Black", sans-serif;
  letter-spacing: 1px;
}

/* ----- Catgirls ----- */
.nekos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.neko {
  margin: 0;
  padding: 6px;
  border: 4px ridge var(--hair);
  background: #fff;
  color: #000;
  text-align: center;
  font-size: 12px;
}
.neko-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 180px;
  padding: 6px 0 0;
  border: 0;
  background: radial-gradient(circle, #fff 40%, #ffe0f3);
}
.neko-btn img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 168px;
  transform-origin: 50% 100%;
}
.neko-btn img.pixel {
  width: 130px;
  height: 130px;
  border: 3px outset #ccc;
}
.pixel {
  image-rendering: pixelated;
}
.credit {
  color: #777;
  font-size: 10px;
}
.neko-name {
  font-size: 19px;
  font-weight: bold;
}
.dance-bounce { animation: dance-bounce .5s steps(2) infinite alternate; }
.dance-wiggle { animation: dance-wiggle .6s steps(2) infinite alternate; }
.dance-spin { animation: dance-spin 1.6s steps(8) infinite; }
.dance-jump { animation: dance-jump .7s steps(4) infinite; }
@keyframes dance-bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}
@keyframes dance-wiggle {
  from { transform: rotate(-8deg); }
  to { transform: rotate(8deg); }
}
@keyframes dance-spin {
  to { transform: rotateY(360deg); }
}
@keyframes dance-jump {
  0%, 100% { transform: scale(1.05, .9); }
  50% { transform: translateY(-18px) scale(.95, 1.06); }
}
.nya-bubble {
  position: absolute;
  top: 2px;
  left: 50%;
  z-index: 2;
  padding: 2px 7px;
  border: 2px solid #000;
  border-radius: 12px;
  background: #fff;
  color: #ff0080;
  font: bold 12px "Comic Sans MS", "Comic Sans", cursive;
  white-space: nowrap;
  pointer-events: none;
  animation: nya-pop 1.5s steps(8) forwards;
}
@keyframes nya-pop {
  0% { transform: translateX(-50%) scale(0); }
  15% { transform: translateX(-50%) scale(1.25); }
  25% { transform: translateX(-50%) scale(1); opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(-50%) translateY(-26px); opacity: 0; }
}

/* ----- Photo ----- */
.photo-frame {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
  border: 6px double #fff;
  background: url("assets/glitter-pink.png") 0 0 / 48px 48px;
  animation: shimmer .6s steps(1) infinite;
}
.photo-frame img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  border: 3px solid #000;
}

/* ----- Lecteur MIDI ----- */
.player {
  width: min(290px, 100%);
  margin: 0 auto;
  border: 2px outset #9999bb;
  background: linear-gradient(#5a5a7a, #2a2a3a);
}
.player-bar {
  padding: 2px 6px;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font: bold 12px Tahoma, Verdana, sans-serif;
}
.player-screen {
  margin: 6px;
  padding: 4px;
  border: 2px inset #666;
  background: #000;
  color: #00ff00;
  font: 13px "Courier New", monospace;
}
.eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 30px;
  margin-top: 4px;
}
.eq i {
  flex: 1;
  height: 4px;
  background: linear-gradient(to top, #00ff00, #ffff00 60%, #ff0000);
}
.player.is-playing .eq i {
  animation: eq .45s steps(4) infinite alternate;
}
.player.is-playing .eq i:nth-child(2n) { animation-duration: .35s; }
.player.is-playing .eq i:nth-child(3n) { animation-duration: .55s; }
.player.is-playing .eq i:nth-child(4n+1) { animation-delay: -.2s; }
@keyframes eq {
  from { height: 4px; }
  to { height: 30px; }
}
.player-buttons {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 0 6px 8px;
}

/* ----- Livre d'or ----- */
.guestbook-form {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 3px groove #ff00ff;
  background: #ffccff;
  color: #000;
}
.guestbook-form label {
  font-weight: bold;
}
.guestbook-form input,
.guestbook-form textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 3px;
  border: 2px inset #ccc;
  background: #ffffee;
  font: 14px "Comic Sans MS", "Comic Sans", cursive;
}
.guestbook-form button {
  justify-self: center;
  margin-top: 6px;
}
.guestbook {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.guestbook li {
  margin: 8px 0;
  padding: 6px 8px;
  border: 2px dotted #ff00ff;
  background: #ffffcc;
  color: #000;
}
.guestbook li:nth-child(even) {
  background: #ccffff;
}
.guestbook p {
  margin: 0;
  overflow-wrap: anywhere;
}
.gb-head b {
  color: #cc0000;
}
.gb-date {
  color: #555;
  font-size: 12px;
}

/* ----- Liens + badges 88x31 ----- */
.cool-links {
  padding-left: 0;
  list-style: none;
}
.cool-links li {
  margin: 6px 0;
}
.cool-links li::before {
  content: "♥ ";
  color: #ff3399;
}
.buttons88 {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-top: 12px;
}
.b88 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 31px;
  box-sizing: border-box;
  border: 1px solid #000;
  font: bold 9px/1.05 Verdana, Tahoma, sans-serif;
  text-align: center;
}
.b88-a { background: linear-gradient(#fff, #9cf); color: #003; }
.b88-b { background: linear-gradient(90deg, #f6c, #fcf); color: #600; }
.b88-c { background: #000; color: #0f0; font-family: "Courier New", monospace; }
.b88-d { background: linear-gradient(#ff0, #f90); color: #900; }
.b88-e { background: #c00; color: #fff; }
.b88-f { background: repeating-linear-gradient(45deg, #fff 0 4px, #fcf 4px 8px); color: #c06; }

/* ----- Colonne de droite ----- */
.counter {
  display: block;
  margin: 4px auto;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
  white-space: nowrap;
}
.counter span {
  display: inline-block;
  margin: 0 1px;
  padding: 1px 3px;
  border: 1px solid #888;
  background: linear-gradient(#333, #000 50%, #333);
  color: #fff;
  font: bold 17px "Courier New", monospace;
}
.box-poll fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
.box-poll legend {
  width: 100%;
}
.box-poll label {
  display: block;
}
.box-poll button {
  margin-top: 6px;
}
.webring {
  text-align: center;
  font-weight: bold;
}
.fav-link {
  color: #0000ee;
  font-weight: bold;
}
.mini-neko {
  margin: 10px 0 0;
  text-align: center;
}
.mini-neko img {
  display: block;
  width: 130px;
  height: auto;
  margin: 0 auto;
}

/* ----- Crédits des dessins ----- */
.credits {
  margin-top: 16px;
  padding: 8px 10px;
  border: 2px dashed #ff99ff;
  background: rgba(0, 0, 0, .35);
  color: #ffccff;
}
.credits-title {
  margin: 0 0 4px;
  text-align: center;
  color: #ff99ff;
  font-size: 15px;
}
.credits ul {
  margin: 4px 0 0;
  padding-left: 18px;
}
.content .credits a { color: #7ef9ff; }

/* ----- Pied de page ----- */
.footer {
  padding: 8px;
  border-top: 4px ridge #ffff00;
  background: #000080;
  color: #fff;
  text-align: center;
}
.footer a { color: #00ffff; }
.footer p { margin: 6px 0; }
.marquee-footer {
  color: #ff99ff;
  font-weight: bold;
}

/* ----- Mascotte ----- */
.mascot {
  position: fixed;
  right: 10px;
  bottom: 6px;
  z-index: 50;
  width: 130px;
}
.mascot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
}
.mascot-girl {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 100%;
  animation: dance-wiggle 1.2s steps(3) infinite alternate;
}
.mascot.egg-runaway {
  animation: runaway 1.4s steps(8) forwards;
}
@keyframes runaway {
  0% { transform: translateX(0); }
  20% { transform: translateX(20px) scaleX(-1); }
  100% { transform: translateX(-110vw) scaleX(-1); }
}
.mascot-bubble {
  position: absolute;
  right: 60px;
  bottom: 100%;
  width: max-content;
  max-width: 190px;
  margin: 0;
  padding: 6px 9px;
  border: 1px solid #000;
  border-radius: 10px;
  background: #ffffe1;
  color: #000;
  font: 12px Tahoma, Verdana, sans-serif;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .35);
}
.mascot-bubble::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: -9px;
  border: 9px solid transparent;
  border-top-color: #ffffe1;
  border-bottom: 0;
  border-right: 0;
}
.mascot-bubble.is-new {
  animation: nya-pop-in .3s steps(3);
}
@keyframes nya-pop-in {
  from { transform: scale(.3); }
}
.mascot-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 18px;
  padding: 0;
  border: 2px outset #fff;
  background: #c0c0c0;
  color: #000;
  font: bold 12px/1 Tahoma, sans-serif;
}

/* ----- Boîtes de dialogue Windows 98 ----- */
.win98 {
  min-width: 260px;
  max-width: min(360px, 92vw);
  padding: 0;
  border: 2px outset #fff;
  background: #c0c0c0;
  color: #000;
  font: 12px Tahoma, Verdana, sans-serif;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .5);
}
.win98[open] {
  animation: win-pop .25s steps(4);
}
@keyframes win-pop {
  from { transform: scale(.2) rotate(-10deg); }
}
.win98::backdrop {
  background: rgba(0, 0, 80, .25);
}
.win98-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 3px 3px 6px;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-weight: bold;
}
.win98-x {
  width: 18px;
  height: 16px;
  padding: 0;
  border: 2px outset #fff;
  background: #c0c0c0;
  color: #000;
  font: bold 11px/1 Tahoma, sans-serif;
}
.win98-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 14px 6px;
}
.win98-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}
.win98-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font: bold 20px/1 "Times New Roman", serif;
}
.win98-icon[hidden] { display: none; }
.win98-icon.warn { border-radius: 0; color: #000; background: none; font-size: 30px; }
.win98-icon.info { background: #fff; color: #0000cc; border: 2px solid #0000cc; font-style: italic; }
.win98-icon.error { background: #ff0000; color: #fff; border: 2px solid #800000; font-family: Tahoma, sans-serif; }
.win98-icon.star { color: #ffcc00; font-size: 32px; text-shadow: 1px 1px 0 #000; }
.win98-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px 12px;
}
.win98-actions .btn98 {
  min-width: 75px;
}
.win98-img {
  flex: none;
  width: 90px;
  height: auto;
  border: 2px inset #fff;
  background: #fff;
}
.win98-text {
  min-width: 0;
}
.win98-pre {
  max-width: 100%;
  margin: 8px 0 0;
  padding: 6px;
  overflow: auto;
  border: 2px inset #fff;
  background: #fff;
  color: #c2187a;
  font: 10px/1.15 "Courier New", Courier, monospace;
}
.win98:has(.win98-pre:not([hidden])) {
  max-width: min(460px, 94vw);
}

/* ----- Traînée d'étoiles du curseur ----- */
.trail {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  pointer-events: none;
  font: bold 14px/1 Arial, sans-serif;
  text-shadow: 0 0 4px #fff, 0 0 8px currentColor;
  will-change: transform, opacity;
}

/* =========================================================
   EASTER EGGS (chut)
   ========================================================= */
.lien-cache,
.content .lien-cache,
.footer .lien-cache {
  color: #000080;
  text-decoration: none;
}
.texte-invisible {
  margin: 0;
  color: #000080;
  font-size: 11px;
}
.texte-invisible::selection {
  background: #ff00ff;
  color: #ffff00;
}

/* La cachette révélée via l'inspecteur */
.cachette {
  position: fixed;
  left: 10px;
  top: 10px;
  z-index: 60;
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: min(360px, 90vw);
  padding: 10px 28px 10px 10px;
  border: 4px ridge #00ffff;
  background: #000;
  color: #00ff66;
  font: 13px "Courier New", monospace;
}
.cachette[hidden] {
  display: none;
}
.cachette img {
  flex: none;
  width: 80px;
  height: 80px;
}
.cachette p {
  margin: 0 0 4px;
}
.cachette-close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 18px;
  padding: 0;
  border: 2px outset #fff;
  background: #c0c0c0;
  font: bold 12px/1 Tahoma, sans-serif;
}

/* Notifications "MSN Messenger" quand on trouve un œuf */
.msn-toasts {
  position: fixed;
  left: 10px;
  bottom: 10px;
  z-index: 9000;
  pointer-events: none;
}
.msn-toast {
  width: 230px;
  margin-top: 6px;
  border: 1px solid #3a6ea5;
  background: linear-gradient(#fff, #dbe9f9);
  color: #000;
  font: 12px Tahoma, Verdana, sans-serif;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, .4);
  animation: toast-in 4.2s steps(6) forwards;
}
.msn-toast p {
  margin: 0;
}
.msn-toast-head {
  padding: 2px 6px;
  background: linear-gradient(90deg, #3a6ea5, #7ab0e8);
  color: #fff;
  font-weight: bold;
}
.msn-toast-body {
  padding: 8px;
}
@keyframes toast-in {
  0% { transform: translateY(120%); }
  10%, 90% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(0); opacity: 0; }
}

/* WordArt géant au milieu de l'écran */
.egg-banner {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: grid;
  place-items: center;
  padding: 0 4vw;
  pointer-events: none;
  text-align: center;
}
.egg-banner .wordart {
  opacity: 1;
  font-size: clamp(34px, 8vw, 110px);
  animation: egg-banner 2.4s steps(12) forwards;
}
@keyframes egg-banner {
  0% { transform: scale(0) rotate(-540deg); }
  25% { transform: scale(1.1) rotate(-6deg); }
  35%, 80% { transform: scale(1) rotate(-6deg); opacity: 1; }
  100% { transform: scale(1.6) rotate(8deg); opacity: 0; }
}

/* Pluie d'images / de caractères */
.egg-fall {
  position: fixed;
  top: -170px;
  left: var(--x);
  z-index: 7000;
  height: auto;
  pointer-events: none;
  animation: egg-fall var(--dur) linear var(--delay) both;
}
.egg-fall-char {
  font: bold 20px "Comic Sans MS", cursive;
  text-shadow: 1px 1px 0 #000;
}
@keyframes egg-fall {
  from { transform: translateY(0) rotate(0); }
  to { transform: translateY(calc(100vh + 340px)) rotate(var(--rot)); }
}

/* Cœurs qui montent */
.egg-rise {
  position: fixed;
  bottom: -60px;
  left: var(--x);
  z-index: 7000;
  pointer-events: none;
  text-shadow: 0 0 6px #fff;
  animation: egg-rise 2.6s ease-out var(--delay) both;
}
@keyframes egg-rise {
  from { transform: translate(0, 0) scale(.6); opacity: 1; }
  to { transform: translate(var(--sway), -105vh) scale(1.3); opacity: 0; }
}

/* Explosion d'étoiles */
.egg-spark {
  position: fixed;
  z-index: 7000;
  pointer-events: none;
  font: bold 22px Arial, sans-serif;
  text-shadow: 0 0 6px #fff;
  animation: egg-burst 1s ease-out forwards;
}
@keyframes egg-burst {
  from { transform: translate(-50%, -50%) scale(1.4); opacity: 1; }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0) rotate(270deg); opacity: 0; }
}

/* Catgirl qui passe la tête par le bas */
.egg-peek {
  position: fixed;
  bottom: 0;
  z-index: 7500;
  width: 150px;
  pointer-events: none;
  animation: egg-peek 2.8s steps(10) forwards;
}
.egg-peek img {
  display: block;
  width: 100%;
  height: auto;
}
.egg-peek-bubble {
  position: absolute;
  bottom: 88%;
  left: 70%;
  padding: 3px 8px;
  border: 2px solid #000;
  border-radius: 12px;
  background: #fff;
  color: #ff0080;
  font: bold 13px "Comic Sans MS", cursive;
  white-space: nowrap;
}
@keyframes egg-peek {
  0% { transform: translateY(100%); }
  20%, 75% { transform: translateY(35%); }
  100% { transform: translateY(110%); }
}

.egg-roll {
  animation: egg-roll 1.3s steps(16);
}
@keyframes egg-roll {
  to { transform: rotate(360deg); }
}
.egg-wizz {
  animation: egg-wizz .07s steps(2) 10;
}
@keyframes egg-wizz {
  0% { transform: translate(-9px, 4px); }
  100% { transform: translate(9px, -4px); }
}
.egg-spin {
  animation: egg-spin 1.1s steps(10);
}
@keyframes egg-spin {
  to { transform: rotateX(360deg); }
}

/* Mode otaku (Konami code) */
.otaku-mode .page {
  animation: otaku-hue 1.2s steps(6) infinite;
}
@keyframes otaku-hue {
  to { filter: hue-rotate(360deg); }
}
/* Après le "piratage" de la NASA */
.egg-hacked .page {
  filter: hue-rotate(95deg) saturate(2) contrast(1.3);
}

/* Version imprimée */
.print-only {
  display: none;
}
@media print {
  #intro,
  #site,
  .trail,
  .msn-toasts,
  dialog {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .print-only {
    display: block;
    color: #000;
    font: 16px "Comic Sans MS", cursive;
    text-align: center;
  }
  .print-only pre {
    display: inline-block;
    text-align: left;
    font: 14px/1.15 "Courier New", monospace;
  }
}

/* ----- Petits écrans (pas très 2003 mais bon) ----- */
@media (max-width: 720px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .mascot {
    width: 80px;
  }
  .mascot-bubble {
    right: 40px;
  }
}

/* ----- Animations réduites si l'utilisateur le demande ----- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }
  /* les messages doivent rester lisibles, juste sans bouger */
  .msn-toast,
  .egg-banner .wordart {
    animation: none !important;
  }
}
