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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

p {
    font-size: 1.5rem;
}

.copyright-text {
    font-size: 0.8rem;
}

/* Section Info Projet */
.project-info {
    padding: 60px 20px;
    text-align: center;
}

.project-info h2 {
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #333;
}

.info-blocks {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-block {
    flex: 1;
    padding: 30px;
    background-color: #f5f5f5;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.info-block:hover {
    transform: translateY(-5px);
}

.info-block i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 20px;
}

.info-block h3 {
    margin: 15px 0;
    font-size: 1.2rem;
    color: #333;
}

.info-block p {
    color: #666;
}

/* Section Détails Projet */
.project-details {
    display: flex;
    gap: 40px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.details-text {
    flex: 1;
}

.details-text h2 {
    margin-bottom: 30px;
    font-size: 2rem;
    color: #333;
}

.details-text p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #666;
    text-align: justify;
}

.details-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    flex: 1;
    position: relative;
    min-width: 0;
}

/* Slider styles */
.details-image {
    flex: 1;
    position: relative;
    min-width: 0; /* Important pour le responsive */
}

.slider-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slider-images {
    display: flex;
    position: relative;
    height: 100%;
    transition: transform 0.5s ease;
}

.slider-img {
    min-width: 100%; /* Important: utilisation de min-width au lieu de width */
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: all 0.3s ease; /* Transition pour l'opacité */
    opacity: 0; /* Masqué par défaut */
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Apparition au survol du conteneur */
.details-image:hover .slider-btn {
    opacity: 1;
}

/* Effet hover sur les boutons */
.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Responsive */
@media screen and (max-width: 1200px) {
    .details-image {
        height: 350px;
    }
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .info-blocks {
        flex-wrap: wrap;
        gap: 20px;
    }

    .info-block {
        flex-basis: calc(50% - 20px);
        min-width: 250px;
    }

    .project-details {
        flex-direction: column;
        gap: 30px;
    }

    .details-text {
        width: 100%;
    }

    .slider-container {
        height: 350px;
    }

    .details-image {
        width: 100%;
        height: 350px;
        margin: 0 auto;
    }

    .slider-container {
        height: 350px;
    }
}

.slider-images {
    width: 300%; /* Pour 3 images */
}

.slider-img {
    width: calc(100% / 3); /* Pour 3 images */
}

.slider-btn {
    padding: 12px 16px;
    font-size: 16px;
}

@media screen and (max-width: 768px) {
    .project-info h2 {
        font-size: 2rem;
    }

    .info-blocks {
        flex-direction: column;
    }

    .info-block {
        width: 100%;
    }

    .details-text h2 {
        font-size: 1.8rem;
    }

    .project-details {
        padding: 30px 15px;
    }

    .slider-container {
        height: 300px;
    }

    .slider-btn {
        opacity: 1; /* Toujours visible sur mobile */
    }
}

@media screen and (max-width: 480px) {
    .project-info {
        padding: 40px 15px;
    }

    .project-info h2 {
        font-size: 1.8rem;
    }

    .info-block {
        padding: 20px;
    }

    .project-details {
        padding: 20px 10px;
    }

    .details-image {
        height: 250px;
    }

    .slider-container {
        height: 250px;
    }

    .slider-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}