/* ---------- Design system partagé (couleurs, reset, header, footer, boutons) ----------
   Chargé par toutes les pages du site — une seule source pour éviter les
   divergences entre pages (ex. header/footer dupliqués et désynchronisés). */

:root {
  --cream: #FCF5EA;
  --cream-2: #F7F0E5;
  --white: #FFFFFF;
  --brand-green: #556B4E;
  --forest: #4A6446;
  --forest-hover: #3E563A;
  --ink: #2B2926;
  --text: #57544E;
  --muted: #7A756C;
  --rule: #E8DED0;
  --footer-bg: #3D523B;
  --footer-text: #EDE7DD;
  --sage: #E7E9DE;
  --dot-off: rgba(43, 41, 38, 0.18);
}
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #171613; --cream-2: #1D1B18; --white: #221F1B;
    --brand-green: #8FB08A; --forest: #5C7C57; --forest-hover: #71976B;
    --ink: #EDE8E0; --text: #C9C3B8; --muted: #948E82; --rule: #34302A;
    --footer-bg: #14100E; --footer-text: #E7E1D6; --sage: #26302A;
    --dot-off: rgba(255, 255, 255, 0.22);
  }
}
:root[data-theme="light"] {
  --cream:#FCF5EA; --cream-2:#F7F0E5; --white:#FFFFFF; --brand-green:#556B4E;
  --forest:#4A6446; --forest-hover:#3E563A; --ink:#2B2926; --text:#57544E;
  --muted:#7A756C; --rule:#E8DED0; --footer-bg:#3D523B; --footer-text:#EDE7DD; --sage:#E7E9DE;
  --dot-off: rgba(43, 41, 38, 0.18);
}
:root[data-theme="dark"] {
  --cream:#171613; --cream-2:#1D1B18; --white:#221F1B; --brand-green:#8FB08A;
  --forest:#5C7C57; --forest-hover:#71976B; --ink:#EDE8E0; --text:#C9C3B8;
  --muted:#948E82; --rule:#34302A; --footer-bg:#14100E; --footer-text:#E7E1D6; --sage:#26302A;
  --dot-off: rgba(255, 255, 255, 0.22);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; background: var(--cream); color: var(--text); }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: 'DM Serif Display', serif; font-weight: 400; margin: 0; color: var(--ink); text-wrap: balance; }

.contain { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 32px); }

.ic { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.dots { display: inline-flex; gap: 4px; margin-top: 4px; }
.dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--dot-off); display: inline-block; }
.dots span.on { background: var(--forest); }

