/* Styles pour la modal des ateliers */

/* Effet de surlignage pour l'onglet actif */
.modal-tab {
    position: relative;
    transition: all 0.3s ease;
}

.modal-tab:hover {
    background-color: rgba(105, 68, 60, 0.05);
}

.modal-tab.active {
    font-weight: 600;
    color: #69443C;
}

.modal-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    background-color: #69443C;
    border-radius: 3px 3px 0 0;
}

/* Animation d'entrée pour le contenu du modal */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation du bouton de fermeture */
#closeAteliersModal {
    transition: transform 0.3s ease, color 0.3s ease;
}

#closeAteliersModal:hover {
    transform: rotate(90deg);
    color: #69443C;
}

/* Styles pour les cartes d'ateliers */
.bg-white {
    transition: all 0.3s ease;
}

.bg-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Amélioration de l'expérience tactile */
@media (max-width: 768px) {
    .modal-tab {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Rendre les boutons plus grands sur mobile pour faciliter le toucher */
    #closeAteliersModal {
        padding: 0.5rem;
    }
}

/* Animations pour les éléments d'ateliers */
.bg-white.animate-entry {
    animation: fadeIn 0.5s ease forwards;
}

/* Style pour le badge "Complet" */
.bg-white .bg-\[#e74c3c\] {
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.25);
    transition: transform 0.3s ease;
}

.bg-white:hover .bg-\[#e74c3c\] {
    transform: rotate(-15deg) scale(1.05);
}

/* Stylisation pour le bouton d'action */
.btn-action {
    background-color: #69443C;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.btn-action:hover {
    background-color: #7a4e44;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(105, 68, 60, 0.3);
}

/* Animation de chargement */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
}