/*
Theme Name: Tibe
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Thème recettes de cuisine – La Petite Cuisine
Version: 2.0.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: tibe
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Toast Share Notification */
.share-toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--black); color: var(--white); padding: 12px 24px;
  border-radius: 50px; font-size: 14px; font-weight: 500; z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
  opacity: 0; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.share-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }


@font-face {
  font-family: 'TibePictos';
  src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6z9mXgjU0.woff2) format('woff2');
  font-display: swap;
}

/* ══════════════════════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════════════════════ */
:root {
  --coral:       #E8735A;
  --coral-light: #FDEEE9;
  --coral-mid:   #F2A08E;
  --black:       #1A1A1A;
  --gray:        #6B6B6B;
  --light-gray:  #F7F7F7;
  --white:       #FFFFFF;
  --border:      #EFEFEF;
  --green:       #2D7D46;
  --green-light: #EBF5EF;
  --max:         1200px;
}

/* ══════════════════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { line-height: 1.15; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.5;
}

img { height: auto; max-width: 100%; border-style: none; display: block; }
a { background-color: transparent; }
button, input, select, optgroup, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; }
button, input { overflow: visible; }
button, select { text-transform: none; }
button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; appearance: button; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { clear: both; }

/* Screen reader only */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #f1f1f1; border-radius: 3px; clip: auto !important; clip-path: none;
  color: #21759b; display: block; font-size: .875rem; font-weight: 700;
  height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px;
  text-decoration: none; top: 5px; width: auto; z-index: 100000;
}
#primary[tabindex="-1"]:focus { outline: 0; }

/* ══════════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════════
   HEADER / NAV
══════════════════════════════════════════════════════════════ */
#page { display: flex; flex-direction: column; min-height: 100vh; }
#content { flex: 1; }

#masthead {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Logo */
.site-branding { flex-shrink: 0; }
.site-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  white-space: nowrap;
  margin: 0;
}
.site-title a {
  color: var(--black);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0;
}
.site-title .logo-accent { color: var(--coral); }

.custom-logo-link { display: inline-block; }
.custom-logo-link img { max-height: 44px; width: auto; }

/* Primary nav */
#site-navigation { display: contents; }
.main-navigation { display: contents; }
.main-navigation ul#primary-menu {
  display: flex;
  gap: 28px;
  flex: 1;
}
.main-navigation ul#primary-menu li { position: relative; }
.main-navigation ul#primary-menu a {
  font-size: 14px;
  color: var(--gray);
  text-decoration: none;
  font-weight: 400;
  transition: color .2s;
  white-space: nowrap;
}
.main-navigation ul#primary-menu a:hover,
.main-navigation ul#primary-menu .current-menu-item > a { color: var(--black); font-weight: 500; }

/* Sub-menus */
.main-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  min-width: 180px;
  z-index: 999;
  padding: 8px 0;
}
.main-navigation ul li:hover > ul { display: block; }
.main-navigation ul ul a { padding: 8px 16px; display: block; }

/* Nav Right (search + fav) */
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-search-bar {
  display: flex;
  align-items: center;
  background: var(--light-gray);
  border-radius: 10px;
  padding: 9px 14px;
  gap: 8px;
  width: 240px;
}
.header-search-bar svg { width: 15px; height: 15px; stroke: var(--gray); flex-shrink: 0; fill: none; }
.header-search-bar input {
  border: none; background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: var(--black); width: 100%; outline: none;
}
.header-search-bar input::placeholder { color: var(--gray); }

