
/* Couche CRT plein écran */
.crt-filter::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0px,
    rgba(0, 0, 0, 0.08) 1px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: multiply;
  animation: scanlineMove 8s linear infinite;
}

.crt-filter::after {
  content: "";
  position: fixed;
  top: -100%;
  left: 0;
  width: 100vw;
  height: 300%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 100%
  );
  z-index: 99998;
  pointer-events: none;
  animation: crt-scan 4s linear infinite;
}

@keyframes crt-scan {
  0% { top: -100%; }
  100% { top: 100%; }
}

@keyframes scanlineMove {
  0% { background-position: 0 0; }
  100% { background-position: 0 4px; }
}

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

:root {
  --margin-top: 0vh;
  --margin-sides: 4vw;
  --margin-bottom: 4vh;
  --font-size-base: 1.1rem;
  --title-size: 6vw;
  --container-padding: 5vw;
  --background-main: #e0f0ff;
  --background-container: rgba(255, 255, 255, 0.9);
  --container-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  --text-color: #222;
}

/* ==== GLOBAL ==== */

body {
  margin: 0;
  padding: 0;
  font-family: 'Share Tech Mono', monospace;
  background-color: #e0f0ff;
  background-image: url('https://files.catbox.moe/vg4ro0.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #222;
  text-transform: lowercase;
}


.page-wrap {
  width: 900px;
  max-width: 100%;
  margin: 20px auto; 
  display: flex;
  justify-content: space-between; 
  gap: 15px;
  align-items: stretch; 
}

.left-container,
.right-container {
  flex-grow: 1;
}


/* ==== LEFT CONTAINER ==== */

.left-container img {
  max-width: 250px;
  height: auto;
}


.left-container {
  display: flex;
  flex-direction: column; 
  justify-content: flex-start; 
  align-items: flex-start;    /* aligne les enfants à gauche */
  gap: 10px;    /* espace vertical entre enfants */
  width: 665px;
  padding: 0 0 10px 0;  /* padding-bottom ajouté */
  margin: 10px 0;
  background-color: #eee;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
  font-family: Tahoma, sans-serif;
  color: #000;

}

.left-container .inner-strip {
  width: auto;
  max-width: 68%;
  margin-top: 10px;
  margin-right: 10px; 
  margin-left: auto;  
  padding: 15px;
  background-color: #e0e0e0;
  border: 3px solid #444;
  box-shadow: inset 0 0 10px #888;
  font-family: 'VT323', monospace;
  color: #222;
  text-shadow: 1px 1px 0 #fff;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.till-image-wrapper {
  position: absolute;
  left: -30px;
  top: 0;
}

.big-block {
  margin-top: 0px;       /* espace sous .inner-strip */
  margin-left: 317px;      /* colle à gauche */
  margin-right: 10px;     /* petit espace à droite */
  width: 334px;
  height: 342px;
  background-color: #e0e0e0;
  border: 3px solid #444;
  box-shadow: inset 0 0 10px #888;
  box-sizing: border-box;
    /* CENTRAGE */
  display: flex;
  justify-content: center;
  align-items: center;
}

.stamps {
  transform: translateY(-230px) translateX(47px);
  margin-top: 0px;
  margin-left: 10px;
  margin-bottom: 10px;
  width: 200px;
  height: 200px;
  background-color: #e0e0e0;
  border: 3px solid #444;
  box-shadow: inset 0 0 10px #888;
  box-sizing: border-box;
  /* CENTRAGE */
  display: flex;
  justify-content: center;
  align-items: center;
}


/* ==== RIGHT CONTAINER ==== */

.right-container {
  transform: translateY(-10px);
  width: 220px;
  margin-top: 20px;
  height: 465px;
  background-color: #eeeeee;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  box-sizing: border-box;  
  padding: 10px;
  font-family: Tahoma, sans-serif;
  color: #000;
  
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  overflow-x: hidden;  /* Désactive le débordement horizontal */
}

.right-container {
  width: 100%;
}

/* Première inner-strip */
.right-container .inner-strip {
  width: 100%;
  margin-bottom: -5px;
  padding-bottom: 5px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
/* Box-ivantill modifiée */
.right-container .box-ivantill {
  width: 100%;                /* Réduit la largeur à 85% */
  display: flex;
  flex-direction: column;
  gap: 10px;                 /* Réduit l'espace entre les éléments internes */
  background-color: #e0e0e0;
  border: 3px solid #444;
  box-shadow: inset 0 0 10px #888;
  padding: 5px;              /* Réduit le padding interne */
  margin-bottom: -5px;       /* Ajuste la marge sous la box */
  box-sizing: border-box;    /* Assure que padding et border sont inclus dans la taille */
}



/* Container global de la bannière */
.scrolling-banner {
    width: 800px;             
    overflow: hidden;         
    background-color: #e0e0e0;
    margin: 20px auto;        
    padding: 10px;          
    border-top: 2px solid #ffffff;
    border-right: 2px solid #404040; 
    border-bottom: 2px solid #888888;
    border-left: 2px solid #ffffff; /* Bordure blanche à gauche */
    box-sizing: border-box;
    position: relative; /* Positionner correctement la bannière */
}


.box-text span {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 10s linear infinite;
    padding-right: 5px; 
    padding-left: 5px;
}

/* Définition de l'animation pour faire défiler le texte */
@keyframes scroll-left {
    0% {
        transform: translateX(100%); /* Commence à droite */
    }
    100% {
        transform: translateX(-100%); /* Fini à gauche */
    }
}

/* ==== HEADER ==== */
.site-header {
  width: 800px;
  height: 120px;
  margin: 0 auto; 
  border-left: 2px solid #ffffff; /* Bordure gauche blanche */
  border-right: 2px solid #404040; /* Bordure droite foncée */
  border-bottom: 2px solid #404040; /* Bordure bas foncée */
  background-image: url('https://files.catbox.moe/qfvqqy.jpg');
  background-size: cover;
  padding-bottom: 0px;
  background-position: center;
  background-repeat: no-repeat;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  margin-top: -20px;
}

@media (max-width: 700px) {
  .site-header {
    width: 100%; 
    height: 150px;
  }
}

/* ==== SLIDESHOW ==== */

.mini-slider {
  width: 178px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  height: 220px; /* 180px slide + 40px nav */
  position: relative;
  margin: auto;
  margin-left: 0px;
  margin-top: -1px;
  margin-bottom: -1px;
  border-radius: 0; /* coins carrés */
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  background: white;
  font-family: Arial, sans-serif;
}

.mini-slider input[type="radio"] {
  display: none;
}

.mini-slides {
  display: flex;
  width: 900px; /* 5 slides * 180px */
  transition: transform 0.5s ease-in-out;
  height: 180px;
}

.mini-slide {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.mini-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
 
#mini1:checked ~ .mini-slides { transform: translateX(0); }
#mini2:checked ~ .mini-slides { transform: translateX(-180px); }
#mini3:checked ~ .mini-slides { transform: translateX(-360px); }
#mini4:checked ~ .mini-slides { transform: translateX(-540px); }
#mini5:checked ~ .mini-slides { transform: translateX(-720px); }

.mini-nav {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px; 
  padding: 0 15px;
  user-select: none;
  display: none;
background: #e0e0e0;
}
 
#mini1:checked ~ .mini-nav.nav1,
#mini2:checked ~ .mini-nav.nav2,
#mini3:checked ~ .mini-nav.nav3,
#mini4:checked ~ .mini-nav.nav4,
#mini5:checked ~ .mini-nav.nav5 {
  display: flex;
}

.mini-nav label {
  cursor: pointer;
  font-size: 1.2rem; /* un peu plus petit */
  color: #333;
  padding: 4px 8px;
  border-radius: 50%;
  transition: color 0.3s;
  user-select: none;
}

.mini-nav label:hover {
  color: #000;
}

/* ==== MUSIC CONTROLS ==== */

#music-controls {
  position: fixed;
  top: 0;         /* coller en haut, sans marge */
  left: 10px;     /* tu peux réduire ou garder le décalage gauche */
  background-color: rgba(240, 250, 255, 0.9);
  padding: 6px 10px;
  border-radius: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 9999;
}

/* En plus, pour éviter un espace en haut dû au body */
body {
  margin: 0;
  padding: 0;
}

#music-controls button {
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  padding: 5px 10px;
  border: none;
  border-radius: 0; /* angles droits sur les boutons */
  background-color: #cbe5ff;
  color: #222;
  cursor: pointer;
  margin-right: 4px;
  transition: background-color 0.2s ease;
  text-transform: lowercase;
}

