/* ==========================================================================
   BoubouLand — feuille de style unique
   Couleurs tirées d'un bouledogue fauve : la robe (fauve), la truffe (texte),
   le rose des oreilles (accent) et la panachure blanche (fond).
   Polices : Fraunces (titres) et Figtree (texte), hébergées sur le site.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-soft.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-italic.woff2") format("woff2");
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Couleurs et réglages ---------- */
:root {
  --bg: #ffffff;          /* panachure */
  --bg-soft: #fbf4ee;     /* fond doux des encadrés */
  --fawn: #e8b887;        /* robe fauve */
  --fawn-light: #f6e3cf;
  --fawn-strong: #b97a45;
  --ink: #2a1f1a;         /* truffe */
  --ink-2: #62524a;
  --rose: #b2365c;        /* intérieur des oreilles */
  --rose-soft: #fbe4ea;
  --line: #ecdfd4;
  --band: #2a1f1a;
  --band-ink: #ffffff;
  --field-line: #cbb8a9;
  --btn-bg: #2a1f1a;
  --btn-ink: #ffffff;
  --btn-hover: #4a3830;
  --shadow: 0 18px 40px -24px rgba(42, 31, 26, .45);
  --logo-jaune: #ffd91a;  /* le jaune du logo */

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
  --radius-sm: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1512;
    --bg-soft: #271d18;
    --fawn: #6e4a2c;
    --fawn-light: #2f231d;
    --fawn-strong: #c98c55;
    --ink: #f6ece4;
    --ink-2: #cdbcb1;
    --rose: #f19ab4;
    --rose-soft: #40232c;
    --line: #3a2c25;
    --band: #33251f;
    --band-ink: #f6ece4;
    --field-line: #5b4a40;
    --btn-bg: #f6ece4;
    --btn-ink: #1c1512;
    --btn-hover: #ffffff;
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, .8);
    --logo-jaune: #e0bb12;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1c1512;
  --bg-soft: #271d18;
  --fawn: #6e4a2c;
  --fawn-light: #2f231d;
  --fawn-strong: #c98c55;
  --ink: #f6ece4;
  --ink-2: #cdbcb1;
  --rose: #f19ab4;
  --rose-soft: #40232c;
  --line: #3a2c25;
  --band: #33251f;
  --band-ink: #f6ece4;
  --field-line: #5b4a40;
  --btn-bg: #f6ece4;
  --btn-ink: #1c1512;
  --btn-hover: #ffffff;
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, .8);
  --logo-jaune: #e0bb12;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 760px) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 700; }
p, ul, ol, dl, figure { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .45em; }
li::marker { color: var(--fawn-strong); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 1.5rem + 3.6vw, 4.1rem); font-weight: 800; line-height: 1.04; letter-spacing: -.012em; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.45rem); font-weight: 750; line-height: 1.12; letter-spacing: -.006em; }
h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); font-weight: 700; line-height: 1.25; }
h4 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }

:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--btn-bg); color: var(--btn-ink); padding: .6em 1em; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.35em;
  border-radius: 14px; border: 2px solid var(--btn-bg);
  background: var(--btn-bg); color: var(--btn-ink);
  font: 700 1rem/1.2 var(--font-text); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn--ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--rose { background: var(--rose-soft); border-color: var(--rose-soft); color: var(--ink); }
