/* --- Carrousel de cartes (réseaux) : la carte du centre est mise en avant, on les fait tourner --- */
.deck { --cw: clamp(230px, 26vw, 290px); position: relative; user-select: none; -webkit-user-select: none; }
.deck-stage {
  position: relative;
  height: calc(var(--cw) * 1.75 + 40px);
  perspective: 1300px;
  touch-action: pan-y;
  cursor: grab;
}
.deck-stage.dragging { cursor: grabbing; }
.rcard {
  --accent: var(--lens);
  position: absolute; left: 50%; top: 10px;
  width: var(--cw);
  margin-left: calc(var(--cw) / -2);
  display: flex; flex-direction: column;
  padding: 10px;
  border-radius: 22px;
  background: #fffaf0;
  border: 1.5px solid var(--ink);
  color: var(--ink); text-decoration: none;
  box-shadow: 0 30px 50px -24px rgba(36, 22, 41, .55);
  transition: transform .75s var(--ease-out), opacity .5s, filter .5s, box-shadow .4s;
  will-change: transform;
  -webkit-user-drag: none;
}
.deck-stage.dragging .rcard { transition: opacity .3s, filter .3s; }
.rcard img { -webkit-user-drag: none; pointer-events: none; }
.rcard.side { filter: saturate(.5) brightness(.95); }
.rcard.active { box-shadow: 10px 10px 0 var(--accent), 0 34px 60px -24px rgba(36, 22, 41, .6); }
.rcard.active:hover .rgo { transform: rotate(45deg); background: var(--ink); color: var(--paper); }
.rscreen { position: relative; display: block; aspect-ratio: 9 / 13; border-radius: 14px; overflow: hidden; background: var(--ink); }
.rscreen .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 6px 4px; }
.rname { display: block; font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1; text-transform: uppercase; }
.rhandle { display: block; font-size: .85rem; color: var(--ink-2); font-weight: 600; margin-top: 3px; }
.rgo { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; border: 1.5px solid var(--ink); transition: transform .4s var(--ease-out), background .3s, color .3s; }