/* ---------- Breadcrumb (toutes les pages secondaires) ---------- */
.breadcrumb { padding-top: 24px; padding-bottom: 16px; font-size: 0.85rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--forest); }
.breadcrumb span.sep { margin: 0 8px; opacity: 0.6; }
.breadcrumb span.current { color: var(--text); }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 30;
  background: rgba(252, 245, 234, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.header-row { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; gap: 24px; }
/* flex-shrink:0 : sans ça, quand la ligne manque de place (mobile, logo
   agrandi), le flex réduisait la largeur du logo sous sa valeur "auto"
   calculée depuis son ratio intrinsèque, et comme object-fit valait son
   défaut "fill", l'image s'écrasait/s'étirait au lieu de garder ses
   proportions — object-fit:contain en filet de sécurité en plus. */
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand .brand-mark { height: 30px; width: auto; display: block; object-fit: contain; }
nav.main { display: flex; gap: clamp(16px, 2vw, 28px); flex-wrap: wrap; }
nav.main a { font-size: 0.95rem; color: var(--text); font-weight: 500; opacity: 0.92; }
nav.main a:hover { opacity: 1; color: var(--forest); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.icon-btn { opacity: 0.8; cursor: pointer; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.92rem;
  height: 48px; padding: 0 24px; border-radius: 14px;
  background: var(--forest); color: #fff;
  white-space: nowrap; border: none; cursor: pointer;
  transition: background-color 200ms ease, transform 200ms ease;
}
.btn:hover { background: var(--forest-hover); }
.btn.ghost { background: var(--white); color: var(--ink); border: 1px solid var(--rule); }
.btn.ghost:hover { background: var(--cream-2); }
.btn.block { width: 100%; }

/* Bouton "Quel chien me conviendrait ?" : la phrase complète tient sur
   une ligne jusqu'à 360px de large (validé), donc affichée partout — le
   libellé court reste dans le markup mais n'est jamais montré. */
.btn-text-short { display: none; }

/* Burger : masqué par défaut (desktop), affiché uniquement sous 900px —
   sans cette règle il restait visible à toutes les largeurs. */
.menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: var(--white); border: 1px solid var(--rule); cursor: pointer; color: var(--ink);
}
.menu-btn .ic { width: 20px; height: 20px; }

@media (max-width: 900px) {
  nav.main { display: none; }
  .brand .brand-mark { height: 32px; }
  .header-actions { gap: 4px; }
  .header-actions .btn { height: 33px; padding: 0 10px; font-size: 0.64rem; border-radius: 9px; }
  .menu-btn { width: 33px; height: 33px; }
  .menu-btn .ic { width: 17px; height: 17px; }
  .menu-btn { display: flex; }
}
/* Sous 355px (ex. 320px), même avec flex-shrink:0 sur .brand, le bouton
   "Quel chien me conviendrait ?" (white-space:nowrap) ne peut plus se
   réduire assez et débordait — palier supplémentaire, vérifié par un
   balayage de largeurs 300→900px (scrollWidth vs clientWidth), pas
   seulement les tailles d'appareil habituelles. */
@media (max-width: 355px) {
  .header-actions { gap: 3px; }
  .header-actions .btn { padding: 0 6px; font-size: 0.56rem; }
  .brand .brand-mark { height: 28px; }
}

/* ---------- Menu mobile (panneau droit) ---------- */
.mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 60;
  width: 68%; margin-left: auto;
  background: var(--cream);
  box-shadow: -16px 0 40px rgba(30, 30, 30, 0.18);
  overflow-y: auto;
  display: flex; flex-direction: column;
}
/* Spécificité égale à .mobile-nav-overlay mais [hidden] doit gagner : la
   règle UA par défaut sur [hidden] a une origine plus faible qu'une règle
   auteur, donc display:flex ci-dessus la battrait sans cette ligne. */
.mobile-nav-overlay[hidden] { display: none; }
.mobile-nav-overlay .contain { max-width: none; margin: 0; padding-left: 24px; padding-right: 24px; }
.mobile-nav-top { padding-top: 20px; padding-bottom: 4px; display: flex; justify-content: flex-end; flex-shrink: 0; }
.menu-close-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--white); border: 1px solid var(--rule); cursor: pointer; color: var(--ink);
}
.menu-close-btn .ic { width: 18px; height: 18px; }
.mobile-nav-body { display: flex; flex-direction: column; gap: 28px; padding: 12px 0 32px; }
.mobile-nav-group { display: flex; flex-direction: column; }
.mobile-nav-label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.mobile-nav-group a { font-size: 1rem; color: var(--ink); padding: 8px 0; }
.mobile-nav-cta { align-self: center; margin-top: 4px; }
/* Le bouton reprend la taille desktop de .btn (48px/24px de padding)
   alors que le panneau ne fait que 68% de l'ecran - il touchait les
   bords du panneau, signale par l'utilisateur. Reduit specifiquement
   dans ce contexte, comme deja fait pour .header-actions .btn. */
.mobile-nav-cta.btn { height: 44px; padding: 0 20px; font-size: 0.85rem; border-radius: 12px; }

