/* =========================================================
   KARNIVORE — feuille de style principale
   Palette : nuit/charbon, vert forêt très sombre, parchemin,
   accent braise (ember) en remplacement de l'or/bourgogne.
   Typo : Cormorant Garamond (titres, fin) + Mulish (texte, doux)
   ========================================================= */

:root{
  --forest-dark:#0c110d;
  --forest:#1a2320;
  --charcoal:#0a0a0a;
  --anthracite:#2a2b2d;
  --anthracite-dark:#1c1d1f;
  --parchment:#d7d6d3;
  --parchment-dark:#c2c1bd;
  --burgundy:#742c1c;
  --burgundy-light:#9a4630;
  --gold:#6b6b3a;
  --gold-light:#bdb76b;
  --cream-text:#eee6d6;
  --ink:#1a1510;
  --shadow: 0 14px 40px rgba(4,6,4,0.45);
  --radius: 0;
  --max-width: 1140px;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Mulish', 'Source Sans 3', Arial, sans-serif;
}

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

html{ scroll-behavior: smooth; }

body{
  margin:0;
  font-family: var(--font-sans);
  font-weight:400;
  background-color: var(--charcoal);
  background-image:
    repeating-linear-gradient(45deg, rgba(189,183,107,0.032) 0 2px, transparent 2px 9px),
    linear-gradient(rgba(8,10,8,0.55), rgba(8,10,8,0.55)),
    var(--body-img, url('images/bg-montagne-08.jpg'));
  background-size: auto, cover, cover;
  background-position: center, center, center;
  background-repeat: repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed;
  color: #e9e2d3;
  line-height:1.75;
  font-size: 17px;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 860px){
  /* fixed backgrounds can jank on mobile Safari; scroll instead */
  body{ background-attachment: scroll, scroll; }
}

img{ max-width:100%; display:block; }