.btn--rose:hover { background: #ffffff; border-color: #ffffff; color: #2a1f1a; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.75rem; }

/* ---------- En-tête ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand {
  font-family: var(--font-display); font-variation-settings: "SOFT" 100;
  font-weight: 800; font-size: 1.6rem; letter-spacing: -.01em;
  color: var(--ink); text-decoration: none; line-height: 1;
}
.brand:hover { color: var(--ink); }
.nav-toggle {
  display: none; align-items: center; gap: .55em;
  min-height: 44px; padding: .4em .9em; border-radius: 12px;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font: 700 1rem/1 var(--font-text); cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-list > li { margin: 0; position: relative; }
.nav-list a, .sub-toggle {
  display: inline-flex; align-items: center; gap: .35em;
  min-height: 44px; padding: .45em .8em; border-radius: 10px;
  color: var(--ink); text-decoration: none; font: 600 1rem/1.2 var(--font-text);
  background: none; border: 0; cursor: pointer;
}
.sub a:hover { background: var(--bg-soft); }
.nav-list a[aria-current="page"], .sub-toggle.is-current,
.nav-list > li > a:hover, .nav-list > li > .sub-toggle:hover { color: var(--rose); }
.sub-toggle svg { width: 14px; height: 14px; transition: transform .15s ease; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 6px); left: -8px; min-width: 270px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  display: none;
}
.sub li { margin: 0; }
.sub a { display: flex; width: 100%; padding: .6em .8em; }
.sub-toggle[aria-expanded="true"] + .sub { display: block; }
.no-js .has-sub:hover .sub, .no-js .has-sub:focus-within .sub { display: block; }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .no-js .site-nav { position: static; box-shadow: none; border: 0; }
  .no-js .header-inner { flex-wrap: wrap; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 10px var(--gutter) 20px; }
  .nav-list a, .sub-toggle { width: 100%; font-size: 1.1rem; padding: .7em .4em; }
  .sub-toggle { pointer-events: none; color: var(--ink-2); font-size: .95rem; }
  .sub-toggle svg { display: none; }
  .sub { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 8px 14px; min-width: 0; background: none; }
  .sub a { padding: .55em .4em; }
}

/* ---------- Accueil : héros ---------- */
.hero { background: var(--fawn); color: var(--ink); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
  padding-block: clamp(40px, 7vw, 92px);
}
.hero h1 { max-width: 13ch; }
.hero-lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); max-width: 46ch; margin-top: 1.1rem; }
.hero .btn--ghost:hover { background: var(--ink); color: var(--fawn); }
/* La photo : un tirage aux coins arrondis, posé sur une carte jaune (le jaune du logo) */
.hero-photo { margin: 0; justify-self: center; width: min(100%, 400px); }
.hero-frame { position: relative; isolation: isolate; }
.hero-frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: 34px; background: var(--logo-jaune);
  transform: rotate(6deg); box-shadow: var(--shadow);
}
.hero-frame img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 30px; border: 7px solid var(--bg); box-shadow: var(--shadow);
}
.hero-photo figcaption { margin-top: 1.1rem; text-align: center; font-size: .95rem; color: var(--ink); font-style: italic; }
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { width: min(60%, 250px); justify-self: start; order: -1; margin-left: 12px; }
  .hero-frame::before { border-radius: 26px; }
  .hero-frame img { border-radius: 22px; border-width: 5px; }
  .hero h1 { max-width: 16ch; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(52px, 8vw, 104px); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section-head { max-width: 62ch; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head p { color: var(--ink-2); margin: 0; }

/* Thèmes du guide */
.themes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.themes li { margin: 0; }
.theme {
  position: relative; display: block; height: 100%; padding: 10px 10px 18px;
  border-radius: calc(var(--radius) + 6px); background: var(--t-bg);
  color: var(--ink); text-decoration: none;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease;
}
.theme:hover { transform: translateY(-5px) rotate(-.8deg); box-shadow: var(--shadow); }
.theme img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); background: var(--fawn-light); }
.theme h3 { margin: .85rem 6px .3rem; }
.theme p { margin: 0 6px; color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.theme:hover h3 { text-decoration: underline; text-decoration-color: var(--t-accent); text-decoration-thickness: 3px; text-underline-offset: .2em; }
.themes--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .themes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .themes, .themes--4 { grid-template-columns: 1fr; gap: 14px; }
  .theme { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; padding: 8px 12px 8px 8px; border-radius: 22px; }
  .theme img { border-radius: 16px; }
  .theme h3 { margin: 0 0 .2rem; }
  .theme p { margin: 0; }
  .theme-paw { display: none; }
}

/* Bienvenue */
.welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(28px, 5vw, 72px); align-items: start; }
.welcome-text { max-width: 64ch; }
.welcome-text .signature { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 1.35rem; margin-top: 1.4rem; }
.welcome figure { margin: 0; }
.welcome figure img { border-radius: var(--radius); width: 100%; }
.welcome figcaption, .figure-caption { font-size: .92rem; color: var(--ink-2); margin-top: .55rem; }
@media (max-width: 860px) { .welcome { grid-template-columns: 1fr; } .welcome figure { max-width: 420px; } }

/* L'essentiel en six points */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.5vw, 48px) clamp(24px, 3vw, 44px); margin: 0; padding: 0; list-style: none; }
.facts li { margin: 0; }
.fact-icon {
  display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 14px;
  border-radius: 20px; background: var(--t-bg); color: var(--t-accent);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.fact-icon svg { width: 28px; height: 28px; }
.facts li:hover .fact-icon { transform: rotate(-10deg) scale(1.08); }
.facts h3 { margin-bottom: .4rem; }
.facts p { margin: 0; color: var(--ink-2); }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }

