/* user/themes/regard-sur/css/carrousel-realisations.css */
/* Carrousel des réalisations réutilisable */

/* =================================================================
   SECTION PRINCIPALE
================================================================= */

.portfolio-carousel-section {
    padding: 3rem 2rem;
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* =================================================================
   CARROUSEL CONTAINER
================================================================= */

.carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    gap: 2rem;
    padding: 1rem;
    justify-content: center;
    align-items: stretch;
}

/* =================================================================
   CARDS PROJET
================================================================= */

.project-card {
    flex: 1;
	max-width: 600px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1c1c1c 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(238, 121, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 500px;
    opacity: 1; /* Opacité fixée à 1 */
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(238, 121, 0, 0.2);
    border-color: rgba(238, 121, 0, 0.3);
}

/* =================================================================
   IMAGE EN HAUT DE LA CARD - SANS PADDING
================================================================= */

.project-image {
    position: relative;
    width: 100%;
    height: 250px; /* Presque la moitié de la card */
    overflow: hidden;
    flex-shrink: 0;
    margin: 0; /* Pas de marge */
    padding: 0; /* Pas de padding */
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block; /* Pour éviter les espaces sous l'image */
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* Placeholder pour images manquantes */
.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    color: rgba(238, 121, 0, 0.6);
    font-size: 1.1rem;
    margin: 0;
    padding: 0;
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* =================================================================
   CONTENU SOUS L'IMAGE
================================================================= */

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f9f9f9;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.project-subtitle {
    font-size: 0.95rem;
    color: rgba(249, 249, 249, 0.7);
    line-height: 1.4;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* =================================================================
   BADGES SOUS LE SOUS-TITRE
================================================================= */

.project-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.project-badge.category {
    background: rgba(238, 121, 0, 0.2);
    color: #EE7900;
    border: 1px solid rgba(238, 121, 0, 0.3);
}

.project-badge.secteur {
    background: rgba(249, 249, 249, 0.1);
    color: rgba(249, 249, 249, 0.8);
    border: 1px solid rgba(249, 249, 249, 0.2);
}

.project-badge:hover {
    transform: translateY(-1px);
}

/* =================================================================
   LIGNE DE SÉPARATION
================================================================= */

.project-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(238, 121, 0, 0.3) 50%, transparent 100%);
    margin-bottom: 1rem;
}

/* =================================================================
   LIEN "VOIR LE PROJET"
================================================================= */

.project-meta {
    display: flex;
    justify-content: flex-end;
}

.project-link {
    color: #EE7900;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-link:hover {
    color: #f9f9f9;
    transform: translateX(5px);
}

.project-link i {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.project-link:hover i {
    transform: translateX(3px);
}

/* =================================================================
   CONTRÔLES DU CARROUSEL
================================================================= */

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.carousel-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2a2a 0%, #1c1c1c 100%);
    border: 2px solid rgba(238, 121, 0, 0.3);
    color: #EE7900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: #EE7900;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(238, 121, 0, 0.3);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Indicateurs */
.carousel-indicators {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(249, 249, 249, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: #EE7900;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(238, 121, 0, 0.4);
}

.indicator:hover:not(.active) {
    background: rgba(238, 121, 0, 0.5);
    transform: scale(1.1);
}

/* =================================================================
   RESPONSIVE
================================================================= */

@media (max-width: 768px) {
    .portfolio-carousel-section {
        padding: 2rem 1rem;
    }
    
    .carousel-slide {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0.5rem;
    }
    
    .project-card {
        height: 400px;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .carousel-controls {
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .project-card {
        height: 350px;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .project-subtitle {
        font-size: 0.9rem;
    }
}

/* =================================================================
   ANIMATIONS ET TRANSITIONS
================================================================= */

.project-card {
    /* Pas d'animation d'apparition, opacité fixée à 1 */
    opacity: 1;
}

/* Effet de survol sur la card entière */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(238, 121, 0, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 1;
}