/**
 * Styles spécifiques pour les boutons dans le carrousel
 * Ces styles garantissent que les boutons sont visibles et cliquables
 */

/* Style de base pour tous les boutons de carrousel */
.hero-slide .btn,
.hero-slide a[class*="btn"],
.hero-slider a.btn,
.hero-buttons a {
    /* Position et interaction - CRITIQUE pour le fonctionnement */
    position: relative !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    
    /* Apparence */
    color: white !important;
    background-color: transparent !important;
    border: 2px solid white !important;
    border-radius: 30px !important;
    
    /* Dimensions et alignement */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 12px 30px !important;
    min-width: 200px !important;
    min-height: 45px !important;
    
    /* Typographie */
    font-size: 1rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    text-align: center !important;
    
    /* Animation */
    transition: all 0.3s ease !important;
}

/* Style pour le bouton primaire (généralement le premier) - Bordeaux avec contour blanc */
.hero-slide .btn-primary,
.hero-slide a.btn-primary {
    background-color: #8B1538 !important; /* Rouge bordeaux de la charte */
    border: 2px solid white !important;
}

/* Style de survol pour le bouton primaire (bordeaux) - STATIQUE */
.hero-slide .btn-primary:hover,
.hero-slide a.btn-primary:hover {
    background-color: #a91d47 !important; /* Bordeaux plus clair au survol */
    border-color: white !important;
    color: white !important;
}

/* Style de survol pour le bouton secondaire (transparent) - STATIQUE */
.hero-slide .btn-secondary:hover,
.hero-slide a.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
    color: white !important;
}

/* Style de clic pour bouton primaire - STATIQUE */
.hero-slide .btn-primary:active,
.hero-slide a.btn-primary:active {
    background-color: #6d1029 !important; /* Bordeaux plus foncé au clic */
}

/* Style de clic pour bouton secondaire - STATIQUE */
.hero-slide .btn-secondary:active,
.hero-slide a.btn-secondary:active {
    background-color: rgba(255, 255, 255, 0.4) !important;
}

/* CRITIQUE: SVG ne doit JAMAIS capturer les clics */
.hero-slide .btn svg,
.hero-buttons a svg,
.hero-slide .btn *,
.hero-buttons a * {
    pointer-events: none !important; /* Les enfants ne capturent jamais les clics */
}

/* Style pour le conteneur des boutons */
.hero-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    justify-content: flex-start !important;
    margin-top: 30px !important;
    position: relative !important;
    z-index: 5 !important;
}

/* Responsivité pour les appareils mobiles */
@media (max-width: 768px) {
    .hero-buttons {
        justify-content: center !important;
    }
    
    .hero-slide .btn,
    .hero-slide a[class*="btn"],
    .hero-slider a.btn {
        min-width: 160px !important;
        font-size: 0.9rem !important;
        padding: 10px 20px !important;
    }
}
