
.remote {
  background: #3f3c3c;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 70px);
  gap: 12px;
  justify-content: center;
  box-shadow: inset 0 0 20px #111, 6px 6px 15px rgba(0,0,0,0.9);
  border: 2px solid #111;
  position: relative;
  font-family: sans-serif;
}

.remote button {
  background: linear-gradient(145deg, #444, #222);
  border: 2px solid #111;
  color: #eee;
  font-size: 18px;
  padding: 15px;
  cursor: pointer;
  box-shadow: 4px 4px 0px #000;
  transition: all 0.1s ease-in-out;
}
.remote button:active {
  transform: translate(2px,2px);
  box-shadow: 1px 1px 0px #000;
  background: linear-gradient(145deg,#222,#111);
}

#power_remote { background: linear-gradient(145deg, #b71c1c, #7f0000); color:#fff; }
#mute_remote { background: linear-gradient(145deg, #666, #222); }

.spacer_remote { grid-column: span 3; height: 25px; }

.vol_remote, .ch_remote {
  position: relative;
  width: 70px;
  height: 120px;
  perspective: 200px;
  cursor: pointer;
}

.half_remote {
  position: absolute;
  width: 100%;
  height: 50%;
  left:0;
  background: linear-gradient(145deg,#444,#222);
  border: 2px solid #111;
  box-shadow: 4px 4px 0px #000;
  transform-origin: bottom center;
  transition: transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #eee;
  font-weight: bold;
  font-size: 16px;
  user-select: none;
}

.half_remote.bottom_remote { top: 50%; transform-origin: top center; }

.half_remote.top_remote.active { transform: rotateX(12deg); }    /* pivot vers le bas */
.half_remote.bottom_remote.active { transform: rotateX(-12deg); } /* pivot vers le haut */

.label_remote {
  position: absolute;
  top:50%; left:50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  pointer-events: none;
  color:#eee;
}

.colors_remote {
  grid-column: span 3;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap:8px;
}
.colors_remote button {
  font-size:14px;
  padding:12px;
  border:2px solid #111;
  box-shadow:4px 4px 0px #000;
}
.red_remote {background: linear-gradient(145deg,#c0392b,#7f0000);}
.green_remote {background: linear-gradient(145deg,#27ae60,#145a32);}
.blue_remote {background: linear-gradient(145deg,#2980b9,#0b3c5d);}
.yellow_remote {background: linear-gradient(145deg,#f1c40f,#9a7d0a); color:#222;}

/* Zone texte ou image centrée */
.remote-footer_remote {
  grid-column: span 3;
  text-align: center;
  margin-top: 15px;
  overflow: visible; /* pour permettre aux gifs de dépasser légèrement */
}

/* Taille plus grande des gifs */
.remote-footer_remote img {
  max-width: 200px;  /* plus grand que la largeur de la télécommande */
  width: 80%;        /* s’adapte à la zone footer */
  height: auto;
  display: block;
  margin: 5px auto;
}

/* Boutons vidéo empilés */
.video-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  margin-right: 5px;
}

.video-buttons button {
  padding: 15px;
  border: 2px solid #111;
  background: linear-gradient(145deg,#444,#222);
  box-shadow: 4px 4px 0px #000;
  cursor: pointer;
  transition: all 0.1s ease-in-out;
  text-align: center;
}

.video-buttons button:active {
  transform: translate(2px,2px);
  box-shadow: 1px 1px 0px #000;
  background: linear-gradient(145deg,#222,#111);
}

.remote-footer img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.remote-footer span {
  display: inline-block;
  max-width: 100%;
  font-size: 14px;
  color: #eee;
  word-wrap: break-word;
}