/* ==========================================================================
   POULE POSITION — La bible du poulailler
   Design system & feuille de style globale
   Palette « basse-cour éditoriale » : chaleureuse, naturelle, premium
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Couleurs de fond */
  --cream:      #FBF6EC;
  --cream-2:    #F4ECDC;
  --paper:      #FFFFFF;
  --sand:       #F0E6D2;

  /* Encre & texte */
  --ink:        #2A211A;
  --ink-soft:   #4A3E32;
  --muted:      #7C6C5A;
  --muted-2:    #A2917C;

  /* Accents */
  --brick:      #C24A2E;   /* crête du coq / terracotta — accent principal */
  --brick-dark: #A0381F;
  --brick-soft: #F6E1D7;
  --yolk:       #EFA82B;   /* jaune d'œuf — accent secondaire */
  --yolk-soft:  #FBEBC6;
  --olive:      #5E7B3C;   /* nature / réussite */
  --olive-soft: #E4ECD6;
  --forest:     #21301E;   /* sections sombres */
  --forest-2:   #2C3F27;

  /* Lignes & ombres */
  --line:       #E9DFCC;
  --line-2:     #DCCFB4;
  --shadow-sm:  0 1px 2px rgba(42,33,26,.06), 0 1px 3px rgba(42,33,26,.05);
  --shadow-md:  0 6px 20px -6px rgba(42,33,26,.18);
  --shadow-lg:  0 24px 50px -18px rgba(42,33,26,.30);

  /* Typo */
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Rythme */
  --radius:     14px;
  --radius-lg:  22px;
  --radius-pill: 999px;
  --container:  1180px;
  --gutter:     clamp(18px, 4vw, 40px);
}

/* ---------- Skip link (accessibilité) ----------------------------------- */
.skip-link { position: absolute; left: -999px; top: 0; z-index: 300; background: var(--ink); color: #fff; padding: .7em 1.2em; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; color: #fff; }

/* ---------- 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brick); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brick-dark); }
ul, ol { padding-left: 1.2em; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yolk); outline-offset: 2px; border-radius: 6px; }

/* ---------- 3. Typographie ---------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 640; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 650; }
.lead { font-size: 1.2rem; color: var(--muted); line-height: 1.7; }
small, .small { font-size: .86rem; }

/* Eyebrow / kicker */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body);
  font-weight: 700; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brick);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brick); border-radius: 2px; }
.eyebrow.on-dark { color: var(--yolk); }
.eyebrow.on-dark::before { background: var(--yolk); }

/* ---------- 4. Layout ---------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-sm { padding-block: clamp(40px, 5vw, 64px); }
.section.alt { background: var(--cream-2); }
.section.paper { background: var(--paper); }
.section.dark { background: var(--forest); color: #EFE7D6; }
.section.dark h1, .section.dark h2, .section.dark h3 { color: #FBF6EC; }
.section.dark p { color: #CFC6B4; }
.section.brick { background: linear-gradient(150deg, var(--brick) 0%, var(--brick-dark) 100%); color: #FCEFE9; }
.section.brick h2, .section.brick h3 { color: #fff; }
.section.brick p { color: #F6DED4; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 54px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: .8rem; font-size: 1.1rem; color: var(--muted); }

.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- 5. Boutons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .82em 1.5em; border-radius: var(--radius-pill);
  font-weight: 650; font-size: .98rem; letter-spacing: .01em;
  cursor: pointer; transition: transform .16s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--brick); color: #fff; box-shadow: 0 10px 22px -10px rgba(194,74,46,.7); }
.btn-primary:hover { background: var(--brick-dark); color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #FBF6EC; }
.btn-dark:hover { background: #14100c; color: #fff; transform: translateY(-2px); }
.btn-yolk { background: var(--yolk); color: #3a2a05; box-shadow: 0 10px 22px -10px rgba(239,168,43,.7); }
.btn-yolk:hover { background: #e29a1c; transform: translateY(-2px); color: #3a2a05; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.btn-ghost.on-dark { color: #FBF6EC; border-color: rgba(255,255,255,.35); }
.btn-ghost.on-dark:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { padding: .58em 1.05em; font-size: .88rem; }
.btn-lg { padding: 1em 1.9em; font-size: 1.06rem; }
.btn-block { width: 100%; }

/* ---------- 6. Cartes ---------------------------------------------------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.card.hover:hover, a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card-body { padding: clamp(18px, 2.2vw, 26px); display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card-body h3 { color: var(--ink); }
.card-media { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }

/* Carte-fonctionnalité avec icône */
.feature { text-align: left; }
.feature .ficon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: var(--brick-soft); color: var(--brick); margin-bottom: .4rem;
}
.feature .ficon svg { width: 26px; height: 26px; }
.feature .ficon.yolk { background: var(--yolk-soft); color: #b9791a; }
.feature .ficon.olive { background: var(--olive-soft); color: var(--olive); }

/* ---------- 7. Illustration / média décoratif --------------------------- */
.illus { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--sand); }
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(160deg, var(--yolk-soft), var(--brick-soft)); box-shadow: var(--shadow-lg); }
.tag-float {
  position: absolute; background: var(--paper); border-radius: var(--radius); padding: .6em .9em; box-shadow: var(--shadow-md);
  font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: .5em;
}

