/* Category Restauration - Cinéma Toulouse */
/* Couleurs: #0d47a1 (bleu cinéma), #e91e63 (rose/magenta), #ffc107 (or/jaune) */

html, body {
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, video, iframe, svg, canvas {
    max-width: 100%;
    height: auto;
}

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

/* Hero Section */
.category-hero {
    padding: 80px 0 60px;
    position: relative;
}

.hero-content {
    text-align: center;
    color: #ffffff;
}

.hero-title {
    font-size: 42px;
    line-height: 1.2;
    margin: 0 0 20px;
    font-weight: 700;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 20px;
    margin: 0 0 30px;
    opacity: 0.95;
    color: #ffc107;
}

.hero-icon {
    margin-top: 30px;
}

/* Intro Section */
.intro-section {
    padding: 60px 0;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-text {
    font-size: 18px;
    line-height: 1.7;
    color: #333333;
    margin: 0 0 40px;
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

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

/* Articles Section */
.articles-section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 32px;
    color: #0d47a1;
    margin: 0 0 15px;
    font-weight: 700;
}

.section-title.light {
    color: #ffffff;
}

.section-subtitle {
    font-size: 18px;
    color: #666666;
    margin: 0;
}

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

.article-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
}

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

.card-image {
    position: relative;
    height: 225px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content {
    padding: 25px;
}

.card-date {
    display: block;
    font-size: 13px;
    color: #e91e63;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-title {
    font-size: 20px;
    margin: 0 0 15px;
    line-height: 1.3;
    min-width: 0;
    overflow-wrap: break-word;
}

.card-title a {
    color: #0d47a1;
    text-decoration: none;
    font-weight: 700;
}

.card-title a:hover {
    color: #e91e63;
    text-decoration: underline;
}

.card-excerpt {
    font-size: 15px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
    overflow-wrap: break-word;
}

.empty-state {
    text-align: center;
    padding: 60px 30px;
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto;
}

.empty-state svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    color: #666666;
    margin: 10px 0;
}

/* Guide Section */
.guide-section {
    padding: 60px 0;
}

.guide-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.guide-intro p {
    font-size: 17px;
    line-height: 1.7;
    color: #555555;
}

/* Table Styles */
.table-container {
    margin: 40px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.resto-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    font-size: 15px;
    min-width: 600px;
}

.resto-table th,
.resto-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #eeeeee;
}

.resto-table th {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

.resto-table tbody tr:hover {
    background-color: #f5f5f5;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.distance-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
}

.table-caption {
    padding: 0 20px;
}

.table-caption p {
    margin: 0;
    line-height: 1.6;
}

/* Tips Section */
.tips-section {
    padding: 70px 0;
}

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

.tip-card {
    padding: 30px;
    border-radius: 8px;
}

.tip-icon {
    margin-bottom: 20px;
}

.tip-title {
    font-size: 20px;
    color: #ffffff;
    margin: 0 0 15px;
    font-weight: 700;
}

.tip-text {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

/* Disclaimer Section */
.disclaimer-section {
    padding: 30px 0;
    margin: 0;
}

.disclaimer-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}

.disclaimer-text {
    flex: 1;
}

.disclaimer-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .category-hero {
        padding: 60px 0 40px;
    }
    
    .intro-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .article-card {
        max-width: 100%;
    }
    
    .card-image {
        height: 200px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .resto-table {
        font-size: 14px;
    }
    
    .resto-table th,
    .resto-table td {
        padding: 12px;
    }
    
    .table-container {
        border-radius: 0;
        margin: 20px -15px;
    }
    
    .disclaimer-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .guide-section,
    .articles-section,
    .intro-section,
    .tips-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    
    .intro-text {
        font-size: 16px;
    }
    
    .tag, .distance-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .tip-card {
        padding: 20px;
    }
    
    .card-image {
        height: 180px;
    }
}

/* Print styles */
@media print {
    .category-hero {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    
    .hero-title, .hero-subtitle {
        color: #000000 !important;
    }
    
    .tips-section {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    
    .article-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #cccccc;
    }
}