/* ======= SECTION PORTFOLIO ======= */
.portfolio {
    padding: 4rem 2rem;
    background-color: #f9f4ef;
}

.portfolio h2 {
    font-size: 3rem;
    color: #2e2e2e;
    margin-bottom: 3rem;
    position: relative;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.portfolio h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #a4907c;
    border-radius: 2px;
}

.portfolio h2.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======= CARTES PROJETS ======= */
.projects {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.project-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-wrap: wrap;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.project-card:nth-child(even) {
    flex-direction: row-reverse;
}

.project-card iframe,
.project-card img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
}

.project-card > div {
    flex: 1 1 400px;
}

.project-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #a4907c;
    font-weight: bold;
}

.project-card p {
    color: #2e2e2e;
    font-size: 1rem;
    line-height: 1.6;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
    .project-card {
        flex-direction: column !important;
        text-align: center;
    }

    .project-card iframe,
    .project-card img {
        max-width: 100%;
    }
}

/* ======= CAROUSEL ======= */
.carousel {
    position: relative;
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    border-radius: 12px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-image {
    display: none;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

.carousel-image.active {
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 2rem;
    padding: 0.2rem 0.8rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    color: #2e2e2e;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background-color: rgba(164, 144, 124, 0.8);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}
.project-video {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}







