/*
Theme Name: Katfoodiet
Theme URI: https://katfoodiet.fr
Author: Katfoodiet
Description: Thème sur mesure pour Katfoodiet, diététicienne-nutritionniste à Toulouse. Contenu de la page d'accueil composé en blocs Gutenberg natifs.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: katfoodiet
*/

/* ============================================================
   TOKENS
============================================================ */
:root {
  --forest:       #847d54;
  --forest-mid:   oklch(46% 0.046 112);
  --forest-light: #a3a07a;

  --sage:         #847d54;
  --sage-bright:  #a3a07a;
  --sage-muted:   oklch(46% 0.045 108);

  --paper:        #f1ebe4;
  --paper-tint:   oklch(90% 0.016 78);
  --sand:         #d1c2ad;

  --ink:          #3b2d2a;
  --ink-soft:     oklch(46% 0.025 45);
  --ink-faint:    oklch(68% 0.020 50);

  --terra:        #925e4a;
  --clay:         oklch(64% 0.095 58);
  --gold:         #d9a441;

  --line-dark:    rgba(255,255,255,0.10);
  --line-light:   oklch(28% 0.018 40 / 0.10);

  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;
}

/* ============================================================
   BASE
============================================================ */
html { scroll-behavior: smooth; }

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

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; }
.mono  { font-family: 'JetBrains Mono', monospace; }

/* Le bloc Groupe natif ajoute un wrapper interne (.wp-block-group__inner-container)
   autour de son contenu. On le neutralise pour que nos classes (hero-grid, spec-list,
   test-grid...) appliquent leur grid/flex directement à leurs vrais enfants. */
.wp-block-group__inner-container { display: contents; }

.container        { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: 1040px; margin: 0 auto; padding: 0 40px; }

/* ============================================================
   NAV
============================================================ */
nav.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-sticky);
  padding: 0;
  transition: background 0.35s ease, backdrop-filter 0.35s ease;
}
nav.top.at-top { background: transparent; }
nav.top.scrolled {
  background: oklch(95% 0.010 78 / 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-light);
}
nav.top .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 40px;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.logo img { height: 68px; width: auto; display: block; }
.nav-links { display: flex; gap: 40px; list-style: none; align-items: center; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--sage); }
.nav-links a.active, .nav-links a[aria-current="page"] { color: var(--sage); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2.5px;
  margin: 0 auto;
  background: var(--sage);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease;
}
nav.top.menu-open .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
nav.top.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
nav.top.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 6px 24px 18px;
  background: oklch(95% 0.010 78 / 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-light);
}
.mobile-menu a {
  padding: 15px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-light);
  display: block;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a.active, .mobile-menu a[aria-current="page"] { color: var(--sage); }
nav.top.menu-open .mobile-menu { display: flex; }

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  background: transparent;
  transform: translateY(130%);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.sticky-cta .btn { width: 100%; justify-content: center; box-shadow: 0 10px 28px -8px oklch(48% 0.050 116 / 0.55); }
.sticky-cta.visible { transform: translateY(0); }

/* ============================================================
   BUTTONS — applied via "Additional CSS class" on core/button
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: 'Manrope', sans-serif;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn-primary { background: var(--sage); color: var(--paper); border-color: var(--sage); }
.btn-primary:hover { background: var(--sage-bright); border-color: var(--sage-bright); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-light); }
.btn-secondary:hover { border-color: var(--ink); background: oklch(28% 0.018 40 / 0.05); }
.btn-dark { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.btn-dark:hover { background: var(--forest-mid); transform: translateY(-1px); }
.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--line-light); }
.btn-outline-dark:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn svg, .wp-block-button__link svg { width: 17px; height: 17px; transition: transform 0.2s ease; flex-shrink: 0; }
.btn:hover svg, .wp-block-button__link:hover svg { transform: translateX(3px); }

/* Boutons Gutenberg (core/button) : la classe "btn*" est posée par le bloc sur le
   wrapper .wp-block-button, alors que le vrai lien cliquable est .wp-block-button__link.
   On neutralise le wrapper et on peint le lien, pour éviter un "bouton dans le bouton". */
.wp-block-button.btn { background: none; padding: 0; border: 0; border-radius: 0; }
.wp-block-button.btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: 'Manrope', sans-serif;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.wp-block-button.btn-primary .wp-block-button__link { background: var(--sage); color: var(--paper); border-color: var(--sage); }
.wp-block-button.btn-primary .wp-block-button__link:hover { background: var(--sage-bright); border-color: var(--sage-bright); transform: translateY(-1px); }
.wp-block-button.btn-secondary .wp-block-button__link { background: transparent; color: var(--ink); border-color: var(--line-light); }
.wp-block-button.btn-secondary .wp-block-button__link:hover { border-color: var(--ink); background: oklch(28% 0.018 40 / 0.05); }
.wp-block-button.btn-dark .wp-block-button__link { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.wp-block-button.btn-dark .wp-block-button__link:hover { background: var(--forest-mid); transform: translateY(-1px); }
.wp-block-button.btn-outline-dark .wp-block-button__link { background: transparent; color: var(--ink); border-color: var(--line-light); }
.wp-block-button.btn-outline-dark .wp-block-button__link:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* ============================================================
   HERO
============================================================ */
.hero {
  background: var(--paper);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px !important;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 78% 35%, oklch(80% 0.045 110 / 0.35) 0%, transparent 62%),
    radial-gradient(ellipse 55% 80% at 12% 92%, oklch(86% 0.030 95 / 0.50) 0%, transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 0.8fr; gap: 56px; align-items: center; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s ease 0.1s forwards;
}
.hero-kicker::before { content: ''; display: block; width: 28px; height: 1px; background: var(--sage); }

.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(52px, 6.5vw, 96px);
  line-height: 1.02;
  color: var(--ink);
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
}
.hero h1 em { font-style: italic; color: inherit; }

.hero-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 50ch;
  margin-bottom: 44px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.65s ease 0.35s forwards;
}

.hero-ctas.wp-block-buttons {
  display: flex;
  gap: 14px !important;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 0.6s ease 0.5s forwards;
}

.hero-visual {
  position: relative;
  opacity: 0;
  transform: scale(0.96);
  animation: scaleIn 0.9s cubic-bezier(0.16,1,0.3,1) 0.3s forwards;
}
.hero-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 40% 30%, oklch(58% 0.050 108 / 0.42), transparent 60%),
    repeating-linear-gradient(-30deg, oklch(50% 0.050 113 / 0.16) 0 2px, transparent 2px 32px),
    var(--forest-mid);
  display: grid;
  place-items: center;
}
.hero-photo-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: oklch(80% 0.025 92);
  text-align: center;
  line-height: 1.6;
  position: relative;
  margin: 0 !important;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   TRUST BAR
============================================================ */
.trust-bar { background: var(--sand); padding: 28px 0 !important; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.trust-bar .container { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); }
.trust-item-icon {
  color: var(--sage);
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-item-icon svg { display: block; width: 100%; height: 100%; }
.trust-item-title, .trust-item strong {
  font-size: 14px; font-weight: 600; color: var(--ink); display: block; line-height: 1.1; margin: 0 !important;
}
.trust-item-sub, .trust-item span {
  font-size: 12px; color: var(--ink-soft); margin-top: 1px !important; margin-bottom: 0 !important; display: block;
}
.trust-divider { width: 1px !important; height: 32px !important; background: oklch(40% 0.020 60 / 0.18); border: none !important; margin: 0 !important; }

/* ============================================================
   SECTION BASICS
============================================================ */
.hero, .trust-bar, .specialties, .testimonials, .recipes, .cta-band, .location, .social { padding: 100px 0; }

h2 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(36px, 4vw, 58px); line-height: 1.06; letter-spacing: -0.020em; text-wrap: balance; }
h2 em { font-style: italic; color: var(--sage); }
h2.on-dark { color: var(--ink); }
h2.on-dark em { color: var(--sage); }

.section-lead { margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--ink-soft); max-width: 58ch; }
.section-lead.on-dark { color: var(--ink-soft); }

/* ============================================================
   SPECIALTIES
============================================================ */
.specialties { background: var(--paper); padding-top: 64px !important; }
.spec-intro { display: grid; grid-template-columns: 1fr 1fr; column-gap: 80px; row-gap: 0; align-items: end; margin-bottom: 48px; }
.spec-intro h2 { grid-column: 1; }
.spec-intro .section-lead { grid-column: 1; margin-top: 10px; }
.spec-link-row { grid-column: 2; display: flex; justify-content: flex-end; align-items: flex-end; padding-bottom: 4px; }

.spec-featured {
  background: var(--forest);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 340px;
  margin-bottom: 16px;
  position: relative;
}
.spec-featured::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 100% at 90% 50%, oklch(46% 0.050 114 / 0.45), transparent 60%);
  pointer-events: none;
}
.spec-featured-content { padding: 48px 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; z-index: 1; }
.spec-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sage-bright); margin-bottom: 16px;
}
.spec-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.spec-featured h3 {
  font-family: 'Instrument Serif', serif; font-size: clamp(36px, 4vw, 52px); font-weight: 400;
  color: var(--paper); line-height: 1.05; letter-spacing: -0.02em; margin-top: 0; margin-bottom: 16px;
}
.spec-featured p { color: oklch(81% 0.013 80); font-size: 15.5px; line-height: 1.6; max-width: 44ch; margin-bottom: 28px; }
.spec-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-chips span, .spec-chips p {
  font-size: 12px; padding: 6px 14px; border-radius: 999px;
  background: oklch(100% 0 0 / 0.08); color: oklch(88% 0.012 80); border: 1px solid oklch(100% 0 0 / 0.12);
  margin: 0;
}
.spec-featured-visual {
  position: relative;
  background: radial-gradient(circle at 50% 40%, oklch(56% 0.050 108 / 0.50), transparent 55%), var(--forest-light);
  display: grid; place-items: center; overflow: hidden;
}
.spec-featured-visual img { width: 100%; height: 100%; object-fit: cover; }

