/* Les chaînes de la série et de la veille : bande sombre animée, cartes à bannière, boutons par réseau. */

.chaines-bande { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #3a1d0e 0%, var(--encre) 62%); color: var(--creme); isolation: isolate; }
.chaines-bande .sur-titre { color: var(--jaune); }
.chaines-lueur { position: absolute; inset: -30%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(238, 108, 20, 0.42), transparent 70%) 12% 18% / 46% 46% no-repeat,
    radial-gradient(closest-side, rgba(255, 61, 119, 0.3), transparent 70%) 88% 30% / 42% 42% no-repeat,
    radial-gradient(closest-side, rgba(122, 60, 255, 0.28), transparent 70%) 50% 92% / 50% 50% no-repeat;
  filter: blur(18px); animation: chaines-derive 18s ease-in-out infinite alternate; }
@keyframes chaines-derive { to { transform: translate3d(4%, -3%, 0) rotate(8deg) scale(1.06); } }

.chaines-titre { max-width: 20ch; }
.chaines-titre em { font-style: normal; background: linear-gradient(90deg, var(--jaune), var(--orange) 45%, var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chaines-intro { max-width: 62ch; font-size: 17px; line-height: 1.6; color: rgba(255, 248, 238, 0.82); }
.chaines-chiffres { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 34px; padding: 0; list-style: none; }
.chaines-chiffres li { padding: 8px 16px; border-radius: 999px; background: rgba(255, 248, 238, 0.08); border: 1px solid rgba(255, 248, 238, 0.18); font-size: 15px; }
.chaines-chiffres b { font: 700 19px var(--titre); color: var(--jaune); margin-inline-end: 4px; }

.chaines { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; margin: 18px 0 8px; perspective: 1200px; }

.ch-carte { position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; color: var(--creme);
  background: linear-gradient(160deg, #2b1a10, #160c07); border: 1px solid rgba(255, 248, 238, 0.12);
  box-shadow: 0 18px 40px rgba(20, 8, 2, 0.35); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s; }
.ch-carte::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--anneau); opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity 0.35s; pointer-events: none; z-index: 2; }
.ch-carte:hover, .ch-carte:focus-within { transform: translateY(-8px) rotateX(3deg); box-shadow: 0 28px 60px rgba(238, 108, 20, 0.32); }
.ch-carte:hover::before, .ch-carte:focus-within::before { opacity: 1; }

.ch-banniere { position: relative; aspect-ratio: 960 / 456; overflow: hidden; background: var(--sable); }
.ch-banniere img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ch-carte:hover .ch-banniere img { transform: scale(1.07); }
.ch-banniere::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(22, 12, 7, 0.75)); }

.ch-corps { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 18px 20px; text-align: center; flex: 1; }
.ch-anneau { position: relative; display: grid; place-items: center; width: 92px; height: 92px; margin-top: -46px; border-radius: 50%; z-index: 1; }
.ch-anneau::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--jaune), var(--orange), var(--rose), var(--violet), var(--jaune)); animation: chaines-tour 6s linear infinite; }
.ch-anneau img { position: relative; width: 82px; height: 82px; border-radius: 50%; border: 3px solid #1d110a; object-fit: cover; }
@keyframes chaines-tour { to { transform: rotate(1turn); } }

.ch-langue { margin-top: 10px; padding: 3px 11px; border-radius: 999px; background: rgba(255, 194, 51, 0.16); color: var(--jaune); font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ch-nom { margin: 6px 0 0; font: 700 19px/1.25 var(--titre); color: #fff; }
.ch-compte { margin: 0 0 12px; font-size: 14px; color: rgba(255, 248, 238, 0.66); }

/* Trois réseaux côte à côte (icône au-dessus du nom), puis le site sur toute la largeur : rien ne dépasse de la carte.
   minmax(0, 1fr) : une colonne ne s'élargit jamais pour un nom trop long. */
.ch-liens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; margin-top: auto; }
.reseau { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; padding: 10px 4px 8px; border-radius: 12px; color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; transition: transform 0.2s, filter 0.2s, box-shadow 0.2s; }
.reseau span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reseau:hover, .reseau:focus-visible { transform: translateY(-2px) scale(1.03); filter: brightness(1.12); }
.reseau-icone { display: inline-flex; width: 18px; height: 18px; flex: none; }
.reseau-icone svg { width: 100%; height: 100%; }
.reseau.youtube { background: #ff0033; box-shadow: 0 6px 16px rgba(255, 0, 51, 0.3); }
.reseau.facebook { background: #1877f2; box-shadow: 0 6px 16px rgba(24, 119, 242, 0.3); }
.reseau.instagram { background: linear-gradient(45deg, #feda75, #fa7e1e 30%, #d62976 60%, #962fbf 85%, #4f5bd5); box-shadow: 0 6px 16px rgba(214, 41, 118, 0.3); }
.reseau.site { grid-column: 1 / -1; flex-direction: row; gap: 7px; padding: 9px 12px; background: rgba(255, 248, 238, 0.12); border: 1px solid rgba(255, 248, 238, 0.24); font-size: 13px; }

.ch-veille { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.ch-veille .ch-banniere { flex: 0 0 42%; aspect-ratio: auto; min-height: 210px; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 26px 30px;
  background: linear-gradient(135deg, var(--jaune), var(--orange) 45%, var(--rose)); color: var(--encre); }
.ch-veille .ch-banniere::after { display: none; }
.veille-banniere b { font: 700 clamp(30px, 4vw, 44px)/1 var(--titre); }
.veille-banniere em { font-style: normal; color: #fff; }
.veille-banniere span { max-width: 26ch; font-size: 16px; font-weight: 600; }
.ch-veille .ch-corps { align-items: flex-start; justify-content: center; text-align: start; padding: 24px 28px; }
.ch-veille .ch-anneau { margin-top: 0; }
.ch-veille .ch-compte { max-width: 52ch; }
.ch-veille .ch-liens { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 380px; margin-top: 6px; }
.ch-veille .reseau { grid-column: auto; flex-direction: row; gap: 7px; padding: 9px 10px; font-size: 14px; }

.a-montrer:not(.vue) { opacity: 0; }
.a-montrer.vue { animation: chaines-monte 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) var(--delai, 0ms) both; }
@keyframes chaines-monte { from { opacity: 0; transform: translateY(34px) scale(0.97); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .ch-veille { flex-direction: column; }
  .ch-veille .ch-banniere { flex-basis: auto; min-height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .chaines-lueur, .ch-anneau::before, .a-montrer.vue { animation: none; }
  .ch-carte, .ch-banniere img, .reseau { transition: none; }
  .ch-carte:hover, .ch-carte:focus-within { transform: none; }
  .ch-carte:hover .ch-banniere img { transform: none; }
}
