@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

.banner {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/banniere.png');
    background-size: cover;
    background-position: center;
    min-height: 85vh;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #FFF02B;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.theme-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-left: 4px solid #21883F;
}

.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 240, 43, 0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.workshop-item {
    transition: all 0.3s ease;
}

.workshop-item:hover {
    transform: scale(1.02);
}

.count-item {
    position: relative;
    overflow: hidden;
}

.count-item::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 0;
    height: 0;
    background: rgba(33, 136, 63, 0.1);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.count-item:hover::before {
    width: 150%;
    height: 150%;
}

#mobile-menu {
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%);
}

#mobile-menu.open {
    transform: translateX(0);
}

/* Styles spécifiques au formulaire d'inscription */
input:focus, 
select:focus, 
textarea:focus {
    border-color: #21883F;
}

input[type="checkbox"], 
input[type="radio"] {
    accent-color: #21883F;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.communication-item {
    border-left: 3px solid #21883F;
    padding-left: 12px;
    padding: 10px;
    border-radius: 6px;
}

/* Styles pour le tableau de bord */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    position: sticky;
    top: 74px;
    background-color: white;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

tbody tr {
    transition: all 0.2s;
}

tbody tr:hover {
    background-color: rgba(33, 136, 63, 0.05);
}

.badge-modal {
    display: none;
    position: absolute;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 16px;
    z-index: 50;
    width: 250px;
}

.badge-modal.open {
    display: block;
}

.pagination-btn {
    transition: all 0.2s;
}

.pagination-btn:hover:not(.active) {
    background-color: rgba(33, 136, 63, 0.1);
}

.pagination-btn.active {
    background-color: #21883F;
    color: white;
}

.association-name {
    font-weight: 600;
    color: #21883F;
    font-size: 1rem;
    line-height: 1.2;
    margin-left: 0.5rem;
}

@media (min-width: 768px) {
    .association-name {
        font-size: 1.25rem;
    }
}

@media (max-width: 640px) {
    th, td {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
}

/* Styles supplémentaires pour la page de validation de mot de passe */
.message-alert {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.message-alert.opacity-0 {
    opacity: 0;
}

/* Styles pour l'indicateur de force du mot de passe */
#strength-bar {
    transition: width 0.3s ease, background-color 0.3s ease;
}

#password-form input:focus + span i,
#password-form button:focus i {
    color: #21883F;
}

.password-strength {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
}

/* Animation pour le bouton de validation */
#submit-button:active {
    transform: scale(0.98);
}

/* Responsive adjustments for the password form */
@media (max-width: 480px) {
    #password-form label,
    #password-form input,
    #password-form button {
        font-size: 0.875rem;
    }
    
    #password-form .password-strength {
        padding: 0.25rem;
    }
}

/* Styles spécifiques pour la page d'abstracts */
.abstract-row {
    transition: all 0.3s ease;
}

.abstract-row:hover {
    background-color: rgba(33, 136, 63, 0.05);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
}