/* ===================================
   Styles dédiés uniquement au single
   ================================== */

.projet-container {
    width: 85vw;
    max-width: 1200px;
    margin: 5vw auto;
    font-family: "Roboto', sans-serif";
    line-height: 1.6;
}

/* Titre du projet */
.projet-titre {
    text-align: center;
    font-size: 45px;
    font-weight: 700;
    margin-bottom: 3vw;
    color: #4A5568;
}

/* =======
   GRILLE : 
   =======*/

.projet-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3vw;
    margin: 3vw 0;
}

/* COLONNE GAUCHE  */
.projet-images {
    display: flex;
    flex-direction: column;
    gap: 2vw;
}

.projet-image-principale img,
.projet-image-secondaire img {
    width: 100%;
    height: auto;
    border-radius: 1.8vw;
    box-shadow: 0 0.4vw 1vw rgba(0,0,0,0.1);
}

/* COLONNE DROITE : s */
.projet-accordeons {
    display: flex;
    flex-direction: column;
    gap: 2vw;
}

/* ============================================
   ACCORDÉON : Style
   ============================================ */

.accordeon-wrapper {
    background: #d4b896;
    border-radius: 0.5vw;
    overflow: hidden;
}

.accordeon-btn {
    width: 100%;
    background: #C77A66;
    color: #F9F6F2;
    padding: 1.2vw 1.5vw;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordeon-btn:hover {
    background: #d9765d;
}

.accordeon-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.accordeon-icon svg {
    color: #F9F6F2;
    transition: transform 0.3s ease;
}

.accordeon-btn.active .accordeon-icon svg {
    transform: rotate(180deg);
}

/* Contenu de l'accordéon */
.accordeon-contenu {
    max-height: 0;
    overflow: hidden;
    background: #F6C563;
    padding: 0 1.5vw;
    transition: max-height 0.4s ease, padding 0.4s ease;
    font-size: 16px;
    color: #4a4a4a;
}

.accordeon-contenu.open {
    max-height: 500px;
    padding: 2vw 1.5vw;
}

.accordeon-contenu p {
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   BOUTONS CALL-TO-ACTION
   ============================================ */

.projet-cta {
    display: flex;
    flex-direction: row;
    gap: 1.5vw;
    margin-top: 2vw;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8vw;
    padding: 1.2vw 2vw;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 0.3vw 0.8vw rgba(0, 0, 0, 0.066);
    flex: 1;
}

.btn-cta svg {
    width: 1.5vw;
    height: 1.5vw;
    min-width: 20px;
    min-height: 20px;
}

.btn-github {
    background: #C77A66;
}

.btn-github:hover {
    background: #4A5568;
    transform: translateY(-2px);
    box-shadow: 0 0.5vw 1vw #5b64772e;
}

.btn-site {

    background: #C77A66;
}

.btn-site:hover {
    background: #4A5568;
    transform: translateY(-2px);
    box-shadow: 0 0.5vw 1vw #5b64772e;
}

/* ===================
   NAVIGATION FLÈCHES
   =================== */

.projet-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5vw;
    padding-top: 3vw;
  
}

.nav-arrow {
    width: 4vw;
    height: 4vw;
    min-width: 50px;
    min-height: 50px;
    max-width: 70px;
    max-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C77A66;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 50%;
}
#Formulairecontact .wpcf7-submit {
    background-color: #C77A66; 
    color: #FFFFFF; 
    border-radius: 5px;
    padding: 12px 24px;
    cursor: pointer;
    transition: 0.3s ease;
}

#Formulairecontact .wpcf7-submit:hover {
    background-color: #A85D4C; 
}

.nav-arrow:hover {
    color: #C77A66;
    transform: scale(1.1);
}

.nav-arrow svg {
    width: 100%;
    height: 100%;
}

/* =================================
   RESPONSIVE TABLETTE (< 1024px)
   ================================ */

@media (max-width: 1024px) {
    .projet-container {
        width: 90vw;
        margin: 4vw auto;
    }
    
    .projet-titre {
        font-size: 36px;
        margin-bottom: 4vw;
    }
    
    .projet-grid {
        gap: 4vw;
    }
    
    .accordeon-btn {
        font-size: 17px;
        padding: 2vw 2.5vw;
    }
    
    .accordeon-contenu {
        font-size: 15px;
    }
    
    .btn-cta {
        font-size: 15px;
        padding: 2vw 3vw;
    }
}

/* =============================
   RESPONSIVE MOBILE (< 768px)
   ============================== */

@media (max-width: 768px) {
    .projet-container {
        width: 92vw;
        margin: 6vw auto;
    }
    
    .projet-titre {
        font-size: 28px;
        margin-top: 15vw;
     
    }
    
    .projet-grid {
        grid-template-columns: 1fr;
        gap: 5vw;
    }
    
    .projet-images {
        gap: 3vw;
    }
    
    .projet-accordeons {
        gap: 3vw;
    }
    
    .accordeon-btn {
        font-size: 16px;
        padding: 3vw 4vw;
    }
    
    .accordeon-contenu {
        font-size: 14px;
        padding: 0 4vw;
    }
    
    .accordeon-contenu.open {
        padding: 4vw;
    }
    
    /* Boutons CTA en colonne sur mobile */
    .projet-cta {
        flex-direction: column;
        gap: 3vw;
        margin-top: 4vw;
    }
    
    .btn-cta {
        font-size: 16px;
        padding: 4vw 6vw;
        gap: 3vw;
    }
    
    .btn-cta svg {
        width: 6vw;
        height: 6vw;
        min-width: 24px;
        min-height: 24px;
    }
    
    /* Navigation flèches */
    .projet-navigation {
        margin-top: 6vw;
        padding-top: 4vw;
    }
    
    .nav-arrow {
        width: 12vw;
        height: 12vw;
        min-width: 45px;
        min-height: 45px;
    }
}

/* ============================================
   RESPONSIVE PETIT MOBILE (< 480px)
   ============================================ */

@media (max-width: 480px) {
    .projet-container {
        width: 95vw;
        margin: 4vw auto;
    }
    
    .projet-titre {
        font-size: 24px;
        margin-top: 15vw;
    }
    
    .accordeon-btn {
        font-size: 15px;
        padding: 4vw 5vw;
    }
    
    .accordeon-contenu {
        font-size: 13px;
    }
    
    .btn-cta {
        font-size: 15px;
    }
}
