/* Pages « Coffrets et Decks » (site/collections/ et site/en/collections/) : portes d'entrée, tuiles, faits, puces et cartes spéciales.
   Les cartes qui tombent le masque reprennent galerie.css (g-item, g-visuel, g-face, g-bouton, g-indice, g-bulle).
   Mobile d'abord (375 px), cibles tactiles d'au moins 44 px. Fichier écrit par outils/site-collections.mjs : ne pas modifier à la main. */
.co-haut { padding-top: clamp(20px, 5vw, 52px); }
.co-ariane ol { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: 2px; font-size: .9rem; color: var(--texte-doux); }
.co-ariane li { display: inline-flex; align-items: center; min-width: 0; }
.co-ariane li + li::before { content: "›"; content: "›" / ""; margin: 0 8px 0 4px; color: var(--texte-doux); }
.co-ariane a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.co-ariane [aria-current] { color: var(--texte); font-weight: 700; overflow-wrap: anywhere; }

.co-entete { display: grid; gap: 18px 32px; align-items: start; }
.co-entete .chapeau { margin-bottom: .7em; }
.co-entete__carte { width: min(44vw, 170px); }
.co-entete__carte .g-visuel { box-shadow: var(--ombre), 0 0 0 1px var(--bord); }
@media (min-width: 760px) {
  .co-entete--carte { grid-template-columns: minmax(0, 1fr) 200px; }
  .co-entete__carte { width: 100%; }
}
.co-sous { display: block; font-size: .46em; font-weight: 700; color: var(--or); margin-top: .3em; letter-spacing: .01em; }
.co-texte { max-width: 62ch; }
.co-bande { display: block; width: 120px; height: 6px; border-radius: 999px; margin-bottom: 12px; background: linear-gradient(90deg, var(--s1), var(--s2)); }
.co-titre-type { display: inline-flex; align-items: center; gap: .3em; flex-wrap: wrap; }
.co-icone { width: 40px; height: 40px; flex: none; color: var(--c); filter: brightness(1.25) saturate(1.1); }
.co-icone--grande { width: 1.05em; height: 1.05em; }
.co-cles { display: inline-flex; gap: 4px; flex: none; }
.co-cles i { width: 12px; height: 22px; border-radius: 6px 6px 3px 3px; background: var(--or); box-shadow: inset 0 -6px 0 var(--or-ombre); }
.co-titre-type .co-cles i { width: .32em; height: .6em; }