/* Blocs Image natifs utilisés comme visuels (hero, vedette, recettes, Instagram) :
   on neutralise la marge par défaut du bloc pour que nos boîtes (ratio, radius...) gardent la main. */
figure.wp-block-image.hero-photo,
figure.wp-block-image.spec-featured-visual,
figure.wp-block-image.frame,
figure.wp-block-image.cs-photo,
figure.wp-block-image.acc-photo,
figure.wp-block-image.shot,
.rec-img figure.wp-block-image,
.ig-tile figure.wp-block-image {
  margin: 0 !important;
  width: 100%;
  height: 100%;
}

.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.spec-item {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
  padding: 36px 40px 36px 0; border-bottom: 1px solid var(--line-light);
  transition: background 0.2s ease; position: relative;
}
.spec-item:nth-child(odd) { border-right: 1px solid var(--line-light); padding-right: 40px; padding-left: 40px; }
.spec-item:nth-child(even) { padding-left: 40px; }
.spec-item:hover { background: var(--paper-tint); }
.spec-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--paper-tint);
  display: grid; place-items: center; color: var(--sage); flex-shrink: 0; transition: background 0.2s ease, color 0.2s ease;
}
.spec-item:hover .spec-icon { background: var(--forest); color: var(--sage-bright); }
.spec-item h3 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 24px; line-height: 1.15; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.01em; }
.spec-item p { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }

/* ============================================================
   TESTIMONIALS
============================================================ */
.testimonials { background: var(--paper-tint); }
.test-intro { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; gap: 32px; flex-wrap: wrap; }
.google-rating { display: flex; align-items: center; gap: 16px; background: var(--paper); padding: 14px 24px; border-radius: 999px; border: 1px solid var(--line-light); }
.google-text-title, .google-text strong { font-size: 14.5px; font-weight: 700; color: var(--ink); display: block; margin: 0 !important; }
.google-text-sub, .google-text small { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px !important; margin-bottom: 0 !important; display: block; }

.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.test-card {
  background: var(--paper); border-radius: 20px; padding: 30px 26px;
  display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--line-light);
  box-shadow: 0 14px 34px -18px oklch(28% 0.018 40 / 0.28);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.test-card:hover { border-color: oklch(58% 0.055 108 / 0.45); transform: translateY(-3px); }
.test-stars { color: var(--gold); letter-spacing: 2px; font-size: 13px; margin: 0 !important; }
.test-quote { color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; flex: 1; margin: 0 !important; }
.test-author { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line-light); }
.test-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--sage-muted);
  display: grid; place-items: center; font-family: 'Instrument Serif', serif; font-size: 20px; color: var(--paper); flex-shrink: 0;
}
.test-avatar p { margin: 0; line-height: 1; }
.test-avatar.v2 { background: var(--forest-light); }
.test-avatar.v3 { background: var(--terra); }
.test-avatar.v4 { background: oklch(48% 0.050 108); }
.test-name { font-size: 14px; font-weight: 600; color: var(--ink); display: block; line-height: 1.1; margin: 0 !important; }
.test-when { font-size: 11.5px; color: var(--ink-faint); margin-top: 2px !important; margin-bottom: 0 !important; display: block; }

/* ============================================================
   RECIPES
============================================================ */
.recipes { background: var(--paper); }
.rec-intro { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 64px; gap: 32px; flex-wrap: wrap; }

/* Grille recettes alimentée par une Boucle de requête (derniers articles) :
   la Boucle de requête rend une <ul class="wp-block-post-template"> de <li class="wp-block-post">,
   donc la grille/le carrousel s'appliquent à ce <ul>, pas directement à .rec-grid. */
.rec-grid .wp-block-post-template {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  list-style: none; margin: 0; padding: 0;
}
.rec-grid .wp-block-post-template > li:nth-child(2) .rec-card { transition-delay: 0.08s; }
.rec-grid .wp-block-post-template > li:nth-child(3) .rec-card { transition-delay: 0.16s; }
.rec-card { text-decoration: none; color: inherit; display: block; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); }
.rec-card:hover { transform: translateY(-6px); }
.rec-img {
  aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; position: relative; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(145deg, oklch(68% 0.055 106), oklch(52% 0.050 108));
}
.rec-img img { width: 100%; height: 100%; object-fit: cover; }
.rec-img figure.wp-block-post-featured-image { margin: 0 !important; width: 100%; height: 100%; }
.rec-img figure.wp-block-post-featured-image a { display: block; width: 100%; height: 100%; }
.rec-tag {
  position: absolute; top: 14px; left: 14px; background: oklch(94% 0.008 75 / 0.92); color: var(--ink);
  padding: 6px 14px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; z-index: 1;
}
.rec-tag a { color: inherit; text-decoration: none; }
.rec-placeholder { position: relative; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.08em; color: oklch(100% 0 0 / 0.50); margin: 0 !important; }
.rec-meta { font-size: 11.5px; color: var(--ink-faint); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em; margin: 0 0 10px !important; }
.rec-card h3 { font-family: 'Instrument Serif', serif; font-size: 26px; font-weight: 400; color: var(--ink); line-height: 1.18; letter-spacing: -0.01em; margin-bottom: 10px; }
.rec-card h3 a { color: inherit; text-decoration: none; }
.rec-read, .rec-read:visited { font-size: 13.5px; color: var(--sage-muted); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }

/* ============================================================
   CTA SECTION
============================================================ */
.cta-band { background: oklch(48% 0.050 116); text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 140% at 50% 120%, oklch(40% 0.045 116 / 0.55), transparent 60%),
    radial-gradient(ellipse 50% 80% at 10% -20%, oklch(70% 0.055 104 / 0.28), transparent 55%);
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band h2 { font-family: 'Instrument Serif', serif; font-size: clamp(36px, 5vw, 66px); color: var(--paper); font-weight: 400; letter-spacing: -0.025em; margin-bottom: 20px; text-wrap: balance; }
.cta-band h2 em { font-style: italic; color: #bbdd75; }
.cta-band p { font-size: 17px; color: oklch(95% 0.012 90 / 0.82); max-width: 52ch; margin: 0 auto 40px; line-height: 1.6; }
.cta-band .wp-block-button.btn-dark .wp-block-button__link { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta-band .wp-block-button.btn-dark .wp-block-button__link:hover { background: var(--clay); color: var(--paper); border-color: var(--clay); transform: translateY(-1px); }

/* ============================================================
   INSTAGRAM
============================================================ */
.social { background: var(--paper-tint); padding-bottom: 0 !important; }
/* Flux Instagram (Smash Balloon) : neutralise le padding interne du plugin
   sous les images pour coller à la section, sans marge résiduelle. */
#sb_instagram { padding-bottom: 0 !important; }
#sb_instagram #sbi_images { padding-bottom: 0 !important; }
.social-head { text-align: center; padding-bottom: 64px; }
.social-head .section-lead { margin: 16px auto 0; max-width: 48ch; }
.social-handle { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--sage-muted); text-decoration: none; font-weight: 600; font-size: 15px; transition: color 0.2s; }
.social-handle:hover { color: var(--sage); }
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; max-width: 100%; overflow: hidden; }
.ig-tile { aspect-ratio: 1; position: relative; overflow: hidden; cursor: pointer; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); }
.ig-tile:hover { transform: scale(1.04); z-index: 1; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; }
.ig-tile-label { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.10em; color: oklch(100% 0 0 / 0.55); margin: 0 !important; }
.t1 { background: linear-gradient(145deg, oklch(54% 0.050 108), oklch(42% 0.035 105)); }
.t2 { background: linear-gradient(145deg, oklch(70% 0.090 58), oklch(52% 0.080 46)); }
.t3 { background: linear-gradient(145deg, oklch(78% 0.035 88), oklch(58% 0.050 108)); }
.t4 { background: linear-gradient(145deg, oklch(60% 0.050 106), oklch(42% 0.035 105)); }
.t5 { background: linear-gradient(145deg, oklch(74% 0.085 60), oklch(54% 0.085 46)); }
.t6 { background: linear-gradient(145deg, oklch(66% 0.040 92), oklch(48% 0.050 108)); }

/* ============================================================
   LOCATION
============================================================ */
.location { background: var(--paper); }
.loc-intro { margin-bottom: 64px; max-width: 720px; }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.loc-card { border-radius: 24px; overflow: hidden; border: 1px solid oklch(28% 0.018 40 / 0.35); }
.loc-card-head { padding: 36px 36px 28px; background: var(--paper-tint); border-bottom: 1px solid var(--line-light); }
.loc-badge {
  display: inline-flex; align-items: center; gap: 8px; background: var(--forest); color: #ffffff !important;
  padding: 6px 14px; border-radius: 999px; font-size: 11px !important; font-weight: 600; font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; line-height: 1.4 !important;
}
.loc-badge span { width: 6px; height: 6px; border-radius: 50%; background: #bbdd75; display: inline-block; }
.loc-card h3 { font-family: 'Instrument Serif', serif; font-size: 30px; font-weight: 400; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 10px; }
.loc-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.loc-card-body { padding: 28px 36px 36px; }
.loc-rows { display: flex; flex-direction: column; gap: 14px; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line-light); }
.loc-row { display: flex; gap: 14px; align-items: flex-start; }
.loc-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--paper-tint); display: grid; place-items: center; color: var(--sage); flex-shrink: 0; }
.loc-row-text, .loc-row p, .loc-row .wp-block-paragraph { font-size: 14px !important; line-height: 1.3 !important; margin-top: 0 !important; margin-bottom: 0 !important; min-width: 0; }
.loc-row-text strong, .loc-row-title { color: var(--ink); font-weight: 600; display: block; margin-bottom: 0; }
.loc-row-text span, .loc-row-sub { color: var(--ink-soft); }

