 /* Couleurs personnalisées */
.main-blue { 
    background-color: #1e40af; 
}

.light-blue { 
    background-color: #3b82f6; 
}

.hover-blue:hover { 
    background-color: #2563eb; 
}

/* Animations et transitions pour les cartes */
.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Styles pour les cartes de recettes */
.recipe-card {
    border-left: 4px solid #3b82f6;
}

/* Styles pour les commentaires */
.comment-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Menu déroulant desktop */
.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #1e40af;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 0.5rem;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    display: block;
    border-radius: 0.5rem;
}

.dropdown-content a:hover {
    background-color: #2563eb;
}

/* Responsivité supplémentaire */
@media (max-width: 768px) {
    .dropdown-content {
        min-width: 180px;
    }
    
    .recipe-card {
        margin-bottom: 1rem;
    }
    
    .grid {
        gap: 1rem;
    }
}

/* Animations pour les boutons de filtre */
.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Style pour le modal */
#recipeModal {
    backdrop-filter: blur(5px);
}

#recipeModal .bg-white {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles pour les listes de recettes dans le répertoire */
.bg-white.rounded-lg.shadow-lg ul li:hover {
    background-color: #f8fafc;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

/* Amélioration des statistiques */
.grid.grid-cols-2.md\\:grid-cols-4 > div {
    transition: transform 0.3s ease;
}

.grid.grid-cols-2.md\\:grid-cols-4 > div:hover {
    transform: scale(1.05);
}

/* Styles pour les icônes de réseaux sociaux */
footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    transform: translateY(-3px);
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Amélioration de l'accessibilité */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Styles pour les éléments interactifs */
.cursor-pointer {
    cursor: pointer;
}

.cursor-pointer:active {
    transform: scale(0.98);
}

/* Amélioration du scroll pour le modal */
#recipeModal .max-h-screen {
    max-height: 90vh;
}

/* Styles pour les badges de catégorie */
.inline-block.bg-blue-100 {
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* Animation pour les images */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Styles pour améliorer la lisibilité */
.text-gray-600,
.text-gray-700 {
    line-height: 1.6;
}

/* Styles pour les formulaires */
input[type="text"],
textarea {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Styles pour les boutons */
button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

button:hover:before {
    left: 100%;
}