/* Pages transversales (page-transversale.php, rendu dans inc/transversale.php) : maquette maquettes/transversale-v1/a6, classes tv-.
   S'appuie sur les composants rc- de la fiche race (race.css, chargé avant) et sur le tableau rl- (race-lists.css, pages du registre). */
.tv .rc-h2{scroll-margin-top:90px}
.tv h1{font-size:clamp(32px,8vw,54px)}
.tv-lede{margin:-6px 0 16px;max-width:52em;font-size:14px}
.tv-lede--m{display:none}
.tv-count{display:inline-block;min-width:26px;padding:1px 8px;margin-left:4px;border-radius:999px;background:var(--rc-green-pale);color:var(--rc-green);font-family:var(--rc-sans);font-size:13px;font-weight:600;text-align:center;vertical-align:middle}

/* Hero : texte | panneau vert (mosaïque + la liste) */
.tv-hero{padding-top:8px}
.tv-hero-side{min-width:0}
@media(max-width:959px){
  .tv-hero-grid{grid-template-areas:"text" "side"}
  .tv-hero .rc-hero-text{grid-area:text}
  .tv-hero-side{grid-area:side}
  .tv .rc-hero{padding-bottom:8px}
  #liste-des-races{padding-top:28px}
}
@media(min-width:960px){
  .tv-hero-grid{grid-template-columns:minmax(0,1fr) 460px;grid-template-areas:"text side";grid-template-rows:auto}
  .tv-hero .rc-hero-text{grid-area:text;align-self:center;padding:10px 0}
  .tv-hero-side{grid-area:side;padding:22px 0 0}
  .tv-hero::after{width:calc((100vw - var(--rc-max)) / 2 + var(--rc-gutter) + 500px)}
  .tv .rc-hero{padding-bottom:34px}
}

