/* Page de liens liens.pierrostre.tv, structure « Sommaire ». Chemins depuis la racine : la page est aussi servie sous /tiktok/, /live… */
@font-face { font-family: Literata; font-weight: 300; font-display: swap; src: url(/assets/literata-300.woff2) format('woff2'); }
@font-face { font-family: Montserrat; font-weight: 500 600; font-display: swap; src: url(/assets/montserrat.woff2) format('woff2'); }

:root { --foret: #1F3D36; --sauge: #8CA88E; --creme: #FFF4EA; --live: #E8573F; --filet: rgba(255, 244, 234, .22); --bord: 26px; }
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100svh;
  background: var(--foret) url(/assets/papier-foret.webp) center top / 640px auto;
  color: var(--creme);
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 500;
}
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }

.page { max-width: 430px; margin: 0 auto; padding: var(--bord) var(--bord) 40px; }
.logo { display: block; height: 74px; width: auto; }
h1 { font-family: Literata, Georgia, serif; font-weight: 300; font-size: 58px; line-height: 1; letter-spacing: -.01em; margin-top: 22px; }
h1 span { color: var(--sauge); }

/* Pictos : un masque, pour prendre la couleur du texte. */
.ic { display: inline-block; flex: none; width: 26px; height: 26px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.tw { --i: url(/assets/twitch.svg); } .yt { --i: url(/assets/youtube.svg); } .tt { --i: url(/assets/tiktok.svg); }
.ig { --i: url(/assets/instagram.svg); } .dc { --i: url(/assets/discord.svg); } .x { --i: url(/assets/x.svg); }

/* Bande Twitch : crème, pleine largeur de la colonne. Elle entre une fois, balayée de gauche à droite comme la transition du stream. */
.bande {
  display: block; background: var(--creme); color: var(--foret);
  margin: 26px calc(-1 * var(--bord)) 0; padding: 20px var(--bord) 22px;
  animation: balayage .55s cubic-bezier(.3, .7, .2, 1) both;
}
@keyframes balayage { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
.bande[hidden] { display: none; }
.etat { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.pt { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--foret); }
.pt.live { border: 0; background: var(--live); animation: pouls 2s ease-in-out infinite; }
@keyframes pouls { 50% { opacity: .35; } }
.l1 { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.l1 .nom { font-family: Literata, Georgia, serif; font-weight: 300; font-size: 44px; line-height: 1; }
.l1 .ic { width: 38px; height: 38px; transition: transform .2s; }
.agir { display: block; font-size: 14px; font-weight: 600; margin-top: 10px; }

/* Réseaux : des lignes de texte séparées par des filets, pas des boutons. */
.liste { list-style: none; padding: 0; margin-top: 6px; }
.bande[hidden] + .liste { margin-top: 20px; border-top: 1px solid var(--filet); }
.liste li + li { border-top: 1px solid var(--filet); }
.liste a { display: flex; align-items: center; gap: 16px; min-height: 68px; font-family: Literata, Georgia, serif; font-weight: 300; font-size: 31px; }
.fl { margin-left: auto; font-family: Montserrat, system-ui, sans-serif; font-weight: 500; font-size: 18px; color: var(--sauge); transition: transform .2s; }
.liste a.ici { color: rgba(255, 244, 234, .45); }
.liste a.ici .fl { font-size: 12px; color: rgba(255, 244, 234, .55); }

/* Réponse au pointeur et à l'appui. */
@media (hover: hover) {
  .liste a:hover .fl { transform: translate(3px, -3px); }
  .liste a:hover .nom { color: #fff; }
  .liste a.ici:hover .nom { color: var(--creme); }
  .bande:hover .l1 .ic { transform: translateX(-4px); }
}
.liste a:active, .bande:active { opacity: .7; }
a:focus-visible { outline: 2px solid var(--sauge); outline-offset: 3px; }
.bande:focus-visible { outline-color: var(--foret); outline-offset: -5px; }

@media (max-width: 350px) {
  :root { --bord: 20px; }
  h1 { font-size: 50px; }
  .liste a { font-size: 27px; }
}
@media (min-width: 700px) { .page { padding-top: 64px; } }
@media (prefers-reduced-motion: reduce) { .bande, .pt.live { animation: none; } .fl, .l1 .ic { transition: none; } }
