/* Visualisateur de document */
#visualisateurDocumentDiapo
{
	width: 100%;
}
#visualisateurDocumentDiapo .footerIcons a:hover
{
	text-decoration: none;
}
#visualisateurDocumentDiapo div.deletedMask
{
  text-align: center;
  font-size: 55px;

	background-color: grey;
  position: absolute;

  border-radius: 10px;

  width: 100%;
  height: 100%;

	display: none;

	/* Opacity */
	opacity: 0.5;
	filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
}

/*
#IE #visualisateurDocumentDiapo ul li div.deletedMask
{
    width: 614px;
	padding-top: 150px;
	padding-bottom: 192px;
}
*/

#visualisateurDocumentDiapo .noDocs
{
	width: 100%;
	padding: 200px 0 195px 0;
	text-align: center;
}
#IE #visualisateurDocumentDiapo .noDocs
{
	padding: 200px 0 192px 0;
}
#visualisateurDocumentDiapo ul li .imgContainer
{
	height: 350px;
	width: 100%;
}
#visualisateurDocumentDiapo ul li img
{
	max-width: 590px;
	max-height: 345px;
}
/*
#IE #visualisateurDocumentDiapo ul li img
{
	width: expression(this.width > 590 ? "590px" : true);
	height: expression(this.height > 345 ? "345px" : true);
}
*/
#visualisateurDocumentDiapo ul li textarea
{
	width: 99%;
}

/* Version 2 en HTML 5 */
.visuDiapo
{
	width: 160px;
	padding-left: 2px;
	padding-right: 1px;
}
.diapo
{
	/*background-color:#FF0000;*/
	height: 120px;
}
.miniature
{
	max-width:  153px;
	max-height: 115px;
}
.hide
{
	display: none;
}

/* ---------------------------------------------------------------------------------*/
/* CSS pour le fonctionne du visualisateur de documents miniatures */

#documentContainer
{
    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;

    width: 100%;
    height: 100%;
}

#imageContainer
{
	position: absolute;
    z-index: 1;
}

#envoieDocument
{
	width: 100%;
	height: 100%;
	position: absolute;
    z-index: 5;
}

#dropZone
{
    border: 1px solid blue;
    width: 100%;
    height: 100%;

    position: absolute;
    z-index: 10;

    /* On le rend transparent */
    opacity: 0;
}

#progressContainer
{
    height: 5px;
    width: 100px;

  	position:absolute;
    
		display:none;
    flex-direction: column;
		justify-content:center; 
		align-items:center;

		background-color: white; 
		border:1px solid lightgrey;
		border-radius:10px; 
    z-index:-10;

    /* Pour la vraie barre de progression */
    /*overflow: visible;*/
    /*text-align: center;*/
    /*font-size: 10px;*/
}

#imageChargement
{
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* ---------------------------------------------------------------------------------*/
/* CSS du carroussel */

/* 1. Conteneur global centré */
.carousel-container 
{
  position: relative;           /* pour ancrer les .slide en absolute */
  width: 95%;
  max-width: 800px;
  overflow: hidden;             /* masque les éléments hors de la zone visible */
  
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 2. Boutons Précédent / Suivant */
.carousel-btn 
{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 2rem;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s ease;
}
#prevBtn { left: 10px; }
#nextBtn { right: 10px; }
.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
}

/* 3. Conteneur des slides superposés */
.carousel 
{
  position: relative;
  width: 100%;
  height: 400px;                /* Hauteur fixe, ajustable en fonction de vos images */

  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;

  border: 1px solid lightgrey;
  border-radius: 10px;
}

/* 4. Style commun à chaque slide */
.slide 
{
  /*margin-top: 12px;*/
  position: absolute;           /* superposition de toutes les slides */
  width: 90%;
  height: 90%;
  transition: transform 0.5s ease, opacity 0.5s ease; /* animation fluide */
  opacity: 0;                   /* invisible par défaut */
  transform: scale(0.6);        /* taille réduite par défaut */
  pointer-events: none;         /* aucun clic si la slide n'est pas “visible” */

  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 5. Images responsive */
.slide #imageContainer img 
{
  display: block;
  max-width: 100%;
  max-height: 100%;
  /*
  width: 100%;
  height: 100%;
  */
  object-fit: cover;            /* conserve le ratio sans déformation */
  border-radius: 8px;           /* coins légèrement arrondis */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 6. État de la slide actuelle (centrale) */
.slide.current 
{
  opacity: 1;                   /* pleinement visible */
  transform: scale(1);          /* taille normale */
  z-index: 3;                   /* au-dessus des autres slides */
  pointer-events: all;          /* cliquable si vous souhaitez détecter un clic sur l'image */
}

/* 7. État de la slide précédente (gauche) */
.slide.prev 
{
  opacity: 0.5;                                 /* semi-transparente */
  transform: scale(0.7) translateX(-110%);      /* plus petite, décalée à gauche */
  z-index: 2;                                   /* sous .current */
  pointer-events: all;                          /* cliquable si besoin */
}

/* 8. État de la slide suivante (droite) */
.slide.next 
{
  opacity: 0.5;                                 /* semi-transparente */
  transform: scale(0.7) translateX(110%);       /* plus petite, décalée à droite */
  z-index: 2;                                   /* sous .current */
  pointer-events: all;                          /* cliquable si besoin */
}


/* ---------------------------------------------------------------------------------*/
/* Gestion du css du masque permettant d'empêcher l'ajout / sauvegarde de documents durant l'édition d'une fiche */
#masqueDropZone {
	height: 100%;
	width: 100%;
	position: absolute;
}
#masqueDropZone.stateHide {
	display: none;
}
#masqueDropZone.stateShow {
	display: flex;
	justify-content: center;
	align-items: center;
    background:
      linear-gradient(135deg,
        rgba(255,255,255,0.65) 0%,
        rgba(255,255,255,0.25) 15%,
        rgba(117,115,117,0.0) 40%,
        rgba(0,0,0,0.35) 70%,
        rgba(0,0,0,0.65) 100%
      ),
    #757375;
	z-index: 30;
	opacity: 0.50;
}
#libelleMasque {
	color: white;
	text-align: center;
	font-size: 18px;
}


