/* ============================================================
   Lorisss — page réseaux (mobile-first)
   Couleurs / rayons / espacements : variables ci-dessous.
   Animations : bas de fichier (+ script.js pour le scroll).
   ============================================================ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}

:root {
  --bg: #0e0e0e;                       /* fond, bas de page */
  --bg-top: #262626;                   /* fond, haut de page */
  --text: #f2f1ee;                     /* texte, logo, icônes */
  --muted: rgba(242, 241, 238, .62);   /* texte secondaire */
  --line: rgba(255, 255, 255, .12);    /* liserés */
  --glass: rgba(255, 255, 255, .06);   /* fond des cartes / boutons */
  --glass-strong: rgba(255, 255, 255, .11);
  --radius: 22px;                      /* arrondi des cartes */
  --radius-sm: 14px;                   /* arrondi des vignettes */
  --gap: 14px;                         /* marges latérales */
  --container: 580px;                  /* largeur max (PC) */
  --sy: 0;                             /* position de scroll, mise à jour par script.js */
}

html {
  box-sizing: border-box;
  font-size: 16px;
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after { box-sizing: inherit; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Fond ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 70%);
}

.page {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

/* ---------- Photo + logo ---------- */
.hero {
  position: relative;
  height: min(100vw, var(--container));
  z-index: 0;
}
/* la photo est clippée dans sa boîte ; le cadre est plus haut (18 %) pour pouvoir glisser au scroll sans laisser de vide */
.hero__clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__frame {
  position: absolute;
  left: 0;
  right: 0;
  top: -18%;
  height: 118%;
  transform: translate3d(0, calc(var(--sy) * .25px), 0);
  will-change: transform;
  animation: fadeIn 1.1s ease-out both;
  -webkit-mask: linear-gradient(180deg, #000 58%, rgba(0, 0, 0, .5) 80%, rgba(0, 0, 0, 0) 100%);
          mask: linear-gradient(180deg, #000 58%, rgba(0, 0, 0, .5) 80%, rgba(0, 0, 0, 0) 100%);
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 85% at 50% 40%, transparent 45%, rgba(0, 0, 0, .6) 100%);
}
.hero__logo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  margin: 0;
  display: flex;
  justify-content: center;
  font-size: 30px;            /* utilisé seulement si le logo SVG est remplacé par du texte */
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  text-align: center;
  transform: translate3d(0, calc(var(--sy) * -.15px), 0);   /* remonte et s'efface au scroll, sans toucher la bio */
  opacity: calc(1 - var(--sy) / 300);
  will-change: transform, opacity;
}
.hero__logo > span { display: block; }
.logo {
  display: block;
  height: 78px;
  width: auto;
  color: var(--text);
  filter: drop-shadow(0 8px 26px rgba(0, 0, 0, .55));
}

/* ---------- Bio + réseaux ---------- */
.bio {
  margin: 6px 40px 0;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.bob {
  display: inline-block;
  animation: bob 1.6s ease-in-out 6;
}
.socials {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0 var(--gap);
}
.socials a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--glass);
  border: 1px solid var(--line);
  transition: transform .15s ease, background-color .15s ease;
}
.socials a:active { transform: scale(.88); background: var(--glass-strong); }
.socials svg {
  width: 20px;
  height: 20px;
  fill: var(--text);
}

/* ---------- Liens : grille 2 colonnes ---------- */
.links {
  margin-top: 28px;
  padding: 0 var(--gap);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
  transition: transform .15s ease, background-color .15s ease;
}
.card:active { transform: scale(.97); background: var(--glass-strong); }
.card__thumb {
  display: block;
  margin: 8px 8px 0;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #1a1a1a;
}
.card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.card__body {
  display: block;
  padding: 11px 12px 13px;
}
.card__kicker {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.card__title {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
  text-wrap: balance;
}
/* reflet qui traverse la carte */
.card__shine {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 45%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .09), transparent);
  transform: translateX(-160%) skewX(-16deg);
  animation: sweep 5.5s ease-in-out 4;
}
.card:nth-child(2) .card__shine { animation-delay: .7s; }
.card:nth-child(3) .card__shine { animation-delay: 1.4s; }

/* --- variante large : une ligne, icône + titre + flèche (occupe les 2 colonnes) --- */
.card--wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 16px 10px 10px;
  border-radius: 18px;
}
.card--wide .card__icon {
  display: block;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
}
.card--wide .card__icon img { width: 100%; height: 100%; object-fit: cover; }
.card--wide .card__body { flex: 1; min-width: 0; padding: 0; }
.card--wide .card__title { margin-top: 3px; }
.card--wide .card__arrow {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

/* --- carte « dernière vidéo YouTube » : pleine largeur, vignette 16/9 --- */
.card--video { grid-column: 1 / -1; }
.video__thumb {
  position: relative;
  display: block;
  margin: 8px 8px 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #1a1a1a;
}
.video__thumb img { width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62px;
  transform: translate3d(-50%, -50%, 0);
  transition: transform .15s ease;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .5));
}
.video__play svg { display: block; width: 100%; height: auto; }
.card--video:active .video__play { transform: translate3d(-50%, -50%, 0) scale(.9); }
.card--video .card__body { padding: 12px 14px 14px; }
.card--video .card__title {
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video__meta {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- Pied de page ---------- */
.footer {
  margin-top: auto;
  padding: 44px var(--gap) calc(40px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted);
}

/* ---------- Animations ---------- */
/* apparition en cascade au chargement (CSS pur) ; --d = délai, posé sur chaque élément dans le HTML */
.reveal {
  animation: reveal .75s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: var(--d, 0s);
}
@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}
@keyframes sweep {
  0%        { transform: translateX(-160%) skewX(-16deg); }
  28%, 100% { transform: translateX(320%) skewX(-16deg); }
}
@media (prefers-reduced-motion: reduce) {
  .bob, .card__shine, .hero__frame, .reveal { animation: none; }
  .hero__frame, .hero__logo { transform: none; opacity: 1; }
}

/* ---------- PC : cadre centré (la page est pensée pour mobile) ---------- */
@media (min-width: 576px) {
  html { background: #070707; }
  .bg { max-width: var(--container); margin: 0 auto; }
}
