/*
Theme Name: Chef Gourmet
Theme URI: https://chefgourmet.com
Author: Chef Gourmet Team
Description: Un thème de recettes rapide, élégant et optimisé pour le SEO.
Version: 1.1
Text Domain: chef-gourmet
*/

:root { --primary: #B34200; --dark: #1a252f; --bg: #F4F7F6; }
body { font-family: 'Poppins', system-ui, -apple-system, sans-serif; background: var(--bg); margin: 0; color: #222; line-height: 1.6; }

/* HEADER & LOGO */
header { background: var(--dark); color: white; padding: 25px 20px; text-align: center; border-bottom: 5px solid var(--primary); position: relative; }
.logo { font-size: 26px; font-weight: 900; color: white; text-decoration: none; text-transform: uppercase; }
.logo span { color: #FF7A33; }
.header-pinterest { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; text-decoration: none; z-index: 9999; }
.header-pinterest svg { fill: #E60023; width: 36px; height: 36px; background: white; border-radius: 50%; padding: 6px; box-shadow: 0 4px 15px rgba(0,0,0,0.4); transition: 0.3s; }
.header-pinterest:hover svg { transform: scale(1.15); }

/* HERO SECTION */
.hero { max-width: 800px; margin: 20px auto 30px; background: white; padding: 30px; border-radius: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); text-align: center; position: relative; z-index: 10; }
.hero h1 { margin: 0 0 10px; font-size: 22px; color: var(--dark); font-weight: 900; }
.hero p { font-size: 14px; color: #444; margin-bottom: 20px; }

/* BUTTONS */
.btn-play { display: inline-flex; align-items: center; background: #000; color: white; padding: 10px 25px; border-radius: 50px; text-decoration: none; transition: 0.3s; font-weight: bold; }
.btn-play svg, .btn-play i { width: 24px; height: 24px; margin-right: 12px; fill: var(--primary); color: #3DDC84; }
.btn-text { text-align: left; line-height: 1.2; }
.btn-text small { display: block; font-size: 9px; text-transform: uppercase; }
.btn-text span { font-size: 16px; font-weight: bold; }
.btn-play:hover { transform: scale(1.05); }

/* NAVIGATION & FILTERS */
.nav-bar { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 20px 0; padding: 0 15px; }
.cat-select { padding: 0 15px; border-radius: 50px; border: 2px solid var(--primary); background: white; font-weight: 600; height: 42px; min-width: 150px; cursor: pointer; }

/* GRID & CARDS */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 1200px; margin: 0 auto; padding: 0 12px; }
.recipe-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.05); text-decoration: none; color: inherit; transition: transform 0.2s; display: block; }
.recipe-card img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; display: block; background: #eee; }
.recipe-info { padding: 10px; }
.recipe-info h2 { margin: 0; font-size: 14px; height: 38px; overflow: hidden; color: var(--dark); font-weight: 600; border: none; }

/* SINGLE RECIPE PAGE */
.container { max-width: 800px; margin: 20px auto; background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.recipe-img { width: 100%; height: auto; max-height: 450px; object-fit: cover; display: block; }
.recipe-body { padding: 30px; }
h1 { margin: 0 0 15px; color: var(--dark); font-size: 28px; font-weight: 900; }
h2 { color: var(--dark); border-bottom: 2px solid #eee; padding-bottom: 8px; margin-top: 30px; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.meta { display: flex; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; }
.tag { background: #FFF0E6; color: var(--primary); padding: 5px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.desc { font-style: italic; color: #555; margin-bottom: 25px; border-left: 4px solid var(--primary); padding-left: 15px; }

/* INGREDIENTS & METHOD */
.ing-list { list-style: none; padding: 0; }
.ing-list li { padding: 10px 0; border-bottom: 1px dashed #eee; display: flex; align-items: center; gap: 10px; }
.ad-box { margin: 25px 0; min-height: 100px; background: #fafafa; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #eee; border-radius: 10px; }
.cta-box { text-align: center; margin: 40px 0; padding: 25px; background: #fdf2f2; border-radius: 15px; border: 2px dashed #e74c3c; }

/* SIMILAR RECIPES */
.similar-recipes { margin-top: 40px; border-top: 1px solid #eee; padding-top: 25px; }
.similar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.similar-card { text-decoration: none; color: inherit; transition: 0.3s; }
.similar-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; }
.similar-card p { font-size: 13px; font-weight: 600; margin-top: 8px; color: var(--dark); height: 36px; overflow: hidden; }

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: 10px; margin: 30px 0; }
.pagination .page-numbers { padding: 8px 16px; background: white; border: 2px solid var(--primary); color: var(--primary); border-radius: 50px; text-decoration: none; font-weight: 600; }
.pagination .current { background: var(--primary); color: white; }

/* FOOTER */
footer { background: var(--dark); color: white; text-align: center; padding: 30px 15px; margin-top: 40px; }
.footer-nav { margin-top: 15px; display: flex; justify-content: center; gap: 15px; font-size: 13px; }
.footer-nav a { color: #ddd; text-decoration: none; }

@media (min-width: 768px) {
    .grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
    .similar-grid { grid-template-columns: repeat(4, 1fr); }
}