/* Mosaïque photo de l'accueil */
.mosaic { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 15vw, 210px); gap: clamp(8px, 1.2vw, 16px); margin: 0 0 28px; padding: 0; list-style: none; }
.mosaic li { margin: 0; }
.mosaic a, .mosaic img { display: block; width: 100%; height: 100%; }
.mosaic img { object-fit: cover; border-radius: var(--radius-sm); }
.mosaic .tall { grid-row: span 2; }
.mosaic .wide { grid-column: span 2; }
@media (max-width: 640px) { .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; } .mosaic .wide { grid-column: span 2; } }

/* Bandeau réseaux sociaux */
.band { position: relative; overflow: hidden; isolation: isolate; background: var(--band); color: var(--band-ink); }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn .icon { width: 1.2em; height: 1.2em; flex: none; }
.btn--light { background: transparent; color: var(--band-ink); border-color: var(--band-ink); }
.btn--light:hover { background: var(--band-ink); border-color: var(--band-ink); color: var(--band); }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-block: clamp(40px, 6vw, 72px); }
.band h2 { color: var(--band-ink); margin-bottom: .35em; }
.band p { margin: 0; max-width: 56ch; opacity: .92; }
.band .btn { flex: none; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--fawn-light); color: var(--ink); padding-block: clamp(44px, 6vw, 72px) 28px; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid p { color: var(--ink-2); max-width: 34ch; }
.footer-title { font-family: var(--font-text); font-size: 1rem; font-weight: 700; margin: 0 0 .7rem; letter-spacing: 0; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin: 0 0 .45rem; }
.footer-list a { color: var(--ink); text-decoration: none; }
.footer-list a:hover { text-decoration: underline; text-decoration-color: var(--rose); }
.social a { display: inline-flex; align-items: center; gap: .55em; }
.social svg { width: 18px; height: 18px; flex: none; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; color: var(--ink-2); font-size: .92rem; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; }
.footer-bottom li { margin: 0; }
.footer-bottom a, .linklike { color: var(--ink-2); }
.linklike { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.linklike:hover, .footer-bottom a:hover { color: var(--ink); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Pages d'article ---------- */
.breadcrumb { font-size: .92rem; color: var(--ink-2); margin-bottom: 1.4rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3em; margin: 0; padding: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: .35em; color: var(--t-accent); }
.breadcrumb a { color: var(--ink-2); }

.page-head { position: relative; overflow: hidden; isolation: isolate; background: var(--t-bg); }
.page-head-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(28px, 5vw, 64px); align-items: center;
  padding-block: clamp(28px, 4vw, 48px) clamp(36px, 5vw, 64px);
}
.page-head--simple .page-head-inner { grid-template-columns: minmax(0, 1fr); }
.page-head h1 { margin-bottom: .35em; }
.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.28rem); line-height: 1.55; max-width: 58ch; margin: 0; }
.updated { margin: 1rem 0 0; font-size: .92rem; color: var(--ink-2); }
.page-head figure { margin: 0; }
.page-head figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 820px) {
  .page-head-inner { grid-template-columns: 1fr; }
  .page-head figure { max-width: 520px; }
}

.article-layout {
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px);
  align-items: start; padding-block: clamp(36px, 5vw, 64px) clamp(40px, 6vw, 80px);
}
.toc { position: sticky; top: 92px; font-size: .96rem; }
.toc details { padding-left: 2px; }
.toc summary { font-weight: 700; cursor: pointer; list-style: none; padding: .2em 0 .5em; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0 0 .15rem; }
.toc a { display: flex; gap: .7em; align-items: flex-start; padding: .32em 0; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); font-weight: 700; }
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; }
  .toc details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; background: var(--bg-soft); }
  .toc summary { padding: .7em 0; display: flex; justify-content: space-between; align-items: center; }
  .toc summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--t-accent); }
  .toc details[open] summary::after { content: "–"; }
  .toc ol { padding-bottom: .6em; }
}

.prose { max-width: 68ch; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2.4em; scroll-margin-top: 96px; }
.prose > h2:first-child, .prose section > h2:first-child { margin-top: 0; }
.prose li::marker { color: var(--t-accent); }
.prose h3 { margin-top: 1.8em; }
.prose figure img { border-radius: var(--radius-sm); }

.note { background: var(--t-bg); border-radius: 18px; padding: clamp(18px, 2.5vw, 26px); margin: 1.8em 0; }
.note > :last-child { margin-bottom: 0; }
.note-title { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 700; font-size: 1.2rem; margin: 0 0 .45em; line-height: 1.3; }
.note--alert { background: var(--rose-soft); }
.note ol { padding-left: 1.4em; }
.note ol li::marker { color: var(--ink); font-weight: 700; }

