/* Styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    overflow: hidden;
    background-color: #f0f0f0;
    font-weight: 400;
}

/* Conteneur principal des slides */
.slider-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Conteneur des slides avec animation */
.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1s ease-in-out;
}

/* Style individuel pour chaque slide */
.slide {
    flex: 0 0 100%;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background-color: white;
    overflow-y: auto;
}

/* Logo ESM OCVS */
.logo-esm {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 178px;
    height: auto;
    z-index: 10;
}

/* Cadre pour améliorer la lisibilité */
.content-frame {
    background-color: rgba(240, 240, 240, 0.85);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 90%;
    backdrop-filter: blur(5px);
}

/* Barre de progression */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    background-color: #FF0000; /* Rouge valaisan */
    width: 0%;
    z-index: 1000;
    transition: width 0.3s ease;
}

/* Styles typographiques */
h1 {
    font-size: 2.5rem;
    color: #FF0000; /* Rouge valaisan */
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #FF0000; /* Rouge valaisan */
    font-weight: 600;
}

p, ul {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 800px;
}

li {
    text-align: left;
    margin-left: 2rem;
    margin-bottom: 0.5rem;
}

strong {
    color: #FF0000;
    font-weight: 600;
}

/* Indicateurs de slide */
.slide-indicators {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid #FF0000;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: #FF0000;
}

/* Navigation */
.nav-button {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

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

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* Styles spécifiques pour chaque slide */
.title-slide {
    background: linear-gradient(to bottom, #FFFFFF, #FF0000);
    color: white;
}

.title-slide h1, .title-slide h2, .title-slide h3 {
    color: #FF0000;
}

.valais-colors {
    background: linear-gradient(to bottom, #FFFFFF, #FF0000);
}

.valais-colors .content-frame h2,
.valais-colors .content-frame h3,
.valais-colors .content-frame p,
.valais-colors .content-frame li,
.valais-colors .content-frame strong {
    color: #333;
}

/* Icônes */
.icon-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Images placeholder */
.placeholder-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.img-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.img-half {
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    p, ul {
        font-size: 1rem;
    }
    
    .icon-list {
        gap: 1rem;
    }
    
    .icon-item {
        width: 120px;
    }
    
    .content-frame {
        padding: 1.5rem;
        max-width: 95%;
    }
    
    .logo-esm {
        width: 80px;
        top: 15px;
        right: 15px;
    }
    
    .img-container {
        flex-direction: column;
    }
    
    .img-half {
        max-width: 100%;
    }
}