/* ============================================================
   SKWIZD — style.css v2.0
   Architecture : header centré + grille THE RING pleine largeur
   ============================================================ */

:root {
  --bg:          #f5f4f0;
  --bg-card:     #ffffff;
  --bg-card-alt: #f0efe9;
  --border:      #e6e3dc;
  --accent-soft: #eceae4;
  --text:        #111111;
  --text-muted:  #767370;
  --text-sub:    #999490;
  --radius:      14px;
  --radius-sm:   10px;
  --shadow:      0 1px 2px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.04);
  --font:        ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:   ui-monospace, "SF Mono", monospace;
  --transition:  0.16s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ── Page ──────────────────────────────────────────────────── */
.page {
  min-height: 100vh;
  padding: 2.5rem 1.25rem 4rem;
  display: flex;
  justify-content: center;
}

.layout {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ── Header artiste — mobile (colonne unique centrée) ──────── */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}

.profile-col-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.profile-col-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.profile-avatar {
  width: 75%;
  max-width: 200px;
  aspect-ratio: 1/1;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.profile-identity { display: flex; flex-direction: column; gap: 0.15rem; text-align: center; }

.profile-name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.profile-nickname {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.profile-bio {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 0.5rem;
  max-width: 280px;
}

/* ── Liens icônes ──────────────────────────────────────────── */
.profile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.profile-links__group { display: flex; gap: 0.4rem; align-items: center; justify-content: center; }
.profile-links__label { display: none; }
.profile-links__icons { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }

.profile-links__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-card);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.profile-links__icon:hover {
  background: var(--accent-soft);
  border-color: #ccc9c2;
  color: var(--text);
}

/* ── Header artiste — desktop (2 colonnes) ─────────────────── */
@media (min-width: 900px) {
  .profile-header {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 2rem 0 1rem;
    gap: 0;
  }

  .profile-col-left {
    width: 33.333%;
    align-items: center;
    padding-right: 2rem;
    flex-shrink: 0;
  }

  .profile-col-right {
    width: 66.666%;
    align-items: flex-start;
    padding-top: 0.5rem;
  }

  .profile-identity { text-align: center; }

  .profile-links {
    align-items: flex-start;
  }

  .profile-links__icons { justify-content: flex-start; }
  .profile-links__group { justify-content: flex-start; }
}

/* ── THE RING ──────────────────────────────────────────────── */
.ring { display: flex; flex-direction: column; gap: 1rem; }

.ring__title {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-sub);
}

.ring__empty {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Grille responsive */
.ring__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .ring__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .ring__grid { grid-template-columns: repeat(4, 1fr); }
}

/* Carte article */
.ring__card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.ring__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border-color: #d5d2cb;
}

.ring__card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-card-alt);
  flex-shrink: 0;
}

.ring__card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.3s ease;
}

.ring__card:hover .ring__card-img img {
  transform: scale(1.04);
}

.ring__card-body {
  padding: 0.6rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.ring__card-source {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-sub);
}

.ring__card-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ring__card-date {
  font-size: 0.6rem;
  color: var(--text-sub);
  margin-top: 0.15rem;
}
.content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  width: 100%;
}

.content__title {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 1rem;
}

.content__text { font-size: 0.875rem; color: var(--text-muted); }

.users-list { margin-top: 0.25rem; }

.users-list h2 {
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-sub);
  margin-top: 1.25rem; margin-bottom: 0.5rem;
}

.users-list h2:first-child { margin-top: 0; }

.users-list ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.users-list li { width: calc(50% - 0.375rem); }

@media (min-width: 768px) { .users-list li { width: calc(25% - 0.565rem); } }

.users-list li a {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.35rem; color: var(--text-muted); font-size: 0.8rem; font-weight: 500;
  transition: color var(--transition);
}
.users-list li a:hover { color: var(--text); }

.mobile-header__avatar {
  width: 100%;
  max-width: 90px;
  aspect-ratio: 1/1;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-card-alt);
  border: 2px solid var(--border);
}

.mobile-header__avatar img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ── Latest users ──────────────────────────────────────────── */
.users-latest { margin-top: 1.5rem; }

.users-latest h2 {
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-sub); margin-bottom: 0.75rem;
}

.users-latest ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.users-latest li { width: calc(50% - 0.375rem); }

