/* ========================================
   SECTION PROJETS - PORTFOLIO
   ======================================== */

.projects-container {
    min-height: 100vh;
    padding: var(--spacing-3xl) 0;
    overflow: hidden;
}

.project {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl) var(--spacing-4xl);
    opacity: var(--opacity-0);
    transition: var(--transition-opacity);
}

.project.visible {
    opacity: var(--opacity-100);
}

.project-content {
    display: flex;
    gap: var(--spacing-3xl);
    align-items: center;
    max-width: 1400px;
    width: 100%;
    cursor: pointer;
    transition: var(--transition-transform);
    align-items: stretch;
}

.project-content:hover {
    transform: translateY(-5px);
}

.project-image-wrapper {
    flex-shrink: 0;
    perspective: 1000px;
}

.project-image {
    width: 400px;
    height: 400px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    transform: rotate(30deg) scaleX(0.5);
    opacity: var(--opacity-0);
    transition: all 1s var(--ease-in-out);
}

.project.visible .project-image {
    transform: rotate(0deg) scaleX(1);
    opacity: var(--opacity-100);
}

.project-info {
    flex: 1;
    text-align: left;
    position: relative;
}

.project-title {
    font-size: var(--font-size-xl);
    /* font-weight: var(--font-weight-bold); */
    margin-bottom: var(--spacing-)md;
    font-style: italic;
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    opacity: var(--opacity-0);
    transform: translateY(-15px);
    transition: all 0.6s ease 0.3s;
}

.project.visible .project-title {
    opacity: var(--opacity-100);
    transform: translateY(0);
}

.project-description {
    position: relative;
    line-height: var(--line-height-tight);
    font-size: var(--font-size-5xl);
    color: var(--color-text-secondary);
    max-width: 700px;
    /* text-transform: uppercase; */
    font-weight: var(--font-weight-medium);
    opacity: var(--opacity-0);
    transform: translateY(20px);
    transition: all 0.7s ease 0.5s;
}

.project.visible .project-description {
    opacity: var(--opacity-100);
    transform: translateY(0);
}

.floating-image {
    position: absolute;
    /* background-color: var(--color-text-secondary); */
    filter:  saturate(2476%) brightness(118%) contrast(119%);
    width: 60px;
    height: 60px;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.8s ease;
    object-fit: contain;
}

.project.visible .floating-image {
    opacity: var(--opacity-70);
}

/* Positions variées pour les images flottantes */
.floating-image:nth-child(1) { 
    top: -0px; 
    left: 30px; 
    z-index: -10;
}

.floating-image:nth-child(2) { 
    top: -50px; 
    right: 100px; 
}

.floating-image:nth-child(3) { 
    bottom: -40px; 
    left: 80px; 
}

.floating-image:nth-child(4) { 
    bottom: -50px; 
    right: 60px; 
}

.floating-image:nth-child(5) { 
    top: 40px; 
    left: -60px; 
}

.floating-image:nth-child(6) { 
    bottom: 50px; 
    right: -50px; 
}

/* Animation de flottement */
@keyframes gentleFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(3px, -4px) rotate(3deg);
    }
    50% {
        transform: translate(-2px, -6px) rotate(-2deg);
    }
    75% {
        transform: translate(2px, -3px) rotate(2deg);
    }
}