/* SECTION accueil */
.accueil {
    min-height: 100vh;
    padding: 140px 50px 60px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.accueil-section {
    flex: 1;
    max-width: 650px;
}

.acc-titre {
    font-weight: 700;
    font-size: 3.5rem;
    color: var(--noir);
    line-height: 1.1;
    margin-top: 5px;
}

.acc-titre span {color: var(--brun2);}

.acc-details {
    margin-top: 40px;
}

.acc-description {
    font-weight: 400;
    font-size: 1.05rem;
    max-width: 550px;
    line-height: 1.5;
}

.acc-phrase-finale {
    font-weight: 500;
    font-size: 1.1rem;
    margin-top: 10px;
}

.acc-actions {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--ombre-legere);
    transition: all var(--transition-rapide);
    border: none;
}

.btn-icone {
    width: 20px;
    height: 20px;
}

.btn-principal {
    background-color: var(--blanc);
    color: var(--noir);
}

.btn-principal:hover {
    box-shadow: var(--ombre-survol);
    transform: translateY(-2px);
}

.btn-secondaire {
    background-color: var(--brun2);
    color: var(--blanc);
}

.btn-secondaire:hover {
    background-color: var(--brun1);
    box-shadow: var(--ombre-survol);
    transform: translateY(-2px);
}

.acc-media {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.acc-media img {
    width: 100%;
    max-width: 550px;
    height: auto;
}

/* SECTION PROJETS */
.projets {
    padding: 20px 50px 80px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.projets-titre {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    color: var(--noir);
    margin-bottom: 30px;
}

.projets-titre span {
    color: var(--brun2);
}

/* FILTRES */
.projets-filtres {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.filtre-btn {
    padding: 10px 22px;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background-color: transparent;
    color: var(--noir);
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-rapide);
}

.filtre-btn:hover {
    border-color: var(--brun2);
    color: var(--brun2);
}

.filtre-btn.active {
    background-color: var(--brun2);
    color: var(--blanc);
    border-color: var(--brun2);
}

/* GRILLE DE PROJETS */
.projets-grille {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
}

/* CARTE DE PROJET */
.carte-projet {
    background-color: var(--blanc);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--ombre-legere);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-rapide), box-shadow var(--transition-rapide);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.carte-projet:hover {
    transform: translateY(-6px);
    box-shadow: var(--ombre-survol);
}

.carte-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.carte-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.carte-projet:hover .carte-img-wrapper img {
    transform: scale(1.05);
}

.carte-contenu {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.carte-titre {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--noir);
    margin-bottom: 10px;
}

.carte-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.carte-annee {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.carte-separation {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-bottom: 15px;
}

.carte-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    color: #444;
    margin-bottom: 20px;
}

.carte-meta-ligne {
    display: flex;
    align-items: center;
    gap: 8px;
}

.carte-puce {
    width: 6px;
    height: 6px;
    background-color: var(--brun2);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.carte-action {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    color: var(--noir);
    font-size: 0.95rem;
}

.carte-action img {
    width: 16px;
    height: 16px;
}

/* PAGINATION */
.pagination-conteneur {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
}

.page-btn {
    background: transparent;
    border: none;
    font-family: 'Work Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--noir);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all var(--transition-rapide);
}

.page-btn:hover:not(.disabled) {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--brun2);
}

.page-btn.active {
    background-color: var(--brun2);
    color: var(--blanc);
    font-weight: 600;
}

.page-nav {
    font-weight: 600;
    font-size: 1.3rem;
}

.page-btn.disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* SECTION DEMOREEL */
.demoreel {
    padding: 20px 50px 100px 50px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: left;
}

.demoreel-titre {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    color: var(--noir);
    margin-bottom: 20px;
}

.demoreel-titre span {
    color: var(--brun2);
}

.demoreel-intro {
    margin: 0 0 40px 0;
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.demoreel-conteneur {
    max-width: 1100px;
    margin: 0 auto;
}

/* Vidéo agrandie */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    width: 100%; 
    border-radius: 16px;
    box-shadow: var(--ombre-legere);
    background-color: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Bouton filtre mobile masqué par défaut sur PC */
.btn-filtre-mobile {
    display: none;
}

/* ========================================================
   RESPONSIVE : TABLETTE (< 992px)
   ======================================================== */
@media (max-width: 992px) {
    .accueil, .projets, .demoreel {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Accueil : Image au-dessus, texte en dessous */
    .accueil {
        flex-direction: column;
        padding-top: 160px;
        text-align: center;
        gap: 50px;
    }
    .accueil-section {
        order: 2;
        max-width: 100%;
    }
    .acc-media {
        order: 1;
        max-width: 100%;
    }
    .acc-media img {
        max-width: 100%;
        height: 360px;
    }
    .acc-actions {
        justify-content: center;
    }

    /* Grille projets sur tablette : 2 colonnes */
    .projets-grille {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding-top: 20px;
    }
}

/* ========================================================
   RESPONSIVE : TÉLÉPHONE (< 768px)
   ======================================================== */
@media (max-width: 768px) {
    .accueil, .projets, .demoreel {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Accueil : Boutons empilés et pleine largeur */
    .acc-actions {
        flex-direction: column;
        width: 100%;
    }
    .acc-actions .btn {
        width: 100%;
    }

    .acc-media img {
        height: 310px;
    }

    /* Cartes projets optimisées pour ne pas être trop longues */
    .projets-grille {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .carte-img-wrapper {
        height: 180px; /* Réduit la hauteur de l'image */
    }
    .carte-contenu {
        padding: 16px; /* Réduit les marges internes */
    }
    .carte-description {
        margin-bottom: 10px;
        font-size: 0.9rem;
    }
    .carte-meta {
        margin-bottom: 12px;
    }

    /* Transformation des filtres en bouton déroulant "Filtrer" */
    .btn-filtre-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 14px 20px;
        background-color: var(--blanc);
        border: none;
        color: var(--noir);
        border-radius: 12px;
        font-weight: 600;
        font-size: 1.1rem;
        font-family: 'Work Sans', sans-serif;
        cursor: pointer;
        box-shadow: var(--ombre-legere);
        margin-bottom: 20px;
    }

    .btn-filtre-mobile svg {
        width: 25px;
        height: 25px;
        transition: transform 0.3s ease;
    }

    .btn-filtre-mobile.ouvert svg {
        transform: rotate(180deg);
    }
    
    .projets-filtres {
        display: none; /* Masqué par défaut sur mobile */
        flex-direction: column;
        width: 100%;
        gap: 20px;
        margin-bottom: 30px;
        background-color: var(--blanc);
        padding: 15px;
        border-radius: 12px;
        box-shadow: var(--ombre-legere);
    }
    .projets-filtres.ouvert {
        display: flex; /* Affiché lorsque le menu est ouvert */
    }
    .filtre-btn {
        width: 100%;
        text-align: left;
    }
}