/* recipe_common.css - Styles communs pour toutes les pages de recettes */

/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables CSS */
:root {
    --primary-gold: #b8956d;
    --background: #f5f2ed;
    --text-dark: #2c3e50;
    --text-medium: #666;
    --text-light: #999;
    --white: #ffffff;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.05);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.1);
    --border-radius: 8px;
    --border-radius-large: 12px;
}

/* Body de base */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    line-height: 1.6;
    color: #333;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Titres de sections */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Bouton retour */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-gold);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    border: 0 solid var(--primary-gold);
    font-weight: 500;
    transition: background 0.3s;
}

.back-btn:hover {
    background: #a0835a;
    text-decoration: none;
    color: white;
}

/* Badges Nutriscore */
.nutriscore-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.nutriscore-a { background: linear-gradient(135deg, #038141, #4CAF50); }
.nutriscore-b { background: linear-gradient(135deg, #85bb2f, #8BC34A); }
.nutriscore-c { background: linear-gradient(135deg, #fecb02, #FFC107); }
.nutriscore-d { background: linear-gradient(135deg, #ee8100, #FF9800); }
.nutriscore-e { background: linear-gradient(135deg, #e63e11, #F44336); }

/* Grille nutrition */
.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.nutrition-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nutrition-label {
    font-weight: 500;
    color: var(--text-medium);
}

.nutrition-value {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* Placeholders */
.placeholder-image,
.step-image-placeholder,
.recipe-image-placeholder {
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border: 2px dashed #ddd;
}

/* Sections blanches avec ombre */
.white-section {
    background: white;
    border-radius: var(--border-radius-large);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-light);
}

/* Responsive de base */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

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