body{
  position: relative;

  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;

  background: url("back.webp") no-repeat center center;
  background-size: cover;
}


/* Fenêtres Windows */
.window {
  width: 250px;
  height: 150px;
  background: #eaeaea;
  border: 2px solid #000;
  position: absolute;
  top: 50px;
  left: 50px;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.3);
  color: #d8d8d8;
  touch-action: none; /* essentiel pour le tactile */
  font-family: 'Open Sans', sans-serif;
  z-index: 1;

}

/* Fenêtres Windows */
.window2 {
  width: 550px;
  height: 550px;
  background: #eaeaea;
  border: 2px solid #000;
  position: absolute;
  top: 50px;
  left: 50px;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.3);
}

.titlebar {
  background: #999999;
  padding: 6px 10px;
  font-weight: bold;
  cursor: move;
  user-select: none;
  color: #d8d8d8;
    cursor: grab;
  user-select: none;
}
.content {
  padding: 10px;
}


/* Fenêtre principale */



.w1 {
  width: 600px;
  height: 580px;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  
  background:transparent !important;
    border: 16px solid transparent;
  border-image: url("border.png") 16 stretch;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.3);


}
.w1 {
  position: relative;
}

.w1::before {
  content: "";
  position: absolute;
  top: -16px;
  left: -16px;
  right: -16px;
  bottom: -16px;

  background: #7F7F7F;
  z-index: -1;
}

.w11 {
  width: 520px;
  height: 600px;
  top: calc(20px + 60px); /* chevauche vertical */
  left: calc(05% + 200px); /* 600/2 - 100 = 200px */
  transform: translateX(-50%);
  z-index: 11;
 background: #7F7F7F;
  border: 16px solid transparent;
  border-image: url("border.png") 16 stretch;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.3);


}

.w11::before {
  content: "";
  position: absolute;
  top: -16px;
  left: -16px;
  bottom: -16px;
  right: -16px;
  background:#7F7F7F;
  z-index: -1;
}



.w12 {
  width: 250px;
  height: 340px;
  top: calc(20px + 160px); /* chevauche vertical */
  left: calc(75% + 400px); /* 600/2 - 100 = 200px */
  transform: translateX(-50%);
  z-index: 11;
 background: #7F7F7F;

    border: 16px solid transparent;
  border-image: url("border.png") 16 stretch;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.3);


}



/* Fenêtre logo — chevauchement EXACT de 100px */
.w2 {
  width: 220px;
  height: 160px;
  top: calc(30px + 120px); /* chevauche vertical */
  left: calc(60% + 200px); /* 600/2 - 100 = 200px */
  transform: translateX(-50%);
  z-index: 2;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  
}

/* Fenêtres boutons */
.w3, .w4 {
  width: 200px;
  height: 120px;
  top: calc(150px + 550px + 40px); /* sous la grande */
    background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.w3 {
  left: calc(47% - 180px);

  transform: translateX(-50%);
  z-index: 99;
}

.w4 {
  left: calc(50% + 20px);
  transform: translateX(-50%);
  z-index: 3;
}

.w16 {
  width: 220px;
  height: 160px;
  top: calc(600px + 120px); /* chevauche vertical */
  left: calc(30% + 200px); /* 600/2 - 100 = 200px */
  transform: translateX(-50%);
  z-index: 99;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.w17 {
  width: 220px;
  height: 160px;
  top: calc(600px + 120px); /* chevauche vertical */
  left: calc(45% + 200px); /* 600/2 - 100 = 200px */
  transform: translateX(-50%);
  z-index: 99;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}


.w5 {
  width: 300px;
  height: 180px;

  /* Position extérieure bas-droite */
  top: calc(59px + 570px);      /* juste sous w1 */
  left: calc(60% + 305px + 20px); /* bord droit de w1 + 20px */

  transform: translateX(-50%);
  z-index: 4;

   background:#7F7F7F;

  border: 16px solid transparent;
  border-image: url("border.png") 16 stretch;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.3);
}

.w5::before {
  content: "";
  position: absolute;
  top: -16px;
  left: -16px;
  right: -16px;
  bottom: -16px;

  background:  #7F7F7F;
  z-index: -1;
}

/* Boutons */
.btn {
  width: 100px;
  cursor: pointer;
}

/* Logo */
.logo {
  width: 100%;
}

/* Responsive mobile */
@media (max-width: 700px) {
  .window {
    position: static;
    width: 90%;
    margin: 20px auto;
    transform: none;
  }
}

.icon33 { 


width: 49px; height: 22px; 
float: left;

}


.icon11 {
    width: 25px;
    height: 25px;
    object-fit: contain;
	display: block;
	margin-left: auto;
    margin-right: auto;
	float: right;
		 
}

.icon34 {
    width: 30px;
    height: 30px;
    object-fit: contain;
	display: block;
	margin-left: auto;
    margin-right: 3px;
	float: right;
		 
}

#maFenetre iframe {
  width: 570px;
  height: 500px;
}

/* --- BARRE WINDOWS XP --- */

.xp-taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;

  background: linear-gradient(#245edc, #1a4bb8);
  border-top: 2px solid #0f2f7a;

  display: flex;
  align-items: center;
  justify-content: space-between;

  font-family: Tahoma, sans-serif;
  color: white;
  z-index: 9999;
}

