@charset "utf-8";
/* CSS Document */

body{
  margin:0;
  font-family:Arial;
  background:linear-gradient(95deg,#1d4ba3 0%, #0b1220 100%);
  color:white;
}

.app{
  max-width:1100px;
  margin:10px auto;
  padding:20px;
}
.home-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#06b6d4;
  color:yellow;
  text-decoration:none;
  padding:5px 10px;
  border-radius:50px;
  font-size:14px;
  margin-bottom:15px;
  transition:all 0.3s ease;
  font-weight:600;
}

header{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.controls button{
  margin-left:5px;
  padding:8px 10px;
  border:none;
  border-radius:6px;
  cursor:pointer;
}

.layout{
  display:flex;
  gap:10px;
  margin-top:1px;
  align-items:flex-start;   /* <-- AJOUT IMPORTANT */
}



.side-gallery{
  width:100px;          /* plus étroit */
  display:flex;
  flex-direction:column;
  gap:5px;
  background: transparent;
}

.side-gallery img{
  width:100%;
  height:50px;          /* plus petite vignette */
  object-fit:cover;
  border-radius:6px;
}

/* Supprimer le fond blanc des vignettes verticales */
.side-gallery button{
  background: transparent !important;
  border: none;
  box-shadow: none;
}

.side-gallery{
  background: transparent !important;
}

/* Animation douce */
.side-gallery button{
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius:8px;
}

/* Effet au survol */
.side-gallery button:hover{
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 18px rgba(0,0,0,0.35);
}
/* diaporama */
.diapo-container{
  flex:1;
  min-width:0;   /* <-- TRÈS IMPORTANT */
}
/* Texte des vignettes verticales en blanc */
.side-gallery button span{
  color: #ffffff;
}

.viewer{
  height:520px;
  background:#000;
  border-radius:2px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
    
}
.viewer{
  width:100%;
  overflow:hidden;
}


.slide{
  display:none;
}

.slide.active{
  display:flex;
  align-items:center;
  justify-content:center;
}


.viewer img{
  max-width:100%;
  max-height:100%;
}

.caption{
  position:absolute;
  bottom:20px;
  left:20px;
  background:rgba(0,0,0,0.6);
  padding:8px 12px;
  border-radius:8px;
}

/* miniatures bas */
.thumbnails{
  margin-top:15px;
  display:flex;
  gap:8px;
  overflow-x:auto;
}

.thumb{
  border:none;
  padding:0;
  cursor:pointer;
  opacity:0.6;
}

.thumb.active{
  opacity:1;
  border:2px solid #06b6d4;
}

.thumb img{
  width:80px;
  height:40px;
  object-fit:cover;
  border-radius:6px;
}

/* progress bar */
.progress{
  height:6px;
  background:rgba(255,255,255,0.2);
  border-radius:6px;
  margin-top:10px;
  overflow:hidden;
}

.progress i{
  display:block;
  height:100%;
  width:0%;
  background:linear-gradient(90deg,#06b6d4,#7c3aed);
}
.side-link{
  display:block;
  background:#0b1220;
  border:1px solid rgba(255,255,255,0.1);
  border-radius:10px;
  padding:8px;
  text-align:center;
  color:white;
  text-decoration:none;
}

.side-link img{
  width:100%;
  height:110px;
  object-fit:cover;
  border-radius:6px;
}

.side-link:hover{
  border-color:#06b6d4;
}