a{ color: var(--gold-light); text-decoration: none; }
a:hover{ color: #fff; }

/* Accessibilité — repère visuel net au clavier (Tab), sans gêner la souris/tactile */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible{
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,h2,h3,h4{
  font-family: var(--font-serif);
  color: var(--cream-text);
  line-height:1.18;
  font-weight:600;
  letter-spacing: 0.2px;
  margin: 0 0 0.6em;
}

h1{ font-size: clamp(2.4rem, 5vw, 3.9rem); color: var(--cream-text); font-weight:500; }
h2{ font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight:500; }
h3{ font-size: clamp(1.4rem, 2.3vw, 1.85rem); color: var(--gold-light); font-weight:600; }

p{ margin: 0 0 1.1em; }

.container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ HEADER / NAV ============ */
.site-header{
  background:
    repeating-linear-gradient(45deg, rgba(189,183,107,0.032) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, var(--anthracite), var(--anthracite-dark));
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top:0;
  z-index: 100;
}

.nav-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand-logo{
  height: 96px;
  width: auto;
  display:block;
}

.nav-toggle{
  display:none;
  background:none;
  border: 1px solid var(--gold);
  border-radius: 0;
  width: 42px;
  height:38px;
  cursor:pointer;
  position:relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:"";
  position:absolute;
  left:9px; right:9px;
  height:2px;
  background: var(--gold-light);
}
.nav-toggle span{ top:18px; }
.nav-toggle span::before{ top:-7px; }
.nav-toggle span::after{ top:7px; }

.nav-menu{
  display:flex;
  gap: 28px;
  list-style:none;
  margin:0; padding:0;
}
.nav-menu a{
  color: var(--parchment);
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight:600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav-menu a:hover, .nav-menu a[aria-current="page"]{
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

@media (max-width: 860px){
  .brand-logo{ height: 64px; }
  .subnav{ top: 95px; }
  .nav-toggle{ display:block; }
  .nav-menu{
    position:absolute;
    top:100%; left:0; right:0;
    background: var(--anthracite-dark);
    flex-direction: column;
    gap:0;
    max-height:0;
    overflow:hidden;
    transition: max-height .3s ease;
    border-bottom: 3px solid var(--gold);
  }
  .nav-menu.open{ max-height: 480px; }
  .nav-menu li{ border-top:1px solid rgba(189,183,107,0.25); }
  .nav-menu a{ display:block; padding: 14px 24px; }
}

/* ============ HERO ============ */
.hero{
  background:
    radial-gradient(ellipse at top left, rgba(189,183,107,0.18), transparent 60%),
    linear-gradient(160deg, var(--forest-dark) 0%, #1a2a1c 55%, var(--charcoal) 100%);
  color: var(--cream-text);
  padding: 72px 0 56px;
}
.hero .container{ max-width: 880px; }
.hero .kicker{
  display:inline-block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  color: var(--gold-light);
  margin-bottom: 14px;
  font-weight:700;
}
.hero p.lede{
  color: #e7e1d3;
  font-size: 1.15rem;
  max-width: 70ch;
  font-style: italic;
}
.hero-divider{
  position:relative;
  width:70px; height:3px;
  background: var(--gold-light);
  margin: 18px 0 22px 46px;
  border:none;
}
.hero-divider::before{
  content:"";
  position:absolute;
  left:-46px; top:50%;
  transform:translateY(-50%);
  width:34px; height:22px;
  background-image: url('images/karnivore-logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center left;
}

/* ============ HERO WITH REAL PHOTO BACKGROUND ============ */
.hero.hero--photo{
  position: relative;
  padding: 104px 0 68px;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 2px solid rgba(189,183,107,0.55);
}
.hero.hero--photo .hero-bg-img{
  position:absolute; left:0; right:0;
  top:-10%;
  width:100%; height:120%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.85) contrast(1.05);
  z-index:-2;
  will-change: transform;
}
.hero.hero--photo::after{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(8,10,8,0.6) 0%, rgba(12,17,13,0.78) 65%, var(--charcoal) 100%);
  z-index:-1;
}

/* Sur mobile, la hauteur de la bande hero était pilotée uniquement par le
   texte (padding + titre + accroche), ce qui la rendait bien plus "carrée"
   que sur ordinateur : object-fit:cover recadrait alors surtout à gauche/
   droite au lieu de haut/bas, coupant souvent le sujet des photos. On vise
   ici un ratio proche de celui des photos sources (3:2), mais en min-height
   (pas aspect-ratio) : sur les pages à l'accroche plus longue (ex. accueil),
   le bloc peut grandir pour ne jamais rogner le texte — aspect-ratio fixait
   une hauteur stricte qui, combinée à overflow:hidden, coupait le texte. */
@media (max-width: 700px){
  .hero.hero--photo{
    min-height: calc(100vw * 2 / 3);
    padding: 48px 0 32px;
  }
  .hero.hero--photo h1{ font-size: 1.9rem; }
  .hero.hero--photo .hero-divider{ display:none; }
  .hero.hero--photo .hero-bg-img{
    top: -5%;
    height: 110%;
  }
}

/* ============ REAL PHOTO FRAME (matches Photo: captions to actual images) ============ */
/* Template-wide standard: every photo uses the same panoramic 21:9 band,
   full text width. Legacy ratio-4-3 / ratio-tall modifiers are neutralised
   so any figure, whatever class it carries, renders identically. */
.photo-real{
  position: relative;
  border-radius: 0;
  overflow: hidden;
  margin: 30px auto;
  max-width: 100%;
  box-shadow: 0 8px 22px rgba(4,6,4,0.28);
  border: 1px solid rgba(189,183,107,0.3);
  aspect-ratio: 28 / 9;
  transition: border-color .35s ease, box-shadow .35s ease;
}
.photo-real:hover{
  border-color: var(--gold-light);
  box-shadow: 0 16px 34px rgba(4,6,4,0.4);
}
.photo-real.ratio-4-3,
.photo-real.ratio-tall,
.photo-real.ratio-wide{ aspect-ratio: 28 / 9; max-width: 100%; }
.photo-real img{
  width:100%; height:100%;
  object-fit: cover;
  object-position: center;
  display:block;
  transition: transform .6s cubic-bezier(.25,.8,.25,1), filter .5s ease, opacity .5s ease;
}
.photo-real:hover img{
  transform: scale(1.045);
  filter: saturate(1.08) brightness(1.03);
}

/* ============ FICHE ANIMAL — montage photo-forward ============ */
/* Pas de carte, pas d'encadré : une grande photo pleine largeur, sans
   bordure ni coin arrondi, avec le titre posé directement dessus. Le
   texte qui suit coule normalement dans la page, sans bloc autour. */
.animal-feature{
  position: relative;
  margin: 36px 0 0;
  overflow: hidden;
  border: 1px solid rgba(189,183,107,0.4);
}
.animal-feature-img{
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  display:block;
  filter: saturate(0.88) contrast(1.05);
  transition: transform .7s cubic-bezier(.25,.8,.25,1);
}
.animal-feature:hover .animal-feature-img{
  transform: scale(1.035);
}
.animal-feature-caption{
  position: absolute;
  left:0; right:0; bottom:0;
  padding: 50px 30px 22px;
  background: linear-gradient(180deg, transparent 0%, rgba(6,7,5,0.55) 45%, rgba(6,7,5,0.88) 100%);
}
.animal-feature-caption h3{
  margin:0;
  color: var(--gold-light);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  display:flex;
  align-items:center;
  gap: 12px;
}
.animal-feature-body{
  padding-top: 22px;
}
.animal-feature-body p:last-child{ margin-bottom: 0; }
@media (max-width: 700px){
  /* Les 10 photos (gib-02 à gib-13) sont au format paysage 3:2 ; passer en
     3:4 (portrait) sur mobile forçait un zoom très fort qui coupait presque
     toujours le museau/les bois. On reste en format paysage (4:3) pour
     garder le sujet entier. */
  .animal-feature-img{ aspect-ratio: 4 / 3; }
  .animal-feature-caption{ padding: 34px 20px 16px; }
}

/* Page d'accueil : même grading que la photo Hero (ton chasse/forêt),
   pour une cohérence visuelle sur toutes les photos de la page. */
.page-accueil .photo-real img{
  filter: saturate(0.85) contrast(1.05);
}
.page-accueil .photo-real:hover img{
  transform: scale(1.045);
  filter: saturate(0.92) contrast(1.05) brightness(1.03);
}
@media (prefers-reduced-motion: reduce){
  .photo-real img{ transition:none; }
  .photo-real:hover img{ transform:none; }
}

/* Responsive crop: the SAME source photo is reframed by the browser at
   each breakpoint (no extra files needed) — wide/short on desktop,
   progressively taller on smaller screens so the subject stays visible
   and the band never becomes a razor-thin strip on a phone. */
@media (max-width: 900px){
  .photo-real{ aspect-ratio: 2 / 1; }
  .photo-real.ratio-4-3,
  .photo-real.ratio-tall,
  .photo-real.ratio-wide{ aspect-ratio: 2 / 1; }
}
@media (max-width: 560px){
  .photo-real{ aspect-ratio: 3 / 2; }
  .photo-real.ratio-4-3,
  .photo-real.ratio-tall,
  .photo-real.ratio-wide{ aspect-ratio: 3 / 2; }
}
.photo-real figcaption{
  position:absolute; left:0; right:0; bottom:0;
  background: linear-gradient(0deg, rgba(8,8,6,0.78) 0%, rgba(8,8,6,0.3) 60%, transparent 100%);
  color: var(--parchment);
  font-family: var(--font-serif);
  font-style: italic;
  padding: 36px 18px 12px;
  font-size: 0.88rem;
  text-align:center;
  letter-spacing: 0.3px;
  transition: background .35s ease;
}
.photo-real:hover figcaption{
  background: linear-gradient(0deg, rgba(8,8,6,0.86) 0%, rgba(8,8,6,0.4) 60%, transparent 100%);
}

/* Photos inside a card now follow the same full-width panoramic template
   instead of floating small, so every photo on the site matches. */
.info-card::after{ content:""; display:table; clear:both; }

/* ============ PAGE / SECTIONS ============ */
main{ display:block; }

.page-section{
  position: relative;
  padding: 54px 0;
  background: rgba(4,5,4,0.3);
  border-bottom: 1px solid rgba(233,226,211,0.08);
}
.page-section:last-of-type{ border-bottom:none; }
.page-section.alt{
  position: relative;
  color: #e9e2d3;
  background: rgba(4,5,4,0.48);
  border-bottom: none;
}
.page-section.alt h2,
.page-section.alt h4{ color: var(--cream-text); }
.page-section.alt h3{ color: var(--gold-light); }
.page-section.alt p{ color: #e9e2d3; }
.page-section.alt a{ color: var(--gold-light); }
.page-section.alt a:hover{ color: #fff; }
.page-section.alt .section-eyebrow{ color: var(--gold-light); }
.page-section.alt .lede-text{ color: #e9e2d3; }
.page-section.alt .gold-rule{ background: var(--gold); }
.page-section.alt ul.styled-list li::before{ background-image:none; background-color: var(--gold-light); }
.page-section.alt blockquote.pull-quote{
  background: rgba(6,6,4,0.4);
  border-left-color: var(--gold);
  color: var(--cream-text);
}
.page-section.alt blockquote.pull-quote cite{ color: var(--gold-light); }
.page-section.alt .tag-list li{
  background: rgba(189,183,107,0.12);
  border-color: rgba(189,183,107,0.35);
  color: var(--gold-light);
}

.section-eyebrow{
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: var(--gold-light);
  font-weight:700;
  margin-bottom: 6px;
  display:block;
}

.gold-rule{
  width:60px; height:3px;
  background: var(--gold);
  border:none;
  margin: 6px 0 26px;
}

.lede-text{
  font-size: 1.1rem;
  color: #d8d0bf;
}

/* ============ PULL QUOTES ============ */
blockquote.pull-quote{
  position: relative;
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--cream-text);
  text-align: left;
  border: none;
  border-left: 4px solid var(--gold);
  background: rgba(189,183,107,0.10);
  padding: 18px 28px;
  margin: 36px 0;
  line-height:1.5;
  border-radius: 0;
}
blockquote.pull-quote p{ margin:0 0 0.5em; }
blockquote.pull-quote p:last-child{ margin-bottom:0; }
blockquote.pull-quote cite{
  display:block;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.85rem;
  color: var(--gold-light);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============ PHOTO PLACEHOLDER ============ */
.photo-placeholder{
  /* display: none; -- masqué temporairement le temps des photos ; réactiver cette ligne pour la mise en ligne définitive */
  position: relative;
  aspect-ratio: 28 / 9;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-dark) 45%, var(--charcoal) 100%);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  overflow:hidden;
  margin: 28px 0;
  box-shadow: var(--shadow);
  border: 1px solid rgba(189,183,107,0.4);
}
.recipe-card-header + .photo-placeholder{
  margin-top: 0;
}
.photo-placeholder::before{
  content:"";
  position:absolute; inset:0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 10px);
}
.photo-placeholder.ratio-4-3,
.photo-placeholder.ratio-tall,
.photo-placeholder.ratio-wide{ aspect-ratio: 28 / 9; }
@media (max-width: 900px){
  .photo-placeholder,
  .photo-placeholder.ratio-4-3,
  .photo-placeholder.ratio-tall,
  .photo-placeholder.ratio-wide{ aspect-ratio: 2 / 1; }
}
@media (max-width: 560px){
  .photo-placeholder,
  .photo-placeholder.ratio-4-3,
  .photo-placeholder.ratio-tall,
  .photo-placeholder.ratio-wide{ aspect-ratio: 3 / 2; }
}
.photo-placeholder .ph-icon{
  width:46px; height:46px;
  color: var(--gold-light);
  opacity:0.9;
  z-index:1;
}
.photo-placeholder .ph-icon svg{ width:100%; height:100%; }
.photo-placeholder figcaption{
  z-index:1;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--parchment);
  font-size: 0.95rem;
  text-align:center;
  padding: 0 20px;
  letter-spacing: 0.3px;
}
.photo-placeholder .ph-frame-label{
  position:absolute;
  top:10px; left:14px;
  font-size:0.65rem;
  letter-spacing:2px;
  text-transform:uppercase;
  color: rgba(245,239,228,0.35);
  z-index:1;
}

/* ============ LISTS ============ */
ul.styled-list{
  list-style:none;
  margin: 0 0 1.2em;
  padding:0;
}
ul.styled-list li{
  position:relative;
  padding-left: 22px;
  margin-bottom: 9px;
}
ul.styled-list li::before{
  content:"";
  position:absolute;
  left:2px; top:9px;
  width:7px; height:7px;
  border-radius: 50%;
  background-color: var(--gold-light);
}

/* ============ TWO-COLUMN GRID ============ */
.two-col{
  display:grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 780px){
  .two-col{ grid-template-columns: 1fr 1fr; }
}
.two-col.reverse > *:first-child{ order: 2; }

/* ============ CARDS (sub-section blocks e.g. cerf/biche/daguet...) ============ */
.info-card{
  background: linear-gradient(150deg, var(--charcoal) 0%, var(--forest-dark) 100%);
  border: 1px solid rgba(189,183,107,0.35);
  border-radius: 0;
  padding: 26px 28px;
  margin-bottom: 30px;
  box-shadow: 0 10px 26px rgba(4,6,4,0.35);
  color: #e9e2d3;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.info-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(4,6,4,0.48);
  border-color: rgba(189,183,107,0.55);
}
.info-card h3{
  margin-top:0;
  color: var(--gold-light);
  display:flex;
  align-items:center;
  gap: 10px;
}
.logo-icon-h3{
  display:inline-flex;
  width: 0.75em;
  height: 0.75em;
  flex-shrink: 0;
}
.logo-icon-h3 img{ width:100%; height:100%; object-fit:contain; display:block; }
.info-card p{ color: #e9e2d3; }
.info-card ul.styled-list li{ color: #e9e2d3; }
.info-card ul.styled-list li::before{ background-image:none; background-color: var(--gold-light); }
.info-card .photo-real{ border-color: rgba(189,183,107,0.35); }

/* ============ IN-PAGE SUBNAV (menu déroulant) ============ */
/* Bouton + liste dépliable, mais traitement très allégé : pas de bandeau
   plein, pas de bouton encadré — juste un lien discret souligné au survol. */
.subnav{
  position: sticky;
  top: 127px;
  z-index: 95;
  background: rgba(10,12,9,0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(189,183,107,0.16);
}
.subnav-inner{
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px; padding-right: 24px;
}
.subnav-toggle{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  cursor:pointer;
  color: var(--gold-light);
  font-family: var(--font-sans);
  font-weight:700;
  font-size:0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 2px;
  margin: 0;
  transition: color .25s ease, border-color .25s ease;
}
.subnav-toggle:hover{
  color: #fff;
  border-bottom-color: var(--gold);
}
.subnav.open .subnav-toggle{
  color: #fff;
  border-bottom-color: var(--gold);
}
.burger-icon{
  position: relative;
  width: 20px;
  height: 16px;
  flex-shrink: 0;
}
.cutlery-icon{
  display:inline-flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: currentColor;
}
.cutlery-icon svg{ width:100%; height:100%; display:block; }
.subnav-logo-icon{
  display:inline-flex;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.subnav-logo-icon img{
  width:100%; height:100%;
  object-fit: contain;
  display:block;
  opacity: 0.9;
  transition: opacity .25s ease;
}
.subnav-toggle:hover .subnav-logo-icon img,
.subnav.open .subnav-logo-icon img{ opacity: 1; }
.cutlery-icon-sm{
  display:inline-flex;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.75;
}
.cutlery-icon-sm svg{ width:100%; height:100%; display:block; }
.logo-icon-sm{
  display:inline-flex;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity .2s ease;
}
.logo-icon-sm img{ width:100%; height:100%; object-fit:contain; display:block; }
.burger-icon span{
  position:absolute;
  left:0;
  height: 2px;
  border-radius: 0;
  background: currentColor;
  transition: transform .3s ease, opacity .2s ease, width .25s ease, top .25s ease;
}
.burger-icon span:nth-child(1){ top:0;   width:20px; }
.burger-icon span:nth-child(2){ top:7px; width:13px; }
.burger-icon span:nth-child(3){ top:14px; width:20px; }
.subnav-toggle:hover .burger-icon span:nth-child(2){ width:20px; }

.subnav.open .burger-icon span:nth-child(1){
  top:7px; width:20px;
  transform: rotate(45deg);
}
.subnav.open .burger-icon span:nth-child(2){
  opacity:0;
  transform: translateX(-8px);
}
.subnav.open .burger-icon span:nth-child(3){
  top:7px; width:20px;
  transform: rotate(-45deg);
}
@media (prefers-reduced-motion: reduce){
  .burger-icon span{ transition:none; }
}

.subnav-list{
  list-style:none;
  margin: 0;
  padding: 8px 10px;
  columns: 4;
  column-gap: 22px;
  width: min(920px, calc(100vw - 48px));
  max-width: 100%;
  background: rgba(18,20,16,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(189,183,107,0.18);
  border-radius: 0;
  box-shadow: 0 12px 28px rgba(4,6,4,0.28);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .35s ease, opacity .25s ease, margin .35s ease;
}
.subnav-list li{
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 2px;
}
.subnav.open .subnav-list{
  max-height: 70vh;
  opacity: 1;
  overflow-y: auto;
  margin-bottom: 14px;
}
@media (max-width: 980px){
  .subnav-list{ columns: 3; width: min(700px, calc(100vw - 40px)); }
}
@media (max-width: 720px){
  .subnav-list{ columns: 2; width: min(560px, calc(100vw - 32px)); }
}
@media (max-width: 480px){
  .subnav-list{ columns: 1; width: calc(100vw - 32px); }
}
.subnav-list a{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 0;
  color: var(--parchment);
  font-size: 0.9rem;
  transition: background .2s ease, color .2s ease;
}
.subnav-list a:hover .cutlery-icon-sm,
.subnav-list a:hover .logo-icon-sm{ opacity: 1; }
.subnav-list a:hover{
  background: rgba(189,183,107,0.16);
  color: var(--gold-light);
}
@media (prefers-reduced-motion: reduce){
  .subnav-list{ transition:none; }
}

/* ============ RECIPE CARDS ============ */
.recipe-card{
  background: var(--forest);
  border-radius: var(--radius);
  border: 1px solid rgba(189,183,107,0.2);
  box-shadow: var(--shadow);
  margin-bottom: 56px;
  overflow:hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.recipe-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(4,6,4,0.48);
  border-color: rgba(189,183,107,0.4);
}
.recipe-card-header{
  background: linear-gradient(120deg, var(--forest-dark), var(--forest));
  padding: 26px 30px;
  color: var(--cream-text);
}
.recipe-card-header h3{
  color: var(--gold-light);
  margin-bottom: 8px;
  display:flex;
  align-items:center;
  gap: 10px;
}
.cutlery-icon-h3{
  display:inline-flex;
  width: 0.7em;
  height: 0.7em;
  flex-shrink: 0;
}
.cutlery-icon-h3 svg{ width:100%; height:100%; display:block; }
.recipe-card-header p{
  color: #e7e1d3;
  margin:0;
  font-size: 0.98rem;
}
.recipe-meta{
  display:inline-block;
  margin-top:10px;
  font-size:0.875rem;
  letter-spacing:1px;
  text-transform:uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(189,183,107,0.5);
  padding: 4px 12px;
  border-radius: 0;
}
.recipe-facts{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.recipe-fact{
  display:inline-block;
  font-size:0.875rem;
  letter-spacing:0.3px;
  color:#e7e1d3;
  background: rgba(255,255,255,0.06);
  border:1px solid rgba(189,183,107,0.35);
  padding:4px 11px;
  border-radius: 0;
}
.recipe-fact strong{
  color: var(--gold-light);
  font-weight:700;
  margin-right:4px;
}
.recipe-fact--nutri{
  border-color: rgba(154,70,48,0.55);
}
.recipe-fact--nutri strong{ color:#d99b7a; }
.recipe-body{
  display:grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 760px){
  .recipe-body{ grid-template-columns: 280px 1fr; }
}
.recipe-ingredients{
  background: rgba(0,0,0,0.25);
  padding: 24px 26px;
  border-right: 1px solid rgba(189,183,107,0.15);
  color: #e9e2d3;
}
.recipe-ingredients h4{
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.recipe-ingredients ul{
  list-style:none; margin:0; padding:0;
}
.recipe-ingredients li{
  padding: 6px 0;
  border-bottom: 1px dashed rgba(233,226,211,0.15);
  font-size: 0.95rem;
}
.recipe-ingredients .sub-heading{
  margin-top:16px;
  font-weight:700;
  color: var(--cream-text);
  border-bottom:none;
  padding-top:10px;
}
.recipe-steps{
  padding: 24px 30px;
  color: #e9e2d3;
}
.recipe-steps h4{
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.recipe-steps ol{
  margin:0; padding-left: 1.2em;
}
.recipe-steps ol > li{
  margin-bottom: 16px;
  padding-left: 6px;
}
.recipe-steps ol > li strong{
  display:block;
  color: var(--cream-text);
  font-family: var(--font-serif);
  font-size: 1.02rem;
  margin-bottom: 2px;
}
.recipe-callouts{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 4px 30px 28px;
}
@media (min-width: 620px){
  .recipe-callouts{ grid-template-columns: repeat(3, 1fr); padding-left:26px; padding-right:26px; }
}
.callout{
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(189,183,107,0.4);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.callout .callout-title{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  font-size:0.82rem;
  text-transform:uppercase;
  letter-spacing: 0.5px;
  color: var(--gold-light);
  margin-bottom: 8px;
}
.callout .callout-title svg{ width:20px; height:20px; color: var(--gold-light); flex-shrink:0; }
.callout p{ margin:0; font-size:0.94rem; color: #e9e2d3; }
.recipe-card.condensed .recipe-body{ grid-template-columns: 1fr; }
.recipe-card.condensed .recipe-ingredients{ border-right:none; border-bottom:1px solid rgba(189,183,107,0.15); }

/* ============ LINK CARDS (recettes hub) ============ */
.link-cards{
  display:grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-top: 34px;
}
@media (min-width: 640px){
  .link-cards{ grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px){
  .link-cards{ grid-template-columns: 1fr 1fr 1fr; }
}
.link-card{
  display:block;
  background: linear-gradient(160deg, var(--forest-dark), var(--charcoal));
  color: var(--parchment);
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid rgba(189,183,107,0.35);
  transition: transform .2s, box-shadow .2s;
  position:relative;
}
.link-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.link-card h3{
  color: var(--gold-light);
  margin-bottom: 10px;
}
.link-card p{ color:#e7e1d3; font-size:0.95rem; margin-bottom:0; }
.link-card .arrow{
  display:inline-block;
  margin-top: 14px;
  color: var(--gold-light);
  font-weight:700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============ FOOTER ============ */
.site-footer{
  background:
    repeating-linear-gradient(45deg, rgba(189,183,107,0.032) 0 2px, transparent 2px 9px),
    var(--charcoal);
  color: #cfc6b6;
  padding: 46px 0 28px;
  margin-top: 40px;
}
.footer-grid{
  display:flex;
  flex-wrap:wrap;
  justify-content: space-between;
  gap: 26px;
  align-items:flex-start;
}
.footer-brand{
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--parchment);
  display:flex;
  align-items:center;
  gap:10px;
}
.footer-mark{
  height: 88px;
  width: auto;
  display:block;
}
.footer-tagline{
  max-width: 40ch;
  margin-top: 18px;
  font-size: 0.92rem;
  color: #a99e8c;
  font-style: italic;
}
.footer-links{
  list-style:none;
  margin:0; padding:0;
  display:flex;
  gap: 20px;
  flex-wrap:wrap;
}
.footer-links a{ color: var(--gold-light); font-size:0.9rem; }

/* TEMPORAIRE — masque "À table !" (nav + footer) tant que les 45 photos de recettes ne sont pas prêtes.
   Pour réactiver la section : supprimer cette règle, retirer class="nav-hidden-temp" des <li> concernés,
   remettre les 7 pages recettes en "index, follow" et les rajouter dans sitemap.xml. */
.nav-hidden-temp{ display:none; }
.footer-bottom{
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(189,183,107,0.25);
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  color: #7d7364;
  text-align:center;
}

/* ============ MISC UTIL ============ */
.center{ text-align:center; }
.mt-0{ margin-top:0; }
.small-note{ font-size:0.85rem; color:#a99e8c; font-style:italic; }
.intro-meta{
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: #d8d0bf;
}
.btn{
  display:inline-block;
  background: var(--burgundy);
  color: #fff;
  padding: 12px 26px;
  border-radius: 0;
  font-weight:700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-top: 10px;
}
.btn:hover{ background: var(--forest-dark); color:#fff; }
button.btn{ border:none; cursor:pointer; font-family: var(--font-sans); }

/* ============ BANDEAU COOKIES (RGPD) ============ */
.cookie-banner{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: var(--anthracite-dark);
  border-top: 1px solid var(--gold);
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow);
}
.cookie-banner p{
  margin: 0;
  color: var(--cream-text);
  font-size: 0.9rem;
  max-width: 760px;
  line-height: 1.5;
}
.cookie-banner p a{ color: var(--gold-light); text-decoration: underline; }
.cookie-banner-actions{ display:flex; gap:12px; flex-shrink:0; }
.cookie-banner .btn{ margin-top:0; padding: 10px 20px; }
.btn-ghost{
  display:inline-block;
  background: transparent;
  color: var(--cream-text);
  border: 1px solid var(--gold-light);
  padding: 10px 20px;
  border-radius: 0;
  font-weight:700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: var(--font-sans);
}
.btn-ghost:hover{ background: rgba(189,183,107,0.12); }
.link-button{
  background:none;
  border:none;
  padding:0;
  margin:0;
  color: var(--gold-light);
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
}
@media (max-width: 640px){
  .cookie-banner{ flex-direction: column; align-items: stretch; text-align:center; }
  .cookie-banner-actions{ justify-content:center; }
}

/* ============ CONTACT MAIL ============ */
.contact-mail-block{ max-width: 640px; margin-top: 22px; }
.contact-mail-block .btn{ font-size: 1.05rem; }
.contact-mail-note{
  margin-top: 14px;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--gold-light);
}

.tag-list{
  display:flex; flex-wrap:wrap; gap:10px;
  margin: 18px 0 0;
  padding:0;
  list-style:none;
}
.tag-list li{
  background: rgba(189,183,107,0.12);
  border: 1px solid rgba(189,183,107,0.35);
  color: var(--gold-light);
  font-size: 0.875rem;
  padding: 6px 14px;
  border-radius: 0;
  transition: background .25s ease, color .25s ease, transform .2s ease, border-color .25s ease;
}
.tag-list li:hover{
  background: rgba(189,183,107,0.3);
  border-color: var(--gold-light);
  color: #fff;
  transform: translateY(-2px);
}
.page-section.alt .tag-list li:hover{
  background: rgba(189,183,107,0.32);
  color: #fff;
}

/* ============ APPARITION AU DÉFILEMENT ============ */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: none;
}

/* ============ FONDU DES IMAGES AU CHARGEMENT ============ */
.photo-real img{ opacity: 0; }
.photo-real img.is-loaded{ opacity: 1; }
.footer-mark{ opacity: 0; transition: opacity .5s ease; }
.footer-mark.is-loaded{ opacity: 1; }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1 !important; transform:none !important; transition:none !important; }
  .photo-real img{ opacity:1 !important; }
  .footer-mark{ opacity:1 !important; }
}

/* ============ BOUTON RETOUR EN HAUT ============ */
.back-to-top{
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: linear-gradient(155deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--charcoal);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(4,6,4,0.55), 0 0 0 4px rgba(189,183,107,0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
  z-index: 90;
}
.back-to-top.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover{
  background: linear-gradient(155deg, #fff 0%, var(--gold-light) 100%);
  border-color: #fff;
  color: var(--charcoal);
  box-shadow: 0 14px 32px rgba(4,6,4,0.6), 0 0 0 5px rgba(189,183,107,0.28);
}
@media (max-width: 560px){
  .back-to-top{ right:16px; bottom:16px; width:48px; height:48px; font-size:1.3rem; }
}
@media (prefers-reduced-motion: reduce){
  .back-to-top{ transition: opacity .01s linear; }
}