#music-controls button:hover {
  background-color: #a6d8ff;
}

/* ==== RESPONSIVE ==== */

@media (max-width: 700px) {
  .page-wrap {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
  }

  .left-container,
  .right-container {
    width: 95%;
    margin: 0 0 20px;
    flex-direction: column;
  }
}

.inner-strip {
  background-color: #e0e0e0; /* gris clair à l’intérieur */
  width: 100%;
  min-height: 150px; /* ajuste selon ton contenu */
  box-sizing: border-box;
  border-radius: 0; /* coins carrés */

  /* Style rétro */
  border: 3px solid #444; /* contour gris foncé épais */
  box-shadow: 0 0 10px #888 inset; /* ombre interne douce */
  padding: 15px;

  font-family: 'VT323', monospace; /* typographie rétro style terminal */
  color: #222; /* texte sombre */
  text-shadow: 1px 1px 0 #fff; /* effet léger de relief */
  
  display: flex;
  flex-direction: column;
  align-items: center; /* centre le contenu */
  gap: 15px;
}

/* SLIDESHOW POKEMON */

.slideshow-pokemon {
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  width: 180px;
  height: 180px;
  margin: auto;
  margin-left: -10px;
  margin-top: -10px;
  margin-bottom: 0px;
  overflow: hidden;
  background-image: url('https://files.catbox.moe/ryhc96.png');
  background-size: cover;
  background-position: center;
  border-radius: 0; /* coins carrés */
  box-sizing: border-box;
  font-family: 'Orbitron', monospace;
}