.nav-fav {
  width: 38px; height: 38px;
  background: var(--coral-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none; border: none;
  flex-shrink: 0;
}
.nav-fav svg { width: 17px; height: 17px; stroke: var(--coral); fill: none; }

.nav-pinterest {
  width: 38px; height: 38px;
  background: #fdeaea;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; text-decoration: none; border: none;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.nav-pinterest:hover { transform: scale(1.05); }
.nav-pinterest svg { width: 18px; height: 18px; color: #E60023; }


/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  font-size: 14px; color: var(--gray); padding: 4px 8px;
}

/* ══════════════════════════════════════════════════════════════
   HERO BAND (front-page)
══════════════════════════════════════════════════════════════ */
.hero-band {
  background: var(--light-gray);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-inner--archive {
  display: block;
  text-align: center;
  padding: 80px 48px;
}
.hero-inner--archive .hero-tag { margin-bottom: 12px; }
.hero-inner--archive h1 { font-size: 48px; margin-bottom: 12px; }
.hero-inner--archive .hero-intro { margin: 0 auto; max-width: 600px; }

.hero-tag {
  display: inline-block;
  background: var(--coral-light);
  color: var(--coral);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
  font-family: 'TibePictos', 'DM Sans', sans-serif;
}

.hero-inner h1 {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  line-height: 1.15;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 16px;
}
.hero-inner h1 em { font-style: italic; color: var(--coral); }

.hero-intro {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.7;
  font-weight: 300;
  max-width: 440px;
  margin-bottom: 32px;
}

.hero-stats { display: flex; gap: 32px; }
.hero-stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 600; color: var(--coral);
}
.hero-stat-label { font-size: 12px; color: var(--gray); margin-top: 2px; font-weight: 300; }

/* Hero featured card */
.hero-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,.07);
}
.hero-card-img {
  width: 100%; height: 240px;
  background: var(--coral-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 100px; overflow: hidden;
  font-family: 'TibePictos', sans-serif;
}
.hero-card-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-body { padding: 24px; }
.hero-card-meta { display: flex; gap: 14px; margin-bottom: 10px; align-items: center; }
.hc-date { font-size: 12px; color: var(--coral); font-weight: 500; }
.hc-time { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--coral); font-weight: 500; }
.hc-time svg { width: 12px; height: 12px; stroke: var(--coral); fill: none; }
.hero-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 600; color: var(--black);
  line-height: 1.3; margin-bottom: 8px;
  display: block; text-decoration: none;
}
.hero-card-title:hover { color: var(--coral); }
.hero-card-desc { font-size: 14px; color: var(--gray); line-height: 1.6; font-weight: 300; margin-bottom: 16px; }
.hero-card-footer { display: flex; align-items: center; justify-content: space-between; }

/* ══════════════════════════════════════════════════════════════
   BADGES & PILLS
══════════════════════════════════════════════════════════════ */
.budget-tag {
  background: var(--green-light); color: var(--green);
  font-size: 12px; font-weight: 500;
  padding: 5px 10px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 4px;
}
.price-badge {
  font-size: 11px; font-weight: 500;
  color: var(--green); background: var(--green-light);
  padding: 3px 8px; border-radius: 6px;
}
.persons-badge { font-size: 11px; color: var(--gray); }

.btn-coral {
  background: var(--coral); color: var(--white);
  border: none; border-radius: 10px;
  padding: 10px 20px; font-size: 13px; font-weight: 500;
  font-family: 'DM Sans', sans-serif; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; transition: background .2s;
}
.btn-coral:hover { background: #d46043; }
.btn-coral svg { width: 15px; height: 15px; stroke: var(--white); fill: none; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 8px 14px; font-size: 13px;
  font-family: 'DM Sans', sans-serif; font-weight: 500;
  color: var(--gray); background: var(--white); cursor: pointer;
  text-decoration: none; transition: border-color .2s;
}
.btn-outline svg { width: 15px; height: 15px; stroke: var(--gray); fill: none; }
.btn-outline:hover { border-color: var(--coral); color: var(--coral); }

/* ══════════════════════════════════════════════════════════════
   CATEGORIES BAR
══════════════════════════════════════════════════════════════ */
.cats-bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 48px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.cats-label { font-size: 13px; color: var(--gray); font-weight: 400; margin-right: 6px; }
.cat-pill {
    display: inline-block;
    background: var(--coral-light);
    color: var(--coral);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
    font-family: 'TibePictos', 'DM Sans', sans-serif;
}
.cat-pill.active, .cat-pill.current-cat {
  background: var(--coral); border-color: var(--coral);
  color: var(--white); font-weight: 500;
}
.cat-pill:hover:not(.active):not(.current-cat) { border-color: var(--coral-mid); color: var(--black); }

/* ══════════════════════════════════════════════════════════════
   MAIN CONTENT WRAPPER
══════════════════════════════════════════════════════════════ */
.main-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px 80px;
}