/* ---------- Footer ---------- */
footer.site { padding: clamp(48px, 6vw, 64px) 0 28px; background: var(--cream); color: var(--text); }
.foot-top { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr) 0.95fr; gap: 32px; padding-bottom: 36px; }
.foot-brand p { font-size: 0.85rem; color: var(--muted); max-width: 28ch; margin: 14px 0 18px; }
.foot-social { display: flex; gap: 14px; }
.foot-social a { color: var(--ink); display: flex; align-items: center; justify-content: center; }
.foot-social svg { width: 19px; height: 19px; }
.foot-social .glyph { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 17px; line-height: 1; }
.foot-col h4 { font-size: 0.85rem; margin-bottom: 14px; color: var(--ink); font-weight: 600; }
.foot-col a { display: block; font-size: 0.86rem; color: var(--muted); margin-bottom: 10px; }
.foot-note { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.foot-note svg { width: 20px; height: 20px; }
.foot-note p {
  font-family: 'DM Serif Display', serif; font-style: italic; font-size: 0.92rem;
  color: var(--muted); line-height: 1.4; margin: 0;
}
@media (max-width: 900px) { .foot-note { align-items: flex-start; text-align: left; } }
.foot-bottom { border-top: 1px solid var(--rule); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: var(--muted); }
.foot-bottom nav { display: flex; gap: 24px; }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } }

/* ---------- Breed cards (homepage "Races populaires" + fiche "Races similaires") ---------- */
.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
@media (max-width: 1000px) { .grid5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .grid5 { grid-template-columns: repeat(2, 1fr); } }

/* Races populaires (homepage only) : marges réduites pour des cartes plus larges */
.grid5.pop-grid { gap: 14px; }
@media (max-width: 1000px) { .grid5.pop-grid { gap: 12px; } }
@media (max-width: 640px) {
  .grid5.pop-grid { gap: 12px; }
  /* 5 cartes sur une grille à 2 colonnes laisse une 5e carte seule sur sa
     ligne — on masque la dernière pour rester sur un nombre pair (4). */
  .grid5.pop-grid > *:nth-child(5) { display: none; }
}

.race-card {
  display: block; position: relative; background: var(--white); border-radius: 20px; border: 1px solid var(--rule);
  overflow: hidden; box-shadow: 0 8px 30px rgba(30,30,30,.05);
}
.race-card .thumb { overflow: hidden; }
.race-card .thumb img { width: 100%; height: 160px; object-fit: cover; transition: transform 250ms ease; }
.race-card:hover .thumb img { transform: scale(1.04); }
.race-card .body { padding: 16px; }
.race-card h3 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.race-card .traits { font-size: 0.8rem; color: var(--muted); margin: 0 0 10px; }
.article-tag { display: inline-block; background: var(--sage); color: var(--forest); font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; margin-bottom: 8px; }
.race-card .row { display: flex; align-items: center; justify-content: flex-end; }
.race-card .price { font-size: 0.82rem; color: var(--ink); font-weight: 600; }
.race-card .arrow { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center; color: var(--brand-green); }
.race-card .arrow svg { width: 13px; height: 13px; }
.race-card .mini-stats { display: flex; flex-direction: column; gap: 5px; margin: 9px 0 12px; }
.race-card .mini-stat { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.race-card .mini-stat .mini-label { font-size: 0.72rem; color: var(--muted); }
@media (max-width: 640px) {
  .race-card .price { font-size: 0.7rem; }
  .race-card .arrow { width: 24px; height: 24px; }
  .race-card .arrow svg { width: 10px; height: 10px; }
}

/* Carte pas encore disponible (races.html + hubs Conseils/Guides/Comparatifs/
   Outils) : même carte que d'habitude, juste non cliquable (<div>, pas <a>)
   + un badge "Bientôt disponible". */
.race-card.a-venir, .hub-card.a-venir { cursor: default; }
.race-card.a-venir .thumb, .hub-card.a-venir .thumb { position: relative; }
.race-card.a-venir .thumb img, .hub-card.a-venir .thumb img { filter: grayscale(35%); opacity: 0.75; }
.badge-bientot {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--ink); color: var(--cream); font-size: 0.7rem; font-weight: 600;
  padding: 4px 10px; border-radius: 20px; letter-spacing: 0.02em;
}

/* ---------- Hubs éditoriaux (Conseils / Guides / Comparatifs / Outils) ---------- */
.hub-hero { padding: clamp(16px, 3vw, 32px) 0 clamp(24px, 3vw, 36px); }
.hub-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.hub-hero p { font-size: 1.05rem; color: var(--text); max-width: 60ch; }