.map-frame {
  aspect-ratio: 16 / 8; border-radius: 14px;
  background:
    linear-gradient(var(--line-light), var(--line-light)),
    repeating-linear-gradient(0deg, transparent 0 28px, oklch(52% 0.040 100 / 0.12) 28px 29px),
    repeating-linear-gradient(90deg, transparent 0 28px, oklch(52% 0.040 100 / 0.12) 28px 29px),
    var(--paper-tint);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.map-pin { width: 44px; height: 44px; background: var(--sage); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; box-shadow: 0 8px 20px -4px var(--sage-muted); }
.map-pin::after { content: ''; width: 14px; height: 14px; background: var(--paper); border-radius: 50%; transform: rotate(45deg); }
.map-lbl { position: absolute; bottom: 14px; left: 14px; max-width: calc(100% - 28px); background: var(--paper); border-radius: 10px; padding: 8px 14px; font-size: 11.5px; font-family: 'JetBrains Mono', monospace; color: var(--ink); box-shadow: 0 4px 14px -4px oklch(28% 0.018 40 / 0.15); margin: 0 !important; }

.video-frame {
  aspect-ratio: 16 / 8; border-radius: 14px;
  background: linear-gradient(145deg, oklch(46% 0.050 114), oklch(34% 0.045 116));
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.video-frame::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, oklch(100% 0 0 / 0.04) 0 12px, transparent 12px 24px);
}
.video-bubbles { display: flex; gap: 16px; position: relative; }
.video-bubble { width: 64px; height: 64px; border-radius: 50%; background: var(--forest-light); display: grid; place-items: center; font-family: 'Instrument Serif', serif; font-size: 26px; font-style: italic; color: var(--paper); }
.video-bubble.b2 { background: oklch(70% 0.090 58 / 0.28); color: oklch(78% 0.080 62); }

/* ============================================================
   SINGLE RECIPE (article) — d'après exemple-recette.html
============================================================ */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); }
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--sage); }

/* Hero */
.rec-hero { padding: 140px 0 60px; position: relative; overflow: hidden; }
.rec-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 82% 18%, oklch(80% 0.045 110 / 0.35) 0%, transparent 60%),
              radial-gradient(ellipse 50% 70% at 8% 96%, oklch(86% 0.030 95 / 0.50) 0%, transparent 58%);
  pointer-events: none;
}
.rec-hero .container { position: relative; }
.crumb { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 26px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { color: var(--ink-faint); text-decoration: none; transition: color 0.2s; }
.crumb a:hover { color: var(--sage); }
.crumb span { opacity: 0.5; }
.rec-hero h1 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(34px, 4.4vw, 62px); line-height: 1.05; color: var(--ink); letter-spacing: -0.025em; text-wrap: balance; margin: 22px 0 18px; }
.rec-hero h1 em { font-style: italic; color: var(--sage); }
.rec-hero .tagline { font-family: 'Instrument Serif', serif; font-style: italic; font-size: clamp(19px, 2.2vw, 26px); color: var(--terra); margin-bottom: 26px; }
.rec-hero .lead { font-size: 17.5px; line-height: 1.7; color: var(--ink-soft); max-width: 60ch; }

.rec-quickmeta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.qm { display: flex; align-items: center; gap: 12px; background: oklch(96% 0.010 80 / 0.7); border: 1px solid var(--line-light); border-radius: 14px; padding: 13px 18px; }
.qm-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--paper-tint); display: grid; place-items: center; color: var(--sage); flex-shrink: 0; }
.qm-t { line-height: 1.15; }
.qm-t small { display: block; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 2px; }
.qm-t strong { font-size: 14.5px; font-weight: 700; color: var(--ink); }

.tags-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-size: 12px; font-weight: 600; padding: 8px 16px; border-radius: 999px; background: var(--paper-tint); color: var(--ink-soft); border: 1px solid var(--line-light); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }

/* Gallery */
.gallery { padding: 16px 0 20px; }
/* Galerie adaptative (single.php) : g-count-1/2/3 = nombre de photos visibles,
   has-video = vidéo YouTube portrait (9:16) en dernière colonne. */
.gallery-grid { --gh: min(620px, 72vh); display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr; gap: 14px; height: var(--gh); }
.gallery-grid.g-count-2 { grid-template-columns: 1.9fr 1fr; }
.gallery-grid.g-count-3 { grid-template-columns: 1.9fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery-grid.g-count-3 .g-main { grid-row: 1 / 3; }
.gallery-grid.has-video { grid-template-columns: 1fr calc(var(--gh) * 9 / 16); }
.gallery-grid.has-video.g-count-2 { grid-template-columns: 1.9fr 1fr calc(var(--gh) * 9 / 16); }
.gallery-grid.has-video.g-count-3 { grid-template-columns: 1.9fr 1fr calc(var(--gh) * 9 / 16); }
.gallery-grid.has-video.g-count-0 { grid-template-columns: calc(var(--gh) * 9 / 16); justify-content: center; }
.gallery-grid .g-video { grid-column: -2 / -1; grid-row: 1 / -1; }
.gallery-grid .g-extra { display: none; }
.g-item { appearance: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: zoom-in; display: block; width: 100%; height: 100%; }
.g-main { position: relative; border-radius: 22px; overflow: hidden; background: linear-gradient(145deg, oklch(68% 0.055 106), oklch(52% 0.050 108)); }
.g-side { position: relative; border-radius: 18px; overflow: hidden; background: linear-gradient(145deg, oklch(70% 0.090 58), oklch(52% 0.080 46)); }
.g-main img, .g-side img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.16,1,0.3,1); }
.g-item:hover img { transform: scale(1.03); }
.g-item:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.g-more { position: absolute; inset: 0; display: grid; place-items: center; background: oklch(20% 0.02 40 / 0.45); color: var(--paper); font-family: 'Instrument Serif', serif; font-size: 44px; }
.g-video { position: relative; border-radius: 18px; overflow: hidden; background: var(--forest); }
.g-video .youtube_player, .g-video iframe { width: 100% !important; height: 100% !important; border: 0; display: block; }
.g-video .tac_activate { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; background: var(--forest); color: var(--paper); font-size: 14px; }
.g-dots { display: none; }

/* Visionneuse (clic sur une photo / "+N") */
.g-lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.g-lightbox::backdrop { background: oklch(15% 0.01 40 / 0.9); }
.g-lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.g-lightbox img { max-width: min(92vw, 1400px); max-height: 84vh; object-fit: contain; border-radius: 12px; }
.g-lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid oklch(100% 0 0 / 0.3); background: oklch(15% 0.01 40 / 0.5); color: #fff; font-size: 22px; cursor: pointer; display: grid; place-items: center; }
.g-lb-btn:hover { background: oklch(15% 0.01 40 / 0.8); }
.g-lb-close { top: 20px; right: 20px; }
.g-lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.g-lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.g-lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: oklch(100% 0 0 / 0.8); font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.g-caption { margin-top: 16px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.06em; color: var(--ink-faint); display: flex; align-items: center; gap: 8px; }
.g-caption svg { width: 14px; height: 14px; color: var(--sage); }

/* Body layout */
.recipe-body { padding: 64px 0 40px; }
.rb-grid { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: start; }
.rb-main > section { margin-bottom: 56px; }
.rb-main > section:last-child { margin-bottom: 0; }
.rb-full { margin-top: 64px; }
.rb-full > section { margin-bottom: 56px; }
.rb-full > section:last-child { margin-bottom: 0; }
.block-head { margin-bottom: 26px; }
.recipe-body h2 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.recipe-body h2 em { font-style: italic; color: var(--sage); }

/* Ingredients sidebar */
.ingredients-card { position: sticky; top: 110px; background: var(--forest); border-radius: 22px; padding: 20px 32px 36px; color: var(--paper); box-shadow: 0 24px 48px -20px oklch(35% 0.040 116 / 0.5); }
.ingredients-card h3 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 30px; line-height: 1.05; margin-top: 0; margin-bottom: 4px; }
.ingredients-card .ic-serv { font-size: 13px; color: oklch(82% 0.020 90); margin-bottom: 22px; }
.ic-serv-adjust { display: flex; align-items: center; gap: 10px; font-size: 13px; color: oklch(82% 0.020 90); margin-bottom: 22px; }
.ic-serv-adjust .serv-count { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 15px; color: var(--paper); min-width: 1.2em; text-align: center; }
.serv-btn {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid oklch(100% 0 0 / 0.25); background: oklch(100% 0 0 / 0.08);
  color: var(--paper); font-size: 15px; line-height: 1; display: grid; place-items: center; cursor: pointer; padding: 0; transition: background 0.2s ease;
}
.serv-btn:hover { background: oklch(100% 0 0 / 0.16); }
.ing-list { list-style: none; display: flex; flex-direction: column; margin: 0; padding: 0; }
.ing-list li { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.ing-list li:last-child { border-bottom: none; }
.ing-list .qty { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--gold); white-space: nowrap; min-width: 64px; font-weight: 600; }
.ing-list .name { color: oklch(90% 0.012 80); }

/* Preparation steps */
.steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line-light); }
.steps li:first-child { padding-top: 0; }
.steps li:last-child { border-bottom: none; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: 'Instrument Serif', serif; font-size: 30px; color: var(--sage-bright); line-height: 1; padding-top: 2px; }
.steps li, .steps li p { font-size: 16.5px; line-height: 1.65; color: var(--ink); }
.steps li p { padding-top: 4px; margin: 0; }

