/* ==========================================
   SECTION OUR REALIZATIONS / WORKS 
============================================= */
.our-realizations {
    padding: 80px 0;
    background-color: #f8fafc;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color: #f1b813; /* Couleur Jaune Koda */
    margin-bottom: 35px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Boutons de filtrage */
.filter-buttons {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: none;
    background-color: #e2e8f0;
    color: #475569;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background-color: #f1b813;
    color: white;
    box-shadow: 0 4px 12px rgba(241, 184, 19, 0.3);
}

/* Grille Responsive */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 15px;
}

/* Cartes des projets */
.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Conteneur principal du slider */
.project-image-slider {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background-color: #1e293b;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.project-image-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.project-image-slider .slide.active {
    opacity: 1;
    position: relative;
}

/* --- DESIGN OVERLAY (Inspiré de image_880aa4.jpg) --- */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(241, 184, 19, 0.9); /* Fond transparent Jaune Koda */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s ease-in-out;
    z-index: 3;
}

.project-image-slider:hover .project-overlay {
    opacity: 1;
}

/* Icônes de l'overlay */
.overlay-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    transform: translateY(-20px);
    transition: transform 0.4s ease-in-out;
}

.project-image-slider:hover .overlay-icons {
    transform: translateY(0);
}

.overlay-icon {
    width: 46px;
    height: 46px;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 4px; /* Format carré arrondi comme sur image_880aa4.jpg */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.overlay-icon:hover {
    background-color: #fff;
    color: #333;
}

/* Textes de l'overlay */
.overlay-text {
    text-align: center;
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.4s ease-in-out;
}

.project-image-slider:hover .overlay-text {
    transform: translateY(0);
}

.overlay-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 5px 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.overlay-category {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Boutons flèches des sliders */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, opacity 0.3s ease;
    z-index: 4; /* Reste au dessus de l'overlay */
    opacity: 0;
}

.project-card:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: #000;
}

.prev-btn { left: 12px; }
.next-btn { right: 12px; }

/* Masquage dynamique si 1 seule image */
.slider-btn.hidden {
    display: none !important;
}