/* Reset et Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --info: #3b82f6;
    --info-light: #dbeafe;
    --dark: #1f2937;
    --gray: #6b7280;
    --gray-light: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--gray-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.logo i {
    font-size: 1.5rem;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 20px;
    font-weight: 300;
}

.description {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 25px 40px;
    border-radius: var(--radius);
    text-align: center;
}

.stat-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Search Section */
.search-section {
    background: var(--white);
    padding: 30px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto 20px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--gray-light);
    background: var(--white);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-danger {
    background: linear-gradient(to bottom, var(--white), #fef2f2);
}

.section-success {
    background: linear-gradient(to bottom, var(--white), #f0fdf4);
}

.section-neutral {
    background: var(--white);
}

.section-tips {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.section-icon.danger {
    background: var(--danger-light);
    color: var(--danger);
}

.section-icon.success {
    background: var(--success-light);
    color: var(--success);
}

.section-icon.neutral {
    background: var(--info-light);
    color: var(--info);
}

.section-icon.tip {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.section-tips .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-card.featured {
    border: 2px solid var(--success);
}

.category-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-header i {
    font-size: 1.5rem;
    color: var(--primary);
}

.category-header h3 {
    flex: 1;
    font-size: 1.1rem;
    color: var(--dark);
}

.badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-info {
    background: var(--info-light);
    color: var(--info);
}

.food-list {
    padding: 15px;
}

.food-item {
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: background 0.3s;
}

.food-item:last-child {
    margin-bottom: 0;
}

.food-item.highlight {
    border: 2px solid currentColor;
}

.danger-item {
    background: var(--danger-light);
    border-left: 3px solid var(--danger);
}

.warning-item {
    background: var(--warning-light);
    border-left: 3px solid var(--warning);
}

.success-item {
    background: var(--success-light);
    border-left: 3px solid var(--success);
}

.food-name {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.food-reason {
    display: block;
    font-size: 0.85rem;
    color: var(--danger);
    margin-bottom: 2px;
}

.food-alt {
    display: block;
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 500;
}

.food-info {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
}

/* Table */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.recap-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.recap-table th,
.recap-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

.recap-table th {
    background: var(--dark);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.recap-table tbody tr:hover {
    background: var(--gray-light);
}

.col-success {
    background: var(--success) !important;
}

.col-warning {
    background: var(--warning) !important;
}

.col-danger {
    background: var(--danger) !important;
}

/* Tips Section */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.tip-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tip-card.danger-tip {
    background: var(--danger);
    border-color: var(--danger);
}

.tip-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.tip-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.tip-card p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: var(--white);
}

.footer-section .logo {
    color: var(--white);
    margin-bottom: 15px;
}

.disclaimer {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }

    .nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding: 100px 0 40px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-card {
        padding: 20px 30px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .filter-tags {
        gap: 5px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card {
    animation: fadeIn 0.5s ease-out;
}

/* Hidden state for filter */
.hidden {
    display: none !important;
}