.section-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 600; color: var(--black);
}
.see-all { font-size: 13px; color: var(--coral); font-weight: 500; text-decoration: none; }
.see-all:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════
   FEATURED 3-COLS GRID (À la une)
══════════════════════════════════════════════════════════════ */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.feat-card {
  border-radius: 18px; overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer; text-decoration: none; display: block; color: inherit;
}
.feat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.09); }

.feat-img {
  width: 100%; height: 160px;
  background: var(--light-gray);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; overflow: hidden;
  font-family: 'TibePictos', sans-serif;
}
.feat-img img { width: 100%; height: 100%; object-fit: cover; }

.feat-body { padding: 16px 18px; }
.feat-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.feat-date { font-size: 11px; color: var(--coral); font-weight: 500; }
.feat-time { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--coral); font-weight: 500; }
.feat-time svg { width: 11px; height: 11px; stroke: var(--coral); fill: none; }
.feat-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px; font-weight: 600; color: var(--black);
  line-height: 1.3; margin-bottom: 6px;
}
.feat-desc { font-size: 13px; color: var(--gray); line-height: 1.5; font-weight: 300; margin-bottom: 12px; }
.feat-footer { display: flex; align-items: center; justify-content: space-between; }

/* ══════════════════════════════════════════════════════════════
   RECIPE GRID (4 cols) — Toutes les recettes
══════════════════════════════════════════════════════════════ */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 56px;
}

.recipe-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  border: 1px solid #F0F0F0;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer; text-decoration: none; display: block; color: inherit;
  animation: fadeUp .4s ease both;
}
.feat-card:hover, .recipe-card:hover, .sim-card:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 10px 30px rgba(0,0,0,.05); 
  text-decoration: none;
  border-color: #E8E8E8;
}
.feat-card:hover .feat-title, 
.recipe-card:hover .rc-title, 
.sim-card:hover .sim-title { 
  color: var(--coral) !important; 
}
.recipe-card:nth-child(1)  { animation-delay: .04s }
.recipe-card:nth-child(2)  { animation-delay: .08s }
.recipe-card:nth-child(3)  { animation-delay: .12s }
.recipe-card:nth-child(4)  { animation-delay: .16s }
.recipe-card:nth-child(5)  { animation-delay: .20s }
.recipe-card:nth-child(6)  { animation-delay: .24s }
.recipe-card:nth-child(7)  { animation-delay: .28s }
.recipe-card:nth-child(8)  { animation-delay: .32s }

.rc-emoji {
  width: 100%; height: 110px;
  background: #F9F9F9;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; overflow: hidden;
  border-radius: 18px 18px 0 0;
  font-family: 'TibePictos', sans-serif;
}
.rc-emoji img { width: 100%; height: 100%; object-fit: cover; }
.rc-body { padding: 14px; }
.rc-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.rc-date { font-size: 10px; color: var(--coral); font-weight: 500; }
.rc-time { display: flex; align-items: center; gap: 3px; font-size: 10px; color: var(--coral); font-weight: 500; }
.rc-time svg { width: 10px; height: 10px; stroke: var(--coral); fill: none; }
.rc-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px; font-weight: 600; color: var(--black);
  line-height: 1.3; margin-bottom: 5px;
}
.rc-desc {
  font-size: 12px; color: var(--gray);
  line-height: 1.45; font-weight: 300;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 10px;
}
.rc-footer { display: flex; align-items: center; justify-content: space-between; }

