/* Fiches races de Canirex (08/11/2026) : composant BandeauRace du design
   system, aux jetons du gabarit commun (rethématisés par site.css). */
.ra { max-width: var(--largeur-page); margin: 0 auto; }
.ra-bandeau { display: grid; gap: var(--espace-5); grid-template-columns: minmax(0, 1fr); padding: var(--espace-6) var(--espace-5); border-radius: var(--rayon-2); background: var(--fond-foret); color: var(--encre-foret); }
.ra-bandeau h1 { margin: var(--espace-2) 0 var(--espace-1); color: inherit; font-size: clamp(2.25rem, 6vw, 3.5rem); line-height: 1.05; overflow-wrap: anywhere; }
.ra-plaques { display: flex; flex-wrap: wrap; gap: var(--espace-2); margin: 0; }
.ra-plaques > * { padding: var(--espace-1) var(--espace-3); border: 1px solid currentColor; border-radius: var(--rayon-pastille); font-size: 0.8125rem; font-weight: 650; color: inherit; opacity: 0.9; text-decoration: none; }
.ra-plaque--loi { background: var(--abricot); border-color: var(--abricot) !important; color: var(--fond-foret) !important; opacity: 1 !important; }
.ra-alias { margin: 0; opacity: 0.8; font-size: 0.9375rem; }
.ra-chapeau { margin: var(--espace-3) 0 0; font-size: 1.125rem; line-height: 1.55; }
.ra-photo { margin: 0; }
.ra-photo img { display: block; width: 100%; height: auto; max-height: 24rem; object-fit: cover; border-radius: var(--rayon-1); background: var(--fond-photo); }
.ra-photo figcaption { margin-top: var(--espace-1); font-size: 0.75rem; opacity: 0.8; }
.ra-photo figcaption a { color: inherit; }
.ra-photo-vide { display: grid; place-items: center; min-height: 10rem; padding: var(--espace-4); border: 1px dashed currentColor; border-radius: var(--rayon-1); opacity: 0.7; text-align: center; font-size: 0.875rem; }
.ra-mesures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--espace-3); margin: 0; }
.ra-mesures div { padding: var(--espace-3); border-radius: var(--rayon-1); background: rgb(255 255 255 / 8%); }
.ra-mesures dt { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.8; }
.ra-mesures dd { margin: var(--espace-1) 0 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.ra-mesures .ra-note a, .ra-bandeau .ra-note a { color: inherit; }
@media (min-width: 52rem) {
  .ra-bandeau { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); padding: var(--espace-7); }
  .ra-mesures { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ra > nav.sommaire, .ra > section { max-width: var(--largeur); margin-left: auto; margin-right: auto; }
.ra > nav.sommaire { margin-top: var(--espace-6); }
.ra-points { padding-left: var(--espace-5); }
.ra-points li { margin-bottom: var(--espace-2); }
.ra-note { margin-left: 0.1em; font-size: 0.7em; }
.ra-note a { text-decoration: none; }
.ra-variabilite, .ra-fci, .ra-maj { color: var(--encre-douce); font-size: 0.9375rem; }
.ra-esperance { font-size: 1.0625rem; }
.ra-sources ol { font-size: 0.875rem; padding-left: var(--espace-5); }
.ra-sources li { margin-bottom: var(--espace-1); overflow-wrap: anywhere; }

/* Hubs par type de chien et fiches courtes (11/11/2026, lot 2). */
.ra-plaques > a:hover { opacity: 1; text-decoration: underline; }
.ra-herite { font-size: 1.0625rem; }
.ty-protocoles { display: grid; gap: var(--espace-3); padding: 0; list-style: none; }
.ty-protocoles li { padding: var(--espace-4); border-radius: var(--rayon-1); }
.ty-protocoles__titre { font-weight: 700; font-size: 1.0625rem; }
.ty-protocoles p { margin: var(--espace-1) 0 0; }
@media (min-width: 40rem) { .ty-protocoles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ty > section.ty-races { max-width: var(--largeur-page); }
.ty-races h3 { display: flex; align-items: baseline; gap: var(--espace-2); margin-top: var(--espace-6); }
.ty-compte { padding: 0 var(--espace-2); border-radius: var(--rayon-pastille); background: var(--fond-photo); color: var(--encre-douce); font-size: 0.8125rem; font-weight: 650; }
.ty-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: var(--espace-3); padding: 0; list-style: none; }
.ty-race { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--trait); border-radius: var(--rayon-1); overflow: hidden; color: inherit; text-decoration: none; background: var(--fond-carte); }
.ty-race:hover, .ty-race:focus-visible { border-color: currentColor; }
.ty-race__photo { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--fond-photo); color: var(--encre-douce); font-size: 1.75rem; font-weight: 700; }
.ty-race__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.ty-race__nom { padding: var(--espace-2) var(--espace-2) 0; font-weight: 650; line-height: 1.25; }
.ty-race__info { padding: var(--espace-1) var(--espace-2) var(--espace-2); color: var(--encre-douce); font-size: 0.8125rem; }
.ty-race--redigee { border-color: var(--fond-foret); }
.ty-race--redigee .ty-race__info { color: var(--fond-foret); font-weight: 650; }
.ty-question { padding: var(--espace-3) 0; border-bottom: 1px solid var(--trait); }
.ty-question summary { cursor: pointer; font-weight: 650; }
.ty-question p { margin: var(--espace-2) 0 0; }