/* ---------- 8. Badges & pills ------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: .4em; padding: .32em .8em; border-radius: var(--radius-pill);
  font-size: .76rem; font-weight: 700; letter-spacing: .02em; background: var(--sand); color: var(--ink-soft);
}
.badge.brick { background: var(--brick-soft); color: var(--brick-dark); }
.badge.yolk  { background: var(--yolk-soft); color: #a9760f; }
.badge.olive { background: var(--olive-soft); color: var(--olive); }
.badge.ink   { background: var(--ink); color: #fbf6ec; }
.chip {
  display: inline-flex; align-items: center; gap: .4em; padding: .5em 1em; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-2); background: var(--paper); font-size: .88rem; font-weight: 600; color: var(--ink-soft);
  cursor: pointer; transition: all .16s ease; user-select: none;
}
.chip:hover { border-color: var(--brick); color: var(--brick); }
.chip.is-active { background: var(--brick); border-color: var(--brick); color: #fff; }

/* ---------- 9. Header / navigation -------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,246,236,.86); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); background: rgba(251,246,236,.95); }
.header-inner { display: flex; align-items: center; gap: 1.4rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name .brand-accent { color: var(--brick); }

.main-nav { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.main-nav > a, .nav-dropdown-toggle {
  padding: .55em .8em; border-radius: 10px; font-weight: 550; font-size: .95rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: .3em;
}
.main-nav > a:hover, .nav-dropdown-toggle:hover { background: var(--sand); color: var(--ink); }
.main-nav a.is-active { color: var(--brick); background: var(--brick-soft); }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle svg { width: 14px; height: 14px; transition: transform .2s ease; }
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .18s ease; z-index: 50;
}
.nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a { display: flex; align-items: center; gap: .6em; padding: .6em .7em; border-radius: 10px; color: var(--ink-soft); font-weight: 550; font-size: .93rem; }
.nav-dropdown-menu a:hover { background: var(--sand); color: var(--brick); }
.nav-dropdown-menu a .dico { width: 20px; text-align: center; }

.header-actions { display: flex; align-items: center; gap: .6rem; margin-left: .4rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 11px; border: 1.5px solid var(--line-2); align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1024px) {
  .main-nav, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: .1rem;
    position: fixed; inset: 72px 0 auto 0; background: var(--cream); padding: 1rem var(--gutter) 2rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .main-nav.open > a, .main-nav.open .nav-dropdown-toggle { padding: .9em .7em; font-size: 1.05rem; }
  .main-nav.open .nav-dropdown { width: 100%; }
  .main-nav.open .nav-dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 .4rem 1rem; background: transparent; }
}

/* ---------- 10. Hero ----------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px); background: radial-gradient(1100px 500px at 80% -10%, var(--yolk-soft), transparent 60%), var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin: .5rem 0 1rem; }
.hero .lead { max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero-stats .stat .n { font-family: var(--font-display); font-size: 1.9rem; font-weight: 640; color: var(--brick); }
.hero-stats .stat .l { font-size: .82rem; color: var(--muted); }

/* Décor plumes / grain */
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0; }

/* ---------- 11. Formulaires & Newsletter -------------------------------- */
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.input, .textarea, .select {
  width: 100%; padding: .8em 1em; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--paper);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--brick); box-shadow: 0 0 0 4px var(--brick-soft); outline: none; }
.textarea { min-height: 130px; resize: vertical; }

