/* Category Materiel Cuisine CSS */

/* Variables CSS pour la cohérence */
:root {
    --primary-color: #d4202a;
    --secondary-color: #ffa500;
    --accent-color: #8b4513;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Body Styles */
body {
    padding-top: 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

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

/* Category Main */
.category-main {
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.category-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 80px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/pattern-turc.png') repeat;
    opacity: 0.1;
    z-index: 1;
}

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

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.7;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

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

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* Intro Section */
.category-intro {
    padding: 80px 0;
    background: var(--white);
}

.intro-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.intro-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 600;
}

.intro-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text-dark);
    line-height: 1.8;
}

.cuisine-types {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
}

.cuisine-type {
    background: var(--background-light);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
}

.cuisine-type h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.cuisine-type p {
    margin: 0;
    color: var(--text-light);
}

.intro-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* Equipment Categories */
.equipment-categories {
    padding: 80px 0;
    background: var(--background-light);
}

.equipment-categories h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 60px;
}

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

.category-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.category-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.category-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Essential Tools Table */
.essential-tools {
    padding: 80px 0;
    background: var(--white);
}

.essential-tools h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 50px;
}

/* Tableaux Responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.responsive-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: var(--white);
}

.responsive-table th {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.responsive-table td {
    padding: 20px 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.responsive-table tr:hover {
    background: var(--background-light);
}

.responsive-table tr:nth-child(even) {
    background: #fafafa;
}

.responsive-table tr:nth-child(even):hover {
    background: var(--background-light);
}

@media (max-width: 768px) {
    .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;
        background: var(--white);
    }
    .responsive-table td {
        border: none;
        position: relative;
        padding-left: 50% !important;
        text-align: left;
        white-space: normal;
        padding: 10px;
    }
    .responsive-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        text-align: left;
        font-weight: bold;
        color: var(--primary-color);
    }
}

/* Articles Section */
.articles-section {
    padding: 80px 0;
    background: var(--background-light);
}

.articles-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.article-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.article-card.featured {
    border-left-color: var(--primary-color);
    background: linear-gradient(135deg, #fff, #fafafa);
}

.article-card h3 {
    margin-bottom: 15px;
}

.article-card h3 a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
}

.article-card h3 a:hover {
    color: var(--primary-color);
}

.article-description {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-date {
    background: var(--background-light);
    padding: 5px 12px;
    border-radius: 20px;
}

.article-category {
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* No Articles */
.no-articles {
    padding: 80px 0;
    text-align: center;
    background: var(--background-light);
}

.no-articles h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.no-articles p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Materials Guide */
.materials-guide {
    padding: 80px 0;
    background: var(--white);
}

.materials-guide h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 60px;
}

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

.material-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.material-content {
    padding: 30px;
}

.material-content h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.material-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.material-content strong {
    color: var(--primary-color);
}

/* Shopping Tips */
.shopping-tips {
    padding: 80px 0;
    background: var(--background-light);
}

.shopping-tips h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 60px;
}

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

.tip-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.tip-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.tip-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content {
        gap: 40px;
    }
    
    .intro-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .materials-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .category-hero {
        padding: 60px 0;
    }
    
    .equipment-categories,
    .essential-tools,
    .articles-section,
    .materials-guide,
    .shopping-tips,
    .cta-section {
        padding: 60px 0;
    }
    
    .intro-content h2,
    .equipment-categories h2,
    .essential-tools h2,
    .articles-section h2,
    .materials-guide h2,
    .shopping-tips h2,
    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .category-card {
        padding: 30px 20px;
    }
    
    .material-content {
        padding: 20px;
    }
    
    .tip-card {
        padding: 20px;
    }
}