/* Index de toutes les races (11/11/2026 soir) : filtres au-dessus de la grille des hubs. */
.visuellement-masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ix-voisines p { margin: 0 0 var(--espace-2); font-size: 0.8125rem; font-weight: 650; opacity: 0.85; }
.ix-voisines ul { display: flex; flex-wrap: wrap; gap: var(--espace-2); margin: 0; padding: 0; list-style: none; }
.ix-voisines a { display: inline-block; padding: var(--espace-1) var(--espace-3); border: 1px solid currentColor; border-radius: var(--rayon-pastille); color: inherit; font-size: 0.875rem; text-decoration: none; }
.ix-voisines a:hover, .ix-voisines a:focus-visible { background: rgb(255 255 255 / 12%); }
.ix > section.ix-liste { max-width: var(--largeur-page); margin-top: var(--espace-6); }
.ix-filtres { display: grid; gap: var(--espace-3); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: var(--espace-5); padding: var(--espace-4); border: 1px solid var(--trait); border-radius: var(--rayon-1); background: var(--fond-carte); }
.ix-filtres[hidden] { display: none; }
.ix-champ { display: flex; flex-direction: column; gap: var(--espace-1); min-width: 0; margin: 0; padding: 0; border: 0; }
.ix-champ--nom, .ix-tailles, .ix-compte { grid-column: 1 / -1; }
.ix-champ > label, .ix-champ legend { font-size: 0.8125rem; font-weight: 650; color: var(--encre-douce); }
.ix-champ input[type="search"], .ix-champ select { width: 100%; min-height: 2.75rem; padding: var(--espace-2) var(--espace-3); border: 1px solid var(--trait); border-radius: var(--rayon-1); background: var(--fond-carte); color: inherit; font: inherit; }
.ix-tailles { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--espace-2); }
.ix-tailles legend { width: 100%; margin-bottom: var(--espace-1); }
.ix-tailles label, .ix-detail { display: inline-flex; align-items: center; gap: var(--espace-1); min-height: 2.75rem; padding: 0 var(--espace-3); border: 1px solid var(--trait); border-radius: var(--rayon-pastille); cursor: pointer; }
.ix-tailles label:has(input:checked), .ix-detail:has(input:checked) { border-color: var(--fond-foret); background: var(--fond-foret); color: var(--encre-foret); }
.ix-detail { grid-column: 1 / -1; justify-self: start; }
.ix-compte { display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-3); margin: 0; }
.ix-effacer { padding: var(--espace-1) var(--espace-3); border: 1px solid var(--trait); border-radius: var(--rayon-pastille); background: none; color: inherit; font: inherit; font-size: 0.875rem; cursor: pointer; }
.ix-grille li[hidden] { display: none; }
.ix-grille .ty-race__info b { font-weight: 650; }
.ix-vide { padding: var(--espace-5); text-align: center; color: var(--encre-douce); }
.ix-comparaisons { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--espace-2); padding: 0; list-style: none; }
.ix-comparaisons a { display: block; padding: var(--espace-3); border: 1px solid var(--trait); border-radius: var(--rayon-1); background: var(--fond-carte); color: inherit; font-weight: 650; text-decoration: none; }
.ix-comparaisons a:hover, .ix-comparaisons a:focus-visible { border-color: currentColor; }
@media (min-width: 52rem) {
  .ix-filtres { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
  .ix-champ--nom, .ix-tailles, .ix-detail, .ix-compte { grid-column: span 2; }
  .ix-compte { justify-content: flex-end; }
}

/* Comparaisons « X ou Y ? » (11/11/2026 soir). */
.cp-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--espace-3); }
.cp-photo img { aspect-ratio: 4 / 3; max-height: 16rem; }
.cp-photo figcaption a:first-child { font-weight: 700; font-size: 0.875rem; }
.ra > section.cp-tableau { max-width: var(--largeur-page); }
.cp-table-defile { overflow-x: auto; }
.cp-tableau table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.cp-tableau th, .cp-tableau td { padding: var(--espace-3); border-bottom: 1px solid var(--trait); text-align: left; vertical-align: top; }
.cp-tableau thead th { font-size: 1.0625rem; }
.cp-tableau tbody th { width: 22%; color: var(--encre-douce); font-weight: 650; }
.cp-tableau td { width: 39%; font-variant-numeric: tabular-nums; }
.cp-choix { display: grid; gap: var(--espace-4); }
.cp-choix .bloc { padding: var(--espace-4); border-radius: var(--rayon-1); }
.cp-choix h3 { margin-top: 0; }
.cp-source-race { color: var(--encre-douce); }
@media (min-width: 40rem) { .cp-choix { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Sur téléphone, le tableau se lit en fiches : critère, puis une ligne par race. */
@media (max-width: 39.99rem) {
  .cp-tableau thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cp-tableau tr { display: block; padding: var(--espace-2) 0; border-bottom: 1px solid var(--trait); }
  .cp-tableau th, .cp-tableau tbody th, .cp-tableau td { display: block; width: auto; padding: var(--espace-1) 0; border: 0; background: none; }
  .cp-tableau td::before { content: attr(data-race) " : "; font-weight: 650; }
}

/* « Au quotidien » des fiches et sélecteur « Quel chien est fait pour vous ? » (12/11/2026). */
.ra-quotidien__liste { display: grid; gap: var(--espace-3); margin: 0; }
.ra-quotidien__liste div { padding: var(--espace-3) var(--espace-4); border: 1px solid var(--trait); border-radius: var(--rayon-1); background: var(--fond-carte); }
.ra-quotidien__liste dt { font-size: 0.875rem; color: var(--encre-douce); }
.ra-quotidien__liste dt strong { color: var(--encre); }
.ra-quotidien__liste dd { margin: var(--espace-1) 0 0; }
@media (min-width: 40rem) { .ra-quotidien__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sel > section.sel-outil { max-width: var(--largeur-page); margin-top: var(--espace-6); }
.sel-sans-js { padding: var(--espace-4); border: 1px dashed var(--trait); border-radius: var(--rayon-1); }
.sel-questions { display: grid; gap: var(--espace-4); margin-bottom: var(--espace-5); padding: var(--espace-4); border: 1px solid var(--trait); border-radius: var(--rayon-1); background: var(--fond-carte); }
.sel-questions[hidden] { display: none; }
.sel-question { min-width: 0; margin: 0; padding: 0; border: 0; }
.sel-question legend { margin-bottom: var(--espace-2); font-weight: 650; }
.sel-aide { margin: calc(-1 * var(--espace-1)) 0 var(--espace-2); color: var(--encre-douce); font-size: 0.8125rem; }
.sel-options { display: flex; flex-wrap: wrap; gap: var(--espace-2); }
.sel-options label { display: inline-flex; align-items: center; gap: var(--espace-1); min-height: 2.75rem; padding: var(--espace-1) var(--espace-3); border: 1px solid var(--trait); border-radius: var(--rayon-pastille); cursor: pointer; line-height: 1.3; }
.sel-options label:has(input:checked) { border-color: var(--fond-foret); background: var(--fond-foret); color: var(--encre-foret); }
.sel-actions { margin: 0; }
.sel-bilan { font-size: 1.125rem; }
.sel-bilan strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.sel-grille { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.sel-carte { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--trait); border-radius: var(--rayon-1); background: var(--fond-carte); }
.sel-carte > .ty-race { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); grid-template-rows: 1fr auto; height: auto; border: 0; border-radius: 0; }
.sel-carte > .ty-race:hover .ty-race__nom, .sel-carte > .ty-race:focus-visible .ty-race__nom { text-decoration: underline; }
.sel-carte .ty-race__photo { grid-row: 1 / 3; font-size: 1.25rem; }
.sel-carte .ty-race__photo img { height: 100%; }
.sel-carte .ty-race__nom { align-self: end; padding: var(--espace-2) var(--espace-3) 0; }
.sel-carte .ty-race__info { padding: var(--espace-1) var(--espace-3) var(--espace-2); }
.sel-attention { margin: 0; padding: var(--espace-2) var(--espace-3) var(--espace-2) var(--espace-6); border-top: 1px solid var(--trait); font-size: 0.875rem; }
.sel-attention li, .sel-ecartees li li { margin-bottom: var(--espace-1); }
.sel-source { color: var(--encre-douce); font-size: 0.8125rem; overflow-wrap: anywhere; }
.sel-inconnu { margin: 0; padding: var(--espace-2) var(--espace-3); border-top: 1px solid var(--trait); color: var(--encre-douce); font-size: 0.8125rem; }
.sel-ecartees { margin-top: var(--espace-5); padding: var(--espace-3) var(--espace-4); border: 1px solid var(--trait); border-radius: var(--rayon-1); background: var(--fond-carte); }
.sel-ecartees summary { min-height: 2.75rem; display: flex; align-items: center; cursor: pointer; font-weight: 650; }
.sel-ecartees > ul { margin: var(--espace-2) 0 0; padding-left: var(--espace-4); }
.sel-ecartees > ul > li { margin-top: var(--espace-3); }
.sel-ecartees > ul > li > a { font-weight: 650; }
.sel-ecartees li ul { padding-left: var(--espace-4); font-size: 0.875rem; }
@media (min-width: 52rem) {
  .sel-questions { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: var(--espace-5); }
  .sel-actions { grid-column: 1 / -1; }
}
