@font-face {
  font-family: 'IBM';
  src: url('fonts/IBM-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

body {
  background-color: pink;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-family: 'IBM', serif;
  overflow: hidden;
}

h1 {
  font-size: 2rem;
  color: #b374b2;
  background-color: #ffffff;
  padding: 15px 25px;
  border-radius: 20px;
  width: fit-content;
  margin: 10px auto;
}

h2 {
  font-size: 1.8rem;
  color: #b374b2;
  background-color: #ffffff;
  padding: 10px 20px;
  border-radius: 15px;
  width: fit-content;
  margin: 10px auto;
}

img {
  border-radius: 30px;
  display: block;
  max-height: 35vh; /* Légèrement réduit pour laisser de la place au texte géant */
  width: auto;
  border: 8px solid white; /* Cadre blanc pour faire ressortir l'image */
}

#buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
}

button {
  border: none;
  background-color: #ffffff;
  /* On fixe la largeur pour qu'ils soient identiques */
  width: 150px; 
  height: 80px;
  
  border-radius: 25px;
  color: #b374b2;
  font-size: 2.2rem;
  cursor: pointer;
  transition: transform 0.2s;
  font-weight: bold;
  
  /* Centre le texte à l'intérieur du bouton */
  display: flex;
  justify-content: center;
  align-items: center;
}

button:hover {
  transform: scale(1.1);
}

#non {
  font-family: 'Papyrus', sans-serif;
  font-size: 1.5rem; /* Un peu plus grand pour remplir le bouton de la même taille */
}


#close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2.5rem; /* Bien grosse pour tel */
  color: #b374b2;
  cursor: pointer;
  line-height: 1;
  font-weight: bold;
}

/* Le voile qui floute tout l'écran */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(255, 192, 203, 0.3); /* Rose très transparent */
  backdrop-filter: blur(15px); /* Flou puissant */
  -webkit-backdrop-filter: blur(15px);
  z-index: 999; /* Juste en dessous de sioui */
  display: none; /* Caché par défaut */
}

/* Ta fenêtre (on enlève le flou ici car c'est l'overlay qui s'en occupe) */
#sioui {
  position: fixed;
  z-index: 1001;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  color: #b374b2;
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  
  /* Plus petit pour ne pas tout prendre */
  width: 70%; 
  max-width: 300px; 
  
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: none;
  animation: float 3s ease-in-out infinite;
}

#sioui h1 {
  font-size: 1.5rem; /* Titre plus discret dans la popup */
  margin-bottom: 5px;
}



#virusOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7); /* Fond noir semi-transparent */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1050; /* Au-dessus de tout le reste */
  display: none;
}

#virusWindow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ff0000; /* Fond rouge criard */
  color: #ffffff; /* Texte blanc */
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  width: 85%;
  max-width: 350px;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.8); /* Grosse ombre rouge */
  border: 5px solid #ffa500; /* Bordure orange clignotante */
  display: none;
  z-index: 1060;
  animation: border-flash 1s infinite alternate; /* Fait clignoter la bordure */
}

@keyframes border-flash {
  from { border-color: #ffa500; }
  to { border-color: #ff0000; }
}

.virus-text {
  font-family: 'Press Start 2P', cursive; /* Si tu as cette police, sinon une police pixel */
  font-size: 1.2rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px #000; /* Effet rétro */
}

.virus-countdown {
  font-family: 'Digital-7 Mono', monospace; /* Si tu as cette police */
  font-size: 3rem;
  font-weight: bold;
  margin: 20px 0;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

#fixButton {
  background-color: #00ff00; /* Bouton vert pour "réparer" */
  color: #000000;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
}