/* styles_index.css */
body {
    font-family: 'Roboto', sans-serif;
    background: #FFFFFF;
    color: #333;
}

/* Carrousel */
.custom-carousel {
    margin-top: 62px;
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.7s ease-in-out;
}
.carousel-slide.active {
    opacity: 1;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(31, 40, 107, 0.9);
    color: #FFFFFF;
    padding: 15px 25px;
    border-left: 5px solid #FFFFFF;
    max-width: 400px;
    text-align: left;
    z-index: 10;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.5s ease-out forwards;
}
.carousel-text strong {
    display: block;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}
.carousel-text span {
    font-size: 16px;
    font-weight: 400;
}
@keyframes slideIn {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Sections générales */
section {
    padding: 60px 0;
}

/* Affiche et Décompte */
.countdown-section {
    background: #F9F9F9;
}
.poster-img {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
}
.countdown-container {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.countdown {
    font-size: 24px;
    color: #1F286B;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}
.countdown span {
    display: inline-block;
    min-width: 40px;
    text-align: center;
}
.countdown-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.btn-primary {
    background: #1F286B;
    border: none;
    padding: 12px 30px;
    color: #FFFFFF;
    font-weight: 700;
    border-radius: 5px;
    transition: background 0.3s ease;
}
.btn-primary:hover {
    background: #2A3A9C;
    color: #FFFFFF;
}
.btn-outline-primary {
    border: 2px solid #1F286B;
    color: #1F286B;
    padding: 10px 28px;
    font-weight: 700;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}
.btn-outline-primary:hover {
    background: #1F286B;
    color: #FFFFFF;
}

/* Matrice Photos et Chiffres */
.matrix-section {
    background: #FFFFFF;
}
.matrix-section h2 {
    font-size: 40px;
    font-weight: 700;
    color: #1F286B;
    text-align: center;
    margin-bottom: 40px;
}
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.matrix-item.photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.matrix-item.photo:hover img {
    transform: scale(1.05);
}
.matrix-item.stat {
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-box {
    width: 150px;
    height: 100px;
    background: #F5F5F5;
    border: 2px solid #D3D3D3;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    padding: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.stat-box:hover {
    transform: scale(1.05);
}
.matrix-section .festival-date {
    font-family: 'Caveat', cursive;
    font-size: 32px;
    font-weight: 700;
    color: #1F286B;
    margin-top: 40px;
}

/* Partenaires */
.partners-section {
    background: #FFFFFF;
}
.partners-section h2 {
    font-size: 40px;
    font-weight: 700;
    color: #1F286B;
    text-align: center;
    margin-bottom: 40px;
}
.partners-subsidized, .partners-supported {
    margin-bottom: 30px;
}
.partners-subsidized h3, .partners-supported h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1F286B;
    text-align: center;
    margin-bottom: 20px;
}
.partners-cloud {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}
.partner-item img {
    width: 100px;
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}
.partner-item:hover img {
    filter: grayscale(0%);
}

/* Responsive */
@media (max-width: 991px) {
    .custom-carousel {
        height: 300px;
    }
    .carousel-text {
        bottom: 10px;
        left: 10px;
        padding: 10px 15px;
        max-width: 250px;
    }
    .carousel-text strong {
        font-size: 18px;
    }
    .carousel-text span {
        font-size: 14px;
    }
    .poster-img,
    .countdown-container {
        height: 350px;
        margin-bottom: 20px;
    }
    .countdown {
        font-size: 18px;
    }
    .matrix-section h2,
    .partners-section h2 {
        font-size: 32px;
    }
    .matrix-item.photo img {
        height: 150px;
    }
    .stat-box {
        width: 120px;
        height: 80px;
        font-size: 18px;
    }
    .matrix-section .festival-date {
        font-size: 24px;
    }
    .partner-item img {
        width: 80px;
        height: 50px;
    }
}