.spec { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: 0; margin: 1.4em 0 1.8em; border-top: 1px solid var(--line); }
.spec dt, .spec dd { margin: 0; padding: .8em 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 700; padding-right: 24px; }
.spec-source { font-size: .92rem; color: var(--ink-2); margin-top: -1em; }
@media (max-width: 520px) { .spec { grid-template-columns: 1fr; } .spec dt { border-bottom: 0; padding-bottom: 0; } }

.robes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 1.6em 0 2em; }
.robes figure { margin: 0; background: #ffffff; border-radius: var(--radius-sm); padding: 10px 10px 12px; border: 1px solid var(--line); }
.robes img { width: 100%; aspect-ratio: 612 / 434; object-fit: contain; }
.robes figcaption { font-weight: 700; text-align: center; color: #2a1f1a; margin-top: .3rem; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.4em 0 1.8em; }
.steps > li { counter-increment: step; position: relative; padding-left: 3.1rem; margin-bottom: 1.3em; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -.1em;
  width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--t-bg); color: var(--ink); font: 800 1.05rem/1 var(--font-display); font-variation-settings: "SOFT" 100;
}
.steps > li > strong:first-child { display: block; }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--fawn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%232a1f1a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

.closing { background: var(--t-bg); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 40px); margin-top: 3rem; }
.closing h2 { margin-top: 0 !important; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.closing > :last-child { margin-bottom: 0; }

/* FAQ */
.faq { margin-top: 3.2rem; }
.faq h2 { margin-top: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05em 2.6rem 1.05em 0; position: relative;
  font-weight: 700; font-size: 1.08rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background:
    linear-gradient(var(--t-accent), var(--t-accent)) center / 100% 2.5px no-repeat,
    linear-gradient(var(--t-accent), var(--t-accent)) center / 2.5px 100% no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 1.1em; color: var(--ink-2); }
.faq .answer > :last-child { margin-bottom: 0; }

/* À lire aussi */
.related { border-top: 1px solid var(--line); }

/* ---------- Galerie ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.gallery li { margin: 0; }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: .95rem; color: var(--ink-2); margin-top: .5rem; }
/* Les photos ajoutées depuis l'espace photos, au-dessus de l'album */
.gallery-new:not([hidden]) + .section { padding-top: 0; }
.gallery-new h2, [data-album-titre] { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin-bottom: .8em; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(20, 14, 11, .92); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 56px 12px 16px; }
.lightbox img { max-width: min(100%, 1400px); max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lightbox p { color: #f6ece4; margin: 12px 0 0; text-align: center; font-size: 1rem; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(255, 255, 255, .26); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: calc(10px + env(safe-area-inset-top, 0px)); right: calc(10px + env(safe-area-inset-right, 0px)); }
.lb-prev { left: calc(10px + env(safe-area-inset-left, 0px)); top: 50%; margin-top: -24px; }
.lb-next { right: calc(10px + env(safe-area-inset-right, 0px)); top: 50%; margin-top: -24px; }

/* ---------- Formulaire ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(36px, 5vw, 64px) clamp(48px, 7vw, 96px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside figure { margin: 1.6rem 0 0; max-width: 380px; }
.contact-aside figure img { border-radius: var(--radius); }
.form { display: grid; gap: 18px; background: var(--bg-soft); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); }
.form h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); margin: 0; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label { font-weight: 700; font-size: 1rem; }
.req { color: var(--rose); }
input, textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--field-line); border-radius: 12px; padding: .7em .85em;
}
input:focus, textarea:focus { outline: 3px solid var(--rose); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 170px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .92rem; color: var(--ink-2); margin: 0; }
.form-status { margin: 0; padding: .9em 1em; border-radius: 12px; font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status.is-target { display: none; }
.form-status.is-target:target { display: block; }
.form-status.ok { background: #e3f1e4; color: #1d4a24; }
.form-status.err { background: var(--rose-soft); color: var(--ink); }

/* ---------- Pages simples (À propos, liens, mentions, 404) ---------- */
.simple { padding-block: clamp(36px, 5vw, 64px) clamp(48px, 7vw, 96px); }
.simple .prose h2:first-child { margin-top: 0; }
.two-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.two-cols figure { margin: 0; position: sticky; top: 96px; }
.two-cols figure img { border-radius: var(--radius); }
@media (max-width: 860px) { .two-cols { grid-template-columns: 1fr; } .two-cols figure { position: static; max-width: 420px; } }
.links-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.links-list li { padding: .9em 0; border-bottom: 1px solid var(--line); margin: 0; }
.links-list li:first-child { border-top: 1px solid var(--line); }
.links-list strong { display: block; }
.links-list span { color: var(--ink-2); font-size: .98rem; }
.tel { font-weight: 700; white-space: nowrap; }

.notfound { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 8vw, 110px); }
.notfound img { border-radius: var(--radius); }
@media (max-width: 760px) { .notfound { grid-template-columns: 1fr; } }

/* ---------- Bandeau cookies ---------- */
.consent {
  position: fixed; z-index: 90; left: calc(16px + env(safe-area-inset-left, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); margin-inline: auto; max-width: 600px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  padding: 20px 22px;
}
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.2rem; margin: 0 0 .35em; }
.consent p { margin: 0 0 1em; font-size: .98rem; color: var(--ink-2); }
.consent .actions { margin-top: 0; }
.consent .btn { flex: 1 1 160px; }


/* ==========================================================================
   Touches ludiques : pattes, os, une couleur par thème du guide
   ========================================================================== */
:root {
  --paw-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 33.5c-7.8 0-16.5 8.8-16.5 15.8 0 4.7 3.6 7.7 8.4 7.7 3.5 0 5.6-1.8 8.1-1.8s4.6 1.8 8.1 1.8c4.8 0 8.4-3 8.4-7.7 0-7-8.7-15.8-16.5-15.8z'/%3E%3Cellipse cx='12.5' cy='30' rx='6' ry='7.8' transform='rotate(-22 12.5 30)'/%3E%3Cellipse cx='24.5' cy='17' rx='6.3' ry='8.3' transform='rotate(-8 24.5 17)'/%3E%3Cellipse cx='39.5' cy='17' rx='6.3' ry='8.3' transform='rotate(8 39.5 17)'/%3E%3Cellipse cx='51.5' cy='30' rx='6' ry='7.8' transform='rotate(22 51.5 30)'/%3E%3C/svg%3E");
  --bone-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Ccircle cx='10' cy='22' r='7'/%3E%3Ccircle cx='54' cy='10' r='7'/%3E%3Ccircle cx='54' cy='22' r='7'/%3E%3Crect x='9' y='10' width='46' height='12' rx='3'/%3E%3C/svg%3E");
  --paw: #efd4b6;            /* pattes du menu */
  --trail: rgba(42, 31, 26, .11);
  --heart-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 57C14 44 5 34 5 22 5 13 12 6 20.5 6c5.1 0 9.3 2.8 11.5 7.2C34.2 8.8 38.4 6 43.5 6 52 6 59 13 59 22c0 12-9 22-27 35z'/%3E%3C/svg%3E");
  --ball-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3Cmask id='m'%3E%3Crect width='64' height='64' fill='white'/%3E%3Cpath d='M9 17c11 7 14 23 1 33M55 17c-11 7-14 23-1 33' fill='none' stroke='black' stroke-width='4.5' stroke-linecap='round'/%3E%3C/mask%3E%3C/defs%3E%3Ccircle cx='32' cy='32' r='27' mask='url(%23m)'/%3E%3C/svg%3E");
  --bowl-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M15 29c2-9 9-13 17-13s15 4 17 13z'/%3E%3Crect x='6' y='29' width='52' height='8' rx='4'/%3E%3Cpath d='M11 37h42l-4.6 15.2A4 4 0 0 1 44.6 55H19.4a4 4 0 0 1-3.8-2.8z'/%3E%3C/svg%3E");
  --house-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill-rule='evenodd' d='M32 5 60 29h-7v27H11V29H4zM24 56V44a8 8 0 0 1 16 0v12z'/%3E%3C/svg%3E");
  /* couleurs vives des petites icônes */
  --pop-rose: #e2557f; --pop-jaune: #e3a600; --pop-bleu: #3d8bd4; --pop-vert: #2fa56a; --pop-fauve: #e0883a;
  --t-bg: var(--fawn-light); /* couleur du thème (par défaut : fauve) */
  --t-accent: var(--fawn-strong);
}
.c-fauve { --t-bg: #f6e3cf; --t-accent: #b06f38; }
.c-vert  { --t-bg: #dceee3; --t-accent: #2e7a52; }
.c-bleu  { --t-bg: #dbe8f5; --t-accent: #33699a; }
.c-jaune { --t-bg: #f9ebbd; --t-accent: #a06a00; }
.c-rose  { --t-bg: #fbe1e8; --t-accent: #b2365c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paw: #4d3628; --trail: rgba(246, 236, 228, .09); --pop-rose: #f283a4; --pop-jaune: #f2c84b; --pop-bleu: #6fb0ec; --pop-vert: #5cc58b; --pop-fauve: #f0a75f; }
  :root:not([data-theme="light"]) .c-fauve { --t-bg: #2f231d; --t-accent: #d39a63; }
  :root:not([data-theme="light"]) .c-vert  { --t-bg: #1b2a22; --t-accent: #74c39a; }
  :root:not([data-theme="light"]) .c-bleu  { --t-bg: #1b2531; --t-accent: #86b6e3; }
  :root:not([data-theme="light"]) .c-jaune { --t-bg: #2c2615; --t-accent: #e0b74e; }
  :root:not([data-theme="light"]) .c-rose  { --t-bg: #3a2029; --t-accent: #f19ab4; }
}
:root[data-theme="dark"] { --paw: #4d3628; --trail: rgba(246, 236, 228, .09); --pop-rose: #f283a4; --pop-jaune: #f2c84b; --pop-bleu: #6fb0ec; --pop-vert: #5cc58b; --pop-fauve: #f0a75f; }
:root[data-theme="dark"] .c-fauve { --t-bg: #2f231d; --t-accent: #d39a63; }
:root[data-theme="dark"] .c-vert  { --t-bg: #1b2a22; --t-accent: #74c39a; }
:root[data-theme="dark"] .c-bleu  { --t-bg: #1b2531; --t-accent: #86b6e3; }
:root[data-theme="dark"] .c-jaune { --t-bg: #2c2615; --t-accent: #e0b74e; }
:root[data-theme="dark"] .c-rose  { --t-bg: #3a2029; --t-accent: #f19ab4; }

/* Icônes patte et os (la couleur suit le texte) */
.i-paw, .i-bone { display: inline-block; flex: none; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.i-paw { --m: var(--paw-mask); width: 1em; height: 1em; }
.i-bone { --m: var(--bone-mask); width: 1.7em; height: .85em; }
.i-heart { --m: var(--heart-mask); width: 1em; height: 1em; }
.i-ball { --m: var(--ball-mask); width: 1em; height: 1em; }
.i-bowl { --m: var(--bowl-mask); width: 1em; height: 1em; }
.i-house { --m: var(--house-mask); width: 1em; height: 1em; }
.i-heart, .i-ball, .i-bowl, .i-house { display: inline-block; flex: none; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ic-rose { color: var(--pop-rose); } .ic-jaune { color: var(--pop-jaune); } .ic-bleu { color: var(--pop-bleu); }
.ic-vert { color: var(--pop-vert); } .ic-fauve { color: var(--pop-fauve); }

/* Menu : deux empreintes apparaissent derrière le lien survolé ou la page en cours */
.nav-list > li > a, .nav-list > li > .sub-toggle { position: relative; isolation: isolate; }
.nav-list > li > a::before, .nav-list > li > a::after,
.nav-list > li > .sub-toggle::before, .nav-list > li > .sub-toggle::after {
  content: ""; position: absolute; z-index: -1; width: 26px; height: 26px; pointer-events: none;
  background: var(--paw); --m: var(--paw-mask); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
  opacity: 0; transform: scale(.3) rotate(var(--rot, 0deg));
  transition: opacity .2s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.nav-list > li > a::before, .nav-list > li > .sub-toggle::before { left: -1px; bottom: 0; --rot: -28deg; }
.nav-list > li > a::after, .nav-list > li > .sub-toggle::after { right: 1px; top: 0; --rot: 22deg; transition-delay: .1s; }
.nav-list > li > a:hover::before, .nav-list > li > a:hover::after,
.nav-list > li > a:focus-visible::before, .nav-list > li > a:focus-visible::after,
.nav-list > li > a[aria-current="page"]::before, .nav-list > li > a[aria-current="page"]::after,
.nav-list > li > .sub-toggle:hover::before, .nav-list > li > .sub-toggle:hover::after,
.nav-list > li > .sub-toggle:focus-visible::before, .nav-list > li > .sub-toggle:focus-visible::after,
.nav-list > li > .sub-toggle[aria-expanded="true"]::before, .nav-list > li > .sub-toggle[aria-expanded="true"]::after,
.nav-list > li > .sub-toggle.is-current::before, .nav-list > li > .sub-toggle.is-current::after {
  opacity: 1; transform: scale(1) rotate(var(--rot, 0deg));
}
/* Sous-menus : une patte de la couleur de chaque page */
.sub a { gap: .6em; }
.sub a::before {
  content: ""; flex: none; width: 18px; height: 18px; background: var(--t-accent); --m: var(--paw-mask); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.sub a:hover::before, .sub a:focus-visible::before { transform: rotate(-18deg) scale(1.2); }
.sub--social a::before { display: none; }
.sub .icon { width: 18px; height: 18px; flex: none; }
@media (max-width: 899px) {
  .nav-list > li > a::after, .nav-list > li > .sub-toggle::before, .nav-list > li > .sub-toggle::after { display: none; }
  .nav-list > li > a::before { left: -8px; }
}

/* Sommaire : une patte, un os, une patte… */
.toc a::before {
  content: ""; flex: none; width: 1.3em; height: 1.05em; margin-top: .12em;
  background: var(--ic, var(--t-accent)); opacity: .9; --m: var(--paw-mask); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
  transition: opacity .2s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.toc li:nth-child(6n+2) a::before { --m: var(--bone-mask); }
.toc li:nth-child(6n+3) a::before { --m: var(--heart-mask); }
.toc li:nth-child(6n+4) a::before { --m: var(--ball-mask); }
.toc li:nth-child(6n+5) a::before { --m: var(--bowl-mask); }
.toc li:nth-child(6n+6) a::before { --m: var(--house-mask); }
.toc li:nth-child(5n+1) { --ic: var(--pop-rose); }
.toc li:nth-child(5n+2) { --ic: var(--pop-jaune); }
.toc li:nth-child(5n+3) { --ic: var(--pop-bleu); }
.toc li:nth-child(5n+4) { --ic: var(--pop-vert); }
.toc li:nth-child(5n+5) { --ic: var(--pop-fauve); }
.toc a:hover::before, .toc a.is-active::before { opacity: 1; transform: rotate(-14deg) scale(1.25); }

/* Séparateur entre les parties d'un article */
.divider { display: flex; align-items: center; gap: 14px; margin: 3.2rem 0 2.8rem; color: var(--t-accent); }
.divider::before, .divider::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: currentColor; opacity: .22; }
.divider .i-paw { width: 22px; height: 22px; }
.divider .i-paw:first-child { --r: -24deg; }
.divider .i-paw:last-child { --r: 24deg; }
.divider .i-bone { width: 38px; height: 19px; --r: -8deg; }
.divider .i-heart, .divider .i-ball, .divider .i-bowl, .divider .i-house { width: 26px; height: 26px; --r: -8deg; }
.divider > span { transform: rotate(var(--r, 0deg)); }
.js .divider > span {
  opacity: 0; transform: translateY(10px) scale(.4) rotate(var(--r, 0deg));
  transition: opacity .3s ease, transform .55s cubic-bezier(.34, 1.56, .64, 1);
}
.js .divider > span:nth-child(2) { transition-delay: .15s; }
.js .divider > span:nth-child(3) { transition-delay: .3s; }
.js .divider.is-visible > span { opacity: 1; transform: rotate(var(--r, 0deg)); }

/* Accueil : traces de pattes qui traversent le bandeau, puis Vaya penche la tête */
.hero { position: relative; isolation: isolate; }
.hero-inner { position: relative; z-index: 1; }
.hero-trail { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; z-index: 0; pointer-events: none; color: var(--trail); }
@media (max-width: 760px) { .hero-trail { height: 64px; } .hero-trail .i-paw { width: 22px !important; height: 22px !important; } }
.hero-trail .i-paw { position: absolute; left: var(--x); top: var(--y); width: 30px; height: 30px; transform: rotate(var(--r)); }
.js .hero-trail .i-paw { opacity: 0; animation: paw-step .45s ease-out var(--d) forwards; }
@keyframes paw-step {
  from { opacity: 0; transform: rotate(var(--r)) scale(.4); }
  to { opacity: 1; transform: rotate(var(--r)) scale(1); }
}
.hero-frame img { transform-origin: 50% 90%; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.hero-photo:hover .hero-frame img { transform: rotate(-4deg); }
.js .hero-frame img { animation: head-tilt 1.3s cubic-bezier(.34, 1.56, .64, 1) 2.6s 1; }
@keyframes head-tilt { 0%, 100% { transform: rotate(0); } 35%, 65% { transform: rotate(-5deg); } }

/* Accueil : une patte blanche se pose sur la vignette survolée */
.theme-paw {
  position: absolute; top: 20px; right: 20px; width: 34px; height: 34px; pointer-events: none;
  background: #ffffff; --m: var(--paw-mask); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat;
  opacity: 0; transform: scale(.3) rotate(-30deg);
  transition: opacity .2s ease, transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.theme:hover .theme-paw { opacity: .95; transform: scale(1) rotate(-12deg); }

/* Grande empreinte en filigrane dans les en-têtes de page et le bandeau */
.page-head::after {
  content: ""; position: absolute; z-index: -1; right: -40px; bottom: -70px; width: 260px; height: 260px; pointer-events: none;
  background: var(--t-accent); opacity: .1; --m: var(--paw-mask); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; transform: rotate(-18deg);
}
.page-head:not(.page-head--simple)::after { right: auto; left: -80px; bottom: -110px; }
.band-paw {
  position: absolute; z-index: -1; right: -50px; bottom: -90px; width: 300px; height: 300px; pointer-events: none;
  background: var(--band-ink); opacity: .07; --m: var(--paw-mask); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; transform: rotate(-20deg);
}

/* Pied de page : un petit chemin de pattes */
.footer-trail { display: flex; justify-content: center; gap: 26px; margin: -8px 0 34px; color: var(--fawn); }
.footer-trail .i-paw { width: 20px; height: 20px; }
.footer-trail .i-paw:nth-child(5n+1) { color: var(--pop-rose); }
.footer-trail .i-paw:nth-child(5n+2) { color: var(--pop-jaune); }
.footer-trail .i-paw:nth-child(5n+3) { color: var(--pop-bleu); }
.footer-trail .i-paw:nth-child(5n+4) { color: var(--pop-vert); }
.footer-trail .i-paw:nth-child(5n+5) { color: var(--pop-fauve); }
.footer-trail .i-paw:nth-child(odd) { transform: translateY(7px) rotate(84deg); }
.footer-trail .i-paw:nth-child(even) { transform: translateY(-7px) rotate(96deg); }

/* Listes des articles : une petite patte de la couleur de la page en guise de puce */
.prose ul:not([class]) { list-style: none; padding-left: 0; }
.prose ul:not([class]) > li { position: relative; padding-left: 1.75em; }
.prose ul:not([class]) > li::before {
  content: ""; position: absolute; left: .1em; top: .34em; width: 1em; height: 1em;
  background: var(--t-accent); opacity: .85; -webkit-mask: var(--paw-mask) center / contain no-repeat; mask: var(--paw-mask) center / contain no-repeat;
  transform: rotate(-14deg);
}
.prose ul:not([class]) > li:nth-child(even)::before { transform: rotate(14deg); }
/* Encadrés « Bon à savoir » : une patte devant le titre, un cœur pour « Le saviez-vous ? » */
.note .note-title::before {
  content: ""; display: inline-block; width: 1em; height: 1em; margin-right: .45em; vertical-align: -.1em;
  background: var(--t-accent); -webkit-mask: var(--paw-mask) center / contain no-repeat; mask: var(--paw-mask) center / contain no-repeat;
}
.note--alert .note-title::before { background: var(--rose); -webkit-mask-image: var(--heart-mask); mask-image: var(--heart-mask); }

/* Bouton pour remonter en haut de la page */
.to-top {
  position: fixed; z-index: 80; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--fawn); color: var(--ink); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.8);
  transition: opacity .25s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1), visibility 0s linear .35s, background-color .15s ease;
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--rose-soft); transform: translateY(-3px) rotate(-8deg); }
.to-top svg { width: 24px; height: 24px; }
.to-top .i-paw { position: absolute; width: 18px; height: 18px; right: -3px; top: -5px; color: var(--rose); transform: rotate(18deg); }
.consent-open .to-top { display: none; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .hero-trail .i-paw, .js .divider > span { opacity: 1 !important; }
  .js .divider > span { transform: rotate(var(--r, 0deg)) !important; }
}
@media print {
  .site-header, .site-footer, .band, .toc, .consent, .related, .hero-trail, .to-top { display: none !important; }
  .article-layout { display: block; }
}

/* Formulaire : question anti-robot et adresse e-mail protégée */
.field--robot label .i-paw { color: var(--rose); width: 1.1em; height: 1.1em; margin-right: .4em; vertical-align: -.16em; }
.field-help { font-size: .92rem; color: var(--ink-2); margin: 0; }
.email .at::before { content: "@"; }

/* Logo : pastille ronde de Vaya et nom dans la police du logo */
@font-face {
  font-family: "Chewy";
  src: url("../fonts/chewy.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Chewy", var(--font-display); font-variation-settings: normal; font-weight: 400; font-size: 1.9rem; letter-spacing: .01em; }
.brand-mark { width: 46px; height: 46px; flex: none; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.06); }
.site-footer .brand-mark { width: 56px; height: 56px; }
@media (max-width: 480px) { .brand { font-size: 1.65rem; gap: 8px; } .brand-mark { width: 40px; height: 40px; } }
/* « BoubouLand.com » tient sur une ligne, même sur les petits téléphones */
.brand-tld { letter-spacing: 0; }
@media (max-width: 380px) { .site-header .brand { font-size: 1.38rem; gap: 6px; } .site-header .brand-mark { width: 34px; height: 34px; } .nav-toggle { padding-inline: .7em; } }

/* Galerie : sur les photos verticales, la vignette garde le haut (les oreilles !) */
.gallery img { object-position: 50% 22%; }