/* ══════════════════════════════════════════════════════════════
   NEWSLETTER BAND
══════════════════════════════════════════════════════════════ */
.newsletter-band {
  background: var(--coral-light);
  border-top: 1px solid #F5C4B6;
  border-bottom: 1px solid #F5C4B6;
  margin-bottom: 56px;
}
.newsletter-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.newsletter-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 600; color: var(--black); margin-bottom: 8px;
}
.newsletter-text p { font-size: 14px; color: var(--gray); line-height: 1.6; font-weight: 300; max-width: 380px; }
.newsletter-form { display: flex; gap: 10px; flex-shrink: 0; }
.newsletter-form input {
  padding: 12px 18px;
  border: 1.5px solid #F2C4B4; border-radius: 10px;
  font-size: 14px; font-family: 'DM Sans', sans-serif;
  background: var(--white); outline: none; color: var(--black); width: 280px;
}
.newsletter-form input:focus { border-color: var(--coral); }
.newsletter-form button {
  padding: 12px 24px;
  background: var(--coral); color: var(--white);
  border: none; border-radius: 10px;
  font-size: 14px; font-weight: 500;
  font-family: 'DM Sans', sans-serif; cursor: pointer; white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════
   SINGLE RECIPE PAGE
══════════════════════════════════════════════════════════════ */

/* Breadcrumb */
.breadcrumb {
  max-width: var(--max); margin: 0 auto;
  padding: 16px 48px;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--gray);
}
.breadcrumb a { color: var(--gray); text-decoration: none; }
.breadcrumb a:hover { color: var(--coral); }
.breadcrumb span.sep { color: var(--coral-mid); }

/* Recipe Hero (title + sticky image) */
.recipe-hero {
  max-width: var(--max); margin: 0 auto;
  padding: 0 48px 48px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: start;
}

.recipe-header { animation: fadeUp .4s ease both; }

.recipe-title {
  font-family: 'Playfair Display', serif;
  font-size: 42px; font-weight: 600;
  line-height: 1.2; color: var(--black);
  margin-bottom: 16px;
}

.meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.meta-chip {
  display: flex; align-items: center; gap: 6px;
  background: var(--light-gray); border-radius: 8px;
  padding: 7px 12px; font-size: 13px; color: var(--black); font-weight: 400;
  font-family: 'TibePictos', 'DM Sans', sans-serif;
}
.meta-chip svg { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: #6B6B6B; }
.meta-chip.coral { background: var(--coral-light); color: var(--coral); }
.meta-chip.coral svg { stroke: var(--coral); }
.meta-chip.green { background: var(--green-light); color: var(--green); }
.meta-chip.green svg { stroke: var(--green); }

.recipe-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}
.author-row { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--coral-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0; overflow: hidden;
  font-family: 'TibePictos', "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-details { display: flex; flex-direction: column; }
.author-name { font-size: 14px; font-weight: 500; color: var(--black); }
.author-date { font-size: 12px; color: var(--coral); margin-top: 1px; }
.action-btns { display: flex; gap: 10px; }

@media screen and (max-width: 768px) {
  .recipe-meta-bar { 
    flex-direction: row; 
    align-items: center; 
    justify-content: space-between; 
    gap: 12px; 
    padding-bottom: 24px;
  }
  .author-row { flex: 1; min-width: 0; }
  .action-btns { width: auto; flex-shrink: 0; display: flex; gap: 8px; }
  .action-btns > * { flex: none !important; }
}

.recipe-intro, .recipe-intro p { font-size: 15px; color: var(--gray); line-height: 1.75; font-weight: 300; }
.recipe-intro p { margin-bottom: 0; }

/* Sticky image card */
.recipe-img-card {
  position: sticky; top: 88px;
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,.07);
}
.recipe-img {
  width: 100%; height: 300px;
  background: var(--coral-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 130px; overflow: hidden;
  font-family: 'TibePictos', sans-serif;
}
.recipe-img img { width: 100%; height: 100%; object-fit: cover; }

.img-card-footer { padding: 18px 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.nutri-pill {
  flex: 1; min-width: 80px;
  background: var(--light-gray); border-radius: 10px;
  padding: 10px; text-align: center;
}
.nutri-val {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 600; color: var(--black);
}
.nutri-label { font-size: 10px; color: var(--gray); margin-top: 2px; }

/* Two-col content wrap */
.content-wrap {
  max-width: var(--max); margin: 0 auto;
  padding: 0 48px 80px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: start;
}
.recipe-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 600; color: var(--black);
  margin-bottom: 18px;
}

/* Portions selector */
.portions-row {
  display: flex; align-items: center;
  justify-content: space-between;
  background: var(--light-gray);
  border-radius: 12px; padding: 12px 18px;
  margin-bottom: 20px;
}
.portions-label { font-size: 14px; color: var(--gray); }
.counter { display: flex; align-items: center; gap: 16px; }
.counter-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 20px; color: var(--coral);
  font-weight: 300; line-height: 1;
}
.counter-val { font-size: 17px; font-weight: 500; color: var(--black); min-width: 22px; text-align: center; }

