body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    /*background-color: #959292; /* Fond d'écran légèrement gris */
    background-color: black; /* Fond d'écran noir */
}

.bg {
  /* The image used */
  /*background-image: url("img/background.png");

  /* Full height */
  height: 100%; 

  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
      z-index: 10;
}

#mon_image {
      width: 100vw;
      height: 100vh;
      object-fit: cover; /* L'image garde ses proportions et couvre */
      opacity: 0.5;
      z-index: 1;
}

.compteur-banner {
  position: fixed;
  top: 15;
  left: 20px;
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 5px 15px;
  border-radius: 10px;
  font-family: 'Roboto Mono', monospace;
  font-size: 24px;
  letter-spacing: 3px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

#captcha-container {
    position: absolute;
  z-index: 20;
}

#fake-captcha {
    display: flex;
    align-items: center;
    border: 1px solid #d3d3d3;
    padding: 10px;
    border-radius: 4px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.checkbox-container {
	margin-right: 10px;
	
}

#checkbox-img {
    width: 40px;
}


.text-container {
    display: flex;
    align-items: center; /* Aligne le texte et le logo horizontalement */
}

#mylabel {
    font-size: 20px; /* Taille du texte en 20px */
    margin-right: 10px;
    user-select: none;
}

#captcha-logo {
    width: 70px;
}

.video-container {
    position: absolute;
    z-index: 50;
    width: 80vw;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;        /* scroll vertical si ça dépasse */
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* scroll fluide iOS */

}




.video-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}



/* MENU TOP DROIT */
.top-menu {
    position: fixed;
    top: 30px;
    right: 100px;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

/* Bouton principal */
.dropbtn {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 10px 14px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Menu déroulant */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    margin-top: 8px;
    background-color: #d9d9d9;
    min-width: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Liens */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 15px;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

/* Classe active (affiche le menu) */
.dropdown-content.show {
    display: block;
}


/* MOSAÏQUE 12 IMAGES */
.mosaic{
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes */
    grid-template-rows: repeat(3, 1fr);    /* 3 lignes */
    gap: 12px;
    padding: 12px;
    box-sizing: border-box;
}

.mosaic-item{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}


/* Boutons mosaïque (ne pas ajouter de style bouton visible) */
.mosaic-btn{
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* POPUP vidéo dans le video-container */
/*
.video-modal{
  position: absolute;
  inset: 0;                 /* top/right/bottom/left: 0 
  z-index: 200;
  display: none;
  border-radius: 15px;
  overflow: hidden;
  background: rgba(0,0,0,0.75);
}
*/
.video-modal{
  position: absolute;
  top: 3%;
  left: 3%;
  width: 94%;
  height: 94%;
  z-index: 200;
  display: none;
  border-radius: 15px;
  overflow: hidden;
  background: rgba(0,0,0,0.75);
}


/* visible */
.video-modal.show{
  display: block;
}

/* Croix */
.video-close{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 210;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 22px;
  line-height: 40px;
  background: rgba(255,255,255,0.9);
}

/* Zone iframe */
.video-frame{
  position: absolute;
  inset: 0;
  padding: 0;
}

.video-frame iframe{
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive */
@media screen and (orientation: portrait) {

	/* MENU TOP DROIT */
	.top-menu {
		right: 10px;
	}
	
	.dropdown-content {   
		min-width: 350px; 
	}
	
	/* MOSAÏQUE 12 IMAGES */
	.video-container{
	width: 95vw;
	height: 85vh;          /* un peu moins que 100vh */
	}

	.mosaic{
	grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
	gap: 8px;
	padding: 8px;
	}

	/* Optionnel: miniatures un peu moins hautes */
	.mosaic-item{
	border-radius: 12px;
	}

}



