/* Styles spécifiques pour les pages blog */

/* Base et container */
body {
    padding-top: 60px;
    font-family: 'Georgia', serif;
    line-height: 1.7;
    color: #333;
}
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    background: #fff;
    padding-top: 50px;
}
.personal-notes {
    max-width: 800px !important;
    margin: 3rem auto !important;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    display: block;
    position: relative;
}
.blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    background: #fff;
    padding-top: 50px;
}

.blog-article {
    margin-bottom: 3rem;
}

/* Header de l'article */
.article-header {
    margin-bottom: 2rem;
    text-align: center;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-category {
    background: #d4202a;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-date,
.reading-time {
    color: #666;
    font-size: 0.9rem;
}

.blog-article h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin: 1rem 0;
    line-height: 1.3;
}

.article-intro {
    font-size: 1.1rem;
    color: #555;
    font-style: italic;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-left: 4px solid #d4202a;
}

/* Images */
.article-image-main,
.article-image {
    margin: 2rem 0;
    text-align: center;
}

.article-image-main img,
.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Contenu principal */
.article-content {
    font-size: 1rem;
    line-height: 1.7;
}

.article-content h2 {
    color: #d4202a;
    font-size: 1.6rem;
    margin: 2rem 0 1rem 0;
    border-bottom: 2px solid #ffa500;
    padding-bottom: 0.5rem;
}

.article-content h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem 0;
}

.article-content h4 {
    color: #d4202a;
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem 0;
}

.article-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Box d'informations recette */
.recipe-info-box {
    background: linear-gradient(135deg, #ffa500, #ff8c00);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.recipe-info-box h3 {
    color: white !important;
    margin-top: 0;
    text-align: center;
}

/* Tableaux responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.responsive-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.responsive-table thead {
    background: #d4202a;
    color: white;
}

.responsive-table th,
.responsive-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.responsive-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.responsive-table tbody tr:hover {
    background: #f8f9fa;
}

/* Grid des ingrédients */
.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.ingredient-category {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.ingredient-category h3 {
    color: #d4202a !important;
    margin-top: 0;
    border-bottom: 1px solid #ffa500;
    padding-bottom: 0.5rem;
}

.ingredient-category ul {
    list-style: none;
    padding: 0;
}

.ingredient-category li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.ingredient-category li:before {
    content: "✓";
    color: #ffa500;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Étapes de cuisson */
.cooking-steps {
    margin: 2rem 0;
}

.step {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #ffa500;
}

.step h3 {
    color: #d4202a !important;
    margin-top: 0;
}

/* Section astuces */
.tips-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.tip {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 3px solid #d4202a;
}

.tip h4 {
    color: #d4202a !important;
    margin-top: 0;
}

/* Informations nutritionnelles */
.nutritional-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid #e9ecef;
}

.nutritional-info h3 {
    color: #d4202a !important;
    text-align: center;
    margin-top: 0;
}

/* Box de conclusion */
.conclusion-box {
    background: linear-gradient(135deg, #d4202a, #c1392a);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: center;
}

.conclusion-box h3 {
    color: white !important;
    margin-top: 0;
}

/* Responsive mobile */
@media (max-width: 768px) {
    body {
        padding-top: 50px;
    }
    
    .blog-container {
        padding: 0 15px;
    }
    
    .blog-article h1 {
        font-size: 1.8rem;
    }
    
    .article-content h2 {
        font-size: 1.4rem;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .ingredients-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-section {
        grid-template-columns: 1fr;
    }
    
    .responsive-table {
        min-width: auto;
        display: block;
        white-space: nowrap;
    }
    
    .responsive-table thead,
    .responsive-table tbody,
    .responsive-table th,
    .responsive-table td,
    .responsive-table tr {
        display: block;
    }
    
    .responsive-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .responsive-table tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 8px;
    }
    
    .responsive-table td {
        border: none;
        position: relative;
        padding-left: 50% !important;
        text-align: left;
        white-space: normal;
    }
    
    .responsive-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        text-align: left;
        font-weight: bold;
        color: #d4202a;
    }
}

/* Animation subtile pour l'engagement */
.step:hover,
.tip:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}