/* Hero plein cadre (photo pleine largeur + texte en surimpression), même
   principe que le hero de la homepage (.hero/.hero-photo/.hero-scrim) :
   réutilisé par conseils.html et guides.html, plus riches qu'un simple hub
   comparatifs/outils. Contrairement au hero de la homepage, celui-ci suit
   un breadcrumb (pas de margin-top négatif pour se glisser sous le header). */
.page-hero {
  position: relative; padding: 0; overflow: hidden;
  min-height: clamp(380px, 42vw, 560px);
  /* padding-top: doit rester identique à .breadcrumb (padding-top ci-
     dessus) pour que le fil d'ariane (ancré en haut, cf. .page-hero-copy
     .breadcrumb) tombe exactement à la même hauteur que le .breadcrumb
     autonome des fiches races/conseil.html.j2 — unifié sur tout le site. */
  display: flex; align-items: flex-start; padding-top: 24px;
}
.page-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 32%; display: block; }
.page-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(252,245,234,0.95) 0%, rgba(252,245,234,0.88) 38%, rgba(252,245,234,0.5) 55%, rgba(252,245,234,0.06) 72%);
}
/* En bloc normal (pas absolute) : quand le contenu dépasse min-height de
   .page-hero (ex. guide alimentation avec sa ligne guide-meta en plus),
   le flex fait grandir la section au lieu de faire déborder le texte
   hors cadre sous le header — bug corrigé 2026-08-09. */
.page-hero-copy-wrap {
  position: relative; width: 100%;
  padding-left: calc(max(0px, (100% - 1200px) / 2) + clamp(16px, 3vw, 32px));
  padding-right: clamp(16px, 3vw, 32px);
}
/* Fil d'ariane ancré en haut de la photo hero (comme les fiches races /
   hub.html.j2), pas centré verticalement dans le cadre — même ancrage en
   haut sur mobile qu'en desktop depuis 2026-08-09 : avec l'ancrage bas
   précédent, la position du fil d'ariane variait selon la hauteur du
   contenu de chaque page (guides/alimentation collaient au header,
   conseils était visiblement plus bas), ce qui semblait incohérent. */
.page-hero-copy { max-width: 520px; }
.page-hero-copy .breadcrumb { padding: 0 0 16px; }
.page-hero-copy .eyebrow { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 700; color: var(--forest); margin: 4px 0 14px; font-family: 'Inter', sans-serif; }
.page-hero-copy h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.page-hero-copy p { font-size: 1.05rem; color: var(--text); max-width: 46ch; }
.page-hero-copy .cta-row { display: flex; align-items: center; gap: 20px; margin-top: 24px; flex-wrap: wrap; }
.page-hero-copy .cta-row .btn-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.page-hero-copy .cta-row .btn-link .ic { width: 17px; height: 17px; }
@media (max-width: 860px) {
  .page-hero { min-height: clamp(420px, 92vw, 560px); }
  .page-hero-photo { object-position: 68% 30%; }
}
/* Guide alimentation : la gamelle (le sujet de la photo) est basse dans le
   cadre source, contrairement aux autres photos hero (chien assis/allongé,
   sujet haut) — recadrage par défaut trop remonté, gamelle coupée. */
.page-hero-photo[src*="guide-alimentation-hero"] { object-position: 68% 80%; }
/* Outil matching : le chien est a gauche sur la photo source alors que
   le texte occupe deja la gauche - miroir pour le montrer davantage. */
.page-hero-photo[src*="conseil-cta-personne-chien"] { transform: scaleX(-1); }
.page-hero-photo[src*="border-collie_alimentation2"] { object-position: 50% 15%; transform: scaleX(-1); }
/* Photo generee pour ce hero (chien mangeant, tete pres de la gamelle) -
   par defaut la tete/gamelle tombent hors du crop vertical etroit du hero,
   recadrage calcule (voir geometrie boite 1920x560 vs image 1536x1024). */
.page-hero-photo[src*="comparatif-croquettes-hero"] { object-position: 50% 69%; }
/* Hub Comparatifs + comparatif croquettes : photos labrador reutilisees
   depuis la bibliotheque fiches races, jamais pensees pour un hero plein
   cadre - composition centree, pas de bande vide a droite pour le texte.
   Recadrage empirique (candidats testes via addStyleTag avant d'ecrire
   ici), signale par l'utilisateur (cadrage trop serre sur le museau). */