/* Diététicienne tip */
.tip { background: var(--paper-tint); border: 1px solid var(--line-light); border-radius: 22px; padding: 34px 36px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.tip-badge { width: 56px; height: 56px; border-radius: 16px; background: var(--forest); display: grid; place-items: center; color: var(--sage-bright); flex-shrink: 0; }
.tip h3 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 26px; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.01em; }
.tip .tip-by { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); display: block; margin-bottom: 14px; }
.tip p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin: 0; }

/* Nutrition */
.nutri-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.nutri { background: oklch(96% 0.010 80 / 0.7); border: 1px solid var(--line-light); border-radius: 18px; padding: 26px 22px; text-align: center; }
.nutri .val { font-family: 'Instrument Serif', serif; font-size: 40px; color: var(--ink); line-height: 1; }
.nutri .val span { font-size: 18px; color: var(--ink-faint); }
.nutri .lbl { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); margin-top: 10px; }
.nutri-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 14px; font-style: italic; }

/* Two-up cards: variantes / conservation */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-card { border: 1px solid var(--line-light); border-radius: 20px; padding: 32px 30px; background: oklch(96% 0.010 80 / 0.5); }
.info-card .ic-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--paper-tint); display: grid; place-items: center; color: var(--sage); margin-bottom: 18px; }
.info-card h3 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 24px; color: var(--ink); margin-bottom: 16px; letter-spacing: -0.01em; }
.info-card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; }
.info-card li { display: flex; gap: 12px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.info-card li svg { width: 17px; height: 17px; color: var(--sage-bright); flex-shrink: 0; margin-top: 3px; }
.info-card p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); margin: 0; }

@media (max-width: 1024px) {
  .rb-grid { grid-template-columns: 1fr; gap: 44px; }
  .ingredients-card { position: static; }
}

@media (max-width: 768px) {
  .rec-hero { padding: 100px 0 40px; }
  /* Mobile : carrousel à faire glisser — photo 1, vidéo, puis les autres photos. */
  .gallery-grid, .gallery-grid.has-video, .gallery-grid[class*="g-count"] {
    --gh: min(460px, 62vh);
    display: flex; gap: 10px; height: var(--gh); overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin: 0 -24px; padding: 0 24px; scroll-padding: 0 24px;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-grid > * { flex: 0 0 86%; height: 100%; scroll-snap-align: center; }
  .gallery-grid.g-count-1:not(.has-video) > *, .gallery-grid.g-count-0 > * { flex-basis: 100%; }
  .gallery-grid .g-extra { display: block; }
  .gallery-grid .g-main { order: 0; }
  .gallery-grid .g-video { order: 1; flex: 0 0 calc(var(--gh) * 9 / 16); }
  .gallery-grid .g-side { order: 2; }
  .gallery-grid.g-count-0 { justify-content: center; }
  .g-more { display: none; }
  .g-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
  .g-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line-light); transition: background 0.2s ease, transform 0.2s ease; }
  .g-dots span.on { background: var(--sage); transform: scale(1.25); }
  .g-lb-prev, .g-lb-next { top: auto; bottom: 14px; transform: none; }
  .nutri-grid { grid-template-columns: 1fr 1fr; }
  .duo { grid-template-columns: 1fr; }
  .tip { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .rec-quickmeta { gap: 10px; }
  .nutri-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   PAGE "QUI SUIS-JE" — d'après Katfoodiet - Qui suis-je.html
============================================================ */
.tag-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--sage); color: var(--paper); font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 16px; border-radius: 999px; }

/* Hero */
.about-hero { padding: 140px 0 80px; position: relative; overflow: hidden; }
.about-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 60% at 88% 20%, oklch(80% 0.045 110 / 0.32) 0%, transparent 60%); pointer-events: none; }
.about-hero .container { position: relative; }
.ah-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: 64px; align-items: center; }
.ah-photo .frame { aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; }
.ah-photo .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ah-text h1 {
  font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(42px, 5.2vw, 74px);
  line-height: 1.02; color: var(--ink); letter-spacing: -0.025em; text-wrap: balance; margin: 20px 0 22px;
}
.ah-text h1 em { font-style: italic; color: var(--sage); }
.ah-text .lead { font-size: 18px; line-height: 1.7; color: var(--ink); font-weight: 500; margin: 0; }
.ah-text .lead strong { color: var(--terra); font-weight: 600; }

/* Story */
.story { padding: 20px 0 60px; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.story-grid p { font-size: 16.5px; line-height: 1.75; color: var(--ink-soft); margin: 0; }
.story-grid p + p { margin-top: 20px; }
.story-lead-col p:first-child { font-family: 'Instrument Serif', serif; font-size: 24px; line-height: 1.4; color: var(--ink); font-style: italic; }

/* Credentials strip */
.creds { padding: 36px 0; }
.creds .inner { background: var(--forest); border-radius: 20px; padding: 26px 36px; display: flex; flex-wrap: wrap; gap: 14px 48px; align-items: center; justify-content: center; }
.cred { display: flex; align-items: center; gap: 12px; color: var(--paper); }
.cred .c-lbl { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); margin: 0; }
.cred .c-val { font-family: 'JetBrains Mono', monospace; font-size: 15px; color: var(--paper); letter-spacing: 0.02em; margin: 0; }
.cred-sep { width: 1px; height: 26px; background: var(--line-dark); }

/* Formations */
.formations { padding: 80px 0 100px; }
.form-head { max-width: 640px; margin-bottom: 56px; }
.form-head h2 { margin-top: 16px; }
.timeline { border-top: 1px solid var(--line-light); }
.tl-item { display: grid; grid-template-columns: 150px 1fr auto; gap: 32px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line-light); transition: background 0.2s ease; }
.tl-item:hover { background: oklch(96% 0.010 80 / 0.6); }
.tl-year { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 500; color: var(--sage-muted); letter-spacing: 0.02em; margin: 0; }
.tl-body h3 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 24px; color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
.tl-body p { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.tl-status { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; white-space: nowrap; }
.tl-status.done { background: var(--paper-tint); color: var(--sage-muted); }
.tl-status.ongoing { background: oklch(64% 0.095 58 / 0.16); color: var(--terra); }

@media (max-width: 1024px) {
  .ah-grid { grid-template-columns: 1fr; gap: 56px; max-width: 560px; margin: 0 auto; }
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-lead-col { margin-bottom: 20px; }
}

@media (max-width: 768px) {
  .about-hero { padding: 100px 0 60px; }
  .creds .inner { flex-direction: column; gap: 18px; padding: 26px 24px; }
  .cred-sep { display: none; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; align-items: start; }
  .tl-status { justify-self: start; }
}

/* ============================================================
   PAGE "RECETTES" — d'après Katfoodiet - Recettes.html
   (la grille de résultats réutilise .rec-grid/.rec-card, déjà stylés
   plus haut pour la section recettes de l'accueil)
============================================================ */
.recettes-wrap { max-width: 1440px; margin: 0 auto; padding: 156px 48px 90px; display: grid; grid-template-columns: 288px 1fr; gap: 56px; align-items: start; }

/* Sidebar */
.rside h2 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 30px; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 8px; }
.rside h2.rmt { margin-top: 44px; }
.rside-list { list-style: none; margin: 0; padding: 0; }
.rside-list li { border-bottom: 1px solid var(--line-light); }
.rside-list > li > a, .rside-list summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; font-size: 15px; font-weight: 500; color: var(--ink-soft); cursor: pointer; transition: color 0.2s; }
.rside-list > li > a:hover, .rside-list summary:hover { color: var(--sage); }
.rside-list > li > a.active { color: var(--ink); font-weight: 600; }
.rside-list details summary { list-style: none; }
.rside-list details summary::-webkit-details-marker { display: none; }
.rchev { width: 16px; height: 16px; color: var(--ink-faint); flex-shrink: 0; transition: transform 0.25s ease; }
details[open] .rchev { transform: rotate(180deg); }
.rsub { list-style: none; padding: 2px 4px 16px; margin: 0; }
.rsub li { border: none; }
.rsub label { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.rsub label:hover { color: var(--ink); }
.rsub input { appearance: none; width: 16px; height: 16px; border: 1.5px solid var(--line-light); border-radius: 5px; cursor: pointer; flex-shrink: 0; transition: all 0.18s ease; position: relative; background: transparent; }
.rsub input[type="radio"] { border-radius: 50%; }
.rsub input:checked { background: var(--sage); border-color: var(--sage); }
.rsub input[type="checkbox"]:checked::after { content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rsub input[type="radio"]:checked::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #fff; }

/* Main */
.rfilter-toggle { display: none; }
.rsearch { position: relative; margin-bottom: 34px; }
.rsearch svg { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-faint); }
.rsearch input { width: 100%; border: 1.5px solid var(--line-light); border-radius: 999px; background: oklch(96% 0.010 80 / 0.6); padding: 17px 26px 17px 56px; font-size: 15px; font-family: 'Manrope', sans-serif; color: var(--ink); transition: border-color 0.2s, background 0.2s; }
.rsearch input::placeholder { color: var(--ink-faint); }
.rsearch input:focus { outline: none; border-color: var(--sage); background: oklch(97% 0.008 80); }

.rresults-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; gap: 20px; flex-wrap: wrap; }
.rresults-count { font-size: 22px; font-weight: 700; color: var(--ink); }
.rresults-count span { color: var(--ink-faint); font-weight: 500; }
.rreset { font-size: 14px; font-weight: 600; color: var(--sage-muted); text-decoration: none; }
.rreset:hover { color: var(--sage); }
.rno-results { color: var(--ink-soft); font-size: 15px; }
.rmain .rec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.rpagination { display: flex; gap: 8px; margin-top: 48px; justify-content: center; }
.rpage-link { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-light); color: var(--ink-soft); text-decoration: none; font-size: 14px; font-weight: 600; transition: all 0.2s; }
.rpage-link:hover { border-color: var(--sage); color: var(--sage); }
.rpage-link.active { background: var(--forest); border-color: var(--forest); color: var(--paper); }

