/* projet.css - Styles pour la page détaillée d'un projet */

.projet {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 3rem 0;
    font-family: 'Montserrat', sans-serif;
}

.projet__pdf-link {
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.projet__pdf-all {
    background-color: #3e6bba;
    color: white;
}

.projet__video-link {
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.projet__video-all {
    background-color: #3e6bba;
    color: white;
}

/* Header du projet */
.projet__header {
    margin-bottom: 2.5rem;
}

.projet__breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #777;
}

.projet__breadcrumb a {
    color: #1a67a3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.projet__breadcrumb a:hover {
    color: #0a4c81;
    text-decoration: underline;
}

.projet__title {
    color: #0a4c81;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.projet__meta {
    color: #777;
    font-size: 0.95rem;
}

.projet__date {
    font-style: italic;
}

/* Contenu du projet */
.projet__image-container {
    margin-bottom: 2.5rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 76, 129, 0.15);
}

.projet__image {
    width: 100%;
    height: auto;
    display: block;
}

.projet__section-title {
    color: #1a67a3;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.projet__description,
.projet__methodologie,
.projet__resultats {
    margin-bottom: 2rem;
    line-height: 1.7;
    color: #444;
}

.projet__list {
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.projet__list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0.5rem;
    line-height: 1.6;
}

.projet__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.projet__tag {
    background-color: #e9f2fa;
    color: #1a67a3;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Galerie d'images */
.projet__galerie {
    margin-bottom: 2.5rem;
}

.projet__galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.projet__galerie-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(10, 76, 129, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.projet__galerie-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(10, 76, 129, 0.25);
}

.projet__galerie-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.projet__galerie-item:hover .projet__galerie-image {
    transform: scale(1.05);
}

/* Modal pour les images */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 100%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close:hover {
    color: #1a67a3;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Navigation entre projets */
.projet__navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.projet__nav-button {
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.projet__nav-prev, .projet__nav-next {
    background-color: #f5f5f5;
    color: #555;
}

.projet__nav-all {
    background-color: #3e6bba;
    color: white;
}

.projet__nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.projet__nav-prev:hover, .projet__nav-next:hover {
    background-color: #e0e0e0;
}

.projet__nav-all:hover {
    background-color: #090844;
}

/* Message d'erreur */
.projet__error {
    text-align: center;
    padding: 3rem 0;
}

.projet__error h2 {
    color: #e74c3c;
    margin-bottom: 1rem;
}

.projet__back-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.7rem 1.4rem;
    background-color: #3e6bba;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.projet__back-button:hover {
    background-color: #090844;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Media queries pour responsive */
@media (max-width: 768px) {
    .projet__title {
        font-size: 1.8rem;
    }

    .projet__section-title {
        font-size: 1.3rem;
    }

    .projet__galerie-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

    .projet__galerie-image {
        height: 200px;
    }

    .projet__navigation {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .projet__nav-button {
        flex: 1;
        text-align: center;
        min-width: 120px;
    }

    .projet__nav-all {
        order: -1;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .close {
        font-size: 30px;
        top: 15px;
        right: 25px;
    }
}

@media (max-width: 480px) {
    .projet {
        padding: 2rem 0;
    }

    .projet__title {
        font-size: 1.5rem;
    }

    .projet__galerie-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .projet__galerie-image {
        height: 180px;
    }

    .projet__navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .projet__nav-button {
        width: 100%;
    }

    .modal-content {
        padding: 10px;
    }

    .close {
        font-size: 25px;
        top: 10px;
        right: 20px;
    }
}