/* Styles pour Batch Cooking Planner - inspiré de cuisine-addict.com */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.hero {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.hero h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
}

.hero #season-info {
    margin: 1rem 0 0;
    font-size: 1.1rem;
    color: #27ae60;
    font-weight: 500;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-right {
    text-align: right;
}

.season-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff9966, #ff5e62);
    color: white;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(255, 94, 98, 0.3);
}

.season-ideas {
    margin-top: 8px;
    color: #2c3e50;
    font-weight: 500;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

h2 {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

#copy-button {
    display: none; /* Caché par défaut */
    margin-top: 1em;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

#copy-button:hover {
    background-color: #0056b3;
}

.season-info {
    background-color: #e8f5e8;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
}

.season-info p {
    margin: 0;
    font-size: 1.1em;
    color: #155724;
}

#plan {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.recipe-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

/* Badge de source */
.source-badge {
    display: inline-block;
    align-self: flex-start;
    margin: 6px 0 4px 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}
.source-marmiton { background-color: #f39c12; }
.source-750g { background-color: #27ae60; }
.source-cuisineaz { background-color: #8e44ad; }
.source-generic { background-color: #7f8c8d; }

.price-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    background: #1abc9c;
    color: white;
}

.meta-box {
    background: #f7f9fc;
    border: 1px solid #e6ecf1;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 10px;
}
.meta-box h4 {
    margin: 6px 0;
}
.meta-box ul { margin: 0; padding-left: 18px; }
.consume-priority { color: #8e44ad; font-weight: 600; margin-top: 6px; }
.nutrition-tags { margin-top: 6px; }
.chip {
    display: inline-block;
    background: #ecf0f1;
    color: #2c3e50;
    border-radius: 999px;
    padding: 2px 8px;
    margin-right: 6px;
    font-size: 0.75rem;
}
.subs-box { margin-top: 8px; }
.weekly-total { margin-top: 12px; font-weight: 700; color: #2c3e50; }

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.recipe-card h3 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.recipe-link {
    text-decoration: none;
    color: #3498db;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.5rem;
    transition: color 0.2s ease;
}

.recipe-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.recipe-ingredients {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.recipe-ingredients h4 {
    margin: 0 0 0.5rem 0;
    color: #495057;
    font-size: 1rem;
}

.recipe-ingredients ul {
    margin: 0;
    padding-left: 1.2rem;
    list-style-type: none;
}

.recipe-ingredients li {
    margin: 0.3rem 0;
    position: relative;
}

.recipe-ingredients li:before {
    content: "🥄";
    position: absolute;
    left: -1.2rem;
}

.recipe-instructions {
    background: #e8f5e8;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.recipe-instructions h4 {
    margin: 0 0 0.5rem 0;
    color: #155724;
    font-size: 1rem;
}

.recipe-instructions p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.batch-tip {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.batch-tip h4 {
    margin: 0 0 0.5rem 0;
    color: #856404;
    font-size: 1rem;
}

.batch-tip p {
    margin: 0;
    font-size: 0.9rem;
    font-style: italic;
}

.recipe-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.recipe-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.no-image {
    width: 100%;
    height: 120px;
    background-color: #f8f9fa;
    border: 2px dashed #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.no-image p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9em;
    text-align: center;
}

.recipe-card h3 {
    margin: 8px 0 0;
    font-size: 1em;
    color: #333;
}

#shopping-list {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

#shopping-list ul {
    list-style-type: none;
    padding: 0;
    columns: 2;
    column-gap: 20px;
}

#shopping-list li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    break-inside: avoid;
}

#shopping-list li:before {
    content: "• ";
    color: #007bff;
    font-weight: bold;
}

h1, h2 {
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

h2 {
    margin-top: 30px;
}

.actions {
    margin: 20px 0;
    text-align: center;
}

#new-plan-button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    margin: 10px;
    transition: background-color 0.2s ease;
}

#new-plan-button:hover {
    background-color: #218838;
}