/* Ingredients */
.ingredient-item {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.ingredient-item::before { content: none !important; }
.ingredient-item:last-child { border-bottom: none; }
.ingredient-left { display: flex; align-items: center; gap: 14px; }
.ing-icon {
  width: 42px; height: 42px;
  background: var(--light-gray); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0; overflow: hidden;
  font-family: 'TibePictos', sans-serif;
}
.ing-icon img { width: 100%; height: 100%; object-fit: cover; }
.ing-name { font-size: 15px; color: var(--black); font-weight: 400; }
.ing-note { font-size: 12px; color: var(--gray); margin-top: 2px; font-weight: 300; }
.ing-qty { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--coral); }

/* Steps */
.step-item {
  display: flex; gap: 18px; margin-bottom: 24px;
  animation: fadeUp .4s ease both;
}
.step-item::before { content: none !important; }
.step-num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--coral-light);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 16px; font-weight: 600; color: var(--coral);
  margin-top: 2px;
}
.step-title { font-size: 14px; font-weight: 500; color: var(--black); margin-bottom: 5px; }
.step-text, .step-text p { font-size: 14px; color: var(--gray); line-height: 1.65; font-weight: 300; }
.step-text p { margin-bottom: 0; }

/* Tip box */
.tip-box {
  background: var(--coral-light); border-radius: 16px;
  padding: 20px; margin-top: 8px; margin-bottom: 40px;
  border: 1px solid #F5C4B6;
}
.tip-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--coral);
}
.tip-head svg { width: 16px; height: 16px; stroke: var(--coral); fill: none; }
.tip-box p { font-size: 13px; color: var(--gray); line-height: 1.65; font-weight: 300; }

/* Table of contents / Post navigation */
.post-navigation { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-navigation .nav-links { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.post-navigation .nav-previous { text-align: left; flex: 1; width: 50%; }
.post-navigation .nav-next { text-align: right; margin-left: auto; flex: 1; width: 50%; }
.post-navigation a { text-decoration: none; display: block; }
.post-navigation a:hover .nav-title { color: var(--coral); }
.nav-subtitle { display: block; font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; font-weight: 500;}
.nav-title { display: block; font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 600; color: var(--black); transition: color .2s; }

/* Sidebar */
.recipe-sidebar { position: sticky; top: 88px; }
.sidebar-box {
  background: var(--light-gray); border-radius: 18px;
  padding: 24px; margin-bottom: 20px;
}
.sidebar-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px; font-weight: 600; color: var(--black);
  margin-bottom: 16px;
}

.sim-card {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  cursor: pointer; text-decoration: none; color: inherit;
}
.sim-card:last-child { border-bottom: none; padding-bottom: 0; }
.sim-emoji {
  width: 52px; height: 52px; flex-shrink: 0;
  background: var(--white); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; overflow: hidden;
  font-family: 'TibePictos', sans-serif;
}
.sim-emoji img { width: 100%; height: 100%; object-fit: cover; }
.sim-title {
  font-family: 'Playfair Display', serif;
  font-size: 14px; font-weight: 600; color: var(--black);
  line-height: 1.3; margin-bottom: 3px;
}
.sim-meta { font-size: 11px; color: var(--coral); font-weight: 500; }

.share-box {
  background: var(--coral-light); border-radius: 18px;
  padding: 20px; border: 1px solid #F5C4B6;
}
.share-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 16px; font-weight: 600; color: var(--black); margin-bottom: 6px;
}
.share-box p { font-size: 13px; color: var(--gray); font-weight: 300; margin-bottom: 14px; line-height: 1.5; }
.share-btns { display: flex; gap: 8px; }
.share-btn {
  flex: 1; padding: 9px 0;
  border-radius: 10px; border: 1.5px solid #F2C4B4;
  background: var(--white); font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 500; color: var(--gray);
  cursor: pointer; text-align: center;
}
.share-btn.primary { background: var(--coral); border-color: var(--coral); color: var(--white); }

