* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

header p {
    font-size: 1.2em;
    opacity: 0.8;
}

.search-bar {
    margin-bottom: 20px;
    text-align: center;
}

.search-bar input {
    width: 100%;
    max-width: 500px;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    background: white;
    color: #667eea;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.category-btn.active {
    background: #667eea;
    color: white;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    transform: scale(1.05);
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.recipe-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

.recipe-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #e9ecef;
    display : none
}

.recipe-content {
    padding: 20px;
}

.category-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 10px;
}

.category-boisson {
    background: #e3f2fd;
    color: #1976d2;
}

.category-entree {
    background: #fff3e0;
    color: #f57c00;
}

.category-plat {
    background: #f3e5f5;
    color: #7b1fa2;
}

.category-dessert {
    background: #fce4ec;
    color: #c2185b;
}

.recipe-content h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.recipe-author {
    color: #667eea;
    font-size: 0.9em;
    font-style: italic;
    margin-bottom: 10px;
}

.recipe-detail h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 5px;  /* Réduit l'espace sous le titre */
}

.recipe-author-detail {
    color: #667eea;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 30px;  /* Plus d'espace avant les métadonnées */
    font-size: 1.1em;
    text-align: left;
}

.recipe-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    color: #666;
    font-size: 0.9em;
}

.recipe-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.recipe-description {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .recipes-grid {
        grid-template-columns: 1fr;
    }
}