@media (max-width: 1080px) {
  .recettes-wrap { grid-template-columns: 240px 1fr; gap: 36px; padding: 140px 32px 70px; }
}

@media (max-width: 760px) {
  .recettes-wrap { grid-template-columns: 1fr; gap: 24px; padding: 120px 22px 60px; }
  .rfilter-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 15px 20px; border: 1.5px solid var(--line-light); border-radius: 14px; background: transparent; font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; margin-bottom: 20px; }
  .rfilter-toggle svg { width: 18px; height: 18px; color: var(--sage); }
  .rside { display: none; order: 2; }
  .rside.open { display: block; }
  .rmain { order: 1; }
  .rmain .rec-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE "CONSULTATIONS" — d'après Katfoodiet - Consultations.html
============================================================ */
/* Hero */
.cs-hero { padding: 140px 0 60px; }
.cs-grid { display: grid; grid-template-columns: 1fr 0.82fr; gap: 60px; align-items: center; }
.cs-hero h1 {
  font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(44px, 5.6vw, 80px);
  line-height: 1.02; color: var(--ink); letter-spacing: -0.025em; text-wrap: balance; margin: 20px 0 22px;
}
.cs-hero h1 em { font-style: italic; color: var(--sage); }
.cs-hero .lead { font-size: 18px; line-height: 1.7; color: var(--ink-soft); max-width: 46ch; margin-bottom: 34px; }
.cs-photo { aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; }
.cs-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Accompagner */
.accompany { padding: 80px 0; }
.acc-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.acc-photo { aspect-ratio: 5 / 6; border-radius: 24px; overflow: hidden; }
.acc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-list { list-style: none; margin-top: 28px; margin-bottom: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.acc-list li { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line-light); }
.acc-list li:last-child { border-bottom: none; }
.acc-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--paper-tint); display: grid; place-items: center; color: var(--sage); flex-shrink: 0; }
.acc-list p { font-size: 16px; line-height: 1.6; color: var(--ink); padding-top: 8px; margin: 0; }

/* Types de suivis */
.suivis { padding: 90px 0; background: var(--paper-tint); }
.suivis-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: var(--paper); border: 1px solid var(--line-light); border-radius: 22px; padding: 36px 32px; display: flex; flex-direction: column; }
.plan.feature { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.plan-tag { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); margin-bottom: 14px; }
.plan.feature .plan-tag { color: var(--sage-bright); }
.plan h3 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 28px; line-height: 1.1; letter-spacing: -0.01em; margin-top: 0; margin-bottom: 14px; }
.plan p { font-size: 15px; line-height: 1.65; color: var(--ink-soft); flex: 1; margin: 0; }
.plan.feature p { color: oklch(84% 0.013 82); }
.plan-price { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line-light); display: flex; align-items: baseline; gap: 8px; }
.plan.feature .plan-price { border-top-color: var(--line-dark); }
.plan-price .amount { font-family: 'Instrument Serif', serif; font-size: 42px; line-height: 1; color: var(--ink); }
.plan.feature .plan-price .amount { color: var(--paper); }
.plan-price .per { font-size: 13.5px; color: var(--ink-faint); font-family: 'JetBrains Mono', monospace; }
.plan.feature .plan-price .per { color: oklch(78% 0.02 90); }

/* Application */
.appli { padding: 90px 0; }
.appli-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.appli h2 span { display: block; font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 0.04em; color: var(--terra); text-transform: none; margin-top: 10px; font-style: normal; }
.appli .intro { font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); margin: 20px 0 26px; }
.appli-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; }
.appli-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.appli-list li svg { width: 18px; height: 18px; color: var(--sage-bright); flex-shrink: 0; margin-top: 2px; }
.appli-shots { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.shot { border-radius: 18px; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot.tall { grid-row: 1 / 3; aspect-ratio: 9 / 16; }
.shot.sq { aspect-ratio: 1 / 1; }

@media (max-width: 980px) {
  .cs-grid, .acc-grid, .appli-grid { grid-template-columns: 1fr; gap: 44px; }
  .cs-photo, .acc-photo { max-width: 460px; }
  .acc-photo { order: 2; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .cs-hero { padding: 100px 0 40px; }
}

@media (max-width: 560px) {
  .appli-shots { grid-template-columns: 1fr 1fr; }
  .shot.tall { grid-row: auto; aspect-ratio: 3 / 4; }
}

/* ============================================================
   PAGE "CONTACT" — d'après Katfoodiet - Contact.html
============================================================ */
/* Hero */
.ct-hero { padding: 140px 0 20px; text-align: center; }
.ct-hero h1 {
  font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(44px, 5.6vw, 80px);
  line-height: 1.02; color: var(--ink); letter-spacing: -0.025em; text-wrap: balance; margin: 20px auto 22px; max-width: 16ch;
}
.ct-hero h1 em { font-style: italic; color: var(--sage); }
.ct-hero .lead { font-size: 18px; line-height: 1.7; color: var(--ink-soft); max-width: 52ch; margin: 0 auto; }

/* Grille principale */
.ct-main { padding: 56px 0 90px; }
.ct-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }

/* Colonne infos */
.info-block { margin-bottom: 38px; }
.info-block:last-child { margin-bottom: 0; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; }
.info-list li { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line-light); }
.info-list li:last-child { border-bottom: none; }
.info-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--paper-tint); display: grid; place-items: center; color: var(--sage); flex-shrink: 0; }
.info-ico svg { width: 20px; height: 20px; }
.info-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 5px; }
.info-value { font-size: 16px; line-height: 1.5; color: var(--ink); }
.info-value a { color: var(--ink); text-decoration: none; transition: color 0.2s ease; }
.info-value a:hover { color: var(--sage); }
.info-value .sub { display: block; font-size: 14px; color: var(--ink-soft); margin-top: 3px; }

.socials { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.soc { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1px solid var(--line-light); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; transition: all 0.2s ease; }
.soc:hover { background: var(--sage); border-color: var(--sage); color: var(--paper); }
.soc svg { width: 16px; height: 16px; }

/* Colonne formulaire */
.form-card { background: var(--paper-tint); border: 1px solid var(--line-light); border-radius: 24px; padding: 40px; }
.form-card h2 { font-size: clamp(26px, 2.6vw, 34px); }
.form-intro { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 12px 0 30px; max-width: 44ch; }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 9px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: 'Manrope', sans-serif; font-size: 15px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-light); border-radius: 12px; padding: 13px 16px; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px oklch(60% 0.045 108 / 0.14); }
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b5651' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.form-note { margin-top: 16px; font-size: 12.5px; color: var(--ink-faint); line-height: 1.5; text-align: center; }
.form-status { margin-bottom: 18px; padding: 14px 18px; border-radius: 12px; background: oklch(60% 0.045 108 / 0.14); color: var(--sage-muted); font-size: 14px; font-weight: 600; text-align: center; }
.form-status.form-status-error { background: oklch(64% 0.095 58 / 0.16); color: var(--terra); }
.btn.block { width: 100%; justify-content: center; }

/* Bandeau infos pratiques */
.practical { padding: 80px 0; background: var(--paper-tint); }
.prac-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.prac-grid .map-frame { aspect-ratio: 16 / 11; }
.prac-head { max-width: 44ch; }
.hours { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.hours li { display: flex; justify-content: space-between; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line-light); font-size: 15px; }
.hours li:last-child { border-bottom: none; }
.hours .day { color: var(--ink); }
.hours .time { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--ink-soft); }
.hours .time.closed { color: var(--ink-faint); }

@media (max-width: 980px) {
  .ct-grid, .prac-grid { grid-template-columns: 1fr; gap: 44px; }
  .prac-grid .map-frame { max-width: 520px; order: 2; margin: 0 auto; }
}
@media (max-width: 768px) {
  .ct-hero { padding: 100px 0 20px; }
}
@media (max-width: 560px) {
  .ct-hero h1 { font-size: clamp(38px, 10vw, 52px); margin-top: 16px; }
  .ct-hero .lead { font-size: 16px; }
  .ct-main { padding: 40px 0 64px; }
  .ct-grid, .prac-grid { gap: 36px; }
  .form-card { padding: 28px 20px; border-radius: 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .soc { flex: 1 1 auto; justify-content: center; }
  .info-list li { padding: 16px 0; }
  .info-ico { width: 38px; height: 38px; }
  .practical { padding: 56px 0; }
  .prac-grid .map-frame { max-width: none; aspect-ratio: 4 / 3; }
}

/* ============================================================
   PODCAST — d'après Katfoodiet - Section Podcast.html
============================================================ */
.podcast {
  --sage: #847d54; --sage-soft: #a3a07a; --sage-deep: #67603f; --ink: #3b2d2a; --ink-soft: #6b5651;
  --cream: #f1ebe4; --peach: #f1ebe4; --line: rgba(59,45,42,0.12);
  position: relative; overflow: hidden; background: var(--sage-deep); color: var(--cream); padding: 96px 0;
}
.podcast::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 120% at 85% 0%, rgba(163,160,122,.35), transparent 55%),
              radial-gradient(ellipse 50% 100% at 0% 100%, rgba(59,45,42,.4), transparent 55%);
  pointer-events: none;
}
.podcast .container { position: relative; }
.pod-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }

.pod-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage-soft); margin-bottom: 20px; }
.pod-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--sage-soft); }
.pod-new { background: var(--sage-soft); color: var(--sage-deep); border-radius: 999px; padding: 3px 10px; font-weight: 600; letter-spacing: 0.08em; }
.podcast h2 {
  font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05; letter-spacing: -0.02em; color: var(--cream); text-wrap: balance; margin-top: 0; margin-bottom: 20px;
}
.podcast h2 em { font-style: italic; color: var(--sage-soft); }
.pod-lead { font-size: 17px; line-height: 1.7; color: rgba(241,235,228,.82); max-width: 52ch; margin-bottom: 32px; }

.pod-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.pod-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-decoration: none; border: 1.5px solid transparent; transition: all 0.22s ease; }
.pod-btn-primary { background: var(--cream); color: var(--sage-deep); }
.pod-btn-primary:hover { background: #fff; transform: translateY(-1px); }
.pod-btn-ghost { border-color: rgba(241,235,228,.35); color: var(--cream); }
.pod-btn-ghost:hover { border-color: var(--cream); background: rgba(241,235,228,.08); }
.pod-btn svg { width: 16px; height: 16px; }

.pod-platforms { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 12.5px; color: rgba(241,235,228,.6); font-family: 'JetBrains Mono', monospace; }
.pod-platforms span { letter-spacing: 0.06em; }
.pod-platforms a { color: rgba(241,235,228,.75); text-decoration: none; transition: color 0.2s ease; }
.pod-platforms a:hover { color: var(--cream); }

/* Épisodes */
.pod-panel { background: rgba(247,244,239,.06); border: 1px solid rgba(241,235,228,.14); border-radius: 24px; padding: 14px; }
.pod-cover-row { display: flex; align-items: center; gap: 18px; padding: 16px 16px 20px; }
.pod-cover { width: 78px; height: 78px; border-radius: 16px; overflow: hidden; flex-shrink: 0; box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.pod-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pod-cover-row .title { font-family: 'Instrument Serif', serif; font-size: 26px; line-height: 1; color: var(--cream); margin: 0; }
.pod-cover-row .sub { font-size: 13px; color: rgba(241,235,228,.65); margin-top: 6px; }
.ep { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px; border-radius: 16px; text-decoration: none; transition: background 0.2s ease; }
.ep + .ep { margin-top: 2px; }
.ep:hover { background: rgba(247,244,239,.07); }
.ep-play { width: 44px; height: 44px; border-radius: 50%; background: var(--sage-soft); color: var(--sage-deep); display: grid; place-items: center; flex-shrink: 0; transition: transform 0.2s ease; }
.ep:hover .ep-play { transform: scale(1.06); }
.ep-play svg { width: 16px; height: 16px; margin-left: 2px; }
.ep-meta .num { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-soft); margin-bottom: 4px; }
.ep-meta .name { font-size: 15px; font-weight: 600; color: var(--cream); line-height: 1.35; }
.ep-dur { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: rgba(241,235,228,.6); white-space: nowrap; }

@media (max-width: 980px) {
  .pod-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 768px) {
  .podcast { padding: 64px 0; }
}
@media (max-width: 560px) {
  .pod-cover-row { flex-wrap: wrap; gap: 14px; }
  .ep { grid-template-columns: auto 1fr; gap: 14px; }
  .ep-dur { grid-column: 2; justify-self: start; }
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer { background: oklch(30% 0.038 120); color: var(--paper); padding: 88px 0 44px; }
.site-footer .container { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 56px; }
.site-footer .brand-col .brand-name { font-family: 'Instrument Serif', serif; font-size: 38px; color: var(--paper); margin-bottom: 12px; line-height: 1; }
.site-footer .brand-col .brand-name em { font-style: italic; color: var(--sage-bright); }
.site-footer .brand-col p { font-size: 14px; color: oklch(70% 0.020 88); line-height: 1.65; max-width: 30ch; }
.site-footer h4 { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage-muted); margin-bottom: 20px; font-weight: 500; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.site-footer ul a { color: oklch(80% 0.013 82); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.site-footer ul a:hover { color: var(--paper); }
.footer-bottom {
  max-width: 1280px; margin: 64px auto 0; padding: 26px 40px 0; border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; font-size: 11.5px; color: oklch(52% 0.020 88);
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em;
}

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes scaleIn { to { opacity: 1; transform: scale(1); } }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero h1, .hero-kicker, .hero-lead, .hero-ctas, .hero-visual {
    opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important;
  }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .spec-intro { grid-template-columns: 1fr; gap: 20px; }
  .spec-intro .spec-link-row { grid-column: 1; justify-content: flex-start; }
  .spec-featured { grid-template-columns: 1fr; }
  .spec-featured-visual { aspect-ratio: 2 / 1; min-height: 180px; }
  .test-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .container { grid-template-columns: 1fr 1fr; gap: 40px; }

  nav.top .row { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  nav.top.scrolled { border-bottom-color: transparent; }
  .logo img { height: 54px; }
  .nav-actions .btn-primary { display: none; }
  .sticky-cta { display: block; }
}

@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 24px; }
  .hero, .trust-bar, .specialties, .testimonials, .recipes, .cta-band, .location, .social { padding: 46px 0; }

  .hero { min-height: auto; padding: 84px 0 36px !important; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: clamp(40px, 11vw, 60px); margin-bottom: 18px; }
  .hero-kicker { margin-bottom: 14px; }
  .hero-lead { font-size: 16px; margin-bottom: 24px; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-ctas.wp-block-buttons .btn { flex: 1 1 auto; justify-content: center; }

  .trust-bar { padding: 18px 0 !important; }
  .trust-bar .container { justify-content: center; gap: 20px 32px; }
  .trust-divider { display: none; }

  .spec-featured-content { padding: 24px 22px; }
  .spec-intro { gap: 12px; margin-bottom: 20px; }
  .spec-featured-visual { aspect-ratio: 16 / 9; min-height: 170px; }
  .spec-list { grid-template-columns: 1fr; }
  .spec-item { padding: 18px 4px; border-bottom: 1px solid var(--line-light); }
  .spec-item:nth-child(odd) { border-right: none; padding-right: 4px; padding-left: 4px; }
  .spec-item:nth-child(even) { padding-left: 4px; }
  .spec-item:last-child { border-bottom: none; }

  .test-intro { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
  .testimonials { padding: 32px 0 !important; }
  .test-grid { grid-template-columns: 1fr; }
  .rec-intro { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
  .rec-grid .wp-block-post-template {
    display: flex; grid-template-columns: none; gap: 16px; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin: 0 -24px; padding: 0 24px 8px;
  }
  .rec-grid .wp-block-post-template::-webkit-scrollbar { display: none; }
  .rec-grid .wp-block-post-template > li { flex: 0 0 78%; scroll-snap-align: start; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .social { padding-top: 28px !important; }
  .social-head { padding-bottom: 24px; }
  .cta-band { padding: 48px 0 !important; }
  .loc-grid { grid-template-columns: 1fr; }
  .loc-intro { margin-bottom: 20px; }
  .loc-card-head { padding: 22px 20px 18px; }
  .loc-card-body { padding: 18px 20px 22px; }
  .map-frame { aspect-ratio: 4 / 3; min-height: 190px; }
  .map-pin { align-self: start; margin-top: 30px; }
  .site-footer { padding: 44px 0 24px; }
  .site-footer .container { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .site-footer .brand-col { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; padding: 18px 24px 0; }
}

@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 18px; }
  .hero, .trust-bar, .specialties, .testimonials, .recipes, .cta-band, .location, .social { padding: 36px 0; }
  .hero { padding: 78px 0 28px !important; }
  .hero h1 { font-size: clamp(33px, 12vw, 46px); }
  .hero-ctas.wp-block-buttons { flex-direction: column; align-items: stretch; }
  .hero-ctas.wp-block-buttons .btn { width: 100%; }
  .spec-featured-content { padding: 20px 18px; }
  .rec-grid .wp-block-post-template { margin: 0 -18px; padding: 0 18px 8px; }
  .site-footer .container { grid-template-columns: 1fr; }
}

/* ============================================================
   ESPACE PATIENTS — recettes réservées, page Mon espace
============================================================ */
.recipe-gate { padding: 64px 0 96px; }
.gate-card {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: var(--paper-tint); border: 1px solid var(--line-light); border-radius: 24px;
  padding: 52px 48px;
}
.gate-ico {
  width: 58px; height: 58px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--forest); color: var(--paper);
}
.gate-by, .espace .gate-by {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--sage); display: block; margin-bottom: 14px;
}
.gate-card h2 {
  font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.06; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; margin-bottom: 16px;
}
.gate-card h2 em, .espace h1 em { font-style: italic; color: var(--sage); }
.gate-card > p { font-size: 16.5px; line-height: 1.65; color: var(--ink-soft); max-width: 50ch; margin: 0 auto 28px; }
.gate-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.gate-note { font-size: 14px; color: var(--ink-soft); margin-top: 22px !important; }
.gate-note a, .espace .lead a, .espace-logout a, .form-note a { color: var(--terra); font-weight: 600; }

.rec-lock {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--forest); color: var(--paper);
  padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.rec-lock svg { width: 12px; height: 12px; }

.espace { min-height: 70vh; padding-bottom: 96px; }
.espace-login { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: start; }
.espace-login .form-card { background: #fff; }
.espace-remember { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); margin: 4px 0 22px; cursor: pointer; }
.espace-remember input { accent-color: var(--sage); }
.form-note { font-size: 13.5px; text-align: center; margin-top: 16px; }
.espace-welcome { margin-bottom: 28px; }
.espace-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.espace-logout { margin-top: 48px; font-size: 14px; }

@media (max-width: 900px) {
  .espace-login { grid-template-columns: 1fr; gap: 32px; }
  .espace-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .gate-card { padding: 36px 22px; border-radius: 20px; }
  .espace-grid { grid-template-columns: 1fr; }
  .gate-actions .btn { white-space: normal; text-align: center; justify-content: center; }
}

/* ---------- Bouton Espace patient (en-tête) ---------- */
.nav-espace { padding: 11px 20px; }
.nav-espace svg { width: 16px; height: 16px; }
.nav-espace:hover svg { transform: none; }
.nav-espace.is-current { border-color: var(--sage); color: var(--sage); }
.mobile-menu a.mobile-espace { color: var(--sage); font-weight: 700; }
@media (max-width: 1024px) {
  /* Sur mobile : rond avec l'icône seule, à côté du menu. */
  .nav-espace { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .nav-espace span { display: none; }
}

/* ---------- Favoris ---------- */
.fav-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: 'Manrope', sans-serif; font-size: 13.5px; font-weight: 600; color: var(--ink);
  background: oklch(97% 0.008 78); border: 1.5px solid var(--line-light); border-radius: 999px;
  padding: 9px 16px; transition: all 0.2s ease;
}
.fav-btn svg { width: 17px; height: 17px; fill: none; stroke: var(--terra); stroke-width: 2; transition: transform 0.2s ease, fill 0.2s ease; }
.fav-btn:hover { border-color: var(--terra); }
.fav-btn.is-fav svg { fill: var(--terra); }
.fav-btn:active svg { transform: scale(0.85); }
.fav-btn:disabled { opacity: 0.7; cursor: progress; }
.rec-fav-row { margin-top: 22px; }
.fav-on-card {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 40px; height: 40px; padding: 0; justify-content: center;
  background: oklch(97% 0.008 78 / 0.94); border-color: transparent;
}
.fav-on-card .fav-label { display: none; }

/* ---------- Tableau de bord ---------- */
.espace-dash { min-height: 0; padding-bottom: 0; }
.espace-dash::before {
  height: 1100px; bottom: auto;
  /* Le dégradé du haut s'estompe au lieu de s'arrêter net. */
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
}
.esp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.esp-head h1 { margin-top: 0; }
.esp-stats { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
.esp-stats li {
  min-width: 108px; padding: 16px 18px; border-radius: 16px;
  background: var(--paper-tint); border: 1px solid var(--line-light);
}
.esp-stats strong { display: block; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 36px; line-height: 1; color: var(--ink); }
.esp-stats span { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

.esp-tabs { display: flex; gap: 6px; margin-top: 40px; border-bottom: 1px solid var(--line-light); }
.esp-tabs a {
  padding: 12px 18px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.2s ease;
}
.esp-tabs a:hover { color: var(--ink); }
.esp-tabs a.is-active { color: var(--ink); border-bottom-color: var(--sage); }
.esp-tabs .esp-logout { margin-left: auto; color: var(--terra); font-weight: 500; }
.esp-logout { display: inline-flex; align-items: center; gap: 8px; }
.esp-logout svg { width: 16px; height: 16px; }

.espace-body { padding: 48px 0 96px; }
.espace-body > .lead { font-size: 17px; color: var(--ink-soft); }
.esp-section { margin-bottom: 64px; }
.esp-section-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.esp-section-head h2, .esp-rdv h2, .esp-account h2 {
  font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.08; letter-spacing: -0.02em; color: var(--ink);
}
.esp-section-head h2 em, .esp-rdv h2 em { font-style: italic; color: var(--sage); }
.esp-section-head p { font-size: 14px; color: var(--ink-faint); margin: 0; }

.esp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.esp-grid:empty { display: none; }
.esp-card { position: relative; }
.esp-card[hidden] { display: none; }
.rec-tag.rec-new { background: var(--gold); color: var(--ink); }

.esp-empty {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 24px; border-radius: 16px; border: 1.5px dashed var(--sand);
  color: var(--ink-soft); font-size: 15px;
}
.esp-empty[hidden] { display: none; }
.esp-empty svg { width: 20px; height: 20px; fill: none; stroke: var(--terra); stroke-width: 2; flex-shrink: 0; }

.esp-filters { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.esp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.esp-chip {
  font-family: 'Manrope', sans-serif; font-size: 13.5px; font-weight: 600; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line-light);
  background: transparent; color: var(--ink-soft); transition: all 0.2s ease;
}
.esp-chip:hover { border-color: var(--sage); color: var(--ink); }
.esp-chip.is-active { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.esp-search { position: relative; display: block; width: min(320px, 100%); }
.esp-search svg { position: absolute; left: 16px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--ink-faint); }
.esp-search input {
  width: 100%; padding: 12px 18px 12px 44px; border-radius: 999px;
  border: 1.5px solid var(--line-light); background: oklch(97% 0.008 78);
  font-family: 'Manrope', sans-serif; font-size: 14.5px; color: var(--ink);
}
.esp-search input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px oklch(60% 0.045 108 / 0.14); }

.esp-rdv {
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
  background: var(--paper-tint); border: 1px solid var(--line-light); border-radius: 24px; padding: 40px 44px;
}
.esp-rdv p { color: var(--ink-soft); margin: 10px 0 0; max-width: 52ch; }

.esp-account { max-width: 620px; }
.esp-account .form-card { background: #fff; }
.esp-account h2 { font-size: 28px; margin: 0 0 20px; }
.esp-account h2 + .esp-hint { margin-top: -12px; }
.esp-account form h2:not(:first-of-type) { margin-top: 36px; }
.esp-hint { font-size: 13.5px; color: var(--ink-faint); margin-bottom: 18px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

@media (max-width: 900px) {
  .esp-grid { grid-template-columns: 1fr 1fr; }
  .esp-head { align-items: flex-start; }
}
@media (max-width: 600px) {
  .esp-grid { grid-template-columns: 1fr; }
  .esp-stats { width: 100%; }
  .esp-stats li { flex: 1; min-width: 0; padding: 14px; }
  .esp-tabs a { white-space: nowrap; padding: 12px 12px; }
  .esp-tabs .esp-logout span { display: none; }
  .esp-rdv { padding: 30px 22px; }
  .esp-search { width: 100%; }
}

/* ---------- Accès retiré ---------- */
.espace-removed { max-width: 640px; margin: 0 auto; text-align: center; }
.espace-removed .lead { margin: 0 auto 30px; }
.espace-removed h1 { margin-top: 0; }

/* ---------- Mon compte : suppression, confidentialité ---------- */
.esp-delete { margin-top: 28px; border: 1px solid var(--line-light); border-radius: 18px; padding: 18px 24px; background: oklch(97% 0.008 78); }
.esp-delete summary { cursor: pointer; font-weight: 600; color: var(--terra); }
.esp-delete[open] summary { margin-bottom: 14px; }
.esp-delete > p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 18px; }
.esp-delete-btn { background: transparent; color: var(--terra); border-color: var(--terra); }
.esp-delete-btn:hover { background: var(--terra); color: var(--paper); }
.esp-privacy { margin-top: 24px; font-size: 13px; line-height: 1.6; color: var(--ink-faint); }
.esp-privacy a { color: var(--ink-soft); }

/* ============================================================
   EBOOKS (Easy Digital Downloads) — page-ebooks.php,
   single-download.php, template-parts/ebook-*.php
============================================================ */
.ebk-hero { padding-bottom: 40px; }
/* Le halo de .rec-hero::before est coupé net par overflow:hidden en bas de section :
   on le fond progressivement pour éviter la ligne visible au-dessus du catalogue. */
.ebk-hero::before, .ebk-single::before, .ebk-shop::before {
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.ebk-reassure { margin-top: 30px; }

.ebk-catalog { padding: 20px 0 90px; }
.ebk-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.ebk-filters { display: flex; gap: 10px; flex-wrap: wrap; }
.ebk-filters .chip { cursor: pointer; font-family: 'Manrope', sans-serif; transition: all 0.2s ease; }
.ebk-filters .chip span { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; opacity: 0.65; }
.ebk-filters .chip:hover { border-color: var(--ink-soft); }
.ebk-filters .chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.ebk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.ebk-card { text-decoration: none; color: inherit; display: block; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); }
.ebk-card:hover { transform: translateY(-6px); }
.ebk-card[hidden] { display: none; }
.ebk-card h3 { font-family: 'Instrument Serif', serif; font-size: 24px; font-weight: 400; color: var(--ink); line-height: 1.18; letter-spacing: -0.01em; margin-bottom: 8px; }
.ebk-sub { font-size: 14px; line-height: 1.55; color: var(--ink-soft); margin-bottom: 12px; }

.ebk-cover {
  aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; position: relative; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(150deg, oklch(68% 0.055 106), oklch(48% 0.050 108));
  box-shadow: 0 1px 0 var(--line-light), 0 18px 40px -24px oklch(28% 0.018 40 / 0.45);
}
.ebk-cover img { width: 100%; height: 100%; object-fit: cover; }
.ebk-cover-title { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 26px; line-height: 1.15; color: var(--paper); text-align: center; padding: 0 22px; text-wrap: balance; }
.ebk-price {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  background: oklch(94% 0.008 75 / 0.94); color: var(--ink);
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.03em;
}
.ebk-price.is-free { background: var(--gold); color: var(--ink); text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; }

/* Fiche ebook */
.ebk-single-grid { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: 64px; align-items: center; }
.ebk-cover-lg { margin-bottom: 0; border-radius: 18px; }
.ebk-cover-lg .ebk-cover-title { font-size: 36px; }
.ebk-single-info h1 { margin-top: 18px; }
.ebk-buy { margin-top: 34px; padding: 26px 28px; background: oklch(96% 0.010 80 / 0.7); border: 1px solid var(--line-light); border-radius: 20px; max-width: 520px; }
.ebk-buy-price { font-family: 'Instrument Serif', serif; font-size: 40px; line-height: 1; color: var(--ink); margin-bottom: 18px; }
.ebk-buy .edd_download_purchase_form { margin: 0; }
.ebk-buy .edd_purchase_submit_wrapper { margin: 0; }
.ebk-buy .edd-submit.btn, .ebk-buy .edd_go_to_checkout { width: 100%; justify-content: center; }
.ebk-buy .edd_download_purchase_form .edd-submit.button,
.ebk-buy .edd_download_purchase_form a.edd_go_to_checkout.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 999px;
  background: var(--sage); color: var(--paper); border: 1.5px solid var(--sage); box-shadow: none;
  font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: 0.01em; text-decoration: none;
}
/* Bouton de secours sans JS d'EDD : masqué, comme le fait edd.min.css hors thème. */
.ebk-buy .edd_download_purchase_form .edd-submit.button.edd-no-js { display: none; }
.ebk-buy .edd_download_purchase_form .edd-submit.button:hover,
.ebk-buy .edd_download_purchase_form a.edd_go_to_checkout.button:hover { background: var(--sage-bright); border-color: var(--sage-bright); transform: translateY(-1px); }
.ebk-buy-note { font-size: 13px; color: var(--ink-faint); margin: 14px 0 0 !important; }

.ebk-body { padding: 40px 0 70px; }
.ebk-body-grid { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.ebk-desc { font-size: 16.5px; line-height: 1.75; color: var(--ink-soft); }
.ebk-desc > * + * { margin-top: 1em; }
.ebk-desc h2, .ebk-desc h3 { font-family: 'Instrument Serif', serif; font-weight: 400; color: var(--ink); line-height: 1.15; }
.ebk-desc h2 { font-size: 32px; margin-top: 1.4em; }
.ebk-desc h3 { font-size: 24px; margin-top: 1.2em; }
.ebk-points { background: var(--paper-tint); border: 1px solid var(--line-light); border-radius: 20px; padding: 28px; position: sticky; top: 110px; }
.ebk-points h2 { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); font-weight: 500; margin-bottom: 16px; }
.ebk-points ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ebk-points li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.ebk-points li::before { content: ''; position: absolute; left: 0; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(-45deg); }
.ebk-others h2 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(28px, 3vw, 40px); color: var(--ink); margin-bottom: 32px; }
.ebk-others .ebk-grid { grid-template-columns: repeat(3, 1fr); }

/* FAQ + CTA */
.ebk-faq { padding: 30px 0 80px; }
.ebk-faq h2, .ebk-cta h2 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.06; letter-spacing: -0.02em; color: var(--ink); margin: 16px 0 28px; }
.ebk-cta h2 em { font-style: italic; color: var(--sage); }
.ebk-faq-list { border-top: 1px solid var(--line-light); }
.ebk-faq-list details { border-bottom: 1px solid var(--line-light); }
.ebk-faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 16.5px; font-weight: 600; color: var(--ink); }
.ebk-faq-list summary::-webkit-details-marker { display: none; }
.ebk-faq-list details p { padding: 0 0 22px; font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); max-width: 70ch; }
.ebk-cta { padding: 0 0 100px; }
.ebk-cta-card { display: flex; justify-content: space-between; align-items: center; gap: 32px; background: var(--paper-tint); border: 1px solid var(--line-light); border-radius: 24px; padding: 44px 48px; }
.ebk-cta-card h2 { margin: 0 0 10px; font-size: clamp(26px, 2.8vw, 38px); }
.ebk-cta-card p { color: var(--ink-soft); font-size: 16px; }

