/* Mon King Charles — feuille de style unique (refonte V2)
   1. Police et variables  2. Base  3. En-tête et menu  4. Boutons et pictogrammes
   5. Accueil  6. Pages de guide  7. Composants d'article  8. Calculateur
   9. Checklist  10. Pied de page  11. Impression */

/* 1. Police et variables -------------------------------------------------- */
/* « MKC Serif » : sous-ensemble renommé de Lora (SIL OFL 1.1), voir /assets/fonts/OFL.txt */
@font-face {
  font-family: "MKC Serif";
  src: url("/assets/fonts/mkc-serif.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: #263f33;
  --forest-800: #1f342a;
  --green: #3d5c48;
  --green-600: #55745d;
  --sage-100: #ebf0e7;
  --sage-200: #d9e3d5;
  --terracotta: #b74d31;
  --terracotta-700: #9c3f26;
  --terracotta-100: #f7e6dc;
  --terracotta-50: #fbf0ea;
  --cream: #fbf6ef;
  --paper: #fffdf9;
  --sand: #f4e9db;
  --sand-300: #e6d3bd;
  --brown: #533a2c;
  --ink: #2f2a26;
  --ink-soft: #5c5249;
  --line: #ebdfd0;
  --focus: #b74d31;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-title: "MKC Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgb(83 58 44 / 0.06), 0 8px 24px rgb(83 58 44 / 0.07);
  --shadow-hover: 0 2px 4px rgb(83 58 44 / 0.08), 0 14px 32px rgb(83 58 44 / 0.12);
  --measure: 44rem;
  --gutter: 1.25rem;
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 {
  font-family: var(--font-title);
  color: var(--forest);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.45rem + 2.4vw, 3.1rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.15rem); margin: 2.75rem 0 0.85rem; }
h3 { font-size: 1.2rem; margin: 1.75rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.35rem; }
li + li { margin-top: 0.35rem; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--terracotta-700); }
strong { color: var(--ink); font-weight: 650; }
.accent { color: var(--terracotta); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: 76rem; margin: 0 auto; padding: 0 var(--gutter); }
.skip-link {
  position: absolute; left: 0.75rem; top: -5rem; z-index: 50;
  background: var(--forest); color: #fff; padding: 0.7rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 0.75rem; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* 3. En-tête et menu -------------------------------------------------------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 30; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.75rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; min-width: 0; }
.brand-logo { flex: none; width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-family: var(--font-title); font-weight: 700; font-size: 1.35rem; color: var(--brown); white-space: nowrap; }
.brand-tagline { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.15rem; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.quick-links { display: none; list-style: none; margin: 0; padding: 0; gap: 1.75rem; }
.quick-links li + li { margin: 0; }
.quick-links a { color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500; padding: 0.5rem 0; }
.quick-links a:hover, .quick-links a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -2px 0 var(--terracotta); }

.menu { position: relative; }
.menu > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 0.5rem; min-height: 46px; white-space: nowrap;
  background: var(--green); color: #fff; font-weight: 600; font-size: 0.95rem;
  padding: 0.6rem 1.15rem; border-radius: 999px; transition: background-color 0.15s;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: var(--forest); }
.menu-caret { width: 1rem; height: 1rem; transform: rotate(90deg); transition: transform 0.15s; }
.menu[open] .menu-caret { transform: rotate(-90deg); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 0.6rem); z-index: 40;
  width: min(92vw, 50rem); background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-hover);
  padding: 1.5rem; display: grid; gap: 1.5rem;
}
.menu-title { font-weight: 700; color: var(--terracotta-700); margin: 0 0 0.5rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.menu-group ul { list-style: none; margin: 0; padding: 0; }
.menu-group li + li { margin-top: 0.15rem; }
.menu-group a {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.6rem; margin: 0 -0.6rem;
  border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: 0.97rem;
}
.menu-group a .icon { color: var(--green-600); flex: none; }
.menu-group a:hover, .menu-group a[aria-current="page"] { background: var(--sage-100); }
.menu-group a[aria-current="page"] { font-weight: 650; }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.25rem; padding: 0; font-size: 0.88rem; color: var(--ink-soft); }
.breadcrumb li + li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; }
.breadcrumb a { color: var(--ink-soft); }