/* Chien positionne a gauche dans la photo source, alors que le texte du
   hero occupe deja la gauche - miroir horizontal pour l'amener a droite
   (l'ajustement d'object-position seul ne suffisait pas : le crop est
   surtout vertical sur ce format de conteneur, la position horizontale
   du sujet dans la source ne bouge quasiment pas avec object-position). */
.page-hero-photo[src*="labrador-retriever_alimentation2"] { object-position: 45% 25%; transform: scaleX(-1); }
@media (max-width: 860px) {
  .page-hero-photo[src*="guide-alimentation-hero"] { object-position: 30% 60%; }
  .page-hero-photo[src*="labrador-retriever_alimentation2"] { object-position: 50% 20%; transform: scaleX(-1); }
}

/* Barre de réassurance (4 promesses) : flotte sur la photo du hero, même
   principe que .feature-strip sur la homepage (margin-top négatif, le
   parent .trust-bar-wrap n'a pas de padding-top pour ne pas casser le
   chevauchement). */
.trust-bar-wrap { padding-top: 0; }
.trust-bar {
  background: var(--white); border-radius: 20px; border: 1px solid var(--rule);
  box-shadow: 0 8px 30px rgba(30,30,30,.05); padding: 18px clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: clamp(-88px, -7vw, -64px); position: relative; z-index: 2;
}
/* Zone morte 521-1180px : le clamp() de margin-top ci-dessus suppose une
   photo hero assez haute pour laisser de la place sous le bouton CTA, ce
   qui n'est vrai qu'au-delà de ~1180px — en dessous, la marge négative
   pleine puissance fait chevaucher le trust-bar sur le bouton "Voir le
   sommaire"/"Nos conseils" du hero (confirmé sur conseils.html,
   guides.html ET guide/alimentation.html, pas spécifique à une page).
   Testé sur toute la plage 550-1150px avant de fixer ce seuil. */