/* Bouton Start XP */
.xp-start {
  background: linear-gradient(#3aa03a, #2e7d2e);
  border: 2px solid #1f5e1f;
  border-radius: 4px;

  padding: 6px 14px;
  margin-left: 6px;

  font-weight: bold;
  cursor: pointer;

  box-shadow: inset 1px 1px 0 #6fdc6f, inset -1px -1px 0 #1f5e1f;
}

/* Zone des applications ouvertes */
.xp-apps {
  display: flex;
  gap: 6px;
  margin-left: 10px;
  flex-grow: 1;
}

.xp-app {
  background: linear-gradient(#e8e8e8, #cfcfcf);
  border: 2px solid #9a9a9a;
  border-radius: 3px;

  padding: 6px 12px;
  color: black;
  font-size: 14px;

  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #7d7d7d;
  cursor: pointer;
}

/* Zone de droite (horloge) */
.xp-tray {
  padding-right: 12px;
  font-size: 14px;
      color: #d8d8d8;
}

/* Message caché par défaut */
/* Message mobile */
.mobile-warning {
  display: none;
  background: #000000;
  color: #000;
  padding: 12px;
  text-align: center;
  font-family: Tahoma, sans-serif;
  font-size: 16px;
  border-bottom: 2px solid #000;
  position: relative;
  z-index: 1;
}

/* Affiché uniquement sur smartphone */
@media (max-width: 1500px) {
  .mobile-warning {
    display: block !important;
  }
}



/* --- blink --- */

.blink {
  color: #ffffff;
  animation: blink0 2.0s infinite;
}

@keyframes blink0 {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.1; }

}

a {
    color: #d8d8d8;        /* couleur normale */
    text-decoration: none;

}

a:visited {
    color: #d8d8d8;        /* couleur après visite */
}

a:hover {
    color: #d8d8d8;        /* couleur au survol */
    text-decoration: underline;
}

a:active {
    color: #d8d8d8;        /* couleur quand on clique */
}

/* ---------------------------------- */
/*              LAYOUT               */
/* ---------------------------------- */
.layout {
    display: flex;
    justify-content: justify;
    align-items: flex-start;
    gap: 0px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
	font-family: 'Open Sans', sans-serif;
	text-align: justify;
}

.left, .center, .right {
    padding: 10px;
    margin: 10px;
		background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: justify;
    color: #d8d8d8;
}

.center {
    flex: 2;
    max-width: 900px;
}

.right {
    flex: 1;
    max-width: 250px;
}

.left {
    flex: 1;
    max-width: 250px;
}

.layout9 {
  width: 100%;

  display: grid;
  grid-template-rows: repeat(1, 1fr);
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
      align-items: flex-start;
  
}
.centermini {
    flex: 2;
    max-width: 300px;
    max-height: 250px;
}


.msg-user {
	
    color: #a72f2f; 	
}


.audio {
	
	 
	
}

#input {
	
	background: #d8d8d8;
	
}



/* ---------------------------------- */
/*        Image en bas                */
/* ---------------------------------- */
     /* Base position fixe */
.fixed-bottom-wrapper {
  position: fixed;
  bottom: 80px;
  left: 500px;
  right: auto;
  z-index: 9999;
}

/* Si vous voulez centrer en bas */
.fixed-bottom-wrapper.center {
  left: auto%;
  right: 50;
  transform: translateX(-50%);
}

/* Image */
.fixed-bottom-image {
  display: block;
  max-width: 100px;
  width: auto;
  height: auto;

  transform-origin: center center;
  transition: transform 200ms ease, opacity 200ms ease;
}

/* Pulse keyframes (légère mise à l'échelle) */
@keyframes pulse-scale {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Float keyframes (translation verticale pour effet "planer") */
@keyframes float-up {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Classe combinée : on applique les deux animations en alternance.
   On utilise animation-fill-mode: both pour garder transitions propres. */
.pulse-and-float {
  animation:
    pulse-scale 1.2s ease-in-out 2,
    float-up 1.6s ease-in-out 2;
}


/* Si vous voulez uniquement pulse ou uniquement float */
.pulse { animation: pulse-scale 2.2s ease-in-out infinite; }
.float { animation: float-up 3.6s ease-in-out infinite; }

/* Pause l'animation au survol pour éviter gêne UX */
.fixed-bottom-wrapper:hover .fixed-bottom-image,
.fixed-bottom-wrapper:focus-within .fixed-bottom-image {
  animation-play-state: paused;
  transform: translateY(0) scale(1);
}

/* Respecter la préférence de réduction des animations */
@media (prefers-reduced-motion: reduce) {
  .pulse-and-float,
  .pulse,
  .float {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive : réduire la taille sur petits écrans */
@media (max-width: 580px) {
  .fixed-bottom-wrapper {
    bottom: 12px;
    right: 12px;
  }
  .fixed-bottom-image {
    max-width: 100px;
  }
}
.ma-liste {
  max-height: 400px;   /* hauteur max visible */
  overflow-y: auto;    /* scroll vertical visible */
}
