/* === Base de la page portfolio === */
.portfolio-page {
    padding: 6rem 2rem;
    background-color: #0f0f0f;
    color: #ffffff;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.portfolio-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #ffcc00;
}

/* === Filtres === */
.portfolio-filters {
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    color: #fff;
    border: 1px solid #ffcc00;
    padding: 0.6rem 1.2rem;
    margin: 0 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #ffcc00;
    color: #0f0f0f;
}

/* === Grille de projets === */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: left;
}

/* === Carte projet === */
.portfolio-item {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
}

.portfolio-item img,
.portfolio-item video {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* === Texte carte === */
.portfolio-item h3 {
    font-size: 1.4rem;
    color: #ffcc00;
    margin-bottom: 0.5rem;
}

.portfolio-item p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.5;
}

/* === Responsive === */
@media (max-width: 768px) {
    .portfolio-title {
        font-size: 2rem;
    }

    .filter-btn {
        margin: 0.4rem 0.3rem;
        padding: 0.5rem 1rem;
    }
}
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 2rem;
    overflow-y: auto;
}

.hidden {
    display: none;
}

.modal-content {
    background: #1a1a1a;
    display: flex;
    gap: 2rem;
    padding: 2rem;
    border-radius: 12px;
    max-width: 1000px;
    width: 100%;
    position: relative;
    flex-wrap: wrap;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

.modal-left {
    flex: 1;
    max-width: 480px;
}

.modal-left img,
.modal-left video {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.modal-right {
    flex: 1;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-right h2 {
    font-size: 1.8rem;
    color: #ffcc00;
    margin-bottom: 1rem;
}

.modal-right p {
    font-size: 1.05rem;
    color: #ccc;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
    }
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.portfolio-highlight {
    grid-column: 1 / -1; /* Étend la div sur toute la largeur de la grille */
    background-color: #1c1c1c;
    border-radius: 10px;
    padding: 2.5rem;
    margin: 0 auto 2rem auto;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 79, 79, 0.15);
    width: 100%;
    max-width: 100%;
}

.portfolio-highlight h2 {
    font-size: 2rem;
    color: #ffcc00;
    margin-bottom: 1rem;
}

.portfolio-highlight p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* === Bouton "Visiter le site" (DA moderne, jaune/noir) === */
.view-project-btn {
    display: inline-block;
    background: #ffcc00; /* jaune DA */
    color: #000;
    font-weight: 700;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.25s ease;
    box-shadow: 0 0 0px rgba(255, 204, 0, 0.5);
    margin-top: 1rem;
}

.view-project-btn:hover {
    background: #ffe066;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.6);
    color: #000;
}

.view-project-btn:active {
    transform: translateY(0px);
    box-shadow: 0 0 5px rgba(255, 204, 0, 0.4);
}