/* TikTok : vidéo verticale */
.c-tiktok { --accent: #25f4ee; }
.c-tiktok .cover { object-position: 50% 30%; transform: scale(1.25); animation: ttZoom 9s ease-in-out infinite alternate; }
@keyframes ttZoom { to { transform: scale(1.42) translateY(-3%); } }
.c-tiktok .rscreen::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .75)); }
.tt-side { position: absolute; right: 10px; bottom: 74px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.tt-side b { font-size: 1.35rem; line-height: 1.1; margin-top: 8px; }
.tt-side b:first-child { color: #fe2c55; animation: beat 1.6s infinite; }
.tt-side small { font-size: .7rem; font-weight: 800; }
@keyframes beat { 15% { transform: scale(1.3); } 30% { transform: scale(1); } }
.tt-caption { position: absolute; left: 12px; right: 52px; bottom: 22px; z-index: 2; color: #fff; font-size: .78rem; line-height: 1.3; }
.tt-caption strong { display: block; font-size: .88rem; }
.tt-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); z-index: 2; }
.tt-progress i { display: block; height: 100%; width: 0; background: #fff; animation: progress 7s linear infinite; }
@keyframes progress { to { width: 100%; } }

/* YouTube : miniature + lecture */
.c-youtube { --accent: #e8322f; }
.c-youtube .rscreen { background: #fff; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.yt-thumb { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.yt-thumb .cover { object-position: 50% 25%; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 52px; height: 36px; margin: -18px 0 0 -26px; border-radius: 10px; background: #e8322f; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); transition: transform .3s var(--ease-out); }
.yt-play::after { content: ''; position: absolute; left: 21px; top: 11px; border-left: 13px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.rcard.active:hover .yt-play { transform: scale(1.15); }
.yt-time { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .8); color: #fff; font-size: .68rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.yt-lines, .yt-row > span, .yt-sugg > span { display: flex; flex-direction: column; gap: 7px; }
.yt-lines i, .yt-row i, .yt-sugg i { display: block; height: 9px; border-radius: 6px; background: #ece4d8; }
.yt-sugg { display: flex; gap: 10px; align-items: center; }
.yt-sugg > span { flex: 1; }
.yt-sugg i:nth-child(1) { width: 90%; }
.yt-sugg i:nth-child(2) { width: 55%; }
.yt-sugg > .yt-mini { flex: 0 0 34%; aspect-ratio: 16 / 9; border-radius: 6px; flex-shrink: 0; }
.yt-mini.m1 { background: url('/assets/gedo.png') 50% 30% / 160%, var(--mint); }
.yt-mini.m2 { background: linear-gradient(135deg, var(--peach), var(--lens)); }
.yt-sub { flex: 0 0 auto !important; display: block !important; background: #e8322f; color: #fff; font-size: .66rem; font-weight: 800; padding: 5px 8px; border-radius: 99px; }
.yt-lines i:nth-child(1) { width: 92%; background: #d9cfc1; height: 11px; }
.yt-lines i:nth-child(2) { width: 70%; }
.yt-lines i:nth-child(3) { width: 40%; }
.yt-row { display: flex; gap: 10px; align-items: center; margin-top: auto; padding: 8px; border-radius: 10px; background: #faf5ec; }
.yt-row img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.yt-row > span { flex: 1; }
.yt-row i:nth-child(1) { width: 60%; }
.yt-row i:nth-child(2) { width: 35%; background: #e8322f; opacity: .6; }

/* Twitch : live + chat qui défile */
.c-twitch { --accent: #8f5cf7; }
.c-twitch .rscreen { background: #18122b; display: flex; flex-direction: column; }
.tw-player { position: relative; display: block; aspect-ratio: 16 / 10; flex-shrink: 0; }
.tw-player .cover { object-position: 50% 25%; }
.tw-live { position: absolute; left: 8px; top: 8px; background: #eb0400; color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .06em; padding: 2px 6px; border-radius: 4px; animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .6; } }
.tw-game { position: absolute; right: 8px; bottom: 8px; background: rgba(24, 18, 43, .85); color: #d8c9ff; font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.tw-chat { position: relative; display: block; flex: 1; overflow: hidden; padding: 0 10px; -webkit-mask: linear-gradient(transparent, #000 25%); mask: linear-gradient(transparent, #000 25%); }
.tw-chat-track { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; animation: chat 12s linear infinite; }
.tw-chat-track span { font-size: .76rem; line-height: 1.3; color: #e9e3ff; }
.tw-chat-track b { font-weight: 800; margin-right: 4px; }
.tw-chat-track .u1 { color: #1ee3cf; }
.tw-chat-track .u2 { color: #ff8a3d; }
.tw-chat-track .u3 { color: #ff5fa2; }
@keyframes chat { to { transform: translateY(-50%); } }

/* Instagram : profil + grille */
.c-instagram { --accent: #d9337a; }
.c-instagram .rscreen { background: #fff; padding: 12px 10px; display: flex; flex-direction: column; gap: 12px; }
.ig-head { display: flex; align-items: center; gap: 12px; }
.ig-ring { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; padding: 3px; background: conic-gradient(from 0deg, #f5a142, #d9337a, #6a4cf0, #f5a142); animation: spin 6s linear infinite; }
.ig-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 3px solid #fff; animation: spin 6s linear infinite reverse; }
.ig-stats { display: flex; gap: 14px; }
.ig-stats span { display: flex; flex-direction: column; font-size: .7rem; color: var(--ink-2); }
.ig-stats b { font-size: 1.1rem; color: var(--ink); }
.ig-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border-radius: 6px; overflow: hidden; }
.ig-grid i { display: block; background: var(--mint); }
.ig-grid .g1 { background: linear-gradient(135deg, var(--peach), var(--coral)); }
.ig-grid .g2 { background: url('/assets/gedo.png') 50% 18% / 220%; }
.ig-grid .g3 { background: linear-gradient(135deg, var(--mint), var(--mint-2)); }
.ig-grid .g4 { background: linear-gradient(135deg, var(--lens), #c4a5ff); }
.ig-grid .g5 { background: var(--paper-2); }
.ig-grid .g6 { background: url('/assets/gedo.png') 30% 60% / 300%; }
.ig-grid .g7 { background: url('/assets/gedo.png') 70% 40% / 260%; }
.ig-grid .g8 { background: linear-gradient(135deg, var(--gold), #f3d58a); }
.ig-grid .g9 { background: linear-gradient(135deg, var(--coral), var(--lens)); }

/* Snapchat : ajoute-moi */
.c-snapchat { --accent: #ffd84a; }
.c-snapchat .rscreen { background: #fffc00; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #111; }
.sc-code { position: relative; display: block; width: 62%; aspect-ratio: 1; border-radius: 26%; padding: 10%; background: radial-gradient(circle, #111 1.6px, transparent 2px) 0 0 / 9px 9px, #fff; border: 3px solid #111; }
.sc-code img { width: 100%; height: 100%; border-radius: 22%; object-fit: cover; object-position: 50% 20%; border: 3px solid #111; }
.sc-name { font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; }
.sc-btn { padding: 8px 16px; border-radius: 99px; background: #111; color: #fffc00; font-weight: 800; font-size: .85rem; }
.rcard.active:hover .sc-btn { animation: beat 1s; }

/* Contrôles */
.deck-ctrl { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.deck-btn { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fffaf0; color: var(--ink); font-size: 1.2rem; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .15s var(--ease-out), box-shadow .15s, background .2s; }
.deck-btn:hover { background: var(--mint); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.deck-btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.deck-dots { display: flex; gap: 8px; }
.deck-dots button { width: 10px; height: 10px; padding: 0; border-radius: 99px; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; transition: width .4s var(--ease-out), background .3s; }
.deck-dots button[aria-selected='true'] { width: 34px; background: var(--ink); }
@media (max-width: 600px) { .deck { --cw: min(66vw, 260px); } .rname { font-size: 1.45rem; } }
@media (prefers-reduced-motion: reduce) { .rcard { transition: none; } }