.menu-short { display: none; }
@media (max-width: 599px) {
  .brand-tagline, .menu-long { display: none; }
  .menu-short { display: inline; }
  .brand { gap: 0.6rem; }
  .brand-logo { width: 40px; height: 40px; }
  .brand-name { font-size: 1.18rem; }
  .menu > summary { padding: 0.55rem 1rem; }
  .hero-art { max-width: 21rem; }
  .story-media { aspect-ratio: 16 / 10; }
  .story-media .story-dog { width: 46%; margin-bottom: -4%; }
  .menu-panel { position: fixed; left: var(--gutter); right: var(--gutter); top: 5.25rem; width: auto; max-height: calc(100vh - 6.5rem); overflow-y: auto; }
}
@media (max-width: 359px) {
  :root { --gutter: 1rem; }
  .brand { gap: 0.5rem; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-name { font-size: 1.05rem; white-space: normal; line-height: 1.1; }
  .menu > summary { padding: 0.6rem 0.9rem; }
}
@media (min-width: 600px) { .menu-panel { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .quick-links { display: flex; } }

/* 4. Boutons et pictogrammes ------------------------------------------------ */
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.75rem 1.5rem; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn .icon { width: 1.2em; height: 1.2em; }
.btn--accent { background: var(--terracotta); color: #fff; box-shadow: 0 6px 16px rgb(183 77 49 / 0.25); }
.btn--accent:hover { background: var(--terracotta-700); color: #fff; }
.btn, .btn--green { background: var(--green); color: #fff; }
.btn:hover, .btn--green:hover { background: var(--forest); color: #fff; }
.btn--accent { background: var(--terracotta); }
.btn--accent:hover { background: var(--terracotta-700); }
.btn--outline { background: transparent; color: var(--forest); border-color: var(--green); }
.btn--outline:hover { background: var(--sage-100); color: var(--forest); }
.btn--ghost { background: transparent; color: var(--green); border-color: var(--green); }
.btn--ghost:hover { background: var(--sage-100); color: var(--forest); }
.btn--sm { min-height: 42px; padding: 0.5rem 1.15rem; font-size: 0.93rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 1.5rem 0; }

.badge { display: inline-grid; place-items: center; flex: none; width: 3.25rem; height: 3.25rem; border-radius: 50%; }
.badge .icon { width: 1.55rem; height: 1.55rem; }
.badge--sm { width: 2.6rem; height: 2.6rem; }
.badge--sm .icon { width: 1.25rem; height: 1.25rem; }
.badge--terracotta { background: var(--terracotta-100); color: var(--terracotta-700); }
.badge--green { background: var(--sage-200); color: var(--forest); }
.badge--sand { background: var(--sand); color: var(--brown); }

.kicker {
  display: flex; align-items: center; gap: 0.75rem; margin: 0 0 0.5rem;
  color: var(--green); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.kicker::before { content: ""; width: 2rem; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow {
  display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.85rem;
  color: var(--terracotta-700); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.eyebrow .icon { width: 1.2rem; height: 1.2rem; fill: currentColor; stroke: none; }

/* Illustrations décoratives communes */
.art-blob {
  position: absolute; inset: 6% 4% 4% 8%;
  background:
    radial-gradient(circle at 30% 30%, rgb(255 255 255 / 0.85), transparent 55%),
    linear-gradient(150deg, var(--sand) 0%, #f0dcc6 100%);
  border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%;
}
.art-dog { position: relative; display: block; width: 100%; height: auto; }

/* 5. Accueil ----------------------------------------------------------------- */
.hero { background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%); overflow: hidden; }
.hero-inner { display: grid; gap: 1.5rem; align-items: center; padding-top: 2.5rem; padding-bottom: 2rem; }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.3rem); line-height: 1.08; margin-bottom: 1.25rem; }
@media (min-width: 1100px) { .hero h1 .accent { white-space: nowrap; } }
.hero h1 .accent { display: block; }
.hero-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 34rem; }
.hero-art { position: relative; max-width: 30rem; margin: 0 auto; width: 100%; }
.hero-art .art-dog { width: 84%; margin: 0 auto 6%; z-index: 2; }
.art-cushion {
  position: absolute; z-index: 3; left: 2%; right: 2%; bottom: 0; height: 22%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, #fffaf2 0%, #f3e6d6 60%, #e8d6c0 100%);
  box-shadow: inset 0 -10px 20px rgb(83 58 44 / 0.08);
}
.hero-note {
  position: absolute; z-index: 3; top: 4%; right: 0; margin: 0;
  font-family: var(--font-title); font-style: italic; font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem);
  line-height: 1.25; color: var(--forest); transform: rotate(-8deg); text-align: right;
}
.hero-note .icon { color: var(--terracotta); fill: var(--terracotta); stroke: none; margin-left: 0.3rem; }
@media (min-width: 720px) {
  .hero-inner { grid-template-columns: 1.05fr 1fr; padding-top: 3rem; padding-bottom: 3rem; }
  .hero-art { max-width: none; }
}

/* Bandeau photographique */
.hero--photo { position: relative; background: var(--cream); }
.hero-photo { position: relative; aspect-ratio: 16 / 10; max-height: 30rem; width: 100%; overflow: hidden; }
.hero-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 36% 50%; }
.hero-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(180deg, transparent, var(--cream)); }
.hero--photo .hero-inner { position: relative; display: block; padding-top: 0.5rem; padding-bottom: 2.25rem; }
.hero--photo .hero-text { position: relative; z-index: 2; }
.hero--photo .hero-note { display: none; }
@media (min-width: 1024px) {
  .hero--photo { min-height: 30rem; display: flex; align-items: center; }
  .hero-photo { position: absolute; inset: 0 0 0 auto; width: 64%; aspect-ratio: auto; max-height: none; }
  .hero-photo::after { inset: 0 auto 0 0; width: 45%; height: auto; background: linear-gradient(90deg, var(--cream) 0%, rgb(251 246 239 / 0.85) 35%, rgb(251 246 239 / 0) 100%); }
  .hero--photo .hero-inner { width: 100%; padding-top: 3.25rem; padding-bottom: 3.25rem; }
  .hero--photo .hero-text { max-width: 33rem; }
  .hero--photo .hero-text::before { content: ""; position: absolute; z-index: -1; inset: -2rem -3rem -2rem -50vw; background: linear-gradient(90deg, var(--cream) 70%, rgb(251 246 239 / 0)); }
  .hero--photo .hero-note {
    display: block; top: 2rem; right: var(--gutter); color: var(--forest);
    text-shadow: 0 0 12px rgb(255 253 249 / 0.95), 0 0 2px rgb(255 253 249 / 0.9);
  }
}
@media (min-width: 1100px) { .hero--photo { min-height: 31rem; } .hero-photo { width: 64%; } }

.quick { background: var(--sage-100); padding: 1.75rem 0; border-top: 1px solid var(--sage-200); border-bottom: 1px solid var(--sage-200); }
.quick-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.quick-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none; transition: box-shadow 0.15s, transform 0.15s;
}
.quick-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); color: var(--ink); }
.quick-text { display: flex; flex-direction: column; line-height: 1.35; }
.quick-text strong { font-family: var(--font-title); font-size: 1.08rem; color: var(--forest); margin-bottom: 0.2rem; }
.quick-text span { font-size: 0.92rem; color: var(--ink-soft); }

