/* Canirex — pages de rubrique (06/11/2026). S'appuie sur /accueil/accueil.css
   (jetons, .heros, .etq, .section, .bloc, .bouton) ; ne définit que ce qui
   leur est propre. Téléphone d'abord : une liste de cartes à vignette ;
   trois colonnes de cartes verticales sur ordinateur. */
.rubrique .heros--rubrique { padding-block: 32px 12px; }
.rubrique .heros--rubrique .heros__texte { max-width: 46rem; }
.rubrique .scene--rub { display: none; }
@media (min-width: 980px) {
  .rubrique .scene--rub { display: block; min-height: 340px; }
  .rubrique .scene--rub .medaillon { right: 12%; top: 10px; width: 250px; height: 250px; }
  .rubrique .scene--rub .sticker--rub { left: 14%; bottom: 0; width: 130px; transform: rotate(-4deg); }
  .rubrique--race .scene--rub .sticker--rub { left: 4%; width: 190px; }
}
.rubrique .heros--rubrique h1 { font-size: clamp(32px, 5vw, 58px); }
.rubrique .section--rub { padding-block: 28px 12px; }
.rubrique .section--rub .section__tete { margin-bottom: 18px; }
.rubrique .section--rub .section__tete h2 { font-size: clamp(24px, 3vw, 34px); }

/* Navigation de la page : des pastilles qui défilent sur téléphone */
.rub-nav { display: flex; gap: 8px; overflow-x: auto; margin-inline: -16px; padding: 4px 16px 6px; scrollbar-width: none; }
.rub-nav::-webkit-scrollbar { display: none; }
.rub-nav a {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid var(--trait-fort); border-radius: var(--plaque); background: var(--fond-carte);
  color: var(--encre); font-size: 14.5px; font-weight: 600; text-decoration: none;
}
.rub-nav a span { min-width: 1.5em; padding: 1px 7px; border-radius: var(--plaque); background: var(--sauge-voile); color: var(--sauge-texte); font-size: 12px; font-weight: 700; text-align: center; }
.rub-nav a:hover { border-color: var(--sauge-texte); }
@media (min-width: 700px) { .rub-nav { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; } }

/* Cartes */
.rub-cartes { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rub-carte {
  position: relative; display: grid; grid-template-columns: 7.25rem minmax(0, 1fr); overflow: hidden;
  height: 100%; color: var(--encre); text-decoration: none; text-underline-offset: 3px;
}
.rub-carte:hover { border-color: var(--trait-fort); }
.rub-carte:focus-visible { outline: 3px solid var(--sauge-texte); outline-offset: 3px; }
.rub-carte__scene { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; padding: 10px; background: var(--holo); }
.rub-carte__scene img { width: 100%; height: 100%; max-height: 7rem; object-fit: contain; mix-blend-mode: multiply; }
.rub-carte__scene--photo { padding: 0; }
.rub-carte__scene--photo img { max-height: none; object-fit: cover; mix-blend-mode: normal; }
.rub-carte__initiale { font-family: var(--font-titre); font-size: 3rem; font-weight: 700; opacity: 0.35; }
/* Chien détouré (contour blanc) : posé sur le dégradé, sans fondu. */
.rub-carte__scene--detouree img { min-height: 0; mix-blend-mode: normal; filter: drop-shadow(0 8px 14px rgb(13 34 64 / 14%)); }
.rub-carte__badge {
  position: absolute; top: 8px; left: 8px; padding: 2px 9px; border-radius: var(--plaque);
  background: var(--encre); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.rub-carte__corps { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 14px 14px; min-width: 0; }
.rub-carte__titre { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
.rub-carte__accroche {
  color: var(--encre-douce); font-size: 14px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.rub-carte__lien { margin-top: auto; padding-top: 4px; color: var(--sauge-texte); font-size: 14px; font-weight: 650; }
.rub-carte__lien::after { content: " →"; }
@media (prefers-reduced-motion: no-preference) {
  .rub-carte { transition: transform .15s ease, box-shadow .15s ease; }
  .rub-carte:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
  .rub-carte__scene img { transition: transform .35s ease; }
  .rub-carte:hover .rub-carte__scene img { transform: scale(1.05); }
}
@media (min-width: 700px) {
  .rub-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .rub-carte { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .rub-carte__scene { aspect-ratio: 4 / 3; padding: 22px; }
  .rub-carte__scene img { max-height: none; }
  .rub-carte__scene--photo { padding: 0; }
  .rub-carte__badge { top: 14px; left: 14px; font-size: 12px; padding: 4px 12px; }
  .rub-carte__corps { gap: 6px; padding: 18px 20px 20px; }
  .rub-carte__titre { font-size: 19px; }
  .rub-carte__accroche { font-size: 14.5px; -webkit-line-clamp: 4; }
}
@media (min-width: 1000px) { .rub-cartes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Bandeau de méthode */
.rub-bandeau { display: grid; gap: 16px; align-items: center; padding: 22px; background: var(--holo); }
.rub-bandeau h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 6px; }
.rub-bandeau p { color: var(--encre-douce); max-width: 44rem; font-size: 15px; }
@media (min-width: 700px) { .rub-bandeau { grid-template-columns: minmax(0, 1fr) auto; padding: 28px 32px; } }
.rubrique .section--rub:last-child { padding-bottom: 48px; }

/* Crédits des photos (rubrique Races) */
.rub-credits { margin-top: 18px; color: var(--encre-douce); font-size: 13.5px; }
.rub-credits summary { cursor: pointer; font-weight: 600; color: var(--encre); }
.rub-credits p { margin: 8px 0 6px; }
.rub-credits ul { margin: 0; padding-left: 18px; columns: 2 18rem; column-gap: 28px; }
.rub-credits li { break-inside: avoid; margin-bottom: 3px; }
.rub-credits a { color: inherit; }

/* Thème sombre (14/11/2026) : photos de produits sur fond blanc, plus de
   fondu `multiply` (il les noircirait) ; texte des pastilles sur l'encre,
   qui devient claire. */
@media (prefers-color-scheme: dark) {
  .rub-carte__scene img { mix-blend-mode: normal; }
  .rub-carte__scene:not(.rub-carte__scene--photo):not(.rub-carte__scene--detouree) img { padding: 6px; border-radius: 12px; background: #fff; }
  .rub-carte__scene--detouree img { filter: drop-shadow(0 8px 14px rgb(0 0 0 / 35%)); }
  .rub-carte__badge { color: var(--fond-100); }
}
