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

body {
    padding-top: 40px;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

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

/* Styles pour les 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;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
}

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

.responsive-table th {
    background: #d4202a;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

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

/* Hero Section */
.category-hero {
    background: linear-gradient(135deg, #d4202a 0%, #ffa500 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 60px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Types de Recettes */
.recipe-types {
    padding: 80px 0;
    background: white;
}

.recipe-types h2 {
    text-align: center;
    font-size: 3rem;
    color: #d4202a;
    margin-bottom: 60px;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.type-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.type-card:hover {
    transform: translateY(-10px);
}

.type-card img {
    width: 100%;
    max-width: 100%;
    height: auto;
    height: 200px;
    object-fit: cover;
}

.type-card h3 {
    font-size: 1.5rem;
    color: #d4202a;
    margin: 20px 20px 10px;
}

.type-card p {
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.6;
}

/* Guide Cuisine */
.cooking-guide {
    padding: 80px 0;
    background: #f8f9fa;
}

.guide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.guide-text h2 {
    font-size: 2.5rem;
    color: #d4202a;
    margin-bottom: 20px;
}

.guide-text h3 {
    font-size: 1.8rem;
    color: #ffa500;
    margin: 30px 0 15px;
}

.guide-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #555;
}

.ingredients-list {
    list-style: none;
    padding-left: 0;
}

.ingredients-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.ingredients-list li:before {
    content: "★";
    position: absolute;
    left: 0;
    color: #ffa500;
    font-weight: bold;
}

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

/* Calculateur de Portions */
.portion-calculator {
    padding: 60px 0;
    background: white;
}

.portion-calculator h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #d4202a;
    margin-bottom: 40px;
}

.calculator-card {
    max-width: 600px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.calculator-form {
    margin-top: 30px;
}

.calculator-form label {
    display: block;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.calculator-form input {
    width: 100px;
    padding: 10px;
    font-size: 1.5rem;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
}

.calculator-form input:focus {
    border-color: #d4202a;
    outline: none;
}

.calculator-result {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.calculator-result p {
    font-size: 1.2rem;
    color: #d4202a;
    font-weight: bold;
    margin-bottom: 5px;
}

.calculator-result small {
    color: #666;
}

/* Comparatif des Plats */
.dishes-comparison {
    padding: 80px 0;
    background: #f8f9fa;
}

.dishes-comparison h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #d4202a;
    margin-bottom: 40px;
}

/* Liste des Recettes */
.recipes-listing {
    padding: 80px 0;
    background: white;
}

.recipes-listing h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #d4202a;
    margin-bottom: 20px;
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.recipe-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-5px);
}

.recipe-card.featured {
    border: 3px solid #ffa500;
}

.recipe-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.recipe-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    height: 100%;
    object-fit: cover;
}

.recipe-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(212, 32, 42, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.recipe-content {
    padding: 25px;
}

.recipe-content h3 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin-bottom: 15px;
}

.recipe-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recipe-content h3 a:hover {
    color: #d4202a;
}

.recipe-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #888;
}

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

.recipe-time img {
    width: 16px;
    height: 16px;
    max-width: 100%;
    height: auto;
}

.recipe-tags {
    display: flex;
    gap: 10px;
}

.tag {
    background: #ffa500;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pas de recettes */
.no-recipes {
    padding: 80px 0;
    background: white;
}

.no-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.no-content img {
    width: 300px;
    max-width: 100%;
    height: auto;
    margin-bottom: 40px;
    border-radius: 15px;
}

.no-content h2 {
    font-size: 2.5rem;
    color: #d4202a;
    margin-bottom: 20px;
}

.no-content p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
}

/* Astuces Culinaires */
.cooking-tips {
    padding: 80px 0;
    background: #f8f9fa;
}

.cooking-tips h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #d4202a;
    margin-bottom: 60px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tip-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    border-top: 4px solid #ffa500;
}

.tip-card h3 {
    font-size: 1.3rem;
    color: #d4202a;
    margin-bottom: 15px;
}

.tip-card p {
    color: #666;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Tableaux responsive */
    .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;
        padding: 10px 10px 10px 50%;
    }
    
    .responsive-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        text-align: left;
        font-weight: bold;
        color: #d4202a;
    }

    body {
        padding-top: 60px;
    }

    /* Hero responsive */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Guides responsive */
    .guide-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .guide-text {
        text-align: center;
    }

    .guide-text h2 {
        font-size: 2rem;
    }

    /* Grilles responsive */
    .types-grid,
    .recipes-grid,
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Sections responsive */
    .recipe-types,
    .cooking-guide,
    .recipes-listing,
    .cooking-tips,
    .dishes-comparison {
        padding: 40px 0;
    }

    .recipe-types h2,
    .cooking-tips h2,
    .recipes-listing h2,
    .dishes-comparison h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    /* Calculateur responsive */
    .calculator-card {
        margin: 0 20px;
        padding: 30px 20px;
    }

    .calculator-form input {
        width: 80px;
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3rem;
    }

    .recipes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}