/* Portes d'entrée du sommaire */
.co-portes { margin: 22px 0 6px; }
.co-portes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 759px) { .co-portes li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 760px) { .co-portes ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.co-porte {
  display: flex; align-items: center; gap: 10px; height: 100%; min-height: 64px; padding: 12px 14px;
  border-radius: 16px; background: var(--fond-3); border: 1px solid var(--bord-fort); color: var(--creme); text-decoration: none;
}
.co-porte:hover { background: var(--fond-4); color: var(--or); }
.co-porte svg { width: 30px; height: 30px; flex: none; color: var(--or); }
.co-porte span { min-width: 0; }
.co-porte b { display: block; color: inherit; font: 800 1.02rem/1.15 var(--police-titre); }
.co-porte small { display: block; margin-top: 2px; font-size: .8rem; line-height: 1.3; color: var(--texte-doux); }

/* Blocs, notes, encarts */
.co-bloc { margin-top: clamp(34px, 6vw, 56px); }
.co-bloc > h2, .co-bloc > header h2 { font-size: clamp(1.5rem, 4.4vw, 2.1rem); }
.co-groupe { font-size: 1.12rem; color: var(--or); margin: 26px 0 0; }
.co-note { color: var(--texte-doux); font-size: .97rem; max-width: 66ch; }
.co-encart { background: var(--fond-2); border: 1px solid var(--bord); border-left: 4px solid var(--laterite); border-radius: 16px; padding: 16px 18px; margin: 24px 0 0; max-width: 76ch; }
.co-encart h2 { font-size: 1.25rem; margin-bottom: .45em; }
.co-encart p:last-child { margin-bottom: 0; }
.co-regles { margin: 0 0 1em; padding-left: 1.2em; }
.co-regles li { margin-bottom: .45em; }
.co-regles li::marker { color: var(--or); }

/* Faits et puces */
.co-faits { display: grid; gap: 10px; margin: 22px 0 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.co-faits > div { min-width: 0; background: var(--fond-3); border: 1px solid var(--bord); border-radius: 14px; padding: 10px 14px 12px; }
.co-faits dt { font: 800 .74rem/1.25 var(--police-texte); letter-spacing: .1em; text-transform: uppercase; color: var(--or); margin-bottom: 6px; }
.co-faits dd { margin: 0; font-size: .97rem; overflow-wrap: anywhere; }
.co-puces { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.co-puces li { min-width: 0; max-width: 100%; }
.co-puces a, .co-puces span[aria-current] {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; max-width: 100%; padding: 6px 14px;
  border-radius: 999px; border: 1px solid var(--bord-fort); color: var(--creme); text-decoration: none;
  font-weight: 700; font-size: .93rem; line-height: 1.2; overflow-wrap: anywhere;
}
.co-puces a:hover { background: rgba(243, 212, 138, .1); color: var(--or); }
.co-puces span[aria-current] { background: var(--or); border-color: var(--or); color: var(--encre); }
.co-pastille { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px rgba(255, 248, 230, .35); }

/* Forces et faiblesses d'un type */
.co-forces { display: grid; gap: 12px; margin-top: 22px; }
@media (min-width: 640px) { .co-forces { grid-template-columns: 1fr 1fr; } }
.co-force { background: var(--fond-3); border: 1px solid var(--bord); border-radius: 16px; padding: 12px 16px 14px; }
.co-force--fort { border-top: 4px solid #6fbf73; }
.co-force--faible { border-top: 4px solid var(--laterite-clair); }
.co-force h2 { font-size: 1.15rem; margin-bottom: .3em; }
.co-relations { list-style: none; margin: 0; padding: 0; }
.co-relations li { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }
.co-relations a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-weight: 800; }
.co-relations span { color: var(--texte-doux); font-size: .92rem; }

/* Tuiles (coffrets, decks, régions, types, clans, styles, concepts) */
.co-tuiles { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.co-tuiles--petites { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.co-tuiles > li { min-width: 0; }
.co-tuile {
  display: flex; align-items: center; gap: 14px; height: 100%; min-height: 64px; padding: 12px;
  border-radius: 18px; background: var(--fond-3); border: 1px solid var(--bord); color: var(--texte); text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.co-tuile:hover { border-color: var(--bord-fort); background: var(--fond-4); color: var(--texte); }
.co-tuile:hover .co-tuile__titre { color: var(--or); }
.co-tuile--petite { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 12px 14px; }
.co-tuile__texte { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.co-tuile__sur { font: 800 .7rem/1.3 var(--police-texte); letter-spacing: .08em; text-transform: uppercase; color: var(--or); }
.co-tuile__titre { font: 800 1.06rem/1.15 var(--police-titre); color: var(--creme); overflow-wrap: anywhere; }
.co-tuile__info { font-size: .83rem; line-height: 1.35; color: var(--texte-doux); }
.co-vignettes { position: relative; flex: none; width: 92px; height: 88px; }
.co-vignettes--3 { width: 112px; }
.co-vignettes > img, .co-vignettes > .co-mini, .co-vignette-seule img {
  position: absolute; top: 0; width: 58px; height: auto; aspect-ratio: 360 / 504; object-fit: cover;
  border-radius: 6px; background: var(--fond-4); box-shadow: 0 6px 16px rgba(0, 0, 0, .55), 0 0 0 1px var(--bord);
}
.co-vignettes > :first-child { left: 0; top: 3px; transform: rotate(-6deg); z-index: 1; }
.co-vignettes > :nth-child(2) { left: 32px; top: 4px; transform: rotate(5deg); z-index: 2; }
.co-vignettes--3 > :nth-child(2) { left: 27px; top: 0; transform: none; }
.co-vignettes--3 > :nth-child(3) { left: 54px; top: 5px; transform: rotate(7deg); z-index: 3; }
.co-mini { display: block; background: linear-gradient(160deg, var(--s1), var(--s2)); border: 2px solid rgba(243, 212, 138, .65); }
.co-vignette-seule { position: relative; flex: none; width: 66px; height: 86px; border-radius: 10px; background: linear-gradient(160deg, var(--s1), var(--s2)); }
.co-vignette-seule img { left: 4px; top: 2px; }
.co-tuile--petite .co-cles i { width: 10px; height: 18px; }

/* Listes de cartes */
.co-outils { display: flex; margin: 6px 0 18px; }
html:not(.js) .co-outils { display: none; }
.co-grille { margin-top: 6px; }
.co-cartes { font-size: .8rem; line-height: 1.35; color: var(--texte-doux); margin: 3px 0 0; }
.co-lien { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; font-size: .86rem; line-height: 1.25; }
.co-lien::after { content: "\00a0→"; content: "\00a0→" / ""; } /* flèches décoratives : texte de remplacement vide pour les lecteurs d'écran */
.g-item .co-lien { align-self: flex-start; }

/* Cartes spéciales dessinées en CSS (Terrain, Rendez-vous, règles, carte Gardien) */
.co-speciale { container-type: inline-size; background: linear-gradient(160deg, var(--s1, #3a2a1e), var(--s2, #120d0a)); }
.co-speciale--rdv { --s1: #2b3a67; --s2: #120d0a; }
.co-speciale--regles { --s1: #8c3b2e; --s2: #2a1c0c; }
.co-speciale--gardien { --s1: #8a6420; --s2: #1b140f; }
.co-speciale::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--gravure) center / 34px 34px; opacity: .08; }
.co-speciale::after {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 1; animation: none;
  background: linear-gradient(180deg, rgba(18, 13, 10, .55), rgba(18, 13, 10, .1) 35%, rgba(18, 13, 10, .1) 60%, rgba(18, 13, 10, .7));
}
.co-speciale__cadre {
  position: absolute; inset: 4.5%; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 8% 6%; text-align: center; border: 2px solid rgba(243, 212, 138, .75); border-radius: 4% / 3%;
  box-shadow: inset 0 0 0 4px rgba(18, 13, 10, .35), inset 0 0 0 5px rgba(243, 212, 138, .3);
}
.co-speciale__genre { margin: 0; color: var(--or); font: 800 .62rem/1.1 var(--police-texte); font-size: 6.6cqi; letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.co-speciale__embleme { display: block; width: 52%; height: auto; color: var(--or-clair); filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .6)); }
.co-speciale--rdv .co-speciale__embleme { color: #c9c2ea; }
.co-speciale__titre { margin: 0; color: var(--creme); font: 800 1rem/1.05 var(--police-titre); font-size: 12cqi; overflow-wrap: anywhere; text-shadow: 0 2px 6px rgba(0, 0, 0, .85); }
.co-speciale__texte { margin: 0; color: var(--texte); font: 700 .66rem/1.25 var(--police-texte); font-size: 6.6cqi; text-shadow: 0 1px 4px rgba(0, 0, 0, .9); }
.co-item--speciale .g-fiche { margin-top: 2px; }

/* Coffret ou deck précédent / suivant */
.co-suite { display: grid; gap: 10px; margin-top: clamp(30px, 5vw, 44px); }
@media (min-width: 560px) { .co-suite { grid-template-columns: 1fr 1fr; } }
.co-suite a {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 64px; padding: 10px 16px;
  border-radius: 16px; border: 1px solid var(--bord-fort); background: var(--fond-2); color: var(--creme); text-decoration: none;
}
.co-suite a:hover { background: var(--fond-3); color: var(--or); }
.co-suite small { color: var(--or); font: 800 .74rem/1.2 var(--police-texte); letter-spacing: .08em; text-transform: uppercase; }
.co-suite small::before { content: "← "; content: "← " / ""; }
.co-suite a[rel="next"] small::before { content: none; }
.co-suite a[rel="next"] small::after { content: " →"; content: " →" / ""; }
.co-suite b { color: inherit; font: 800 1.02rem/1.2 var(--police-titre); overflow-wrap: anywhere; }
@media (min-width: 560px) { .co-suite a[rel="next"] { text-align: right; } }

/* Bas de page : la galerie, les jeux, la liste d'attente (discrète) */
.co-bas { margin-top: clamp(36px, 6vw, 56px); padding-top: 24px; border-top: 1px solid var(--bord); }
.co-bas .g-liens { margin-top: 0; }
.co-attente { margin: 16px 0 0; font-size: .92rem; }
.co-attente a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 0; color: var(--texte-doux); font-weight: 700; }
.co-attente a:hover { color: var(--or); }