/* Mosaïque de photos de la liste (desktop) */
.tv-mos{display:grid;grid-template-columns:1fr 1fr;gap:4px;border-radius:var(--rc-r-lg) var(--rc-r-lg) 0 0;overflow:hidden}
.tv-mos-c{position:relative;display:block;height:100px;background:var(--rc-green-pale)}
.tv-mos-c img{width:100%;height:100%;object-fit:cover}
.tv-mos-c span{position:absolute;left:8px;bottom:6px;color:#fff;font-size:12.5px;font-weight:600;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.tv-mos--3 .tv-mos-c:first-child{grid-row:span 2;height:auto}
@media(max-width:959px){.tv-mos{display:none}}

/* La liste : chiffres de la liste et critère */
.tv-facts{background:var(--rc-white);border:1px solid var(--rc-line);border-radius:var(--rc-r-md);padding:14px 16px}
.tv-mos + .tv-facts{border-radius:0 0 var(--rc-r-lg) var(--rc-r-lg);border-top:0}
.tv-facts dl{margin:0;display:grid;grid-template-columns:1fr 1fr;column-gap:14px}
.tv-fact{padding:8px 0;border-bottom:1px solid var(--rc-line)}
.tv-fact dt{font-size:12.5px;color:var(--rc-grey)}
.tv-fact dd{margin:2px 0 0;font-weight:600;font-size:14.5px;line-height:1.35}
.tv-crit{font-size:12.5px;line-height:1.55;color:var(--rc-grey);margin-top:10px}
.tv-crit a{color:inherit}
@media(min-width:960px){.tv-facts{box-shadow:0 16px 40px rgba(10,30,18,.25)}}

/* Accès aux groupes : une ligne qui défile sur mobile */
.tv-jump{margin-top:18px}
.tv-jump ul{display:flex;flex-wrap:wrap;gap:8px}
.tv-jump a{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border-radius:12px;background:var(--rc-white);border:1px solid #CFE3D7;color:var(--rc-green);text-decoration:none;font-size:14.5px;font-weight:500}
.tv-jump a span{font-size:12.5px;color:var(--rc-grey)}
.tv-jump a:hover{background:var(--rc-green);color:#fff}
.tv-jump a:hover span{color:#fff}
@media(max-width:959px){
  .tv-jump ul{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding:0 40px 0 var(--rc-gutter)}
  .tv-jump ul::-webkit-scrollbar{display:none}
  .tv-jump li{flex:none}
  .tv-jump a{white-space:nowrap}
}
@media(min-width:960px){.tv-jump .rc-scroller{margin:0}.tv-jump .rc-scroller::after{display:none}}

/* Grille de cartes photo */
.tv-group{margin-top:26px;scroll-margin-top:90px}
.tv-group:first-of-type{margin-top:0}
.tv-group-t{font-size:20px;margin-bottom:2px}
.tv-group-n{font-size:13px;color:var(--rc-grey);margin-bottom:12px}
.tv-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tv-card{display:flex;flex-direction:column;height:100%;background:var(--rc-white);border:1px solid var(--rc-line);border-radius:var(--rc-r-md);overflow:hidden;text-decoration:none;color:var(--rc-ink)}
.tv-card:hover{border-color:var(--rc-green-mid)}
.tv-card-img{width:100%;aspect-ratio:3/2;height:auto;object-fit:cover;background:var(--rc-green-pale)}
.tv-noimg{display:flex;align-items:center;justify-content:center;background:var(--rc-green-pale);color:var(--rc-green-mid)}
.tv-noimg.tv-card-img{aspect-ratio:3/2}
.tv-card-b{padding:9px 12px 11px;display:flex;flex-direction:column;gap:2px}
.tv-card-n{font-weight:600;font-size:15px;line-height:1.3}
.tv-card:hover .tv-card-n{color:var(--rc-green);text-decoration:underline;text-underline-offset:3px}
.tv-card-m{font-size:12.5px;color:var(--rc-grey);line-height:1.35}
@media(min-width:700px){.tv-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1000px){.tv-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}}
/* Mobile : une race par ligne (vignette ronde, nom, donnée) ; panneau « La liste » remplacé par le critère sous le titre */
@media(max-width:699px){
  .tv-hero-side{display:none}
  .tv-lede--m{display:block}
  .tv-grid{grid-template-columns:1fr;gap:0;background:var(--rc-white);border:1px solid var(--rc-line);border-radius:var(--rc-r-md);overflow:hidden}
  .tv-grid li{border-bottom:1px solid var(--rc-line)}
  .tv-grid li:last-child{border-bottom:0}
  .tv-card{flex-direction:row;align-items:center;gap:12px;border:0;border-radius:0;padding:8px 12px;min-height:64px}
  .tv-card-img,.tv-noimg.tv-card-img{width:52px;height:52px;aspect-ratio:auto;border-radius:50%;flex:none}
  .tv-noimg.tv-card-img svg{width:22px;height:22px}
  .tv-card-b{padding:0}
}

/* Classement */
.tv-rank{display:grid;background:var(--rc-white);border:1px solid var(--rc-line);border-radius:var(--rc-r-md);overflow:hidden}
.tv-rank li{display:grid;grid-template-columns:28px 40px 1fr auto;align-items:center;gap:12px;padding:8px 14px;border-bottom:1px solid var(--rc-line)}
.tv-rank li:last-child{border-bottom:0}
.tv-rank-n{font-family:var(--rc-serif);font-weight:600;font-size:18px;color:var(--rc-green)}
.tv-rank-img{width:40px;height:40px;border-radius:50%;object-fit:cover}
.tv-rank-img.tv-noimg svg{width:20px;height:20px}
.tv-rank a{font-weight:600;color:var(--rc-ink);text-decoration:none}
.tv-rank a:hover{color:var(--rc-green);text-decoration:underline}
.tv-rank-v{font-size:14px;color:var(--rc-text);white-space:nowrap}
@media(min-width:960px){.tv-rank{grid-template-columns:1fr 1fr}.tv-rank li:nth-child(odd){border-right:1px solid var(--rc-line)}.tv-rank li:nth-last-child(2):nth-child(odd){border-bottom:0}}

/* Texte replié (sections H2, tableau, texte d'un groupe FCI) */
.tv-folds{display:grid;gap:8px;max-width:860px}
.tv-fold{background:var(--rc-white);border:1px solid var(--rc-line);border-radius:var(--rc-r-md)}
.tv-fold summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;cursor:pointer;list-style:none}
.tv-fold summary::-webkit-details-marker{display:none}
.tv-fold-t{font-family:var(--rc-sans) !important;font-size:16.5px;font-weight:600;line-height:1.35;letter-spacing:0}
.tv-fold[open] .rc-chev{transform:rotate(180deg)}
.tv-fold-b{padding:0 18px 18px;font-size:16px;line-height:1.65;color:var(--rc-text)}
.tv-fold-b p{margin-top:10px}
.tv-fold-b ul{list-style:disc;padding-left:22px;margin-top:8px}
.tv-fold-b li{margin-top:4px}
.tv-fold-intro{font-size:16px;line-height:1.65;color:var(--rc-text);margin-bottom:6px}
.tv-fold-intro p + p{margin-top:10px}
.tv-fold--table .tv-fold-t{font-family:var(--rc-serif) !important;font-size:clamp(20px,4.6vw,24px)}
.tv-fold--table .tv-fold-b{padding:0 12px 14px}
.tv-fold--g{margin:2px 0 12px}
.tv-fold--g summary{padding:10px 14px}
.tv-fold--g .tv-fold-t{font-size:15px;color:var(--rc-green)}

/* Texte lu en entier (calculateur d'âge) */
.tv-read p,.tv-read li{font-size:17px;line-height:1.7;color:var(--rc-text);margin-top:12px}
.tv-read ul,.tv-read ol{list-style:disc;padding-left:22px}
.tv-read ol{list-style:decimal}
.tv-read .rc-h2{margin-top:36px}
.tv-read h3{font-size:20px;margin-top:24px}

/* Autres listes */
.tv-chips{display:flex;flex-wrap:wrap;gap:8px}
.tv-chips a{display:inline-flex;align-items:center;min-height:42px;padding:0 14px;border-radius:999px;background:var(--rc-white);border:1px solid var(--rc-line);color:var(--rc-ink);text-decoration:none;font-size:14.5px}
.tv-chips a:hover{border-color:var(--rc-green-mid);color:var(--rc-green)}