.newsletter-box {
  background: linear-gradient(150deg, var(--forest), var(--forest-2)); color: #F0E9D8; border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 54px); position: relative; overflow: hidden;
}
.newsletter-box h2 { color: #FCF6E9; }
.newsletter-box p { color: #CFC6B2; }
.newsletter-form { display: flex; gap: .6rem; margin-top: 1.4rem; max-width: 480px; }
.newsletter-form .input { background: rgba(255,255,255,.95); border-color: transparent; }
@media (max-width: 520px) { .newsletter-form { flex-direction: column; } }
.form-note { font-size: .8rem; color: var(--muted-2); margin-top: .7rem; }

/* ---------- 12. Callouts / encadrés ------------------------------------- */
.callout { border-radius: var(--radius); padding: 1.1em 1.3em; border-left: 4px solid var(--brick); background: var(--brick-soft); color: var(--ink-soft); }
.callout.tip   { border-color: var(--olive); background: var(--olive-soft); }
.callout.warn  { border-color: var(--yolk);  background: var(--yolk-soft); }
.callout .callout-title { font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: .5em; margin-bottom: .2em; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 2.4rem; margin-bottom: .8rem; }
.prose h3 { margin-top: 1.8rem; margin-bottom: .6rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1rem; }
.prose li { margin-bottom: .35rem; }
.prose img { border-radius: var(--radius); margin-block: 1.4rem; }
.prose blockquote { border-left: 4px solid var(--yolk); padding-left: 1.2em; font-style: italic; color: var(--muted); margin-block: 1.4rem; }

/* ---------- 13. Tables --------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
table.data th, table.data td { padding: .8em 1em; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--cream-2); font-weight: 700; color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
table.data tbody tr:hover { background: var(--cream); }
table.data tbody tr:last-child td { border-bottom: none; }

/* ---------- 14. Accordéon (FAQ) ----------------------------------------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1em 1.3em; font-weight: 650; font-size: 1.02rem; color: var(--ink); text-align: left; }
.acc-head:hover { background: var(--cream); }
.acc-head .acc-ico { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brick-soft); color: var(--brick); display: grid; place-items: center; transition: transform .2s ease; font-size: 1.1rem; }
.acc-item.open .acc-ico { transform: rotate(45deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-panel-inner { padding: 0 1.3em 1.2em; color: var(--ink-soft); }

/* ---------- 15. Breadcrumb & page header -------------------------------- */
.page-hero { background: radial-gradient(900px 400px at 90% -30%, var(--brick-soft), transparent 55%), var(--cream-2); padding-block: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; gap: .5em; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 1rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brick); }
.breadcrumb .sep { opacity: .5; }
.page-hero h1 { max-width: 18ch; }
.page-hero p { margin-top: .8rem; max-width: 60ch; font-size: 1.12rem; color: var(--muted); }

/* ---------- 16. Forum ---------------------------------------------------- */
.forum-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
@media (max-width: 880px) { .forum-layout { grid-template-columns: 1fr; } }
.forum-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: .3rem; }
.forum-cat { display: flex; align-items: center; gap: .7em; padding: .7em .9em; border-radius: 12px; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: all .15s; }
.forum-cat:hover { background: var(--sand); }
.forum-cat.is-active { background: var(--brick-soft); color: var(--brick-dark); }
.forum-cat .fdot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.forum-cat .fcount { margin-left: auto; font-size: .78rem; color: var(--muted); }

.thread { display: flex; gap: 1rem; padding: 1.1em 1.2em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: all .18s; }
.thread:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.thread + .thread { margin-top: .7rem; }
.thread .avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 1rem; }
.thread-main { flex: 1; min-width: 0; }
.thread-title { font-weight: 650; color: var(--ink); font-size: 1.05rem; }
.thread-meta { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .3em 1em; margin-top: .2em; }
.thread-stats { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; padding-left: .8rem; border-left: 1px solid var(--line); text-align: center; }
.thread-stats .n { font-weight: 700; color: var(--brick); font-family: var(--font-display); }
.thread-stats .l { font-size: .72rem; color: var(--muted); }
.reply { display: flex; gap: .9rem; padding: 1rem 0; border-top: 1px solid var(--line); }

/* ---------- 17. Ad slot / monétisation ---------------------------------- */
.ad-slot {
  border: 1.5px dashed var(--line-2); border-radius: var(--radius); background: repeating-linear-gradient(45deg, var(--cream-2), var(--cream-2) 12px, var(--cream) 12px, var(--cream) 24px);
  display: grid; place-items: center; text-align: center; color: var(--muted-2); font-size: .82rem; padding: 1.4em; min-height: 100px;
}
.ad-slot .ad-label { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .68rem; }

.price-tag { font-family: var(--font-display); font-weight: 640; color: var(--brick); font-size: 1.35rem; }
.price-old { text-decoration: line-through; color: var(--muted-2); font-size: .95rem; font-weight: 500; }
.stars { color: var(--yolk); letter-spacing: 1px; font-size: .9rem; }

