/* CSS de base pour Glide.js */
.glide {
    position: relative;
    white-space: nowrap;
    color: inherit;
    overflow: hidden;
}

.glide__track {
    overflow: hidden;
}

.glide__slides {
    position: relative;
    width: 100%;
    list-style: none;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    touch-action: pan-Y;
    overflow: hidden;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    display: flex;
    flex-wrap: nowrap;
    will-change: transform;
}

.glide__slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    white-space: initial;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}


/* Styles pour les flèches de navigation - version finale */
.carousel-container {
    position: relative;
}

.glide__arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    padding: 0 5px;
}

.glide__arrow {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: bold;
    color: #374151;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0; /* Empêche la compression des flèches */
}

.glide__arrow:hover {
    background: white;
    border-color: #9ca3af;
    color: #111827;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.glide__arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.glide__arrow:disabled:hover {
    transform: none;
}

/* Responsive adjustments */
@media (min-width: 640px) {
    .glide__arrows {
        padding: 0 10px;
    }

    .glide__arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .glide__arrows {
        padding: 0 15px;
    }

    .glide__arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (min-width: 1024px) {
    .glide__arrows {
        padding: 0 20px;
    }

    .glide__arrow {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

/* Pour les écrans très petits */
@media (max-width: 480px) {
    .glide__arrows {
        padding: 0 2px;
    }

    .glide__arrow {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Si vous avez des problèmes avec les configurations peek */
.glide.gallery-carousel .glide__arrows {
    padding: 0 60px; /* Ajustez selon votre configuration peek */
}

@media (max-width: 1024px) {
    .glide.gallery-carousel .glide__arrows {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .glide.gallery-carousel .glide__arrows {
        padding: 0 25px;
    }
}

/* Mode sombre pour les flèches */
.dark .glide__arrow {
    background: rgba(31, 41, 55, 0.95);
    border-color: #374151;
    color: #f9fafb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dark .glide__arrow:hover {
    background: #1f2937;
    border-color: #6b7280;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.dark .glide__arrow:disabled {
    background: rgba(17, 24, 39, 0.6);
    border-color: #374151;
    color: #6b7280;
}
