:root {
  --police-principale: 'Luciole';
}

@font-face {
  font-family: "Luciole";
  src: url("fonts/luciole/Luciole-Regular.woff2") format("woff2"),
       url("fonts/luciole/Luciole-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--police-principale);
    background-color: #2c2c2c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

ul {
    text-indent: 5px;
}

.bloc-diaporama {
    display: flex;
    width: 100%
}

.diaporama-sommaire {
    width: 20%;
    color: white;
    padding-right: 2%;
    line-height: 1.5;
        font-size: clamp(10px, 2vmin, 18px);
}

.diaporama-sommaire ul {
    padding-left: 5%;
}

/* .diaporama-sommaire li {
    cursor: pointer;
} */

.diaporama-sommaire span:hover {
    background-color: white;
    color: black;
    cursor: pointer;
    padding: 5px;
}

.diaporama-sommaire li:hover li {
    background-color: transparent;
    color: inherit;
}

p.titre-sommaire {
    margin-bottom: 10px;;
    text-align: center;
}

.diaporama-container {
    width: 80%;
    max-width: 1100px;
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.diaporama-wrapper {
    position: relative;
    width: 100%;
    max-width: 1050px;
    padding-top: 56.25%; /* Ratio 16:9 */
    overflow: hidden;
    /* background-color: #000; */
}

.diapo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: none;
}

.diapo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.diapo.active {
    opacity: 1;
    z-index: 1;
}

.diapo.entering {
    z-index: 2;
}

/* Transitions par glissement */
.slide-left {
    transform: translateX(100%);
}

.slide-right {
    transform: translateX(-100%);
}

.slide-up {
    transform: translateY(100%);
}

.slide-down {
    transform: translateY(-100%);
}

.diapo-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    z-index: 5;
    font-size: 1.4vmax;
}

.commentaire {
    height: 120px;
    width: 95%;
    overflow: hidden;
    padding: 20px;
    color: #ffffff;
    /* font-size: 16px; */
    /* font-size: clamp(12px, 3vmin, 26px); */
    line-height: 1.6;
    text-align: center;
    /* min-height: 60px; */
    background-color: #1a1a1a;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
}

button {
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    transition: background-color 0.3s, transform 0.1s;
    font-weight: bold;
}

button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

button.pause {
    background-color: #ff9800;
}

button.pause:hover {
    background-color: #e68900;
}

button.nav {
    background-color: #2196F3;
}

button.nav:hover {
    background-color: #0b7dda;
}

.progress-bar {
    width: 95%;
    height: 4px;
    background-color: #333;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #4CAF50;
    width: 0%;
    transition: width linear;
}
