/* Crazy Gastronomie - Style principal */
:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --accent: #2d1b0e;
    --text: #333;
    --text-light: #666;
    --bg: #f5f5f8;
    --bg-white: #fff;
    --border: #e0e0e0;
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --max-width: 1100px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-primary); color: var(--text); background: var(--bg); line-height: 1.7; font-size: 16px; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--accent); line-height: 1.3; margin-bottom: 0.5em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1em; }
ul, ol { margin-bottom: 1em; padding-left: 1.5em; }

/* Container */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--bg-white); border-bottom: 3px solid var(--primary); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.header-mid { text-align: center; padding: 15px 0; }
.site-logo { display: inline-block; }
.logo-img { height: 60px; width: auto; margin: 0 auto; }
.header-nav { background: var(--accent); }
.main-nav { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; position: relative; }
.nav-menu { list-style: none; display: flex; justify-content: center; gap: 0; padding: 0; margin: 0; }
.nav-menu li a { display: block; padding: 12px 20px; color: #fff; font-size: 0.95rem; font-weight: 500; transition: background 0.2s; }
.nav-menu li a:hover { background: var(--primary); color: #fff; }

/* Menu toggle (mobile) */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 12px 20px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: all 0.3s; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: var(--text-light); margin-bottom: 20px; padding: 10px 0; }
.breadcrumb a { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; color: var(--border); }
.breadcrumb .current { color: var(--text); }

/* Site Content Layout */
.site-content { display: flex; gap: 30px; padding: 30px 0; }
.site-content-inner { display: flex; gap: 30px; }
.content-area { flex: 1; min-width: 0; }

/* Entry Header */
.entry-header { margin-bottom: 25px; }
.entry-title { font-size: 2rem; color: var(--accent); margin-bottom: 10px; }
.entry-meta { font-size: 0.85rem; color: var(--text-light); }
.entry-category a { background: var(--primary); color: #fff; padding: 3px 10px; border-radius: 3px; font-size: 0.8rem; font-weight: 500; }
.entry-category a:hover { background: var(--primary-dark); color: #fff; }

/* Post Thumbnail */
.post-thumbnail { margin-bottom: 25px; border-radius: 8px; overflow: hidden; }
.post-thumbnail img { width: 100%; height: auto; }

/* Entry Content */
.entry-content { background: var(--bg-white); padding: 30px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.entry-content h2 { border-bottom: 2px solid var(--primary); padding-bottom: 8px; margin-top: 1.5em; }
.entry-content h3 { margin-top: 1.3em; }
.entry-content img { border-radius: 6px; margin: 1em 0; }
.entry-content p { text-align: justify; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { font-size: 0.85rem; color: var(--text-light); text-align: center; margin-top: 0.5em; }
.entry-content blockquote { border-left: 4px solid var(--primary); margin: 1.5em 0; padding: 15px 20px; background: var(--bg); font-style: italic; border-radius: 0 6px 6px 0; }

/* Post List (category page) */
.post-list { display: flex; flex-direction: column; gap: 25px; }
.post-card { display: flex; gap: 20px; background: var(--bg-white); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); transition: box-shadow 0.2s; }
.post-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.post-card-image { flex: 0 0 280px; overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.post-card:hover .post-card-image img { transform: scale(1.05); }
.post-card-content { flex: 1; padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.post-card-content h2 { font-size: 1.25rem; margin-bottom: 10px; }
.post-card-content h2 a { color: var(--accent); }
.post-card-content h2 a:hover { color: var(--primary); }
.post-card-content p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 12px; }
.read-more { display: inline-block; color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.read-more:hover { color: var(--primary-dark); }

/* Home Sections */
.home-section { padding: 40px 0; }
.home-section:nth-child(even) { background: var(--bg-white); }
.section-title { font-size: 1.6rem; color: var(--accent); margin-bottom: 25px; padding-bottom: 10px; border-bottom: 3px solid var(--primary); }
.section-title a { color: var(--accent); }
.section-title a:hover { color: var(--primary); }
.section-more { text-align: right; margin-top: 20px; }
.section-more a { font-weight: 600; color: var(--primary); }

/* Hero Section */
.hero-section { background: var(--bg-white); padding: 40px 0; }
.hero-card { display: flex; gap: 30px; align-items: center; }
.hero-image { flex: 0 0 55%; border-radius: 10px; overflow: hidden; }
.hero-image img { width: 100%; height: 380px; object-fit: cover; }
.hero-content { flex: 1; }
.hero-category { display: inline-block; background: var(--primary); color: #fff; padding: 4px 14px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.hero-content h2 { font-size: 1.8rem; margin-bottom: 12px; }
.hero-content h2 a { color: var(--accent); }
.hero-content h2 a:hover { color: var(--primary); }
.hero-content p { color: var(--text-light); margin-bottom: 16px; }

/* Post Grid (4 columns) */
.post-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-card { background: var(--bg-white); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); transition: transform 0.2s, box-shadow 0.2s; }
.grid-card:hover { transform: translateY(-4px); box-shadow: 0 6px 18px rgba(0,0,0,0.1); }
.grid-card-image { display: block; overflow: hidden; aspect-ratio: 4/3; }
.grid-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.grid-card:hover .grid-card-image img { transform: scale(1.05); }
.grid-card-content { padding: 15px; }
.grid-card-category { display: inline-block; font-size: 0.75rem; color: var(--primary); font-weight: 600; text-transform: uppercase; margin-bottom: 6px; }
.grid-card-content h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.3; }
.grid-card-content h3 a { color: var(--accent); }
.grid-card-content h3 a:hover { color: var(--primary); }
.grid-card-content p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0; }

/* Related Posts */
.related-posts { margin-top: 40px; padding-top: 30px; border-top: 2px solid var(--border); }
.related-posts h2 { font-size: 1.4rem; margin-bottom: 20px; color: var(--accent); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.page-link { display: inline-block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 4px; font-size: 0.9rem; color: var(--text); transition: all 0.2s; }
.page-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-link.current { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }
.page-link.prev, .page-link.next { font-weight: 600; color: var(--primary); }

/* Category Header */
.category-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 2px solid var(--border); }
.category-header h1 { color: var(--accent); margin-bottom: 8px; }
.category-description { color: var(--text-light); font-size: 1.05rem; margin-bottom: 5px; }
.category-count { font-size: 0.85rem; color: var(--text-light); }

/* Sidebar */
.sidebar { flex: 0 0 280px; }
.widget { background: var(--bg-white); border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.widget-title { font-size: 1.1rem; color: var(--accent); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text); font-size: 0.9rem; display: block; }
.widget ul li a:hover { color: var(--primary); }
.widget .count { color: var(--text-light); font-size: 0.8rem; }
.recent-posts li a { line-height: 1.4; }
.category-list li a { display: flex; justify-content: space-between; align-items: center; }

/* 404 & Pages */
.error-404, .page-content { background: var(--bg-white); padding: 40px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.error-404 { text-align: center; padding: 60px 40px; }
.error-404 h1 { font-size: 2.5rem; margin-bottom: 15px; }
.error-404 p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 20px; }
.page-content h2 { margin-top: 1.5em; border-bottom: 2px solid var(--primary); padding-bottom: 8px; }

/* Footer */
.site-footer { background: var(--accent); color: #ccc; text-align: center; padding: 25px 0; margin-top: 40px; font-size: 0.9rem; }
.site-footer a { color: var(--primary); }
.site-footer a:hover { color: #fff; }
.site-footer p { margin-bottom: 5px; }

/* Back to Top */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px; background: var(--primary); color: #fff; border: none; border-radius: 50%; font-size: 1.3rem; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 99; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* Responsive - Tablet */
@media (max-width: 900px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-card { flex-direction: column; }
    .hero-image { flex: none; width: 100%; }
    .hero-image img { height: 280px; }
    .site-content, .site-content-inner { flex-direction: column; }
    .sidebar { flex: none; }
    .post-card-image { flex: 0 0 200px; }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--accent); z-index: 100; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
    .nav-menu.active { display: flex; }
    .nav-menu li a { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    h1 { font-size: 1.6rem; }
    .entry-content { padding: 20px; }
    .post-card { flex-direction: column; }
    .post-card-image { flex: none; height: 200px; }
    .post-card-image img { height: 200px; }
    .logo-img { height: 45px; }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .post-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .entry-content { padding: 15px; }
    .container { padding: 0 15px; }
    .hero-content h2 { font-size: 1.3rem; }
    .pagination { gap: 4px; }
    .page-link { padding: 6px 10px; font-size: 0.8rem; }
}