@media (min-width: 768px) { .users-latest li { width: calc(20% - 0.6rem); } }

.users-latest li a {
  display: flex; flex-direction: column; align-items: center;
  color: var(--text-muted); font-size: 0.8rem; gap: 0.3rem;
  transition: color var(--transition);
}
.users-latest li a:hover { color: var(--text); }
.users-latest .mobile-header__avatar { max-width: 64px; }

/* ── Divers ────────────────────────────────────────────────── */
.home-intro { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }
.home-intro p + p { margin-top: 0.5rem; }
.site-logo { margin-bottom: 1rem; text-align: center; }
.site-logo img { max-width: 160px; height: auto; display: inline-block; }

code {
  font-family: var(--font-mono);
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.85em;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  margin-top: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.site-footer__link {
  display: inline-flex;
  transition: opacity var(--transition);
}

.site-footer__link:hover { opacity: 0.7; }

.site-footer__logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.site-footer__copy {
  font-size: 0.7rem;
  color: var(--text-sub);
}

.site-footer__presta {
  font-size: 0.7rem;
  color: var(--text-sub);
  transition: color var(--transition);
}

.site-footer__presta:hover { color: var(--text-muted); }

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 599px) {
  .page { padding: 1.25rem 1rem 3rem; }
  .profile-header { padding: 1rem 0 0.5rem; }
  .profile-name { font-size: 1.1rem; }
  .profile-links { max-width: 100%; }
  .profile-avatar { width: 60%; max-width: 140px; }
}

/* ── PROMO ─────────────────────────────────────────────────── */
.promo-cover {
  width: 75%;
  max-width: 200px;
  aspect-ratio: 1/1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.promo-cover img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.promo-date {
  font-size: 0.75rem;
  color: var(--text-sub);
  margin-top: 0.25rem;
}

.promo-links__group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.promo-links__label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-sub);
}

.promo-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition);
  margin-top: 0.5rem;
}

.promo-back-link:hover { color: var(--text); }

/* ── SIC — Sharer ──────────────────────────────────────────── */
.sic-sharer {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sic-sharer__preview {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.sic-sharer__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-card-alt);
}

.sic-sharer__img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.sic-sharer__meta {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sic-sharer__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.sic-sharer__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.sic-sharer__url {
  font-size: 0.7rem;
  color: var(--text-sub);
  font-family: var(--font-mono);
  margin-top: 0.25rem;
  word-break: break-all;
}

.sic-sharer__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 1px solid transparent;
}

.sic-btn--share {
  background: var(--text);
  color: var(--bg);
}

.sic-btn--share:hover {
  background: #333;
}

.sic-btn--back {
  background: var(--bg-card);
  color: var(--text-muted);
  border-color: var(--border);
}

.sic-btn--back:hover {
  background: var(--accent-soft);
  color: var(--text);
}

/* ── HOME ──────────────────────────────────────────────────── */

/* Hero */
.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 0 1rem;
  text-align: center;
}

.home-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.home-tagline {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Features */
.home-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

@media (min-width: 600px) {
  .home-features { grid-template-columns: repeat(4, 1fr); }
}

.home-feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: var(--shadow);
}

.home-feature__key {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.home-feature__desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Grille artistes */
.home-artists { display: flex; flex-direction: column; gap: 0.75rem; }

.home-artists__title {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-sub);
}

.home-artists__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .home-artists__grid { grid-template-columns: repeat(6, 1fr); }
}

@media (min-width: 768px) {
  .home-artists__grid { grid-template-columns: repeat(8, 1fr); }
}

.home-artist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  transition: opacity var(--transition);
}

.home-artist-card:hover { opacity: 0.75; }

.home-artist-card__avatar {
  width: 100%;
  max-width: 80px;
  aspect-ratio: 1/1;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card-alt);
}

.home-artist-card__avatar img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.home-artist-card__name {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* ── Featured grid — avatars plus grands ──────────────────── */
.home-artists__grid--featured {
  grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 480px) {
  .home-artists__grid--featured { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  .home-artists__grid--featured { grid-template-columns: repeat(6, 1fr); }
}

.home-artists__grid--featured .home-artist-card__avatar {
  max-width: 110px;
  border: 2px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.home-artists__grid--featured .home-artist-card__name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
}