/* Pages EDD : paiement, merci, échec, mes commandes */
.ebk-shop { min-height: 70vh; padding-bottom: 96px; }
.ebk-shop h1 { margin-bottom: 36px; }
.ebk-shop-content { font-size: 15.5px; color: var(--ink); }
.ebk-shop-content fieldset { border: 1px solid var(--line-light); border-radius: 20px; padding: 26px 28px; margin: 0 0 22px; background: #fff; }
.ebk-shop-content legend { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); padding: 0 8px; }
.ebk-shop-content label, .ebk-shop-content .edd-label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.ebk-shop-content input[type="text"], .ebk-shop-content input[type="email"], .ebk-shop-content input[type="tel"], .ebk-shop-content select {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line-light); background: var(--paper);
  font-family: 'Manrope', sans-serif; font-size: 15px; color: var(--ink);
}
.ebk-shop-content input:focus, .ebk-shop-content select:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px oklch(60% 0.045 108 / 0.14); }
.ebk-shop-content input[type="checkbox"] { accent-color: var(--sage); width: 17px; height: 17px; margin-right: 8px; vertical-align: -3px; }
.ebk-shop-content [class*="agree"] label, .ebk-shop-content [class*="privacy"] label { font-family: 'Manrope', sans-serif; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink-soft); line-height: 1.55; }
.ebk-shop-content a { color: var(--terra); }
.ebk-shop-content table { width: 100%; border-collapse: collapse; margin-bottom: 22px; background: #fff; border-radius: 16px; overflow: hidden; }
.ebk-shop-content th, .ebk-shop-content td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-light); }
.ebk-shop-content th { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.ebk-shop-content input[type="submit"], .ebk-shop-content button[type="submit"], .ebk-shop-content .edd-submit, .ebk-shop-content .button {
  display: inline-flex; align-items: center; justify-content: center; padding: 15px 30px; border-radius: 999px; border: 1.5px solid var(--sage);
  background: var(--sage); color: var(--paper); font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.22s ease; text-decoration: none;
}
.ebk-shop-content input[type="submit"]:hover, .ebk-shop-content button[type="submit"]:hover, .ebk-shop-content .edd-submit:hover, .ebk-shop-content .button:hover { background: var(--sage-bright); border-color: var(--sage-bright); }
.ebk-shop-content .edd-alert { border-radius: 12px; }
/* Grille du bloc EDD : sans minmax(0, 1fr) la colonne prend la largeur du contenu
   et déborde de l'écran sur mobile. */
.ebk-shop-content #edd_checkout_form_wrap { grid-template-columns: minmax(0, 1fr); }
.ebk-shop-content #edd_checkout_form_wrap > *, .ebk-shop-content #edd_checkout_form_wrap input, .ebk-shop-content #edd_checkout_form_wrap select { min-width: 0; max-width: 100%; }
/* Formulaire de paiement (bloc EDD) : les styles EDD sont plus spécifiques
   que les règles génériques ci-dessus, d'où les sélecteurs par id. */
.ebk-shop-content fieldset { min-width: 0; }
.ebk-shop-content fieldset legend, .ebk-shop-content #edd_checkout_form_wrap fieldset legend {
  white-space: normal; float: left; width: 100%; padding: 0; margin: 0 0 22px;
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage);
}
.ebk-shop-content fieldset legend + * { clear: both; }
.ebk-shop-content #edd_checkout_form_wrap #edd_purchase_submit {
  padding: 26px 28px; border: 1px solid var(--line-light); border-radius: 20px; background: #fff;
}
.ebk-shop-content #edd_checkout_form_wrap #edd_purchase_submit fieldset { padding: 0; margin: 0 0 16px; border: 0; border-radius: 0; background: transparent; }
.ebk-shop-content .edd-show-terms { margin-bottom: 14px; font-size: 14px; }
.ebk-shop-content .edd-terms { font-size: 14px; color: var(--ink-soft); background: var(--paper); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.ebk-shop-content .edd-terms-agreement, .ebk-shop-content .edd-privacy-policy-agreement { display: flex; align-items: flex-start; gap: 10px; }
.ebk-shop-content .edd-terms-agreement input[type="checkbox"], .ebk-shop-content .edd-privacy-policy-agreement input[type="checkbox"] { flex-shrink: 0; margin: 2px 0 0; }
.ebk-shop-content #edd_terms_agreement label, .ebk-shop-content #edd-privacy-policy-agreement label {
  margin: 0; font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-soft); line-height: 1.55;
}
.ebk-shop-content #edd_purchase_submit #edd-purchase-button.edd-submit {
  margin-top: 8px; padding: 15px 30px; height: auto; border-radius: 999px; border: 1.5px solid var(--sage);
  background: var(--sage); color: var(--paper); font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 600; box-shadow: none; cursor: pointer;
}
.ebk-shop-content #edd_purchase_submit #edd-purchase-button.edd-submit:hover { background: var(--sage-bright); border-color: var(--sage-bright); }

@media (max-width: 1080px) {
  .ebk-grid { grid-template-columns: repeat(3, 1fr); }
  .ebk-body-grid { grid-template-columns: 1fr; }
  .ebk-points { position: static; }
}
@media (max-width: 860px) {
  .ebk-grid, .ebk-others .ebk-grid { grid-template-columns: repeat(2, 1fr); }
  .ebk-single-grid { grid-template-columns: 1fr; gap: 36px; }
  .ebk-cover-lg { max-width: 340px; }
  .ebk-cta-card { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
}
@media (max-width: 520px) {
  .ebk-grid, .ebk-others .ebk-grid { grid-template-columns: 1fr; }
  .ebk-buy { padding: 22px 20px; }
  .ebk-buy .edd-submit.btn { white-space: normal; text-align: center; }
  .ebk-shop-content fieldset { padding: 20px 18px; }
  .ebk-shop-content #edd_checkout_form_wrap #edd_purchase_submit { padding: 20px 18px; }
  .ebk-shop-content .edd-blocks-cart__row { padding-left: 0; padding-right: 0; }
}
