/* ========================================
   FRONTEND CSS - CHEF COSTE BANDEAU LUXE
   Affiche toujours 4 photos, navigation si plus
   ======================================== */

/* Wrapper principal */
.chef-coste-bandeau-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Container du carrousel de grilles */
.chef-coste-bandeau-grid-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Chaque groupe de 4 photos */
.chef-coste-grid-group {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}

.chef-coste-grid-group.active {
    opacity: 1;
    z-index: 1;
    pointer-events: all;
}

/* Items individuels dans la grille */
.chef-coste-grid-item {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.chef-coste-grid-item:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
    z-index: 2;
}

/* Overlay sur les items */
.chef-coste-grid-item .chef-coste-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.05) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.chef-coste-grid-item:hover .chef-coste-overlay {
    opacity: 0.5;
}

/* Navigation - Boutons élégants */
.chef-coste-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.chef-coste-nav button {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.chef-coste-nav button:hover {
    background: rgba(201, 169, 97, 0.95);
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(201, 169, 97, 0.4);
}

.chef-coste-nav button .dashicons {
    width: 30px;
    height: 30px;
    font-size: 30px;
    color: #2c3e50;
}

.chef-coste-nav button:hover .dashicons {
    color: #fff;
}

/* Indicateurs élégants */
.chef-coste-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 50px;
}

.chef-coste-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.chef-coste-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.chef-coste-indicator.active {
    background: #c9a961;
    border-color: #c9a961;
    width: 30px;
    border-radius: 10px;
}

/* Responsive pour la grille */
@media (max-width: 1024px) {
    .chef-coste-grid-group {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .chef-coste-nav button {
        width: 45px;
        height: 45px;
    }
    
    .chef-coste-nav button .dashicons {
        width: 24px;
        height: 24px;
        font-size: 24px;
    }
    
    .chef-coste-indicators {
        bottom: 20px;
        padding: 10px 20px;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .chef-coste-grid-group {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }
    
    .chef-coste-nav button {
        width: 40px;
        height: 40px;
    }
    
    .chef-coste-nav button .dashicons {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }
}

/* Message si aucune image */
.chef-coste-bandeau-empty {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 18px;
    font-weight: 600;
}

/* ANCIEN CARROUSEL - Conservé pour compatibilité mais non utilisé */
.chef-coste-bandeau-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Slides */
.chef-coste-bandeau-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.chef-coste-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    transform: scale(1.05);
}

.chef-coste-slide.active {
    opacity: 1;
    z-index: 1;
    transform: scale(1);
}

/* Overlay subtil pour améliorer le contraste */
.chef-coste-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.05) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
}

/* Animation Fade */
[data-animation="fade"] .chef-coste-slide {
    transition: opacity 1.5s ease-in-out;
    transform: scale(1);
}

/* Animation Slide */
[data-animation="slide"] .chef-coste-slide {
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

[data-animation="slide"] .chef-coste-slide.slide-out-left {
    transform: translateX(-100%);
}

[data-animation="slide"] .chef-coste-slide.slide-in-right {
    transform: translateX(100%);
}

/* Animation Zoom - Effet subtil et élégant */
[data-animation="zoom"] .chef-coste-slide {
    transition: opacity 1.5s ease-in-out, transform 12s ease-out;
}

[data-animation="zoom"] .chef-coste-slide.active {
    transform: scale(1.03);
}

/* Navigation - Boutons élégants */
.chef-coste-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.chef-coste-nav button {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.chef-coste-nav button:hover {
    background: rgba(201, 169, 97, 0.95);
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(201, 169, 97, 0.4);
}

.chef-coste-nav button .dashicons {
    width: 30px;
    height: 30px;
    font-size: 30px;
    color: #2c3e50;
}

.chef-coste-nav button:hover .dashicons {
    color: #fff;
}

/* Indicateurs élégants */
.chef-coste-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 50px;
}

.chef-coste-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.chef-coste-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.chef-coste-indicator.active {
    background: #c9a961;
    border-color: #c9a961;
    width: 30px;
    border-radius: 10px;
}

/* Message si aucune image */
.chef-coste-bandeau-empty {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 18px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chef-coste-nav {
        padding: 0 10px;
    }
    
    .chef-coste-nav button {
        width: 45px;
        height: 45px;
    }
    
    .chef-coste-nav button .dashicons {
        width: 24px;
        height: 24px;
        font-size: 24px;
    }
    
    .chef-coste-indicators {
        bottom: 20px;
        padding: 10px 20px;
        gap: 8px;
    }
    
    .chef-coste-indicator {
        width: 10px;
        height: 10px;
    }
    
    .chef-coste-indicator.active {
        width: 25px;
    }
}

@media (max-width: 480px) {
    .chef-coste-nav button {
        width: 40px;
        height: 40px;
    }
    
    .chef-coste-nav button .dashicons {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }
    
    .chef-coste-indicators {
        bottom: 15px;
        padding: 8px 15px;
        gap: 6px;
    }
    
    .chef-coste-indicator {
        width: 8px;
        height: 8px;
    }
    
    .chef-coste-indicator.active {
        width: 20px;
    }
}

/* Animation subtile au survol du bandeau */
.chef-coste-bandeau-container:hover .chef-coste-slide.active {
    transform: scale(1.05);
}

[data-animation="fade"]:hover .chef-coste-slide.active {
    transform: scale(1.02);
}

/* Effet de vignette élégant sur les bords */
.chef-coste-bandeau-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 5;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.3);
}

/* Amélioration de la performance */
.chef-coste-slide {
    will-change: opacity, transform;
}

/* Préchargement pour éviter les saccades */
.chef-coste-bandeau-container.loading .chef-coste-slide {
    transition: none;
}