/* Cacher les inputs */
.slideshow-pokemon input[type="radio"] {
  display: none;
}

.slideshow-pokemon .slides {
  display: flex;
  width: 400%; /* 4 slides */
  height: 180px;
  transition: transform 0.5s ease-in-out;
}

.slideshow-pokemon .slide {
  width: 180px;
  flex-shrink: 0;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: flex-end; /* aligne vers le bas */
  padding-bottom: 3px; /* marge du bas réduite */
}

.slideshow-pokemon .slide img {
  width: 80%; /* par défaut 80% */
  height: auto;
  object-fit: contain;
}

/* Deuxième image à 85% */
.slideshow-pokemon .slide:nth-child(4) img {
  width: 85%;
}

.slideshow-pokemon .slide:nth-child(2) img {
  margin-bottom: 10px;
}

.slideshow-pokemon .slide:nth-child(1) img {
  margin-bottom: 30px;
}

/* Translation selon le slide actif */
#slide1:checked ~ .slides {
  transform: translateX(0%);
}
#slide2:checked ~ .slides {
  transform: translateX(-25%);
}
#slide3:checked ~ .slides {
  transform: translateX(-50%);
}
#slide4:checked ~ .slides {
  transform: translateX(-75%);
}

/* Flèches communes */
.slideshow-pokemon .prev, 
.slideshow-pokemon .next {
  position: absolute;
  top: 8%;
  margin-left: -2px;
  transform: translateY(-50%);
  color: #222;
  font-size: 15px;
  background: transparent; 
  border-radius: 0;         
  width: 10px;
  height: 25px;
  text-align: center;
  line-height: 24px;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
  opacity: 0.5;
  z-index: 10;
}

.slideshow-pokemon .prev:hover, 
.slideshow-pokemon .next:hover {
  color: #555; /* léger changement au hover */
  opacity: 1;
}

.slideshow-pokemon .prev {
  left: 5px;
}

.slideshow-pokemon .next {
  right: 5px;
}

/* Cacher toutes les flèches au départ */
.slideshow-pokemon .prev, 
.slideshow-pokemon .next {
  display: none;
}

/* Afficher les flèches correspondantes au slide actif */
#slide1:checked ~ .prev.slide1,
#slide1:checked ~ .next.slide1,
#slide2:checked ~ .prev.slide2,
#slide2:checked ~ .next.slide2,
#slide3:checked ~ .prev.slide3,
#slide3:checked ~ .next.slide3,
#slide4:checked ~ .prev.slide4,
#slide4:checked ~ .next.slide4 {
  display: block;
}

.bloc-retro {
  background-color: #d4d0c8; /* Gris classique Windows */
  border-top: 2px solid #ffffff;   /* Bord haut clair */
  border-left: 2px solid #ffffff;  /* Bord gauche clair */
  border-right: 2px solid #404040; /* Bord droit foncé */
  border-bottom: 2px solid #404040;/* Bord bas foncé */
  padding: 20px;
  width: 300px;
  font-family: Tahoma, sans-serif;
  color: #000000;
}

.bloc-retro h1 {
  margin-top: 0;
  font-size: 1.2em;
}

.bloc-retro p {
  font-size: 0.9em;
}


#corner-companion {
  position: fixed;  /* Il restera fixe même en scrollant */
  bottom: 0;        /* Collé en bas de la page */
  right: 0;         /* Collé à droite de la page */
  width: 150px;     /* Ajuste la taille à ta convenance */
  height: auto;     /* Garde les proportions du GIF */
  z-index: 9999;    /* Assure-toi qu'il soit au-dessus des autres éléments */
}