@media (max-width: 1180px) { .trust-bar { margin-top: -20px; } }
@media (max-width: 860px) { .trust-bar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust-bar { grid-template-columns: 1fr; margin-top: 24px; } }
.trust-bar .trust-item { display: flex; align-items: center; gap: 20px; }
.trust-bar .trust-item .icon-circle { width: 52px; height: 52px; }
.trust-bar .trust-item .icon-circle .ic { width: 24px; height: 24px; }
.trust-bar .trust-item .trust-item-title { font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.trust-bar .trust-item p { font-size: 0.8rem; color: var(--muted); margin: 0; }

/* Icône circulaire (même langage que la fiche race) : réutilisée pour la
   barre de réassurance et les cartes de thématiques/guides. */
.icon-circle {
  width: 40px; height: 40px; border-radius: 50%; background: var(--sage);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-circle .ic { color: var(--forest); width: 19px; height: 19px; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .category-grid { grid-template-columns: 1fr; } }

/* Grille à 4 colonnes (plus dense) : "Tous nos guides" (8 cartes). */
.category-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .category-grid.grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .category-grid.grid-4 { grid-template-columns: 1fr; } }

.hub-card {
  display: block; position: relative; background: var(--white); border-radius: 20px; border: 1px solid var(--rule);
  overflow: hidden; box-shadow: 0 8px 30px rgba(30,30,30,.05); padding: 24px;
}
.hub-card .icon-circle { margin-bottom: 16px; }
.hub-card h3 { font-family: 'Inter', sans-serif; font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.hub-card p { font-size: 0.88rem; color: var(--muted); margin: 0; }
.hub-card.a-venir { padding-top: 48px; }
.hub-card.a-venir .badge-bientot { top: 16px; right: 16px; left: auto; }

/* Carte avec photo (ex. "Tous nos guides") : la vignette bleede jusqu'aux
   bords de la carte malgré son padding, la bibliothèque photo des races
   fournit déjà des visuels de chien pertinents pour chaque thème. */
.hub-card.with-photo { padding-top: 0; }
.hub-card .thumb { position: relative; height: 160px; overflow: hidden; margin: 0 -24px 16px; border-radius: 0; }
.hub-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
/* Cartes "Par thématique" (conseils.html) : cartes plus larges (3 colonnes)
   que "Tous nos guides" (4 colonnes) → un thumb plus haut recadre moins
   agressivement les photos sur les côtés. */
.theme-grid .hub-card .thumb { height: 200px; }
.theme-grid #education .thumb img { object-position: 35% 25%; }
.theme-grid #sante .thumb img { object-position: 55% 60%; }
/* "Tous nos guides" (guides.html) : même photo "home-theme-1.webp" que le
   thème Santé de conseils.html mais vignette plus courte (160px vs 200px)
   → le museau du chien était coupé en bas. Règle scopée à .grid-4 (absent
   du theme-grid de conseils.html) pour ne pas retoucher l'autre page —
   voir gotcha #10, id "sante" réutilisé sur les deux pages. */
.category-grid.grid-4 #sante .thumb img { object-position: 50% 78%; }
/* "Articles à la une" (conseils.html) : la photo du Golden Retriever cadrait
   trop près du visage (tête proche du bord haut de la vignette) — recentrée
   plus haut pour laisser de l'air au-dessus des yeux. */
.race-card .thumb img[src*="golden-retriever_alimentation.webp"] { object-position: 50% 12%; }
.hub-card.with-photo.a-venir { padding-top: 0; }
.hub-card.with-photo.a-venir .badge-bientot { top: 10px; right: 10px; left: auto; }
.hub-card.with-photo .body { padding: 20px 16px 22px; }
.hub-card.with-photo .body .icon-circle { width: 48px; height: 48px; margin-top: -64px; margin-bottom: 12px; position: relative; z-index: 2; border: 3px solid var(--white); }
.hub-card.with-photo .body .icon-circle .ic { width: 24px; height: 24px; }

/* Vignette "placeholder" (pas de photo réelle) pour les cartes article/guide
   pas encore publiées : même gabarit que .race-card .thumb, icône centrée
   au lieu d'une image. */
.race-card .thumb.placeholder { height: 160px; background: var(--sage); display: flex; align-items: center; justify-content: center; }
.race-card .thumb.placeholder .ic { width: 32px; height: 32px; color: var(--forest); opacity: 0.6; }

/* Bandeau CTA de fin de page (conseils.html / guides.html) */
.cta-banner {
  background: var(--sage); border-radius: 20px; padding: clamp(24px, 3vw, 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-banner .cta-left { display: flex; align-items: center; gap: 40px; margin-left: clamp(4px, 2vw, 24px); }
.cta-banner .icon-circle { width: 76px; height: 76px; background: var(--white); flex-shrink: 0; }
.cta-banner .icon-circle .ic { width: 32px; height: 32px; }
.cta-banner > .btn { margin-right: clamp(20px, 6vw, 90px); }
.cta-banner .cta-text { max-width: 52ch; }
.cta-banner h3 { font-size: 1.4rem; margin-bottom: 6px; }
.cta-banner p { font-size: 0.9rem; color: var(--text); margin: 0; }
@media (max-width: 640px) {
  /* Mobile : ligne 1 icône+titre, ligne 2 phrase, ligne 3 bouton — .cta-text
     passe en display:contents pour que h3/p rejoignent .cta-left comme
     items flex directs, et p prend flex-basis:100% pour forcer sa propre
     ligne sous le titre plutôt que de rester coincé à côté de l'icône. */
  .cta-banner { flex-direction: column; align-items: stretch; gap: 20px; }
  .cta-banner .cta-left { flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-left: 0; }
  .cta-banner .icon-circle { width: 34px; height: 34px; }
  .cta-banner .icon-circle .ic { width: 16px; height: 16px; }
  .cta-banner .cta-text { display: contents; }
  .cta-banner h3 { font-size: 1.02rem; margin-bottom: 0; flex: 1 1 180px; min-width: 0; }
  .cta-banner p { flex-basis: 100%; max-width: none; }
  .cta-banner > .btn { margin-right: 0; align-self: center; }
}
