.page-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.active-section {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#map {
    height: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    background: linear-gradient(135deg, #006b38 0%, #102522 100%);
}

.subscription-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subscription-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.nav-item {
    position: relative;
    overflow: hidden;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #ffd700;
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

.border-red-500 {
    border-color: #ef4444 !important;
    animation: shake 0.5s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}

.loading-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #006b38;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.map-container {
    height: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Ajout lies aux animations de la partie Home */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out forwards;
    transform: scale(0.9);
    opacity: 0;
}
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Styles pour les badges de statut pour le dashboard a verifier*/
.status-badge {
    @apply px-2 py-1 rounded-full text-xs font-medium;
}

.status-approved {
    @apply bg-green-100 text-green-800;
}

.status-pending {
    @apply bg-yellow-100 text-yellow-800;
}

.status-rejected {
    @apply bg-red-100 text-red-800;
}

/* Navigation active */
.active-nav {
    @apply bg-blue-50 text-blue-600;
}

/* Animation de chargement */
.loading-spinner {
    @apply inline-block animate-spin rounded-full h-8 w-8 border-b-2 border-blue-600;
}

.section-content {
    width: 100%;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#dashboard-content,
#section-content {
    transition: opacity 0.3s ease;
}

/* Animation smooth pour le menu mobile */
.mobile-nav {
    transition: all 0.3s ease-in-out;
}

/* Empêcher le scroll du body quand le menu est ouvert */
body.menu-open {
    overflow: hidden;
}

/* Styles pour les écrans tablette */
@media (max-width: 1024px) {
    .mobile-nav {
        display: block;
    }
}

/* Styles pour les écrans desktop */
@media (min-width: 1025px) {
    .mobile-nav {
        display: none;
    }
}