.section { padding: 3.5rem 0; }
.section--tint { background: var(--paper); border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.75rem; }
.section-head h2 { margin: 0; }

.story-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); }
.story {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: box-shadow 0.15s, transform 0.15s;
}
.story:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.story:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.story-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; background: var(--sand); }
.story-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.story:hover .story-img { transform: scale(1.04); }
.story-media--cream { background: radial-gradient(circle at 50% 35%, #fff 0%, var(--sand) 70%); }
.story-media--sage { background: radial-gradient(circle at 50% 35%, #f4f7f1 0%, var(--sage-200) 75%); }
.story-media--sand { background: radial-gradient(circle at 50% 35%, #fff8f1 0%, #f1d8c6 75%); }
.story-media--green { background: radial-gradient(circle at 50% 35%, #e5ece3 0%, #bfd0bf 75%); }
.story-dog { width: 74%; height: auto; margin-bottom: -6%; transition: transform 0.25s; }
.story:hover .story-dog { transform: translateY(-4px) scale(1.02); }
.story-body { position: relative; padding: 1.1rem 4rem 1.25rem 1.25rem; flex: 1; }
.story--terracotta .story-body { background: var(--terracotta-50); }
.story--green .story-body { background: #f1f5ef; }
.story h3 { margin: 0 0 0.3rem; font-size: 1.15rem; }
.story h3 a { color: var(--forest); text-decoration: none; }
.story--terracotta h3 a { color: var(--terracotta-700); }
.story h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.story h3 a:focus-visible { outline: none; }
.story p { margin: 0; font-size: 0.93rem; color: var(--ink-soft); }
.story-arrow {
  position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--green); color: #fff;
}
.story--terracotta .story-arrow { background: var(--terracotta); }
.story-arrow .icon { width: 1.1rem; height: 1.1rem; }

.breed { background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%); padding: 3.5rem 0 3rem; overflow: hidden; }
.breed-inner { display: grid; gap: 2rem; align-items: center; }
.breed-art {
  position: relative; max-width: 26rem; width: 100%; margin: 0 auto; aspect-ratio: 1 / 1.02; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(circle at 40% 30%, #f6f9f3 0%, var(--sage-200) 72%);
  border-radius: 58% 42% 50% 50% / 46% 52% 48% 54%;
}
.breed-blob { display: none; }
.breed-art .art-dog { width: 96%; margin-bottom: -14%; }
.breed-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.breed-heart { position: absolute; z-index: 2; top: 10%; right: 12%; filter: drop-shadow(0 0 6px rgb(255 255 255 / 0.9)); color: var(--terracotta); transform: rotate(12deg); }
.breed-heart .icon { width: 2.4rem; height: 2.4rem; stroke-width: 1.6; }
.breed h2 { margin-top: 0.25rem; }
.breed-text > p { color: var(--ink-soft); }
.facts { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.facts li { display: flex; gap: 0.85rem; align-items: flex-start; margin: 0; }
.facts li > span:last-child { display: flex; flex-direction: column; font-size: 0.94rem; color: var(--ink-soft); line-height: 1.45; }
.facts strong { color: var(--forest); font-size: 1rem; margin-bottom: 0.15rem; }
.breed-note { font-size: 0.9rem; color: var(--ink-soft); border-left: 3px solid var(--sand-300); padding-left: 1rem; }
@media (min-width: 860px) { .breed-inner { grid-template-columns: 0.85fr 1.15fr; gap: 3rem; } }

.coats { list-style: none; padding: 0; margin: 2.5rem 0 0.5rem; display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .coats { grid-template-columns: repeat(4, 1fr); } }
.coats li { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; background: var(--paper); border-radius: var(--radius); padding: 1rem 0.75rem 0.85rem; box-shadow: var(--shadow); }
.coat-dog { width: 6.5rem; height: auto; }
.coats span { font-family: var(--font-title); font-weight: 700; color: var(--forest); }
.coats-caption { font-size: 0.82rem; color: var(--ink-soft); text-align: center; margin: 0.75rem 0 0; }

.guide-groups { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .guide-groups { grid-template-columns: 1fr 1fr; } .guide-group--wide { grid-column: 1 / -1; } }
.guide-group { background: var(--cream); border-radius: var(--radius); padding: 1.5rem; }
.guide-group h3 { margin: 0 0 1rem; font-size: 1.25rem; }
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.guide-group--wide .guide-list { grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); }
.guide-list li { margin: 0; }
.guide-list a {
  display: flex; gap: 0.9rem; align-items: flex-start; height: 100%;
  padding: 0.95rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink-soft); text-decoration: none; font-size: 0.93rem; line-height: 1.45; transition: border-color 0.15s, box-shadow 0.15s;
}
.guide-list a:hover { border-color: var(--sage-200); box-shadow: var(--shadow); color: var(--ink-soft); }
.guide-list a > span:last-child { display: flex; flex-direction: column; }
.guide-list strong { color: var(--forest); font-size: 1.02rem; margin-bottom: 0.1rem; }

.indep-wrap { padding: 0 0 3.5rem; background: var(--paper); }
.indep {
  position: relative; overflow: hidden; display: grid; gap: 2rem; align-items: center;
  background: var(--green); color: #f4f1ea; border-radius: var(--radius-lg); padding: 2.25rem 1.75rem;
}
.indep::after {
  content: ""; position: absolute; width: 16rem; height: 16rem; right: -4rem; top: -5rem; border-radius: 50%;
  background: radial-gradient(circle, rgb(255 255 255 / 0.07), transparent 70%);
}
.indep h2 { color: #fff; margin: 0 0 0.75rem; }
.indep p { color: #eef0e9; margin-bottom: 0.75rem; }
.indep a { color: #fff; font-weight: 600; }
.indep a:hover { color: #fde7dc; }
.indep :focus-visible { outline-color: #fff; }
.indep-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); text-align: center; font-size: 0.92rem; font-weight: 500; color: #fff; }
.indep-points li { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.indep-icon { display: grid; place-items: center; width: 4.25rem; height: 4.25rem; border-radius: 50%; background: var(--paper); color: var(--green); }
.indep-icon .icon { width: 1.9rem; height: 1.9rem; }
@media (min-width: 900px) {
  .indep { grid-template-columns: 1fr 1.1fr; padding: 2.5rem 3rem; }
  .indep-points { border-left: 1px solid rgb(255 255 255 / 0.25); padding-left: 2.5rem; }
}
@media (max-width: 479px) { .indep-points { grid-template-columns: 1fr; text-align: left; } .indep-points li { flex-direction: row; } .indep-icon { width: 3.25rem; height: 3.25rem; } }

/* 6. Pages de guide ---------------------------------------------------------- */
.page-hero { background: linear-gradient(160deg, var(--paper) 0%, var(--cream) 55%, var(--sand) 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero-inner { display: grid; gap: 1rem; align-items: center; padding-top: 1.75rem; padding-bottom: 2rem; }
.page-hero h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); max-width: 40rem; }
.page-hero .lead { font-size: 1.13rem; color: var(--ink-soft); max-width: 42rem; margin-bottom: 0.75rem; }
.updated { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }
.page-hero-art {
  position: relative; width: min(13rem, 55vw); justify-self: center; aspect-ratio: 1; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  background: radial-gradient(circle at 40% 30%, #fff 0%, var(--sand) 55%, #efd9c2 100%);
  border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%; box-shadow: inset 0 0 0 6px rgb(255 255 255 / 0.6);
}
.page-hero-art .art-blob { display: none; }
.page-hero-art .art-dog { width: 92%; margin-bottom: -16%; }
@media (min-width: 760px) {
  .page-hero--art .page-hero-inner { grid-template-columns: 1fr 15rem; gap: 2.5rem; padding-top: 2.25rem; padding-bottom: 2.5rem; }
  .page-hero-art { width: 100%; }
}
@media (max-width: 759px) { .page-hero-art { display: none; } }
.page-hero-photo { margin: 0; justify-self: stretch; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 80px var(--radius-lg); box-shadow: var(--shadow-hover); aspect-ratio: 16 / 9; background: var(--sand); }
.page-hero-img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) {
  .page-hero--art .page-hero-inner { grid-template-columns: 1fr minmax(18rem, 26rem); }
  .page-hero-photo { aspect-ratio: 4 / 3; }
}

.page-body { padding-top: 2.5rem; padding-bottom: 3.5rem; }
.article > :not(.full) { max-width: var(--measure); }
.article > h2:first-child, .article > :first-child { margin-top: 0; }
.article h2 { position: relative; padding-top: 0.25rem; }
.article h2::before { content: ""; display: block; width: 2.75rem; height: 3px; background: var(--terracotta); margin-bottom: 0.85rem; border-radius: 2px; }
.article h3 { color: var(--brown); }
.article ul li::marker { color: var(--terracotta); }
.measure { max-width: var(--measure); }
@media (min-width: 1100px) {
  .article:has(> .toc) { display: grid; grid-template-columns: minmax(0, var(--measure)) 17rem; column-gap: 3.5rem; align-items: start; }
  .article:has(> .toc) > * { grid-column: 1; }
  .article:has(> .toc) > .toc { grid-column: 2; grid-row: 1 / span 80; position: sticky; top: 1.5rem; margin: 0; }
}

/* 7. Composants d'article ----------------------------------------------------- */
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 0 0 2rem; box-shadow: var(--shadow); }
.toc p { font-family: var(--font-title); font-weight: 700; margin: 0 0 0.6rem; color: var(--forest); font-size: 1.1rem; }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: 0.95rem; }
.toc li::marker { color: var(--terracotta); font-weight: 700; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--terracotta-700); text-decoration: underline; }

.note { position: relative; background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--green-600); border-radius: var(--radius-sm); padding: 1.1rem 1.25rem; margin: 1.75rem 0; box-shadow: var(--shadow); }
.note > :last-child { margin-bottom: 0; }
.note-title { font-family: var(--font-title); font-weight: 700; font-size: 1.08rem; margin-bottom: 0.35rem; color: var(--forest); }
.note--vet { background: var(--terracotta-50); border-color: #f0d6c8; border-left-color: var(--terracotta); }
.note--vet .note-title { color: var(--terracotta-700); }
.note--todo { border: 2px dashed var(--terracotta); background: #fff; }
.todo { background: var(--terracotta-100); color: var(--terracotta-700); font-weight: 700; padding: 0 0.35rem; border-radius: 4px; }

.checklist-inline { list-style: none; padding-left: 0; }
.checklist-inline li { padding-left: 1.9rem; position: relative; }
.checklist-inline li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--sage-200);
}
.checklist-inline li::after { content: ""; position: absolute; left: 0.38rem; top: 0.55em; width: 0.45rem; height: 0.25rem; border: solid var(--forest); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }

.related { margin-top: 3rem; padding: 1.5rem 1.75rem; background: var(--sage-100); border-radius: var(--radius); max-width: var(--measure); }
.related h2 { margin: 0 0 0.75rem; font-size: 1.3rem; }
.related h2::before { display: none; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.related li { margin: 0; }
.related a { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--forest); text-decoration: none; }
.related a::before { content: "→"; color: var(--terracotta); font-weight: 700; }
.related a:hover { text-decoration: underline; }

.guide-nav { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 2.5rem; max-width: var(--measure); }
.guide-nav-link {
  display: flex; flex-direction: column; gap: 0.25rem; padding: 1.1rem 1.25rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; box-shadow: var(--shadow);
  transition: box-shadow 0.15s, transform 0.15s;
}
.guide-nav-link:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.guide-nav-link--next { text-align: right; align-items: flex-end; }
.guide-nav-label { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--terracotta-700); }
.guide-nav-link--next .guide-nav-label { flex-direction: row-reverse; }
.guide-nav-title { font-family: var(--font-title); font-weight: 700; color: var(--forest); font-size: 1.12rem; }

.img-slot { margin: 1.5rem 0; max-width: var(--measure); }
.img-slot-box { aspect-ratio: 16 / 9; border: 2px dashed var(--sand-300); border-radius: var(--radius); background: var(--sand); display: grid; place-items: center; color: var(--ink-soft); font-weight: 600; }
.img-slot figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.4rem; }

.table-scroll { overflow-x: auto; max-width: var(--measure); border-radius: var(--radius-sm); border: 1px solid var(--line); margin: 1.25rem 0 1.75rem; box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: 0.96rem; background: var(--paper); }
th, td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th { font-family: var(--font-title); color: var(--forest); background: var(--sage-100); font-size: 1rem; }
td:first-child { font-weight: 600; color: var(--brown); }

/* 8. Calculateur ---------------------------------------------------------------- */
.calc { display: grid; gap: 1.5rem; margin: 2rem 0; }
@media (min-width: 900px) { .calc { grid-template-columns: 1.1fr 1fr; align-items: start; } .calc-results { position: sticky; top: 1.25rem; } }
.calc fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 1.25rem 1.5rem 0.5rem; margin: 0 0 1.25rem; box-shadow: var(--shadow); }
.calc legend { font-family: var(--font-title); font-weight: 700; color: var(--forest); font-size: 1.2rem; padding: 0 0.5rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 650; margin-bottom: 0.2rem; color: var(--ink); }
.field .hint { display: block; font-size: 0.87rem; color: var(--ink-soft); margin-bottom: 0.45rem; line-height: 1.45; }
.input-euro { position: relative; max-width: 15rem; }
.input-euro input {
  width: 100%; min-height: 50px; font: inherit; font-size: 1.1rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums;
  padding: 0.55rem 2.4rem 0.55rem 0.95rem; border: 2px solid #857664; border-radius: var(--radius-sm); background: #fff;
}
.input-euro input:hover { border-color: var(--green-600); }
.input-euro input:focus { border-color: var(--green); outline: 3px solid var(--sage-200); outline-offset: 0; }
.input-euro::after { content: "€"; position: absolute; right: 0.95rem; top: 50%; transform: translateY(-50%); color: var(--ink-soft); font-weight: 600; pointer-events: none; }
.input-euro input[aria-invalid="true"] { border-color: var(--terracotta); background: var(--terracotta-50); }
.field .error { display: block; color: var(--terracotta-700); font-size: 0.88rem; font-weight: 650; margin-top: 0.3rem; }
.field .error:empty { display: none; }
.calc-results { background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--green); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-hover); }
.calc-results h2 { margin: 0 0 1rem; font-size: 1.45rem; }
.calc-results h2::before { display: none; }
.results { margin: 0; }
.results div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.results dt { color: var(--ink-soft); font-size: 0.97rem; line-height: 1.4; }
.results dd { margin: 0; font-weight: 700; font-size: 1.1rem; color: var(--forest); white-space: nowrap; font-variant-numeric: tabular-nums; }
.results .total { border-bottom: 0; background: var(--forest); margin: 0.75rem -0.5rem; padding: 1rem 1rem; border-radius: var(--radius-sm); }
.results .total dt { color: #f1f3ed; font-weight: 600; }
.results .total dd { font-size: 1.6rem; color: #fff; font-family: var(--font-title); }
.to-results { display: inline-flex; margin-bottom: 0.5rem; font-weight: 600; }
@media (min-width: 900px) { .to-results { display: none; } }
.status { min-height: 1.5rem; font-size: 0.93rem; color: var(--green); font-weight: 650; margin: 0; }
.calc-results .hint { font-size: 0.86rem; color: var(--ink-soft); margin: 0.5rem 0 0; }

/* 9. Checklist ------------------------------------------------------------------- */
#checklist { margin: 2.5rem 0; padding: 1.75rem; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
#checklist:focus { outline: none; }
.cl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.cl-head h2 { margin: 0; }
.cl-head h2::before { display: none; }
.cl-progress { font-weight: 700; color: var(--forest); background: var(--sage-100); padding: 0.35rem 0.9rem; border-radius: 999px; margin: 0; font-size: 0.93rem; }
.cl-progress:empty { display: none; }
.cl-grid { display: grid; align-items: start; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); margin: 1.25rem 0 0; }
.cl-group { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem 0.85rem; margin: 0; min-width: 0; }
.cl-group legend { font-family: var(--font-title); font-weight: 700; color: var(--forest); font-size: 1.12rem; padding: 0 0.4rem; background: var(--paper); border-radius: 999px; }
.cl-item { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.4rem 0; cursor: pointer; line-height: 1.45; }
.cl-item input { flex: none; width: 1.35rem; height: 1.35rem; margin: 0.12rem 0 0; accent-color: var(--green); cursor: pointer; }
.cl-item input:checked + span { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: var(--green-600); }
.cl-opt { font-size: 0.85rem; color: var(--ink-soft); }
.print-only { display: none; }
@media (max-width: 479px) { #checklist { padding: 1.25rem 1rem; margin-left: calc(var(--gutter) * -0.5); margin-right: calc(var(--gutter) * -0.5); } }

/* 10. Pied de page ----------------------------------------------------------------- */
.site-footer { background: var(--forest); color: #e4e9e2; padding: 3rem 0 1.5rem; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr 2.4fr; gap: 3rem; } }
.site-footer a { color: #fff; text-decoration-color: rgb(255 255 255 / 0.4); }
.site-footer a:hover { color: #f6c9b6; }
.site-footer a[aria-current="page"] { font-weight: 700; }
.site-footer :focus-visible { outline-color: #f6c9b6; }
.brand--footer { margin-bottom: 1rem; text-decoration: none; }
.brand--footer .brand-name { color: #fff; }
.footer-about p { color: #d5ddd4; max-width: 26rem; }
.footer-nav { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.footer-title { font-family: var(--font-title); font-weight: 700; color: #fff; margin-bottom: 0.6rem; font-size: 1.05rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li + li { margin-top: 0.4rem; }
.footer-nav a { text-decoration: none; color: #e4e9e2; }
.footer-nav a:hover { text-decoration: underline; color: #fff; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 0.15); padding-top: 1.25rem; margin: 2.5rem 0 0; font-size: 0.86rem; color: #cfd8ce; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .story:hover, .quick-card:hover, .guide-nav-link:hover, .story:hover .story-dog, .story:hover .story-img { transform: none; }
}

/* 11. Impression -------------------------------------------------------------------- */
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.45; }
  .site-header, .site-footer, .breadcrumb, .skip-link, .btn-row, .no-print, .img-slot, .related, .toc,
  .guide-nav, .page-hero-art, .page-hero-photo, .hero-photo, .hero-art, .breed-art, .quick, .story-media, .coats { display: none !important; }
  h1, h2, h3, .brand-name { color: #000; }
  a { color: #000; text-decoration: none; }
  .article h2::before { display: none; }
  .page-hero { background: none; border: 0; }
  .page-hero-inner, .page-body { padding: 0; }
  .article, .article:has(> .toc) { display: block; }
  .note, .panel, .story, .guide-list a, .table-scroll { border: 1px solid #000; background: #fff; box-shadow: none; }
  .indep { background: #fff; color: #000; border: 1px solid #000; }
  .indep h2, .indep p, .indep a { color: #000; }
  .results .total, .results .total dt, .results .total dd { background: #fff; color: #000; }

  /* Checklist : seule la liste est imprimée */
  .page-checklist .page-hero, .page-checklist .article > :not(#checklist) { display: none !important; }
  .page-checklist #checklist { margin: 0; padding: 0; box-shadow: none; background: #fff; border-radius: 0; }
  .page-checklist #checklist h2 { margin-top: 0; font-size: 16pt; }
  .page-checklist .print-only { display: block; }
  .print-head { border-bottom: 1.5pt solid #000; padding-bottom: 4mm; margin-bottom: 5mm; }
  .print-head p { margin: 0; font-size: 10pt; }
  .cl-progress { display: none; }
  .cl-grid { display: block; columns: 2; column-gap: 8mm; margin: 0; }
  .cl-group { break-inside: avoid; border: 1pt solid #000; border-radius: 0; padding: 2mm 4mm 3mm; margin: 0 0 4mm; background: #fff; }
  .cl-group legend { color: #000; font-size: 11.5pt; background: #fff; }
  .cl-item { padding: 0.6mm 0; font-size: 10pt; line-height: 1.3; }
  .cl-item input { -webkit-appearance: none; appearance: none; width: 3.6mm; height: 3.6mm; border: 1pt solid #000; border-radius: 0; margin-top: 0.4mm; position: relative; }
  .cl-item input:checked::after { content: "✓"; position: absolute; inset: -1.6mm 0 0 0.3mm; font-size: 10pt; }
  .cl-item input:checked + span { color: #000; text-decoration: none; }
  .cl-opt { color: #000; }
  .print-foot { margin-top: 4mm; font-size: 9pt; }
}