/* Nutrition grid */
.nutrition-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-bottom: 28px;
}
.nutri-cell {
  background: var(--light-gray); border-radius: 12px;
  padding: 12px 8px; text-align: center;
}
.nutri-cell .nutri-val {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 600; color: var(--black);
}
.nutri-cell .nutri-label { font-size: 10px; color: var(--gray); margin-top: 3px; font-weight: 400; }

/* ══════════════════════════════════════════════════════════════
   ARCHIVE / CATEGORY PAGE
══════════════════════════════════════════════════════════════ */
.archive-hero {
  background: var(--light-gray);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.archive-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
}
.archive-hero-inner h1 {
  font-family: 'Playfair Display', serif;
  font-size: 40px; font-weight: 600; color: var(--black);
  margin-bottom: 8px;
}
.archive-hero-inner p { font-size: 16px; color: var(--gray); line-height: 1.6; font-weight: 300; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 600; color: var(--black);
  text-decoration: none;
}
.footer-logo .logo-accent { color: var(--coral); }

.footer-nav ul { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a {
  font-size: 13px; color: var(--gray);
  text-decoration: none; transition: color .2s;
}
.footer-nav a:hover { color: var(--black); }

.footer-copy { font-size: 12px; color: var(--gray); font-weight: 300; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════════════════════════════════════ */
@media screen and (max-width: 1024px) {
  .hero-inner { padding: 56px 32px; gap: 40px; }
  .main-wrap { padding: 0 32px 64px; }
  .cats-bar { padding: 24px 32px; }
  .recipe-grid { grid-template-columns: repeat(3, 1fr); }
  .content-wrap { grid-template-columns: 1fr; }
  .recipe-hero { grid-template-columns: 1fr; }
  .recipe-img-card { position: static; }
  .recipe-sidebar { position: static; }
  .breadcrumb { padding: 16px 32px; }
  .recipe-hero, .content-wrap { padding-left: 32px; padding-right: 32px; }
  .newsletter-inner { padding: 40px 32px; gap: 32px; flex-wrap: wrap; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════════════════════════════ */
@media screen and (max-width: 768px) {
  /* Header mobile */
  .header-inner { 
    padding: 0 20px; 
    height: 70px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    flex-wrap: nowrap; 
    position: relative;
  }
  .header-inner > * { padding: 0; }
  
  #site-navigation { 
    order: 1; 
    flex: 0 0 auto; 
    margin: 0;
  }
  .menu-toggle { 
    display: block; 
    margin: 0; 
    padding: 0; 
    color: var(--black);
  }
  
  .site-branding { 
    order: 2; 
    flex: 1; 
    display: flex; 
    justify-content: center; 
    text-align: center;
  }
  .site-branding .site-title { font-size: 30px; }
  .custom-logo-link img { max-height: 30px; }

  .header-actions { 
    order: 3; 
    flex: 0 0 auto; 
    display: flex; 
    gap: 10px; 
    align-items: center; 
    justify-content: flex-end;
  }
  .header-search-bar { display: none; } 

  /* Dropdown menu */
  .main-navigation ul#primary-menu { 
    display: none; 
    flex-direction: column; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 100%; 
    background: var(--white); 
    padding: 20px !important; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    z-index: 999;
    border-top: 1px solid var(--border);
    gap: 0;
  }
  .main-navigation.toggled ul#primary-menu { display: flex; }
  .main-navigation ul#primary-menu li { border-bottom: 1px solid var(--light-gray); }
  .main-navigation ul#primary-menu li:last-child { border-bottom: none; }
  .main-navigation ul#primary-menu a { padding: 12px 0; font-size: 16px; display: block; }

  /* Hero mobile */
  .hero-band { background: none; border-bottom: none; }
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 28px 20px 20px;
    gap: 24px;
  }
  .hero-inner h1 { font-size: 30px; }
  .hero-intro { font-size: 14px; margin-bottom: 0; }
  .hero-stats, .hero-card { display: none; }

  /* Cats bar mobile — horizontal scroll */
  .cats-bar {
    padding: 0 20px 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 8px;
  }
  .cats-bar::-webkit-scrollbar { display: none; }
  .cats-label { display: none; }
  .cat-pill { flex-shrink: 0; padding: 4px 10px; }

  /* Main wrap mobile */
  .main-wrap { padding: 0 20px 48px; }

  /* Featured: horizontal scroll on mobile */
  .featured-grid {
    grid-template-columns: unset;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin-bottom: 32px;
  }
  .featured-grid::-webkit-scrollbar { display: none; }
  .feat-card { flex-shrink: 0; width: 240px; }
  .feat-img { height: 148px; }

  /* Recipe grid mobile: list style */
  .recipe-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 32px;
  }
  /* Switch to list layout on mobile */
  .recipe-card { display: flex; border-radius: 16px; overflow: hidden; align-items: center; }
  .rc-emoji { 
    height: 68px; min-width: 68px; max-width: 68px; 
    font-size: 32px; 
    background: #F7F7F7; 
    border-radius: 12px;
    margin: 12px;
  }
  .rc-body { flex: 1; padding: 12px 12px 12px 0; }

  /* Newsletter mobile */
  .newsletter-inner { flex-direction: column; padding: 28px 20px; gap: 20px; }
  .newsletter-text h2 { font-size: 20px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { width: 100%; }

  /* Single recipe mobile */
  .breadcrumb { 
    padding: 14px 20px; 
    font-size: 12px; 
    white-space: nowrap; 
    overflow-x: auto; 
    display: flex; 
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  .breadcrumb::-webkit-scrollbar { display: none; } /* Chrome/Safari */
  .recipe-hero { grid-template-columns: 1fr; padding: 0 20px 28px; gap: 20px; }
  .recipe-title { font-size: 26px; }
  .content-wrap { grid-template-columns: 1fr; padding: 0 20px 48px; gap: 28px; }
  .recipe-sidebar { position: static; }
  .recipe-img-card { position: static; border-radius: 18px; }
  .recipe-img { height: 200px; font-size: 90px; }
  
  .action-btns .btn-share {
    flex: 0 0 46px;
    width: 46px; height: 46px;
    background: #fff;
    border: 1px solid #E8E8E8;
    border-radius: 14px;
    padding: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--black);
    box-shadow: none;
  }
  .action-btns .btn-share:hover { background: #f9f9f9; }
  .action-btns .btn-share svg { margin: 0; width: 20px; height: 20px; stroke: #1a1a1a; }
  .action-btns .btn-share .share-text { display: none; }
  
  .action-btns #btn-save-recipe { 
    width: auto; 
    min-width: 46px;
    max-width: fit-content;
    padding: 0 10px;
    justify-content: center;
    border: 1px solid #E8E8E8;
    border-radius: 14px;
    height: 46px;
    background: #fff;
    display: flex; align-items: center; gap: 4px;
    color: var(--black);
  }
  #btn-save-recipe #save-btn-icon { display: flex; align-items: center; justify-content: center; }
  #btn-save-recipe #save-btn-text { display: none; }
  #btn-save-recipe #save-btn-count:empty { display: none; }
  
  /* Centrage forcé pour les icônes */
  .action-btns button svg,
  .action-btns button span {
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Footer mobile */
  .footer-inner { padding: 28px 20px; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
  .footer-nav ul { justify-content: center; gap: 16px; }

  /* Section header */
  .section-header { padding: 0; }
  .section-title { font-size: 20px; }

  /* Post navigation wrap on mobile */
  .post-navigation .nav-links { flex-direction: column; gap: 12px; }
  .post-navigation .nav-previous, .post-navigation .nav-next { width: 100%; }
  .post-navigation .nav-next { margin-left: 0; text-align: left; }
}

/* ══════════════════════════════════════════════════════════════
   WP ALIGNMENT UTILITIES
══════════════════════════════════════════════════════════════ */
.alignleft  { float: left;  margin-right: 1.5em; margin-bottom: 1.5em; }
.alignright { float: right; margin-left: 1.5em;  margin-bottom: 1.5em; }
.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; margin-bottom: 1.5em; }

/* WP gallery */
.gallery { margin-bottom: 1.5em; display: grid; grid-gap: 1.5em; }
.gallery-item { display: inline-block; text-align: center; width: 100%; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }

/* Entry content */
.entry-content, .entry-summary { margin: 1.5em 0 0; }
.page-links { clear: both; margin: 0 0 1.5em; }
.bypostauthor { display: block; }
.sticky { display: block; }
.updated:not(.published) { display: none; }