/* Product card */
.product .card-media { aspect-ratio: 4/3; background: var(--sand); display: grid; place-items: center; }
.product .card-body { gap: .45rem; }
.product .p-brand { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.affiliate-note { font-size: .72rem; color: var(--muted-2); }

/* ---------- 18. Footer --------------------------------------------------- */
.site-footer { background: var(--forest); color: #C9C0AE; padding-block: clamp(48px, 6vw, 72px) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #FBF6EC; margin-bottom: .8rem; }
.site-footer h5 { color: #FBF6EC; font-family: var(--font-body); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: #C9C0AE; font-size: .94rem; }
.footer-links a:hover { color: var(--yolk); }
.footer-about p { color: #A99E8A; font-size: .92rem; max-width: 34ch; }
.social { display: flex; gap: .6rem; margin-top: 1rem; }
.social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #E8E0CE; }
.social a:hover { background: var(--brick); color: #fff; }
.footer-bottom { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .82rem; color: #9C917D; }
.footer-bottom a { color: #9C917D; }
.footer-bottom a:hover { color: var(--yolk); }

/* ---------- 19. Cookie banner ------------------------------------------- */
.cookie-banner {
  position: fixed; bottom: 18px; left: 18px; right: 18px; max-width: 560px; margin-inline: auto; z-index: 200;
  background: var(--ink); color: #EDE6D8; border-radius: var(--radius); padding: 1.1em 1.3em; box-shadow: var(--shadow-lg);
  display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center;
}
.cookie-banner p { color: #D3CBBB; font-size: .88rem; flex: 1; min-width: 240px; }
.cookie-banner a { color: var(--yolk); }
.cookie-actions { display: flex; gap: .5rem; }

/* ---------- 20. Divers / utilitaires ------------------------------------ */
.text-center { text-align: center; }
.mt-0{margin-top:0}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-0{margin-bottom:0}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1{gap:.5rem}.gap-2{gap:1rem}.gap-3{gap:1.5rem}
.wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--line); border: none; margin-block: 2rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.back-to-top { position: fixed; bottom: 20px; right: 20px; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease; z-index: 90; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Stat band */
.stat-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; text-align: center; }
@media (max-width: 700px){ .stat-band { grid-template-columns: repeat(2,1fr); } }
.stat-band .n { font-family: var(--font-display); font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 640; color: var(--brick); }
.stat-band.on-dark .n { color: var(--yolk); }
.stat-band .l { color: var(--muted); font-size: .9rem; }
.stat-band.on-dark .l { color: #C9C0AE; }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content:""; position:absolute; left:7px; top:6px; bottom:6px; width:2px; background:var(--line-2); }
.tl-item { position: relative; padding-bottom: 1.6rem; }
.tl-item::before { content:""; position:absolute; left:-2rem; top:4px; width:16px; height:16px; border-radius:50%; background:var(--brick); border:3px solid var(--cream); }
.tl-item h4 { margin-bottom:.2rem; }

/* Quiz / outils */
.tool-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(22px,3vw,34px); }
.range-out { font-family: var(--font-display); font-size: 2rem; color: var(--brick); font-weight: 640; }
input[type="range"]{ width:100%; accent-color: var(--brick); }
.result-box { border-radius: var(--radius); padding: 1.2em; background: var(--olive-soft); border: 1px solid #cdddb8; }

/* ==========================================================================
   21. PHOTOGRAPHIE (vraies photos) — ajouts refonte
   ========================================================================== */
/* Ratios & couverture image */
.img-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.ratio { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.ratio > img, .ratio > .img-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ratio-16-9 { aspect-ratio: 16/9; }
.ratio-4-3  { aspect-ratio: 4/3; }
.ratio-3-2  { aspect-ratio: 3/2; }
.ratio-1-1  { aspect-ratio: 1/1; }
.ratio-3-4  { aspect-ratio: 3/4; }
.photo-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.photo-frame img { display:block; width:100%; height:100%; object-fit:cover; }
figure.ph { margin: 0; }
figure.ph figcaption { font-size: .78rem; color: var(--muted-2); margin-top: .5rem; }

/* HERO photographique */
.hero-photo { position: relative; min-height: min(84vh, 760px); display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.hero-photo .hero-photo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transform: scale(1.03); animation: kenburns 18s ease-out forwards; }
@keyframes kenburns { to { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce){ .hero-photo .hero-photo-bg { animation: none; transform: none; } }
.hero-photo::after { content:""; position:absolute; inset:0; z-index:1; background: linear-gradient(180deg, rgba(20,14,8,.28) 0%, rgba(20,14,8,.12) 35%, rgba(20,14,8,.72) 100%); }
.hero-photo-inner { position: relative; z-index: 2; padding-block: clamp(40px, 8vw, 90px); width: 100%; }
.hero-photo h1 { color: #fff; max-width: 16ch; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-photo .lead { color: #F4EBDD; max-width: 46ch; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.hero-photo .hero-stats { border-top-color: rgba(255,255,255,.25); }
.hero-photo .hero-stats .n { color: #fff; }
.hero-photo .hero-stats .l { color: #E8DECB; }

/* Bande image pleine largeur + texte superposé */
.imgband { position: relative; overflow: hidden; }
.imgband > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.imgband::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(33,48,30,.86) 0%, rgba(33,48,30,.62) 55%, rgba(33,48,30,.25) 100%); z-index:1; }
.imgband .imgband-inner { position: relative; z-index: 2; color: #F1EADB; padding-block: clamp(48px,7vw,90px); }
.imgband h2 { color: #fff; }
.imgband p { color: #D8CFBE; }

/* Tuile photo cliquable avec titre en overlay (parcours / guides) */
.tile { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); min-height: 230px; color:#fff; }
.tile img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition: transform .5s ease; z-index:0; }
.tile::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(20,14,8,.78)); z-index:1; }
.tile:hover img { transform: scale(1.07); }
.tile .tile-body { position: relative; z-index: 2; padding: 1.3rem; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 230px; }
.tile .tile-body h3 { color:#fff; }
.tile .tile-body p { color: rgba(255,255,255,.85); font-size: .92rem; }
.tile .tile-kicker { font-size:.72rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color: var(--yolk); }

/* Carte de race (photo + infos + typologie d'espace) */
.breed-card { cursor: pointer; }
.breed-card .card-media { aspect-ratio: 4/3; }
.breed-card .breed-origin { position:absolute; top:.6rem; left:.6rem; z-index:2; background: rgba(255,255,255,.92); border-radius: var(--radius-pill); padding:.28em .7em; font-size:.76rem; font-weight:700; box-shadow: var(--shadow-sm); }
.breed-stats { display:grid; grid-template-columns: 1fr 1fr; gap:.4rem .8rem; font-size:.84rem; margin-top:.3rem; }
.breed-stats .bs { display:flex; align-items:center; gap:.35em; color: var(--muted); }
.breed-stats .bs b { color: var(--ink); font-weight:650; }
.space-badge { display:inline-flex; align-items:center; gap:.4em; padding:.3em .7em; border-radius: var(--radius-pill); font-size:.76rem; font-weight:700; }
.space-Confinable { background: var(--olive-soft); color: var(--olive); }
.space-Jardin { background: var(--yolk-soft); color:#a9760f; }
.space-Grand.parcours, .space-Grandparcours { background: var(--brick-soft); color: var(--brick-dark); }

/* Modal fiche race */
.modal-open { overflow: hidden; }
.pp-modal { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: 20px; }
.pp-modal.open { display: flex; }
.pp-modal-back { position: absolute; inset: 0; background: rgba(20,14,8,.6); backdrop-filter: blur(3px); }
.pp-modal-card { position: relative; background: var(--paper); border-radius: var(--radius-lg); max-width: 720px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.pp-modal-card .modal-photo { aspect-ratio: 16/10; }
.pp-modal-close { position: absolute; top: .8rem; right: .8rem; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: var(--shadow-md); display: grid; place-items: center; font-size: 1.3rem; color: var(--ink); }

/* Page-hero avec photo de fond */
.page-hero.has-photo { position: relative; overflow: hidden; border-bottom: none; color: #fff; }
.page-hero.has-photo > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.page-hero.has-photo::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(20,14,8,.35), rgba(20,14,8,.7)); z-index:1; }
.page-hero.has-photo .container { position: relative; z-index: 2; }
.page-hero.has-photo h1 { color:#fff; text-shadow:0 2px 20px rgba(0,0,0,.4); }
.page-hero.has-photo p { color:#EDE3D3; }
.page-hero.has-photo .breadcrumb, .page-hero.has-photo .breadcrumb a { color: rgba(255,255,255,.8); }

/* Avatar photo rond (témoignages / annonces) */
.pic-round { border-radius: 50%; object-fit: cover; }
.listing-media { aspect-ratio: 4/3; position: relative; }
.listing-media .badge { position: absolute; top:.6rem; left:.6rem; }
.credit { font-size:.7rem; color: var(--muted-2); }
