/**
 * ======================================================
 * USER-PROFILE.CSS — Ciné Délices · Page Mon Compte
 * Design System v5 — extrait de moodboard-profil-cine-delices.html
 * Chargé APRÈS base.css
 * ======================================================
 */

/* ═══════════════════════════════════════════════════
   DESIGN TOKENS (locaux uniquement)
   Toutes les autres variables viennent de base.css
═══════════════════════════════════════════════════ */
:root {
  --surface-deep: #0a1522; /* fond très sombre — spécifique page profil */
}

/* ═══════════════════════════════════════════════════
   HERO PROFILE
═══════════════════════════════════════════════════ */
body.profile-page {
  max-width: unset;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
}
body.profile-page main {
  padding-top: var(--nav-h);
}

.profile-hero {
  position: relative;
  width: 100%;
  margin-top: 0;
  height: 460px;
  overflow: hidden;
}

.hero-banner {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #08101a 0%, #142234 55%, #0b1522 100%);
}
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.62) saturate(0.9);
}
.hero-banner-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 18, 30, 0.08) 0%,
    rgba(10, 18, 30, 0.30) 42%,
    rgba(13, 27, 42, 0.92) 70%,
    #0d1b2a 78%
  );
}

.hero-reel {
  position: absolute;
  border-radius: 50%;
  border: 3px solid rgba(196, 160, 82, 0.1);
  animation: rotateReel 32s linear infinite;
}
.hero-reel::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(196, 160, 82, 0.06);
}
.hero-reel--1 {
  width: 190px;
  height: 190px;
  right: -50px;
  top: -50px;
}
.hero-reel--2 {
  width: 260px;
  height: 260px;
  left: -80px;
  bottom: -80px;
  animation-direction: reverse;
  animation-duration: 52s;
}
@keyframes rotateReel {
  to {
    transform: rotate(360deg);
  }
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.028) 2px,
    rgba(0, 0, 0, 0.028) 4px
  );
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    ellipse 100% 110% at 50% 105%,
    var(--bleu-nuit) 0%,
    rgba(20, 34, 52, 0.55) 35%,
    transparent 65%
  );
}

/* Banner status */
.hero-banner-status {
  position: absolute;
  top: 20px;
  right: 32px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
}
.banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 7px;
  font-family: var(--f-title);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.22s;
}
.banner-btn--upload {
  padding: 6px 14px 6px 11px;
  border-radius: 20px;
  background: rgba(196, 160, 82, 0.08);
  border-color: rgba(196, 160, 82, 0.35);
  color: rgba(196, 160, 82, 0.82);
}
.banner-btn--upload:hover {
  background: rgba(196, 160, 82, 0.18);
  border-color: rgba(196, 160, 82, 0.65);
  color: var(--or-titre);
}
.banner-btn--pending {
  background: rgba(30, 15, 4, 0.8);
  border-color: rgba(212, 130, 10, 0.5);
  color: var(--orange-clair);
}
.banner-btn--rejected {
  background: rgba(30, 8, 6, 0.8);
  border-color: rgba(194, 48, 24, 0.5);
  color: #e84020;
  cursor: pointer;
}
.banner-btn--rejected:hover {
  background: rgba(50, 12, 8, 0.9);
  border-color: rgba(194, 48, 24, 0.8);
}
.b-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulsedot 1.8s ease infinite;
}
@keyframes pulsedot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

/* Author link */
.hero-author-link {
  position: absolute;
  top: 22px;
  left: 32px;
  z-index: 20;
}
.author-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 11px;
  border-radius: 20px;
  background: rgba(232, 232, 232, 0.07);
  border: 1px solid rgba(232, 232, 232, 0.22);
  color: rgba(232, 232, 232, 0.72);
  font-family: var(--f-title);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  transition: all 0.22s;
}
.author-link:hover {
  background: rgba(232, 232, 232, 0.14);
  border-color: rgba(232, 232, 232, 0.5);
  color: #fff;
}
.author-link svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  flex-shrink: 0;
  opacity: 0.7;
}

/* Hero content layout */
.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  width: min(var(--cd-max, 1440px), 100% - 2 * var(--cd-px, 2rem));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 36px;
}
.hero-row {
  display: flex;
  align-items: center;
  gap: 60px;
}

/* ═══════════════════════════════════════════════════
   AVATAR BLOCK
═══════════════════════════════════════════════════ */
.avatar-block {
  position: relative;
  flex-shrink: 0;
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
/* ── Profile badge hero 260×260 (gamification) ── */
.profile-badge-hero {
  position: relative;
  width: 260px;
  height: 260px;
  flex-shrink: 0;
  overflow: visible;
  isolation: isolate;
}
/* Photo statique — positionnée selon le cadre Sherlock (défaut) */
.pbh-photo {
  position: absolute;
  left: 56px;
  top: 56px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
  border: none;
  /* Double anneau or antique — collé à la photo */
  box-shadow:
    0 0 0 2px #8b7030,
    0 0 0 4px rgba(6, 10, 18, 0.88),
    0 0 0 6px #72613b,
    0 0 10px rgba(114, 97, 59, 0.2);
}
/* Cadre PNG overlay */
.pbh-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
/* .pbh-ring supprimé — double anneau géré via box-shadow sur .pbh-photo */
.pbh-ring { display: none; }
/* Actions et statuts par-dessus le badge */
.profile-badge-hero .avatar-actions { z-index: 10; }
.profile-badge-hero .avatar-photo-status { z-index: 10; }

/* Legacy — conservé pour compatibilité (non utilisé sur hero) */
.avatar-frame {
  position: relative;
  width: 192px;
  height: 192px;
}
.avatar-img {
  width: 192px;
  height: 192px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  display: block;
  border: 3px solid var(--surface-deep);
}
.avatar-photo-status {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 5px;
  font-family: var(--f-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}
.avatar-photo-status--ok {
  background: rgba(10, 34, 20, 0.82);
  border: 1px solid rgba(61, 170, 114, 0.4);
  color: var(--vert-clair);
}
.avatar-photo-status--pending {
  background: rgba(30, 15, 4, 0.82);
  border: 1px solid rgba(212, 130, 10, 0.4);
  color: var(--orange-clair);
}
.avatar-photo-status--rejected {
  background: rgba(30, 8, 6, 0.82);
  border: 1px solid rgba(194, 48, 24, 0.4);
  color: #e84020;
}
.avatar-photo-status .b-dot {
  width: 4px;
  height: 4px;
}

.avatar-actions {
  position: absolute;
  right: -36px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 5;
}
.av-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(6px);
  font-size: 0.7rem;
}
.av-btn--upload {
  background: rgba(15, 26, 42, 0.8);
  border-color: rgba(196, 160, 82, 0.35);
  color: rgba(196, 160, 82, 0.7);
}
.av-btn--upload:hover {
  background: rgba(196, 160, 82, 0.16);
  border-color: rgba(196, 160, 82, 0.65);
  color: var(--or-titre);
}
.av-btn--del {
  background: rgba(20, 6, 4, 0.8);
  border-color: rgba(194, 48, 24, 0.28);
  color: rgba(232, 90, 70, 0.5);
}
.av-btn--del:hover {
  background: rgba(194, 48, 24, 0.22);
  border-color: rgba(194, 48, 24, 0.6);
  color: #e84020;
}
.av-btn svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═══════════════════════════════════════════════════
   HERO IDENTITY
═══════════════════════════════════════════════════ */
.hero-identity {
  flex: 1;
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.hero-pseudo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.hero-pseudo {
  font-family: var(--f-display);
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
  line-height: 0.95;
  background: transparent;
  border: none;
}
/* Span d'affichage deux tons — visible par défaut */
.hero-pseudo--display {
  display: block;
  cursor: default;
  font-weight: 700;
  pointer-events: none;
}
.hero-pseudo--display em {
  color: var(--or-titre, #c4a052);
  font-style: normal;
}
/* Input d'édition — caché par défaut, visible en mode édition */
.hero-pseudo--input {
  display: none;
  outline: none;
  cursor: text;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s;
  min-width: 120px;
  width: auto;
  max-width: min(520px, 55vw);
}
.hero-pseudo--input:focus {
  border-bottom-color: rgba(196, 160, 82, 0.5);
  color: var(--or-titre);
}
.hero-pseudo-edit {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(196, 160, 82, 0.45);
  font-size: 0.7rem;
  transition: all 0.2s;
}
.hero-pseudo-edit:hover {
  background: rgba(196, 160, 82, 0.12);
  border-color: rgba(196, 160, 82, 0.38);
  color: var(--or-titre);
}
.hero-pseudo-edit svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pseudo-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-family: var(--f-title, "Cinzel", serif);
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid;
  backdrop-filter: blur(8px);
}
.pseudo-status-badge--pending {
  background: rgba(30, 15, 4, 0.8);
  border-color: rgba(212, 130, 10, 0.5);
  color: var(--orange-clair, #f59e0b);
}
.pseudo-status-badge--rejected {
  background: rgba(30, 8, 6, 0.8);
  border-color: rgba(194, 48, 24, 0.5);
  color: #e84020;
}

.hero-pseudo-save {
  display: none;
  padding: 4px 10px;
  border-radius: 5px;
  background: var(--gold-gradient);
  border: none;
  font-family: var(--f-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bleu-nuit);
  cursor: pointer;
  transition: filter 0.2s;
}
.hero-pseudo-save:hover {
  filter: brightness(1.08);
}
.hero-pseudo-save--cancel {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.65);
  font-family: var(--f-title);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero-pseudo-save--cancel:hover {
  filter: none;
  background: rgba(255,255,255,0.13);
  color: #fff;
}
.hero-sub {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.72rem;
  color: rgba(232, 232, 232, 0.42);
  margin-bottom: 16px;
}
.hero-sub__rank {
  font-family: var(--f-editorial);
  font-style: italic;
  color: rgba(232, 232, 232, 0.45);
}
.hero-sub__sep { color: rgba(196,160,82,.3); }
.hero-sub__lvl {
  font-family: var(--f-title);
  font-size: .55rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 4px;
  background: rgba(196,160,82,.1);
  border: 1px solid rgba(196,160,82,.25);
  color: rgba(196,160,82,.7);
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 18px;
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}
.h-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.h-stat__num {
  font-family: var(--f-display);
  font-size: 2.4rem;
  letter-spacing: 0.06em;
  color: var(--or-titre);
  line-height: 1;
}
.h-stat__lbl {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 232, 232, 0.5);
  font-weight: 400;
}
.h-stat-div {
  width: 1px;
  height: 40px;
  background: rgba(196, 160, 82, 0.2);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════
   TABS
═══════════════════════════════════════════════════ */
.profile-tabs-wrap {
  position: sticky;
  top: var(--nav-h);
  z-index: 150;
  background: rgba(10, 18, 30, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(196, 160, 82, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}
.profile-tabs {
  width: min(var(--cd-max, 1440px), 100% - 2 * var(--cd-px, 2rem));
  margin: 0 auto;
  display: flex;
}
.ptab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 16px 22px;
  font-family: var(--f-title);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 232, 232, 0.58);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.22s;
  position: relative;
  user-select: none;
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.ptab:hover {
  color: rgba(232, 232, 232, 0.88);
  background: rgba(255, 255, 255, 0.03);
}
.ptab.active {
  color: var(--or-titre);
  border-bottom-color: var(--or-titre);
  text-shadow: 0 0 20px rgba(196,160,82,.3);
}
.ptab svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.ptab-badge {
  min-width: 18px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: rgba(212, 130, 10, 0.2);
  border: 1px solid rgba(212, 130, 10, 0.38);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--orange-clair);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ptab.active .ptab-badge {
  background: rgba(196, 160, 82, 0.16);
  border-color: rgba(196, 160, 82, 0.4);
  color: var(--or-titre);
}

/* ── Onglet Contributions : accent doré discret ── */
.ptab[data-tab="contributions"] {
  color: rgba(196, 160, 82, 0.7);
}

.ptab[data-tab="contributions"] svg {
  stroke: rgba(196, 160, 82, 0.7);
}

.ptab[data-tab="contributions"]:hover {
  color: var(--or-titre, #c4a052);
  background: rgba(196, 160, 82, 0.04);
}

.ptab[data-tab="contributions"].active {
  color: var(--or-titre, #c4a052);
  border-bottom-color: var(--or-titre, #c4a052);
}

.ptab[data-tab="contributions"].active .ptab-badge {
  background: rgba(196, 160, 82, 0.14);
  border-color: rgba(196, 160, 82, 0.38);
  color: var(--or-titre, #c4a052);
}

/* ═══════════════════════════════════════════════════
   CONTENT WRAPPER
═══════════════════════════════════════════════════ */
.profile-content {
  width: min(var(--cd-max, 1440px), 100% - 2 * var(--cd-px, 2rem));
  margin: 0 auto;
  padding: 36px 0 80px;
}
.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
  animation: fadeUp 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
/* Contrainte de largeur sur les onglets — évite que ptab-grid touche les bords */
.ptab-grid,
.impact-banner {
  max-width: min(var(--cd-max, 1440px), 100% - 2 * var(--cd-px, 2rem));
  margin-left: auto;
  margin-right: auto;
}


.toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  border-radius: 11px;
  background: rgba(65, 90, 119, 0.35);
  border: 1px solid rgba(65, 90, 119, 0.45);
  transition: 0.3s;
  cursor: pointer;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  bottom: 2px;
  background: rgba(130, 148, 185, 0.65);
  border-radius: 50%;
  transition: 0.3s;
}
.toggle input:checked + .toggle-slider {
  background: rgba(42, 122, 80, 0.35);
  border-color: rgba(61, 170, 114, 0.5);
}
.toggle input:checked + .toggle-slider::before {
  transform: translateX(18px);
  background: var(--vert-clair);
}

/* ══════════════════════════════════════════════════════
   FORMULAIRE PROFIL (onglet PROFIL)
══════════════════════════════════════════════════════ */
.widget__form-body { padding: 14px 18px 18px; }
.pf-row {
  display: flex; gap: 14px; margin-bottom: 14px;
}
.pf-group {
  display: flex; flex-direction: column; gap: 5px; flex: 1;
}
.pf-group--full { flex: 1 1 100%; }
.pf-label {
  font-family: var(--f-title); font-size: .55rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(196,160,82,.6);
}
.pf-input {
  width: 100%; padding: 8px 12px; border-radius: 8px;
  background: rgba(10,20,34,.7); border: 1px solid rgba(255,255,255,.08);
  color: rgba(232,232,232,.88); font-family: var(--f-body); font-size: .65rem;
  transition: border-color .2s;
}
.pf-input:not(:disabled):focus {
  outline: none; border-color: rgba(196,160,82,.45);
  background: rgba(12,24,40,.85);
}
.pf-input:disabled { opacity: .55; cursor: default; }
.pf-link {
  margin-top: 4px; font-size: .6rem; color: rgba(196,160,82,.55);
  text-decoration: none; transition: color .2s; align-self: flex-start;
}
.pf-link:hover { color: var(--or-titre); }
.pf-google-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  font-size: .72rem;
  color: rgba(255,255,255,.65);
  margin-top: 4px;
}
.pf-hint {
  margin-top: 6px;
  font-size: .6rem;
  color: rgba(255,255,255,.35);
  line-height: 1.5;
}
.pf-actions {
  display: flex; gap: 8px; justify-content: flex-end;
  padding-top: 6px; margin-top: 2px;
  border-top: 1px solid rgba(255,255,255,.05);
}

/* Ligne notification (label + toggle) */
.pf-notif-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.045);
}
.pf-notif-row:last-child { border-bottom: none; padding-bottom: 0; }
.pf-notif-row:first-child { padding-top: 0; }
.pf-notif-info { display: flex; flex-direction: column; gap: 2px; }
.pf-notif-label {
  font-family: var(--f-title); font-size: .55rem; font-weight: 600;
  letter-spacing: .02em; color: rgba(232,232,232,.82);
}
.pf-notif-sub {
  font-size: .58rem; font-weight: 300;
  color: rgba(232,232,232,.32); font-style: italic;
}

/* ══════════════════════════════════════════════════════
   LIST-ROW LINK (favoris & notations — <a> cliquable)
══════════════════════════════════════════════════════ */
.list-row--link { cursor: pointer; color: inherit; text-decoration: none; }
.list-row--link:hover { text-decoration: none; }
.fav-row-arrow {
  width: 14px; height: 14px; flex-shrink: 0;
  stroke: rgba(196,160,82,.3); fill: none; stroke-width: 2;
  transition: stroke .2s, transform .2s;
}
.list-row--link:hover .fav-row-arrow {
  stroke: rgba(196,160,82,.7); transform: translateX(2px);
}
.fav-score-badge {
  flex-shrink: 0; display: inline-flex; align-items: center;
  padding: 3px 8px; border-radius: 5px;
  font-family: var(--f-title); font-size: .58rem; font-weight: 700;
  letter-spacing: .05em;
  background: rgba(196,160,82,.12); border: 1px solid rgba(196,160,82,.3);
  color: rgba(196,160,82,.85);
}



/* ══════════════════════════════════════════════════════
   XP IMPACT BANNER  (top of content)
══════════════════════════════════════════════════════ */
.impact-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(196, 160, 82, 0.1);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}
.impact-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
  opacity: 0.5;
}
.impact-cell {
  padding: 16px 20px;
  background: linear-gradient(
    160deg,
    rgba(10, 20, 34, 0.98),
    rgba(15, 28, 48, 0.96)
  );
  display: flex;
  align-items: center;
  gap: 12px;
}
.impact-cell__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.impact-cell__icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}
.ic--xp {
  background: rgba(196, 160, 82, 0.12);
  border: 1px solid rgba(196, 160, 82, 0.22);
  color: var(--dore-clair);
}
.ic--rank {
  background: rgba(80, 130, 255, 0.12);
  border: 1px solid rgba(80, 130, 255, 0.25);
  color: rgba(120, 190, 255, 0.9);
}
.ic--badge {
  background: rgba(107, 79, 160, 0.12);
  border: 1px solid rgba(107, 79, 160, 0.28);
  color: var(--violet-clair);
}
.ic--streak {
  background: rgba(201, 123, 58, 0.12);
  border: 1px solid rgba(201, 123, 58, 0.28);
  color: var(--caramel);
}
.impact-cell__body {
}
.impact-cell__val {
  font-family: var(--f-display);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.ic--xp .impact-cell__val {
  color: var(--dore-clair);
}
.ic--rank .impact-cell__val {
  color: rgba(120, 190, 255, 0.9);
}
.ic--badge .impact-cell__val {
  color: var(--violet-clair);
}
.ic--streak .impact-cell__val {
  color: var(--caramel);
}
.impact-cell__lbl {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 232, 232, 0.3);
  font-weight: 300;
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════════ */
.contrib-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
}

/* ══════════════════════════════════════════════════════
   SIDEBAR WIDGETS
══════════════════════════════════════════════════════ */
.widget {
  background: linear-gradient(
    160deg,
    rgba(10, 20, 34, 0.98),
    rgba(16, 30, 50, 0.96)
  );
  border: 1.5px solid rgba(255, 255, 255, 0.055);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
}
.widget:last-child {
  margin-bottom: 0;
}
.widget-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px 11px;
  border-bottom: 1px solid rgba(196, 160, 82, 0.07);
}
.widget-head__line {
  width: 16px;
  height: 1.5px;
  background: var(--or-titre);
  opacity: 0.45;
  flex-shrink: 0;
}
.widget-head__title {
  font-family: var(--f-title);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(196, 160, 82, 0.55);
}
.widget-head__extra {
  margin-left: auto;
  font-family: var(--f-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(196, 160, 82, 0.32);
  cursor: pointer;
  transition: color 0.2s;
}
.widget-head__extra:hover {
  color: var(--or-titre);
}

/* ── STATS ── */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.035);
}
.stat-cell {
  padding: 14px 16px;
  background: linear-gradient(
    160deg,
    rgba(10, 20, 34, 0.98),
    rgba(16, 30, 50, 0.96)
  );
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}
.stat-cell:hover {
  background: linear-gradient(
    160deg,
    rgba(14, 26, 44, 0.98),
    rgba(20, 36, 58, 0.96)
  );
}
.stat-cell::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0.5;
}
.stat-cell:nth-child(1)::after {
  background: linear-gradient(90deg, transparent, var(--caramel), transparent);
}
.stat-cell:nth-child(2)::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(140, 180, 225, 0.8),
    transparent
  );
}
.stat-cell:nth-child(3)::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(160, 170, 200, 0.6),
    transparent
  );
}
.stat-cell:nth-child(4)::after {
  background: linear-gradient(
    90deg,
    transparent,
    var(--violet-clair),
    transparent
  );
}
.stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}
.stat-cell:nth-child(1) .stat-icon {
  background: rgba(201, 123, 58, 0.12);
  color: var(--caramel);
}
.stat-cell:nth-child(2) .stat-icon {
  background: rgba(90, 115, 145, 0.14);
  color: rgba(140, 180, 225, 0.85);
}
.stat-cell:nth-child(3) .stat-icon {
  background: rgba(65, 90, 119, 0.14);
  color: rgba(140, 165, 210, 0.7);
}
.stat-cell:nth-child(4) .stat-icon {
  background: rgba(107, 79, 160, 0.12);
  color: var(--violet-clair);
}
.stat-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.stat-num {
  font-family: var(--f-display);
  font-size: 1.75rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.stat-cell:nth-child(1) .stat-num {
  color: var(--caramel);
}
.stat-cell:nth-child(2) .stat-num {
  color: rgba(140, 180, 225, 0.88);
}
.stat-cell:nth-child(3) .stat-num {
  color: rgba(160, 170, 200, 0.7);
}
.stat-cell:nth-child(4) .stat-num {
  color: var(--violet-clair);
}
.stat-lbl {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 232, 232, 0.28);
  font-weight: 300;
}

/* XP block */
.xp-block {
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.xp-level-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.xp-level-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(80, 130, 255, 0.1);
  border: 1px solid rgba(80, 130, 255, 0.2);
  font-family: var(--f-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(120, 190, 255, 0.8);
}
.xp-total {
  font-family: var(--f-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--dore-clair);
}
.xp-track-wrap {
  position: relative;
  margin-bottom: 6px;
}
.xp-track {
  height: 8px;
  border-radius: 5px;
  background: rgba(65, 90, 119, 0.28);
  overflow: visible;
  position: relative;
}
.xp-fill {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #8b5e10, #b8882a, #d4a843, #f2c84b);
  position: relative;
  transition: width 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.xp-fill::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background: rgba(255, 255, 255, 0.55);
  animation: xpPulse 2s ease-in-out infinite;
  border-radius: 0 5px 5px 0;
}
@keyframes xpPulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.9;
  }
}
/* Milestone dot at 50% */
.xp-milestone {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(65, 90, 119, 0.5);
  border: 2px solid rgba(65, 90, 119, 0.6);
  z-index: 2;
  transition:
    background 0.4s,
    border-color 0.4s;
  pointer-events: none;
}
.xp-milestone.passed {
  background: rgba(242, 200, 75, 0.7);
  border-color: rgba(242, 200, 75, 0.9);
  box-shadow: 0 0 8px rgba(242, 200, 75, 0.5);
}
.xp-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.xp-sub {
  font-size: 0.58rem;
  color: rgba(196, 160, 82, 0.38);
  letter-spacing: 0.06em;
}
.xp-pct {
  font-family: var(--f-display);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(196, 160, 82, 0.5);
}

/* ── CADRE ACTIF ── */
.active-frame-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
}
.active-frame-preview {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 24px rgba(80, 130, 255, 0.3));
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.35s;
}
.active-frame-preview:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 12px 32px rgba(80, 130, 255, 0.5));
}
.active-frame-preview .bsp {
  position: absolute;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  width: 57px;
  height: 57px;
  top: 21.5px;
  left: 21.5px;
  z-index: 1;
}
.active-frame-preview .bsf {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
/* "Sans cadre" — anneau doré gradient sur le widget Cadre actif */
.active-frame-preview--noframe {
  border-radius: 50%;
  filter: drop-shadow(0 0 12px rgba(184, 136, 42, 0.45)); /* symétrique, pas de décalage Y */
}
.active-frame-preview--noframe::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    #8b6914 0%,
    #b8882a 22%,
    #c4a052 42%,
    #d4a843 55%,
    #f2c84b 68%,
    #d4a843 80%,
    #b8882a 100%
  );
  /* anneau 3 px centré sur la photo (r_photo ≈ 28.5px → anneau à 31–34px) */
  mask: radial-gradient(circle at 50% 50%, transparent 31px, black 32px, black 34px, transparent 35px);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 31px, black 32px, black 34px, transparent 35px);
  z-index: 2;
  pointer-events: none;
}
.active-frame-preview-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  border: 2px solid;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.active-frame-preview-icon:hover {
  transform: scale(1.06);
}
.active-frame-meta {
  text-align: center;
}
.active-frame-name {
  font-family: var(--f-title);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(232, 232, 232, 0.95);
  margin-bottom: 3px;
}
.active-frame-theme {
  font-size: 0.68rem;
  font-weight: 300;
  color: rgba(196, 160, 82, 0.55);
  font-style: italic;
  margin-bottom: 6px;
}
.active-frame-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(120, 190, 255, 0.1);
  border: 1px solid rgba(120, 190, 255, 0.25);
  font-family: var(--f-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(120, 190, 255, 0.75);
}

/* ── GUIDE XP ── */
.xp-guide { padding: 10px 18px 16px; display: flex; flex-direction: column; gap: 0; }
.xp-guide-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.04);
}
.xp-guide-row:last-child { border-bottom: none; padding-bottom: 0; }
.xp-guide-row:first-child { padding-top: 0; }
.xp-guide-icon {
  width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.xp-guide-icon svg {
  width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.5; fill: none;
}
.xp-guide-icon--recipe { background: rgba(201,123,58,.12); border: 1px solid rgba(201,123,58,.2); color: var(--caramel); }
.xp-guide-icon--movie  { background: rgba(107,79,160,.12);  border: 1px solid rgba(107,79,160,.22); color: var(--violet-clair); }
.xp-guide-icon--avis   { background: rgba(65,90,119,.15);   border: 1px solid rgba(65,90,119,.28);  color: rgba(140,170,210,.7); }
.xp-guide-body { flex: 1; min-width: 0; }
.xp-guide-label { font-family: var(--f-title); font-size: .58rem; font-weight: 700; letter-spacing: .03em; color: rgba(232,232,232,.75); }
.xp-guide-sub   { font-size: .55rem; color: rgba(232,232,232,.28); margin-top: 1px; }
.xp-guide-pts {
  flex-shrink: 0; font-family: var(--f-title); font-size: .55rem; font-weight: 700;
  letter-spacing: .05em; color: rgba(196,160,82,.65);
  padding: 2px 6px; border-radius: 4px;
  background: rgba(196,160,82,.08); border: 1px solid rgba(196,160,82,.18);
}

/* ── MES CADRES ── */
.frames-list {
  padding: 6px 10px 10px;
}
.frames-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px 4px;
  margin-bottom: 2px;
}
.frames-divider__label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(196, 160, 82, 0.32);
  font-weight: 300;
  white-space: nowrap;
}
.frames-divider__line {
  flex: 1;
  height: 1px;
  background: rgba(196, 160, 82, 0.08);
}
.frames-divider--locked .frames-divider__label {
  color: rgba(65, 90, 119, 0.4);
}
.frames-divider--locked .frames-divider__line {
  background: rgba(65, 90, 119, 0.1);
}

.frame-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.22s;
  border: 1px solid transparent;
  position: relative;
  margin-bottom: 2px;
}
.frame-row:last-child {
  margin-bottom: 0;
}
.frame-row:hover:not(.frame-row--locked) {
  background: rgba(196, 160, 82, 0.05);
  border-color: rgba(196, 160, 82, 0.14);
}
.frame-row--active {
  background: rgba(120, 190, 255, 0.07) !important;
  border-color: rgba(120, 190, 255, 0.28) !important;
}
.frame-row--locked {
  opacity: 0.35;
  cursor: default;
}
.frame-row--next-unlock {
  opacity: 0.55;
  position: relative;
}
.frame-row--next-unlock::after {
  content: "PROCHAIN";
  position: absolute;
  top: 6px;
  right: 8px;
  font-family: var(--f-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(212, 130, 10, 0.6);
  background: rgba(212, 130, 10, 0.08);
  border: 1px solid rgba(212, 130, 10, 0.22);
  padding: 1px 6px;
  border-radius: 3px;
}

.frame-row-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1.5px solid;
  flex-shrink: 0;
  transition: transform 0.22s;
}
.frame-row:hover:not(.frame-row--locked) .frame-row-icon {
  transform: scale(1.08);
}
.frame-row-badge-static {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.frame-row-badge-static .bsp {
  position: absolute;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  width: 23px;
  height: 23px;
  top: 8.5px;
  left: 8.5px;
  z-index: 1;
}
.frame-row-badge-static .bsf {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
/* ─── "Sans cadre" — anneau doré gradient (djc-cta inspired) ─── */
.frame-row-badge-static--noframe {
  border-radius: 50%;
  filter: drop-shadow(0 0 5px rgba(184, 136, 42, 0.35));
}
.frame-row-badge-static--noframe::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    #8b6914 0%,
    #b8882a 22%,
    #c4a052 42%,
    #d4a843 55%,
    #f2c84b 68%,
    #d4a843 80%,
    #b8882a 100%
  );
  /* anneau 2 px centré sur la photo (r_photo ≈ 11.5px → anneau à 14–16px) */
  mask: radial-gradient(circle at 50% 50%, transparent 13px, black 14px, black 16px, transparent 17px);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 13px, black 14px, black 16px, transparent 17px);
  z-index: 2;
  pointer-events: none;
}

.frame-row-info {
  flex: 1;
  min-width: 0;
}
.frame-row-name {
  font-family: var(--f-title);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(232, 232, 232, 0.88);
}
.frame-row-sub {
  font-size: 0.58rem;
  font-weight: 300;
  color: rgba(232, 232, 232, 0.3);
  letter-spacing: 0.04em;
}
.frame-row-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.frame-row-check--active {
  background: rgba(120, 190, 255, 0.15);
  border: 1px solid rgba(120, 190, 255, 0.45);
}
.frame-row-check--ok {
  background: rgba(61, 170, 114, 0.12);
  border: 1px solid rgba(61, 170, 114, 0.3);
}
.frame-row-check--locked {
  background: rgba(65, 90, 119, 0.1);
  border: 1px solid rgba(65, 90, 119, 0.2);
}
.frame-row-check svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* ══════════════════════════════════════════════════════
   RIGHT COLUMN
══════════════════════════════════════════════════════ */
.right-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sec-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.sec-eyebrow__line {
  width: 16px;
  height: 1.5px;
  background: var(--or-titre);
  opacity: 0.4;
  flex-shrink: 0;
}
.sec-eyebrow__label {
  font-family: var(--f-title);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(196, 160, 82, 0.45);
}
.sec-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sec-title {
  font-family: var(--f-display);
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  color: #fff;
  line-height: 1;
}
.sec-link {
  font-family: var(--f-title);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(196, 160, 82, 0.38);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}
.sec-link:hover {
  color: var(--or-titre);
}

/* ── État vide ── */
.contrib-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  text-align: center;
  color: rgba(232, 232, 232, 0.28);
}
.contrib-empty svg {
  stroke: rgba(196, 160, 82, 0.25);
}
.contrib-empty p {
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.7;
}

/* ── CTA INVITER ── */
.ctb-invite {
  margin-top: 40px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #5c0b05 0%, #8b1c13 28%, #c23018 58%, #d43a20 80%, #e04422 100%);
  border: 1px solid rgba(194,48,24,.42);
  box-shadow: 0 20px 60px rgba(194,48,24,.28), 0 8px 24px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.07);
  position: relative;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
}
.ctb-invite:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(194,48,24,.40), 0 12px 32px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.11);
}
/* Shimmer au hover */
.ctb-invite::before {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 40%; z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  transform: translateX(-120%) skewX(-18deg);
  pointer-events: none;
}
.ctb-invite:hover::before {
  animation: ctbInviteShimmer .75s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes ctbInviteShimmer {
  0%   { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(340%)  skewX(-18deg); }
}
.ctb-invite__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 36px 40px; gap: 32px;
}
.ctb-invite__left { flex: 1; min-width: 0; }
.ctb-invite__eyebrow {
  display: inline-block; margin-bottom: 10px;
  font-family: var(--f-title); font-size: .5rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.65);
}
.ctb-invite__title {
  font-family: var(--f-display); font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: .06em; line-height: 1.1;
  margin-bottom: 12px;
}
.ctb-invite__title span { color: #fff; }
.ctb-invite__title em { color: var(--or-titre); font-style: normal; }
.ctb-invite__text {
  font-size: .78rem; font-weight: 300; line-height: 1.65;
  color: rgba(212,220,232,.5); max-width: 480px; margin-bottom: 24px;
}
.ctb-invite__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ctb-invite__btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0 22px; height: 42px; border-radius: 9px;
  font-family: var(--f-title); font-size: .58rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  transition: all .22s; cursor: pointer; border: none;
}
/* Bouton principal — bleu nuit */
.ctb-invite__btn--primary {
  background: linear-gradient(135deg, #0a1220 0%, #162336 100%);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.ctb-invite__btn--primary:hover {
  background: linear-gradient(135deg, #0d1b2a 0%, #1c2d42 100%);
  border-color: rgba(255,255,255,.22);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
/* Bouton ghost — doré */
.ctb-invite__btn--ghost {
  background: linear-gradient(135deg, #9a7832 0%, #c4a052 40%, #f2c84b 65%, #c4a052 100%);
  border: none;
  color: #0a1220;
  box-shadow: 0 4px 18px rgba(196,160,82,.35);
}
.ctb-invite__btn--ghost:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196,160,82,.5);
}
/* Image de fond droite avec fondu vers la gauche */
.ctb-invite__bg-img {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 55%;
  z-index: 0; pointer-events: none;
}
.ctb-invite__bg-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center right;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.6) 35%, black 70%);
          mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.6) 35%, black 70%);
}
.ctb-invite__inner { position: relative; z-index: 1; }

.ctb-invite__right {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 8px;
}
.ctb-invite__stats {
  display: flex; align-items: center; gap: 28px;
}
.ctb-invite__stat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.ctb-invite__stat-n {
  font-family: var(--f-display); font-size: 3rem;
  letter-spacing: .06em; line-height: 1;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.ctb-invite__stat-l {
  font-family: var(--f-title); font-size: .48rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.ctb-invite__stat-div {
  width: 1px; height: 44px;
  background: rgba(255,255,255,.2);
}

/* ── ACTIVITY FILTERS ── */
.activity-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.af-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 20px;
  font-family: var(--f-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
  color: rgba(232, 232, 232, 0.36);
  transition: all 0.18s;
}
.af-pill:hover {
  border-color: rgba(196, 160, 82, 0.28);
  color: rgba(196, 160, 82, 0.65);
}
.af-pill.active {
  background: rgba(196, 160, 82, 0.1);
  border-color: rgba(196, 160, 82, 0.38);
  color: var(--or-titre);
}
.af-pill__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── ACTIVITY LIST ── */
.activity-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}
.activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: linear-gradient(
    135deg,
    rgba(10, 20, 34, 0.94),
    rgba(16, 30, 50, 0.9)
  );
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 12px;
  transition: all 0.25s;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.activity-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2.5px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.25s;
  border-radius: 12px 0 0 12px;
}
.activity-item:hover {
  border-color: rgba(196, 160, 82, 0.16);
  background: linear-gradient(
    135deg,
    rgba(12, 24, 40, 0.96),
    rgba(18, 34, 56, 0.94)
  );
}
.activity-item:hover::before {
  opacity: 0.5;
}
.activity-item[data-type="recipe"] {
  color: var(--caramel);
}
.activity-item[data-type="notice"] {
  color: var(--or-titre);
}
.activity-item[data-type="movie"] {
  color: var(--violet-clair);
}
.activity-item[data-type="comment"] {
  color: rgba(140, 180, 225, 0.8);
}
.activity-item.hidden {
  display: none;
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid;
}
.activity-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}
.activity-body {
  flex: 1;
  min-width: 0;
}
.activity-title {
  font-family: var(--f-title);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(232, 232, 232, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.activity-sub {
  font-size: 0.68rem;
  font-weight: 300;
  color: rgba(232, 232, 232, 0.35);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.activity-time {
  font-size: 0.58rem;
  color: rgba(232, 232, 232, 0.2);
  display: flex;
  align-items: center;
  gap: 4px;
}
.activity-time svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.activity-xp {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 2px;
}
.activity-xp__val {
  font-family: var(--f-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--dore-clair);
}
.activity-xp__lbl {
  font-size: 0.68rem;
  font-weight: 300;
  color: rgba(196, 160, 82, 0.4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── PROCHAIN PALIER ── */
.next-level-block {
  padding: 20px 22px;
  background: linear-gradient(
    135deg,
    rgba(10, 20, 34, 0.97),
    rgba(16, 30, 52, 0.95)
  );
  border: 1.5px solid rgba(196, 160, 82, 0.12);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.next-level-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
  opacity: 0.35;
}
.next-level-block::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(196, 160, 82, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.nl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.nl-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(196, 160, 82, 0.1);
  border: 1px solid rgba(196, 160, 82, 0.22);
  font-family: var(--f-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(196, 160, 82, 0.7);
}
.nl-xp-needed {
  font-family: var(--f-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--dore-clair);
}
.nl-xp-sub {
  font-size: 0.6rem;
  color: rgba(196, 160, 82, 0.38);
}
.nl-rewards {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.nl-reward {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  flex: 1;
  min-width: 140px;
  transition: border-color 0.2s;
}
.nl-reward:hover {
  border-color: rgba(196, 160, 82, 0.2);
}
.nl-reward__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.nl-reward__title {
  font-family: var(--f-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(232, 232, 232, 0.8);
}
.nl-reward__sub {
  font-size: 0.58rem;
  font-weight: 300;
  color: rgba(232, 232, 232, 0.3);
}

/* ── BADGE ENGINE CLASSES ── */
.badge__photo {
  position: absolute;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  z-index: 10;
}
.badge__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
  display: block;
}
/* ── TOAST ── */
.toast-wrap {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
/* ── Responsive ── */
@media (max-width: 900px) {
  .contrib-layout {
    grid-template-columns: 1fr;
  }
  .recipes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .impact-banner {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .page-wrap,
  .fake-tabs {
    padding-left: 20px;
    padding-right: 20px;
  }
  .recipes-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.account-item__hint {
  font-size: 0.58rem;
  font-style: italic;
  margin-top: 4px;
  color: rgba(232, 232, 232, 0.42);
}
.account-item__hint--pending  { color: rgba(212, 160, 30, 0.85); }
.account-item__hint--approved { color: rgba(80, 200, 110, 0.85); }
.account-item__hint--rejected { color: rgba(220, 80, 60, 0.85); }

.ci-ef-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ci-ef-full {
  grid-column: 1/-1;
}
.ci-ef-label {
  font-family: var(--f-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(196, 160, 82, 0.4);
  display: block;
  margin-bottom: 4px;
}
.ci-ef-input {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  background: rgba(15, 26, 42, 0.65);
  border: 1.5px solid rgba(65, 90, 119, 0.32);
  border-radius: 7px;
  color: var(--argent-ecran);
  font-size: 0.72rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
}
.ci-ef-input:focus {
  border-color: rgba(196, 160, 82, 0.48);
}
.ci-ef-textarea {
  width: 100%;
  padding: 8px 10px;
  height: 60px;
  background: rgba(15, 26, 42, 0.65);
  border: 1.5px solid rgba(65, 90, 119, 0.32);
  border-radius: 7px;
  color: var(--argent-ecran);
  font-size: 0.72rem;
  font-weight: 300;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
  font-family: var(--f-body);
}
.ci-ef-textarea:focus {
  border-color: rgba(196, 160, 82, 0.48);
}
.ci-ef-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
}

/* Badges dynamiques JS (setStatusBadge) */
.account-item__status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--f-title);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.account-item__status::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.account-item__status.is-approved {
  background: rgba(10, 34, 20, 0.65);
  border-color: rgba(61, 170, 114, 0.38);
  color: var(--vert-clair);
}
.account-item__status.is-pending {
  background: rgba(30, 15, 4, 0.65);
  border-color: rgba(212, 130, 10, 0.38);
  color: var(--orange-clair);
}
.account-item__status.is-rejected {
  background: rgba(30, 8, 6, 0.65);
  border-color: rgba(194, 48, 24, 0.38);
  color: #e84020;
}

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 18px;
  height: 38px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  font-family: var(--f-title);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.22s;
  white-space: nowrap;
}
.btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.btn--primary {
  background: var(--gold-gradient);
  color: var(--bleu-nuit);
  box-shadow: 0 2px 12px rgba(184, 136, 42, 0.22);
}
.btn--primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.35);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  border: 1.5px solid rgba(232, 232, 232, 0.18);
  color: rgba(232, 232, 232, 0.55);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(232, 232, 232, 0.38);
  color: rgba(232, 232, 232, 0.88);
}
.btn--red {
  background: var(--rouge-gradient);
  color: #fff;
  box-shadow: 0 2px 12px rgba(194, 48, 24, 0.25);
}
.btn--red:hover {
  box-shadow: 0 4px 20px rgba(194, 48, 24, 0.45);
  transform: translateY(-1px);
}

.btn--sm {
  height: 32px;
  padding: 0 13px;
  font-size: 0.68rem;
}

/* ═══════════════════════════════════════════════════
   TOAST SYSTEM
═══════════════════════════════════════════════════ */
.toast-wrap {
  position: fixed;
  top: calc(var(--nav-h) + 14px);
  right: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

/* Container des notifications profil (account.js) */
.profile-toast-wrap {
  position: fixed;
  top: calc(var(--nav-h, 68px) + 14px);
  right: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

/* Item individuel */
.profile-toast__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 16px;
  background: rgba(10, 18, 30, 0.97);
  border: 1px solid rgba(196, 160, 82, 0.18);
  border-radius: 12px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55);
  min-width: 280px;
  max-width: 360px;
  pointer-events: all;
  animation: profileToastIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.profile-toast__item.is-success { border-left: 3px solid #4caf50; }
.profile-toast__item.is-error   { border-left: 3px solid #C23018; }
.profile-toast__item.is-warning { border-left: 3px solid #C4A052; }
.profile-toast__title   { font-size: .75rem; font-weight: 700; color: #C4A052; letter-spacing: .05em; }
.profile-toast__message { font-size: .8rem; color: rgba(255,255,255,.75); line-height: 1.4; }

@keyframes profileToastIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.profile-toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  background: rgba(10, 18, 30, 0.97);
  border: 1px solid rgba(196, 160, 82, 0.18);
  border-radius: 12px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55);
  min-width: 280px;
  max-width: 360px;
  pointer-events: all;
  position: relative;
  overflow: hidden;
  transform: translateX(120%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.profile-toast::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}
.profile-toast.in {
  transform: translateX(0);
}
.profile-toast.out {
  transform: translateX(120%);
  transition-duration: 0.22s;
}
.profile-toast--success::before {
  background: linear-gradient(
    90deg,
    transparent,
    var(--vert-clair),
    transparent
  );
}
.profile-toast--error::before {
  background: linear-gradient(90deg, transparent, #e84020, transparent);
}
.profile-toast--gold::before {
  background: var(--gold-gradient-h);
  opacity: 0.55;
}
.profile-toast--info::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(140, 180, 245, 0.85),
    transparent
  );
}
/* ═══════════════════════════════════════════════════
   CONFIRM MODAL
═══════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: rgba(10, 18, 30, 0.98);
  border: 1px solid rgba(196, 160, 82, 0.18);
  border-radius: 18px;
  overflow: hidden;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.75);
  transform: scale(0.94) translateY(8px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}
.modal-stripe {
  height: 3px;
  background: var(--rouge-gradient);
}
.modal-head {
  padding: 20px 24px 12px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.modal-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(194, 48, 24, 0.18);
  border: 1px solid rgba(194, 48, 24, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.modal-titles {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.modal-title {
  font-family: var(--f-display);
  font-size: 1.1rem;
  letter-spacing: 3px;
  color: var(--argent-ecran);
}
.modal-sub {
  font-size: 0.68rem;
  font-weight: 300;
  color: rgba(232, 232, 232, 0.38);
}
.modal-body {
  padding: 4px 24px 18px;
  font-size: 0.76rem;
  font-weight: 300;
  line-height: 1.72;
  color: rgba(232, 232, 232, 0.55);
}
.modal-target {
  margin-top: 10px;
  padding: 9px 14px;
  background: rgba(194, 48, 24, 0.07);
  border-radius: 7px;
  border: 1px solid rgba(194, 48, 24, 0.18);
  font-family: var(--f-title);
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(232, 232, 232, 0.7);
}
.modal-footer {
  padding: 12px 24px 22px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

/* ── EDIT RECIPE MODAL ────────────────────────────── */
.modal-stripe--gold {
  background: linear-gradient(
    90deg,
    rgba(196, 160, 82, 0.85),
    rgba(201, 123, 58, 0.6)
  );
}
.modal-ico--edit {
  background: rgba(196, 160, 82, 0.12);
  border-color: rgba(196, 160, 82, 0.35);
}
/* Bloquer le scroll du body quand un modal est ouvert */
body.modal-open { overflow: hidden; }

.modal-box--edit {
  max-width: 540px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
@media (min-width: 960px) {
  .modal-box--edit { max-width: min(960px, 88vw); }
}
.modal-body--form {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 4px 24px 18px;
}
.ci-ef-file {
  width: 100%;
  padding: 7px 10px;
  background: rgba(15, 26, 42, 0.65);
  border: 1.5px solid rgba(65, 90, 119, 0.32);
  border-radius: 7px;
  color: rgba(232, 232, 232, 0.5);
  font-size: 0.7rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.ci-ef-file:focus {
  border-color: rgba(196, 160, 82, 0.48);
  outline: none;
}
/* Select stylé — même apparence que ci-ef-input */
.ci-ef-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(196,160,82,.55)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
}
.ci-ef-select option {
  background: #0b1828;
  color: rgba(232, 232, 232, 0.88);
}
/* Prévisualisation image dans le modal */
.ci-ef-img-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ci-ef-img-preview {
  display: none;
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 7px;
  border: 1.5px solid rgba(196, 160, 82, 0.28);
}
.ci-ef-img-preview.is-visible {
  display: block;
}
/* ── Slots photo 3:2 dans le modal édition recette ── */
.ci-ef-label-hint {
  font-size: .58em;
  font-weight: 400;
  opacity: .55;
  margin-left: 6px;
}
.ci-ef-photo-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ci-ef-ps {
  position: relative;
  aspect-ratio: 3/2;
  border-radius: 7px;
  border: 1.5px dashed rgba(196,160,82,.3);
  background: rgba(15,26,42,.55);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s;
}
.ci-ef-ps:hover { border-color: rgba(196,160,82,.6); }
.ci-ef-ps.has-photo { border-style: solid; border-color: rgba(196,160,82,.5); }
.ci-ef-ps__prev {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .9;
}
.ci-ef-ps__n {
  position: absolute;
  top: 5px; left: 6px;
  font-size: .6rem;
  font-family: var(--f-title);
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(232,232,232,.7);
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
  pointer-events: none;
}
.ci-ef-ps__file {
  position: absolute; inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%; height: 100%;
}
.ci-ef-ps__del {
  display: none;
  position: absolute;
  top: 4px; right: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: none;
  background: rgba(194,48,24,.85);
  color: #fff;
  font-size: .65rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.ci-ef-ps.has-photo .ci-ef-ps__del { display: flex; }
/* ── Bouton effacer dans la barre de recherche ── */
.collections-section__search-clear {
  display: none;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(232, 232, 232, 0.35);
  cursor: pointer;
  font-size: 0.65rem;
  padding: 2px 4px;
  line-height: 1;
  transition: color 0.15s;
}
.collections-section__search-clear:hover {
  color: var(--or-titre);
}
.collections-section__search-clear.is-visible {
  display: block;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
/* --page-px responsive overrides supprimés : gutters gérés par width: min() */

@media (max-width: 900px) {
  .profile-hero {
    height: 310px;
  }
  .hero-content {
    padding-bottom: 20px;
  }
  .hero-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .avatar-block {
    width: 80px;
    height: 80px;
    overflow: hidden;
  }
  .profile-badge-hero {
    transform: scale(0.308);
    transform-origin: top left;
  }
  .avatar-actions {
    right: -28px;
    transform: scale(3.25);
    transform-origin: top right;
  }
  /* Tabs : scroll horizontal sous tablet (5 onglets) */
  .profile-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .profile-tabs::-webkit-scrollbar { display: none; }
  .ptab { flex-shrink: 0; }
}
@media (max-width: 640px) {
  /* Hero : hauteur auto — laisse le layout colonne respirer */
  .profile-hero { height: auto; min-height: 500px; }
  .hero-banner-status { right: 16px; top: 14px; gap: 4px; }
  .hero-author-link   { left: 16px;  top: 14px; }
  .banner-btn { padding: 5px 10px; font-size: .54rem; }
  .author-link { padding: 5px 10px 5px 9px; font-size: .54rem; }

  /* Layout : colonne centrée — avatar en haut, identity en bas */
  .hero-content { padding-top: 80px; padding-bottom: 24px; width: 100%; }
  .hero-row { flex-direction: column; align-items: center; gap: 6px; width: 100%; }
  .hero-identity { flex: unset; width: 100%; min-width: 0; text-align: center; }

  /* Avatar : 260px plein format — cadre gamification dominant (scale 1.0) */
  /* height: auto réinitialise le height: 80px du breakpoint 900px */
  .avatar-block { width: 260px; height: auto; overflow: visible; }
  .profile-badge-hero { transform: scale(1.0); transform-origin: top left; }

  /* Avatar-actions : colonne verticale à droite du badge */
  /* left: 270px → 10px à droite du bord du badge ; scale 1.0 → pas de counter-scale */
  .avatar-actions {
    left: 270px; top: 50%;
    right: auto; bottom: auto;
    flex-direction: column; gap: 8px;
    transform: translateY(-50%);
    transform-origin: left center;
  }

  /* Identity : pseudo dominant, sub bien lisible */
  .hero-pseudo { font-size: clamp(1.4rem, 9vw, 4.5rem); overflow-wrap: break-word; max-width: 100%; }
  .hero-pseudo-row { justify-content: center; }
  .hero-sub { justify-content: center; font-size: 1.2rem; color: rgba(232, 232, 232, 0.65); }
  .hero-sub__rank { color: rgba(232, 232, 232, 0.65); }
  .hero-sub__lvl { font-size: 0.75rem; padding: 3px 9px; }
  .hero-stats-row { justify-content: center; gap: 20px; margin-top: 8px; }

  /* Tabs : icônes seules, pleine largeur équitable */
  .profile-tabs { width: 100%; }
  .ptab span.ptab-text { display: none; }
  .ptab { flex: 1; padding: 15px 8px; gap: 4px; justify-content: center; }

  /* Formulaire profil : champs pleine largeur */
  .ci-ef-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  /* Avatar sur petits écrans (scale 0.950 = 247px) */
  .profile-hero { min-height: 460px; }
  .hero-content { padding-top: 72px; }
  .hero-row { gap: 4px; }
  .avatar-block { width: 248px; height: auto; overflow: visible; }
  .profile-badge-hero { transform: scale(0.950); transform-origin: top left; }
  /* left: 270px original → visual 270×0.950 = 256px, soit 9px à droite du badge visuel 247px */
  /* counter-scale: 1/0.950 = 1.053 */
  .avatar-actions {
    left: 270px; top: 50%;
    right: auto; bottom: auto;
    flex-direction: column; gap: 8px;
    transform: translateY(-50%) scale(1.053);
    transform-origin: left center;
  }
  .hero-pseudo { font-size: clamp(1.2rem, 8vw, 3.5rem); overflow-wrap: break-word; max-width: 100%; }
  .hero-sub { font-size: 1rem; }
  .hero-banner-status .banner-btn--pending,
  .hero-banner-status .banner-btn--rejected { max-width: 110px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}

/* ═══════════════════════════════════════════════════
   CRÉATIONS v2 — Nouveau layout + composants
═══════════════════════════════════════════════════ */

/* ── Layout 2 colonnes ── */
.crea-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}
.crea-sidebar { display: flex; flex-direction: column; gap: 0; }
.crea-main    { display: flex; flex-direction: column; gap: 32px; }

/* ── Impact banner — variantes couleurs Créations ── */
.ic--recipe { background: rgba(201,123,58,.12); border: 1px solid rgba(201,123,58,.22); color: var(--caramel); }
.ic--film   { background: rgba(107,79,160,.12); border: 1px solid rgba(107,79,160,.25); color: var(--violet-clair); }
.ic--avis   { background: rgba(196,160,82,.12); border: 1px solid rgba(196,160,82,.22); color: var(--dore-clair); }
.ic--valide { background: rgba(42,122,80,.12);  border: 1px solid rgba(42,122,80,.28);  color: var(--vert-clair); }
.ic--recipe .impact-cell__val { color: var(--caramel); }
.ic--film   .impact-cell__val { color: var(--violet-clair); }
.ic--avis   .impact-cell__val { color: var(--dore-clair); }
.ic--valide .impact-cell__val { color: var(--vert-clair); }

/* ── Section headers ── */
.sec-eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sec-eyebrow__line  { width: 16px; height: 1.5px; background: var(--or-titre); opacity: .4; flex-shrink: 0; }
.sec-eyebrow__label { font-family: var(--f-title); font-size: .58rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(196,160,82,.45); }
.sec-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sec-title  { font-family: var(--f-display); font-size: 1.75rem; letter-spacing: .08em; color: #fff; line-height: 1; }
.sec-link   { font-family: var(--f-title); font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(196,160,82,.38); text-decoration: none; transition: color .2s; background: none; border: none; cursor: pointer; }
.sec-link:hover { color: var(--or-titre); }

/* ── Filter bar ── */
.filter-bar { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.filter-sep { width: 1px; height: 20px; background: rgba(255,255,255,.06); margin: 0 2px; }
.f-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 20px;
  font-family: var(--f-title); font-size: .55rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; border: 1px solid rgba(255,255,255,.07);
  background: transparent; color: rgba(232,232,232,.36);
  transition: all .18s;
}
.f-pill:hover { border-color: rgba(196,160,82,.28); color: rgba(196,160,82,.65); }
.f-pill.active { background: rgba(196,160,82,.1); border-color: rgba(196,160,82,.38); color: var(--or-titre); }
.f-pill__dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.fp--valide.active  { background: rgba(42,122,80,.1);  border-color: rgba(61,170,114,.38);  color: var(--vert-clair); }
.fp--attente.active { background: rgba(58,32,4,.1);    border-color: rgba(212,130,10,.38);  color: var(--orange-clair); }
.fp--refuse.active  { background: rgba(44,10,8,.1);    border-color: rgba(194,48,24,.38);   color: #e84020; }

/* ── Search inline ── */
.crea-search-wrap  { position: relative; flex: 1; min-width: 160px; max-width: 260px; margin-left: auto; }
.crea-search-icon  { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; stroke: rgba(232,232,232,.25); stroke-width: 1.5; fill: none; pointer-events: none; }
.crea-search-input {
  width: 100%; padding: 5px 12px 5px 30px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04);
  color: var(--argent-ecran); font-family: var(--f-body); font-size: .62rem;
  outline: none; transition: all .2s;
}
.crea-search-input::placeholder { color: rgba(232,232,232,.2); }
.crea-search-input:focus { border-color: rgba(196,160,82,.28); background: rgba(255,255,255,.06); }

/* ── Status bars (sidebar) ── */
.status-bars { padding: 14px 18px 16px; }
.status-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.status-bar-row:last-child { margin-bottom: 0; }
.sb-label { font-family: var(--f-title); font-size: .55rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; min-width: 72px; flex-shrink: 0; }
.sb-track { flex: 1; height: 5px; border-radius: 3px; background: rgba(65,90,119,.22); overflow: hidden; }
.sb-fill  { height: 100%; border-radius: 3px; transition: width 1.2s cubic-bezier(.22,1,.36,1); }
.sb-count { font-family: var(--f-display); font-size: .85rem; letter-spacing: .04em; min-width: 18px; text-align: right; flex-shrink: 0; }
.sb--valide  .sb-label { color: var(--vert-clair); }
.sb--valide  .sb-fill  { background: linear-gradient(90deg,#2a7a50,#3daa72); }
.sb--valide  .sb-count { color: var(--vert-clair); }
.sb--attente .sb-label { color: var(--orange-clair); }
.sb--attente .sb-fill  { background: linear-gradient(90deg,#a0600a,#f0a030); }
.sb--attente .sb-count { color: var(--orange-clair); }
.sb--refuse  .sb-label { color: #e84020; }
.sb--refuse  .sb-fill  { background: linear-gradient(90deg,#6b1210,#c23018); }
.sb--refuse  .sb-count { color: #e84020; }

/* ── Widget Ma progression (Vue d'ensemble sidebar) ── */
.ov-progress-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.ov-prog-row { display: flex; flex-direction: column; gap: 5px; }
.ov-prog-labels {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}
.ov-prog-label {
  font-family: var(--f-title); font-size: .55rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: rgba(232,232,232,.55);
}
.ov-prog-val {
  font-size: .55rem; color: rgba(232,232,232,.28); white-space: nowrap;
}
.ov-prog-bar-wrap {
  height: 4px; border-radius: 4px; background: rgba(255,255,255,.06);
  overflow: hidden;
}
.ov-prog-bar {
  height: 100%; border-radius: 4px; transition: width .6s ease;
}
.ov-prog-bar--valide { background: linear-gradient(90deg, rgba(40,140,85,.8), rgba(61,170,114,.9)); }
.ov-prog-bar--xp     { background: var(--gold-gradient); }
.ov-prog-pct {
  font-family: var(--f-title); font-size: .55rem; font-weight: 700;
  letter-spacing: .06em; color: rgba(196,160,82,.5); align-self: flex-end;
}
.ov-member-since {
  display: flex; align-items: center; gap: 5px;
  font-size: .58rem; color: rgba(232,232,232,.25); padding-top: 2px;
  border-top: 1px solid rgba(255,255,255,.04);
}
.ov-member-since svg {
  width: 11px; height: 11px; stroke: currentColor; stroke-width: 1.5;
  fill: none; flex-shrink: 0;
}

/* ── Quick actions ── */
.quick-actions { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.qa-btn {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 10px; border: none; cursor: pointer; width: 100%;
  text-align: left; text-decoration: none; transition: all .22s; position: relative; overflow: hidden;
}
.qa-btn::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .22s; }
.qa-btn:hover::before { opacity: 1; }
.qa-btn--gold   { background: rgba(196,160,82,.07); border: 1px solid rgba(196,160,82,.18); }
.qa-btn--gold::before { background: rgba(196,160,82,.06); }
.qa-btn--gold:hover   { border-color: rgba(196,160,82,.38); }
.qa-btn--violet { background: rgba(107,79,160,.07); border: 1px solid rgba(107,79,160,.18); }
.qa-btn--violet::before { background: rgba(107,79,160,.06); }
.qa-btn--violet:hover { border-color: rgba(107,79,160,.38); }
.qa-btn--vert   { background: rgba(42,122,80,.07); border: 1px solid rgba(42,122,80,.18); }
.qa-btn--vert::before { background: rgba(42,122,80,.06); }
.qa-btn--vert:hover   { border-color: rgba(42,122,80,.38); }
.qa-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; z-index: 1; }
.qa-icon svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.qa-btn--gold   .qa-icon { background: rgba(196,160,82,.12); border: 1px solid rgba(196,160,82,.22); color: var(--or-titre); }
.qa-btn--violet .qa-icon { background: rgba(107,79,160,.12); border: 1px solid rgba(107,79,160,.22); color: var(--violet-clair); }
.qa-btn--vert   .qa-icon { background: rgba(42,122,80,.12);  border: 1px solid rgba(42,122,80,.22);  color: var(--vert-clair); }
.qa-text { position: relative; z-index: 1; }
.qa-title { font-family: var(--f-title); font-size: .56rem; font-weight: 700; letter-spacing: .04em; color: rgba(232,232,232,.88); }
.qa-sub   { font-size: .58rem; font-weight: 300; color: rgba(232,232,232,.32); margin-top: 1px; }

/* ── Film pending list (sidebar) ── */
.film-pending-list { padding: 8px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.fpl-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; border: 1px solid rgba(255,255,255,.04); background: rgba(255,255,255,.02); transition: all .2s; }
.fpl-item:hover { border-color: rgba(196,160,82,.14); background: rgba(196,160,82,.03); }
.fpl-poster { width: 30px; height: 44px; border-radius: 5px; object-fit: cover; flex-shrink: 0; background: rgba(65,90,119,.22); }
.fpl-poster--ph { background: rgba(65,90,119,.22); }
.fpl-info  { flex: 1; min-width: 0; }
.fpl-title { font-family: var(--f-title); font-size: .56rem; font-weight: 700; letter-spacing: .03em; color: rgba(232,232,232,.88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpl-sub   { font-size: .58rem; font-weight: 300; color: rgba(232,232,232,.28); margin-top: 2px; }
.fpl-status { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 4px; font-family: var(--f-title); font-size: .55rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.fpl-status--pending { background: rgba(58,32,4,.62); border: 1px solid rgba(212,130,10,.42); color: var(--orange-clair); }
.fpl-status--valide  { background: rgba(10,34,20,.62); border: 1px solid rgba(61,170,114,.42); color: var(--vert-clair); }
.fpl-status--refuse  { background: rgba(34,8,8,.62);  border: 1px solid rgba(194,48,24,.42);  color: #e84020; }

/* ── List grid (recettes + films) ── */
.list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
/* Dans la grille 2 colonnes, les boutons passent sous le contenu */
.list-grid .list-row {
  flex-wrap: wrap;
  align-items: flex-start;
}
.list-grid .list-row__body {
  flex: 1 1 0;
  min-width: 0;
}
.list-grid .list-row__actions {
  flex: 0 0 100%;
  justify-content: flex-end;
  margin-top: 6px;
}
@media (max-width: 700px) {
  .list-grid { grid-template-columns: 1fr; }
  .list-grid .list-row { flex-wrap: nowrap; align-items: center; }
  .list-grid .list-row__actions { flex: 0 0 auto; margin-top: 0; }
}
.list-row {
  display: flex; align-items: center; gap: 14px; padding: 11px 14px;
  background: linear-gradient(135deg,rgba(10,20,34,.94),rgba(16,30,50,.9));
  border: 1px solid rgba(255,255,255,.045); border-radius: 12px;
  transition: all .25s; position: relative; overflow: hidden;
}
.list-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2.5px; border-radius: 12px 0 0 12px; opacity: .35; transition: opacity .25s;
}
.list-row:hover { border-color: rgba(196,160,82,.2); background: linear-gradient(135deg,rgba(12,24,40,.96),rgba(18,34,56,.94)); }
.list-row:hover::before { opacity: .7; }
.list-row--recette::before { background: var(--gold-gradient); }
.list-row--film::before    { background: linear-gradient(180deg,#6b4fa0,#9b79e0); }
.list-row__thumb {
  width: 52px; height: 52px; border-radius: 8px; object-fit: cover;
  flex-shrink: 0; background: rgba(65,90,119,.25);
}
.list-row__thumb--film { width: 38px; height: 56px; border-radius: 6px; }
.list-row__thumb--ph { display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.list-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.list-row__top  { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.list-row__name { font-family: var(--f-title); font-size: .62rem; font-weight: 700; letter-spacing: .03em; color: rgba(232,232,232,.92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row__sub  { font-size: .6rem; font-weight: 300; color: rgba(232,232,232,.35); display: flex; align-items: center; gap: 5px; }
.list-row__sub svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 1.5; fill: none; flex-shrink: 0; }
.lr-sub-muted { color: rgba(232,232,232,.2); }
.list-row__tags { display: flex; gap: 4px; flex-wrap: wrap; }
.list-row__actions { display: flex; gap: 5px; align-items: center; flex-shrink: 0; }

/* Tags */
/* lr-tag → modificateur compact pour les tags dans les listes — couleurs via .tag--* (base.css) */
.lr-tag { padding: 1px 6px !important; border-radius: 3px !important; font-size: .55rem !important; gap: 4px; }

/* Status badge inline */
.lr-status {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px;
  border-radius: 4px; font-family: var(--f-title); font-size: .55rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; flex-shrink: 0; white-space: nowrap;
}
.lr-status-dot { width: 4px; height: 4px; border-radius: 50%; animation: pulsedot 1.8s ease infinite; }
.lrs--valide   { background: rgba(10,34,20,.7);  border: 1px solid rgba(61,170,114,.4);  color: var(--vert-clair); }
.lrs--valide .lr-status-dot   { background: var(--vert-clair); }
.lrs--attente  { background: rgba(44,24,4,.7);   border: 1px solid rgba(212,130,10,.4);  color: var(--orange-clair); }
.lrs--attente .lr-status-dot  { background: var(--orange-clair); }
.lrs--refuse   { background: rgba(34,8,8,.7);    border: 1px solid rgba(194,48,24,.4);   color: #e84020; }

/* List row buttons */
.lr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 28px; padding: 0 11px; border-radius: 6px;
  font-family: var(--f-title); font-size: .55rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  cursor: pointer; border: none; transition: all .22s; white-space: nowrap; text-decoration: none;
}
.lr-btn svg { width: 9px; height: 9px; stroke: currentColor; stroke-width: 2; fill: none; }
.lr-btn--view   { background: rgba(65,90,119,.08); border: 1px solid rgba(65,90,119,.22); color: rgba(140,165,210,.7); }
.lr-btn--view:hover   { background: rgba(65,90,119,.18); border-color: rgba(65,90,119,.45); color: rgba(180,200,235,.9); }
.lr-btn--edit   { background: rgba(196,160,82,.08); border: 1px solid rgba(196,160,82,.22); color: var(--or-titre); }
.lr-btn--edit:hover   { background: rgba(196,160,82,.16); border-color: rgba(196,160,82,.45); color: var(--dore-clair); }
.lr-btn--edit:disabled { opacity: .4; cursor: not-allowed; }
.lr-btn--del    { background: rgba(194,48,24,.07); border: 1px solid rgba(194,48,24,.2); color: rgba(232,100,65,.8); }
.lr-btn--del:hover    { background: rgba(194,48,24,.16); border-color: rgba(194,48,24,.45); color: #e84020; }
.lr-btn--del:disabled { opacity: .4; cursor: not-allowed; }
.lr-btn--violet { background: rgba(107,79,160,.08); border: 1px solid rgba(107,79,160,.22); color: var(--violet-clair); }
.lr-btn--violet:hover { background: rgba(107,79,160,.18); border-color: rgba(107,79,160,.45); }

/* ── Avis grid (design moodboard) ── */
.avis-grid { display: flex; flex-direction: column; gap: 8px; }
.avis-card {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px;
  background: linear-gradient(135deg,rgba(10,20,34,.94),rgba(16,30,50,.9));
  border: 1px solid rgba(255,255,255,.045); border-radius: 12px;
  transition: all .25s; position: relative; overflow: hidden;
}
.avis-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2.5px; background: var(--gold-gradient); opacity: .35;
  border-radius: 12px 0 0 12px;
}
.avis-card:hover { border-color: rgba(196,160,82,.2); background: linear-gradient(135deg,rgba(12,24,40,.96),rgba(18,34,56,.94)); }
.avis-card:hover::before { opacity: .7; }
.avis-icon {
  width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
  background: rgba(196,160,82,.08); border: 1px solid rgba(196,160,82,.18); color: var(--or-titre);
}
.avis-icon svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.avis-body  { flex: 1; min-width: 0; }
.avis-top   { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.avis-titles {}
.avis-recipe-name { font-family: var(--f-title); font-size: .6rem; font-weight: 700; letter-spacing: .03em; color: rgba(232,232,232,.92); margin-bottom: 2px; }
.avis-film-link   { font-size: .6rem; font-weight: 300; color: rgba(196,160,82,.5); font-style: italic; }
.avis-stars-row   { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.avis-score { display: flex; align-items: center; gap: 1px; }
.avis-score .star     { font-size: .62rem; color: rgba(65,90,119,.42); }
.avis-score .star--on { color: var(--or-titre); }
.avis-score-val { font-family: var(--f-display); font-size: 1.1rem; letter-spacing: .04em; color: var(--dore-clair); }
.avis-quote  { font-family: var(--f-editorial); font-size: .74rem; font-style: italic; color: rgba(232,232,232,.55); line-height: 1.6; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.avis-footer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.avis-status-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 4px; font-family: var(--f-title); font-size: .55rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ab--valide  { background: rgba(10,34,20,.62); border: 1px solid rgba(61,170,114,.42); color: var(--vert-clair); }
.ab--attente { background: rgba(58,32,4,.62);  border: 1px solid rgba(212,130,10,.42); color: var(--orange-clair); }
.ab--refuse  { background: rgba(60,10,10,.62); border: 1px solid rgba(194,48,24,.42);  color: rgba(232,100,65,.9); }
.avis-date   { font-size: .58rem; font-weight: 300; color: rgba(232,232,232,.22); margin-left: auto; }
.avis-del-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 5px;
  background: rgba(194,48,24,.07); border: 1px solid rgba(194,48,24,.2); color: rgba(232,100,65,.7);
  font-family: var(--f-title); font-size: .55rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; cursor: pointer; transition: all .2s; flex-shrink: 0;
}
.avis-del-btn:hover { background: rgba(194,48,24,.16); border-color: rgba(194,48,24,.45); color: #e84020; }
.avis-del-btn svg { width: 9px; height: 9px; stroke: currentColor; stroke-width: 2; fill: none; }

/* ── Empty state ── */
.crea-empty       { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; text-align: center; gap: 8px; }
.crea-empty__icon { font-size: 2.2rem; opacity: .3; }
.crea-empty__title{ font-family: var(--f-title); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(232,232,232,.3); }
.crea-empty__sub  { font-size: .6rem; font-weight: 300; color: rgba(232,232,232,.18); }
.crea-no-results  { padding: 16px; text-align: center; font-size: .62rem; color: rgba(232,232,232,.22); }

/* ── Responsive créations ── */
@media (max-width: 1200px) {
  .crea-layout { grid-template-columns: 260px 1fr; gap: 18px; }
}
@media (max-width: 900px) {
  .crea-layout { grid-template-columns: 1fr; }
  .crea-sidebar { order: 2; }
  .crea-main    { order: 1; }
  .list-row__actions .lr-btn span { display: none; }
  .lr-btn { padding: 0 8px; }
  .crea-search-wrap { min-width: 120px; }
  .pf-row { flex-direction: column; }
}

/* ════════════════════════════════════════════════════════════════
   CARD SUPPRIMER MON COMPTE — gradient rouge, shimmer, cohérence
   avec .fcard--cta__link (movies.css)
═══════════════════════════════════════════════════════════════ */
.delacc-card {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(135deg, #5c0b05 0%, #8b1c13 28%, #c23018 58%, #d43a20 80%, #e04422 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 18px 44px rgba(194, 48, 24, 0.28),
    0 6px 18px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform .32s cubic-bezier(.22,1,.36,1),
              box-shadow .32s ease,
              border-color .32s ease;
}
.delacc-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 26px 60px rgba(194, 48, 24, 0.45),
    0 10px 24px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Shimmer diagonal au hover */
.delacc-card__shimmer {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; overflow: hidden;
  border-radius: inherit;
}
.delacc-card__shimmer::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: translateX(-120%) skewX(-18deg);
}
.delacc-card:hover .delacc-card__shimmer::after {
  animation: delaccShimmer .8s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes delaccShimmer {
  0%   { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(320%)  skewX(-18deg); }
}

/* Inner layout */
.delacc-card__inner {
  position: relative; z-index: 2;
  padding: 22px 20px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.delacc-card__head {
  display: flex; align-items: flex-start; gap: 12px;
}
.delacc-card__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.delacc-card__icon svg {
  width: 20px; height: 20px;
}
.delacc-card__titles {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
  padding-top: 1px;
}
.delacc-card__eyebrow {
  font-family: var(--f-title, "Cinzel", serif);
  font-size: .58rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255, 210, 200, 0.75);
  margin: 0;
}
.delacc-card__title {
  font-family: var(--f-display, "Bebas Neue", sans-serif);
  font-size: 1.35rem; letter-spacing: .05em; line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  margin: 0;
}
.delacc-card__title em {
  display: block; font-style: normal;
  color: rgba(255, 218, 200, 0.82);
  font-size: .86em;
  margin-top: 1px;
}
.delacc-card__desc {
  font-size: .78rem; line-height: 1.55; font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}
.delacc-card__desc strong {
  color: #fff; font-weight: 700;
}

/* CTA — noir translucide au repos, blanc plein au hover */
.delacc-card__cta {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-family: var(--f-title, "Cinzel", serif);
  font-size: .62rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  cursor: pointer;
  transition: background .25s ease,
              color .25s ease,
              transform .2s ease,
              border-color .25s ease,
              box-shadow .3s ease;
}
.delacc-card__cta:hover {
  background: #fff;
  color: #8b1c13;
  border-color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.38);
}
.delacc-card__cta:active {
  transform: translateY(0);
}
.delacc-card__cta svg {
  width: 14px; height: 14px;
  transition: transform .25s ease;
}
.delacc-card__cta:hover svg {
  transform: translateX(-1px) rotate(-4deg);
}

/* Sidebar étroite — resserrer un chouïa */
@media (max-width: 640px) {
  .delacc-card__inner { padding: 20px 18px 18px; }
  .delacc-card__title { font-size: 1.25rem; }
}

/* ════════════════════════════════════════════════════════════════
   CONTRIBUTIONS TAB — BENTO LAYOUT v2
   Hero (Cadre actif · XP hub · Streak) + Main (Timeline · Milestone)
   + Frames gallery
═══════════════════════════════════════════════════════════════ */

/* ── Hero bento : 3 blocs ── */
.ctb-hero {
  margin-top: 48px;
  margin-bottom: 24px;
  padding-top: 40px;
  border-top: 1px solid rgba(196,160,82,.14);
  position: relative;
}
.ctb-hero::before {
  content: "";
  position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196,160,82,.5) 30%, rgba(255,224,133,.6) 50%, rgba(196,160,82,.5) 70%, transparent);
}

/* Bloc unifié avec séparateurs dorés */
.ctb-hero__unified {
  position: relative;
  display: flex;
  align-items: stretch;
  background: linear-gradient(160deg, rgba(10,20,34,.98), rgba(16,30,50,.96));
  border: 1.5px solid rgba(196,160,82,.16);
  border-radius: 16px;
  overflow: hidden;
}
.ctb-hero__unified::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--gold-gradient);
  opacity: .35;
  z-index: 1;
}

/* Sections internes */
.ctb-hero__section {
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.ctb-hero__section--frame  { flex: 1; }
.ctb-hero__section--xp     { flex: 1.5; background: linear-gradient(160deg, rgba(16,28,48,.5), rgba(24,40,66,.4) 70%); }
.ctb-hero__section--streak { flex: 0.85; }

/* Séparateur doré vertical */
.ctb-hero__sep {
  width: 1px;
  flex-shrink: 0;
  margin: 0;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(196,160,82,.55) 15%,
    rgba(196,160,82,.55) 85%,
    transparent 100%
  );
}

/* Rétro-compat pour les anciens selectors CSS qui ciblaient .ctb-hero__block */
.ctb-hero__block { display: flex; flex-direction: column; gap: 14px; }
.ctb-hero__eyebrow {
  font-family: var(--f-title);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(196,160,82,.55);
  margin: 0;
}

/* Bloc 1 : Cadre équipé — reprend .active-frame-* existants */
.ctb-hero__block--frame .active-frame-body {
  padding: 0;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  text-align: left;
}
.ctb-hero__block--frame .active-frame-preview,
.ctb-hero__block--frame .active-frame-preview-icon {
  width: 76px; height: 76px;
}
.ctb-hero__block--frame .active-frame-preview .bsp {
  width: 44px; height: 44px;
  top: 16px; left: 16px;
}
.ctb-hero__block--frame .active-frame-preview--noframe::after {
  mask: radial-gradient(circle at 50% 50%, transparent 24px, black 25px, black 27px, transparent 28px);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 24px, black 25px, black 27px, transparent 28px);
}
.ctb-hero__block--frame .active-frame-meta {
  text-align: left;
  min-width: 0;
  flex: 1;
}
.ctb-hero__frame-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(196,160,82,.08);
  border: 1px solid rgba(196,160,82,.22);
  color: rgba(196,160,82,.88);
  font-family: var(--f-title);
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.ctb-hero__frame-cta:hover {
  background: rgba(196,160,82,.16);
  border-color: rgba(196,160,82,.45);
  color: var(--or-titre);
  transform: translateY(-1px);
}
.ctb-hero__frame-cta svg {
  width: 12px; height: 12px;
  transition: transform .22s ease;
}
.ctb-hero__frame-cta:hover svg { transform: translateX(3px); }

/* Bloc 2 : XP hub — emphase centrale */
.ctb-hero__block--xp {
  background: linear-gradient(160deg, rgba(16,28,48,.98), rgba(24,40,66,.96) 70%, rgba(32,50,82,.94));
  border-color: rgba(196,160,82,.18);
}
.ctb-hero__block--xp::after {
  content: "";
  position: absolute;
  right: -40px; bottom: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,160,82,.08) 0%, transparent 70%);
  pointer-events: none;
}
.ctb-hero__xp-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ctb-hero__lvl-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(196,160,82,.22), rgba(196,160,82,.08));
  border: 1px solid rgba(196,160,82,.4);
  font-family: var(--f-title);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--dore-clair, #f2e5c2);
}
.ctb-hero__rank {
  font-family: var(--f-title);
  font-size: .56rem;
  font-style: italic;
  color: rgba(232,232,232,.55);
  letter-spacing: .04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}
.ctb-hero__xp-num {
  display: flex;
  align-items: baseline;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.ctb-hero__xp-val {
  font-family: var(--f-display);
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: .03em;
  color: var(--dore-clair, #f2e5c2);
  text-shadow: 0 2px 16px rgba(196,160,82,.25);
}
.ctb-hero__xp-unit {
  font-family: var(--f-title);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: rgba(196,160,82,.6);
}
.ctb-hero__xp-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.ctb-hero__xp-progress .xp-track {
  width: 100%;
}
.ctb-hero__xp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ctb-hero__xp-left {
  font-size: .55rem;
  color: rgba(232,232,232,.45);
  letter-spacing: .04em;
}
.ctb-hero__xp-left strong {
  color: var(--dore-clair, #f2e5c2);
  font-weight: 700;
}
.ctb-hero__xp-pct {
  font-family: var(--f-display);
  font-size: .95rem;
  color: var(--or-titre);
  letter-spacing: .04em;
}

/* ── MÉDAILLON DE NIVEAU v2 ──────────────────────────────── */
.level-medallion {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  cursor: default;
}

/* Anneau extérieur métallique */
.level-medallion__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 8px; /* épaisseur du ring */
  background: conic-gradient(from -30deg,
    #5A4010 0%, #C4A052 18%, #FFE085 30%,
    #C4A052 42%, #7A5A14 55%, #C4A052 68%,
    #FFE085 80%, #C4A052 92%, #5A4010 100%
  );
  box-shadow:
    0 0 0 1.5px rgba(242,200,75,.18),      /* liseré extérieur fin */
    inset 0 0 0 1px rgba(255,255,255,.08); /* liseré intérieur */
}
/* Reflet lumineux sur le ring */
.level-medallion__ring::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: conic-gradient(from 200deg,
    transparent 0%, rgba(255,255,255,.18) 15%,
    transparent 30%, transparent 100%
  );
  pointer-events: none;
}

/* Face intérieure sombre */
.level-medallion__face {
  width: 100%; height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,220,80,.06) 0%, transparent 50%),
    radial-gradient(circle, #1e1508 0%, #100c04 45%, #060502 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    inset 0 0 0 2px rgba(242,200,75,.12),
    inset 0 3px 12px rgba(0,0,0,.7),
    inset 0 -1px 4px rgba(255,200,50,.05);
}

/* Numéro */
.level-medallion__num {
  font-family: var(--f-display);
  font-size: 4rem;
  line-height: 1;
  background: linear-gradient(170deg,
    #FFF0A0 0%, #FFE085 20%,
    #F2C84B 50%, #C4A052 75%, #8B6A20 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.65));
  position: relative; z-index: 1;
}

/* Gemmes cardinales — plus grandes et visibles */
.level-medallion__gem {
  position: absolute;
  width: 18px; height: 18px;
  transform: rotate(45deg);
  left: 50%; margin-left: -9px;
  z-index: 3;
  border-radius: 2px;
}
.level-medallion__gem--top    { top: -5px; }
.level-medallion__gem--bottom { bottom: -5px; }
/* Reflet interne sur la gemme */
.level-medallion__gem::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: rgba(255,255,255,.35);
  border-radius: 1px;
}

/* Hover */
.level-medallion:hover { transform: translateY(-2px); transition: transform .3s ease; }
.level-medallion:hover .level-medallion__ring { filter: brightness(1.18) saturate(1.1); }

/* ── ANIMATIONS IDLE ── */
@keyframes medallion-glow-gold {
  0%,100% { filter: drop-shadow(0 0 12px rgba(242,200,75,.40)) drop-shadow(0 4px 20px rgba(196,160,82,.22)); }
  50%      { filter: drop-shadow(0 0 20px rgba(242,200,75,.70)) drop-shadow(0 4px 32px rgba(196,160,82,.38)); }
}
@keyframes medallion-glow-bronze {
  0%,100% { filter: drop-shadow(0 0 12px rgba(196,135,74,.40)) drop-shadow(0 4px 20px rgba(140,80,30,.22)); }
  50%      { filter: drop-shadow(0 0 20px rgba(196,135,74,.70)) drop-shadow(0 4px 32px rgba(140,80,30,.38)); }
}
@keyframes medallion-glow-silver {
  0%,100% { filter: drop-shadow(0 0 10px rgba(160,180,192,.35)) drop-shadow(0 4px 18px rgba(100,130,148,.18)); }
  50%      { filter: drop-shadow(0 0 18px rgba(160,180,192,.65)) drop-shadow(0 4px 28px rgba(100,130,148,.32)); }
}
@keyframes medallion-glow-legendary {
  0%,100% { filter: drop-shadow(0 0 14px rgba(155,126,208,.50)) drop-shadow(0 4px 24px rgba(196,160,82,.22)); }
  50%      { filter: drop-shadow(0 0 24px rgba(155,126,208,.85)) drop-shadow(0 4px 40px rgba(196,160,82,.40)); }
}

/* ── VARIANTES ── */
/* Bronze */
.level-medallion--bronze { animation: medallion-glow-bronze 3.2s ease-in-out infinite; }
.level-medallion--bronze .level-medallion__ring {
  background: conic-gradient(from -30deg,
    #3A2010 0%, #C4874A 18%, #F0C080 30%,
    #C4874A 42%, #5A3018 55%, #C4874A 68%,
    #F0C080 80%, #C4874A 92%, #3A2010 100%
  );
}
.level-medallion--bronze .level-medallion__face {
  background:
    radial-gradient(circle at 35% 28%, rgba(200,100,40,.07) 0%, transparent 50%),
    radial-gradient(circle, #1a0e06 0%, #0d0804 45%, #060402 100%);
  box-shadow: inset 0 0 0 2px rgba(196,135,74,.12), inset 0 3px 12px rgba(0,0,0,.7);
}
.level-medallion--bronze .level-medallion__num {
  background: linear-gradient(170deg, #F8D0A0 0%, #E8A060 30%, #C4874A 60%, #7A4018 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.level-medallion--bronze .level-medallion__gem {
  background: linear-gradient(135deg, #F0A060, #A05020);
  box-shadow: 0 0 10px rgba(196,135,74,.85), 0 0 20px rgba(196,135,74,.40);
}

/* Argent */
.level-medallion--silver { animation: medallion-glow-silver 3.5s ease-in-out infinite; }
.level-medallion--silver .level-medallion__ring {
  background: conic-gradient(from -30deg,
    #28384A 0%, #A0B4C0 18%, #F0F6FA 30%,
    #A0B4C0 42%, #28384A 55%, #A0B4C0 68%,
    #F0F6FA 80%, #A0B4C0 92%, #28384A 100%
  );
}
.level-medallion--silver .level-medallion__face {
  background:
    radial-gradient(circle at 35% 28%, rgba(160,200,230,.06) 0%, transparent 50%),
    radial-gradient(circle, #121c24 0%, #080e16 45%, #040810 100%);
  box-shadow: inset 0 0 0 2px rgba(160,180,192,.12), inset 0 3px 12px rgba(0,0,0,.7);
}
.level-medallion--silver .level-medallion__num {
  background: linear-gradient(170deg, #FAFEFF 0%, #D0E0EA 30%, #A0B8C8 60%, #607080 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.level-medallion--silver .level-medallion__gem {
  background: linear-gradient(135deg, #E8F4FC, #6080A0);
  box-shadow: 0 0 10px rgba(160,180,192,.80), 0 0 20px rgba(160,180,192,.38);
}

/* Or — défaut */
.level-medallion--gold { animation: medallion-glow-gold 3s ease-in-out infinite; }
.level-medallion--gold .level-medallion__gem {
  background: linear-gradient(135deg, #FFE8A0, #8B6014);
  box-shadow: 0 0 10px rgba(242,200,75,.90), 0 0 22px rgba(196,160,82,.45);
}

/* Légendaire */
.level-medallion--legendary { animation: medallion-glow-legendary 2.8s ease-in-out infinite; }
.level-medallion--legendary .level-medallion__ring {
  background: conic-gradient(from -30deg,
    #5A4010 0%, #C4A052 15%, #9B7ED0 28%,
    #C4A052 40%, #5A4010 55%, #C4A052 68%,
    #B89AE8 80%, #F2C84B 92%, #5A4010 100%
  );
}
.level-medallion--legendary .level-medallion__face {
  background:
    radial-gradient(circle at 35% 28%, rgba(155,126,208,.10) 0%, transparent 50%),
    radial-gradient(circle, #180e2c 0%, #0c0618 45%, #060210 100%);
  box-shadow: inset 0 0 0 2px rgba(155,126,208,.18), inset 0 3px 12px rgba(0,0,0,.72);
}
.level-medallion--legendary .level-medallion__num {
  background: linear-gradient(170deg, #F2C84B 0%, #D4A843 25%, #9B7ED0 60%, #C4A052 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.level-medallion--legendary .level-medallion__gem {
  background: linear-gradient(135deg, #E8C050, #9B7ED0);
  box-shadow: 0 0 12px rgba(155,126,208,.90), 0 0 24px rgba(155,126,208,.48);
}

/* ── Layout XP bloc avec médaillon ── */
.ctb-hero__xp-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}
.ctb-hero__xp-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ctb-hero__xp-label {
  font-family: var(--f-title);
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(196,160,82,.65);
}
.ctb-hero__lvl-name {
  font-family: var(--f-display);
  font-size: 2.4rem;
  letter-spacing: .06em;
  line-height: 1;
  color: var(--dore-clair, #f2e5c2);
}
.ctb-hero__xp-ratio {
  font-size: .58rem;
  color: rgba(232,232,232,.45);
}
.ctb-hero__xp-ratio strong { color: var(--dore-clair); font-weight: 700; }

/* Prochain palier */
.ctb-hero__next-tier {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.ctb-hero__next-label {
  font-family: var(--f-title);
  font-size: .44rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(196,160,82,.38);
}
.ctb-hero__next-lvl {
  font-family: var(--f-title);
  font-size: .58rem;
  font-weight: 600;
  color: rgba(232,232,232,.65);
}
.ctb-hero__next-reward {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  font-size: .52rem;
  color: rgba(196,160,82,.55);
}
.ctb-hero__next-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(196,160,82,.3);
}
.ctb-hero__next-reward-name {
  color: var(--or-titre);
  font-weight: 600;
  font-size: .55rem;
}

/* Bloc 3 : Streak + cadres débloqués */
.ctb-hero__block--streak {
  background: linear-gradient(160deg, rgba(28,14,8,.94), rgba(48,20,10,.86));
  border-color: rgba(201,123,58,.22);
}
.ctb-hero__flame {
  position: absolute;
  top: 10px; right: 14px;
  width: 24px; height: 28px;
  pointer-events: none;
  opacity: .6;
}
.ctb-hero__flame .flame {
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 20% 20%;
  background: radial-gradient(ellipse at 50% 100%, #ffb347 0%, #ff6b1a 45%, transparent 80%);
  transform-origin: 50% 100%;
  animation: ctbFlame 1.4s ease-in-out infinite;
  filter: blur(.5px);
}
.ctb-hero__flame .flame--2 { animation-delay: -.3s; opacity: .6; transform: scale(.8); }
.ctb-hero__flame .flame--3 { animation-delay: -.6s; opacity: .4; transform: scale(.6); }
@keyframes ctbFlame {
  0%,100% { transform: scaleY(1) scaleX(1); opacity: 1; }
  50%     { transform: scaleY(1.12) scaleX(.92); opacity: .75; }
}
/* Section streak agrandie pour accueillir milestone + guide */
.ctb-hero__section--streak { flex: 1.1; }

.ctb-hero__streak-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
/* Séparateur interne vertical dans streak-row */
.ctb-hero__streak-sep {
  width: 1px; height: 30px;
  background: rgba(196,160,82,.2);
  margin: 0 4px;
}

/* ── Milestone compact ── */
.ctb-hero__milestone-compact {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(196,160,82,.06);
  border: 1px solid rgba(196,160,82,.15);
  display: flex; flex-direction: column; gap: 4px;
}
.ctb-hero__milestone-title {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--f-title); font-size: .55rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--or-titre);
}
.ctb-hero__milestone-title svg { color: rgba(196,160,82,.6); flex-shrink: 0; }
.ctb-hero__milestone-xp {
  font-size: .6rem; color: rgba(232,232,232,.55);
}
.ctb-hero__milestone-xp strong { color: var(--dore-clair); }
.ctb-hero__milestone-reward {
  font-size: .55rem; color: rgba(196,160,82,.55);
  display: flex; align-items: center; gap: 5px;
}

/* ── Guide XP compact ── */
.ctb-hero__xp-guide-compact {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: auto;
}
.ctb-hero__xp-guide-title {
  font-family: var(--f-title); font-size: .44rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(196,160,82,.35); margin-bottom: 2px;
}
.ctb-hero__xp-guide-rows { display: flex; flex-direction: column; gap: 4px; }
.ctb-hero__xp-guide-row {
  display: flex; align-items: center; gap: 7px;
  font-size: .58rem; color: rgba(232,232,232,.5);
}
.ctb-hero__xp-guide-row svg { color: rgba(196,160,82,.45); flex-shrink: 0; }
.ctb-hero__xp-guide-row span { flex: 1; }
.ctb-hero__xp-guide-row strong { color: var(--dore-clair); font-weight: 700; font-size: .6rem; }
.ctb-hero__streak-big {
  font-family: var(--f-display);
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--caramel, #c97b3a);
  text-shadow: 0 2px 14px rgba(201,123,58,.3);
}
.ctb-hero__streak-lblwrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ctb-hero__streak-lbl {
  font-family: var(--f-title);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(232,232,232,.72);
}
.ctb-hero__streak-sub {
  font-size: .58rem;
  color: rgba(232,232,232,.32);
  letter-spacing: .06em;
}
.ctb-hero__streak-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,123,58,.22), transparent);
}
.ctb-hero__frames-count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
}
.ctb-hero__frames-n {
  font-family: var(--f-display);
  font-size: 1.2rem;
  letter-spacing: .04em;
  color: rgba(232,232,232,.88);
}
.ctb-hero__frames-n em {
  font-style: normal;
  color: rgba(232,232,232,.32);
  font-size: .85em;
}
.ctb-hero__frames-l {
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(232,232,232,.35);
  font-weight: 300;
}

/* ── Main : timeline 2/3 + sidebar 1/3 ── */
/* Timeline pleine largeur — sidebar supprimée */
.ctb-timeline-col--full { width: 100%; min-width: 0; margin-bottom: 28px; }

/* ── Timeline grid 2-3 colonnes ── */
.ctb-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px 14px;
  position: relative;
}
.ctb-tl-item {
  display: flex;
  gap: 0;
  opacity: 0;
  animation: ctbTlIn .42s cubic-bezier(.22,1,.36,1) forwards;
}
/* Rail masqué en mode grid */
.ctb-tl-rail { display: none; }
.ctb-tl-item:last-child .ctb-tl-line { display: none; }
@keyframes ctbTlIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ctb-tl-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18px;
}
.ctb-tl-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: currentColor;
  border: 2px solid rgba(10,20,34,1);
  box-shadow: 0 0 0 2px currentColor, 0 0 14px currentColor;
  flex-shrink: 0;
  z-index: 2;
}
.ctb-tl-item[data-type="recipe"]  .ctb-tl-dot { color: var(--caramel, #c97b3a); }
.ctb-tl-item[data-type="notice"]  .ctb-tl-dot { color: var(--or-titre); }
.ctb-tl-item[data-type="movie"]   .ctb-tl-dot { color: var(--violet-clair, #9b79e0); }
.ctb-tl-item[data-type="comment"] .ctb-tl-dot { color: rgba(140,180,225,.85); }
.ctb-tl-line {
  width: 1.5px;
  flex: 1;
  background: linear-gradient(180deg, rgba(196,160,82,.22), rgba(196,160,82,.04));
  margin-top: 4px;
  min-height: 18px;
}
.ctb-tl-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  margin-bottom: 0;
  width: 100%;
  background: linear-gradient(135deg, rgba(10,20,34,.94), rgba(16,30,50,.9));
  border: 1px solid rgba(255,255,255,.045);
  border-radius: 12px;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
  position: relative;
  overflow: hidden;
}
.ctb-tl-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2.5px;
  background: currentColor;
  border-radius: 12px 0 0 12px;
  opacity: .28;
  transition: opacity .25s ease;
}
.ctb-tl-item:hover .ctb-tl-card {
  transform: translateX(2px);
  background: linear-gradient(135deg, rgba(12,24,40,.96), rgba(18,34,56,.94));
}
.ctb-tl-item:hover .ctb-tl-card::before { opacity: .65; }
/* Hover border : couleur selon le type */
.ctb-tl-item[data-type="recipe"]:hover  .ctb-tl-card { border-color: rgba(201,123,58,.28); }
.ctb-tl-item[data-type="notice"]:hover  .ctb-tl-card { border-color: rgba(196,160,82,.28); }
.ctb-tl-item[data-type="movie"]:hover   .ctb-tl-card { border-color: rgba(155,121,224,.28); }
.ctb-tl-item[data-type="comment"]:hover .ctb-tl-card { border-color: rgba(140,180,225,.28); }
/* Couleur icon par type */
.ctb-tl-item[data-type="recipe"]  .ctb-tl-card { color: var(--caramel, #c97b3a); }
.ctb-tl-item[data-type="notice"]  .ctb-tl-card { color: var(--or-titre); }
.ctb-tl-item[data-type="movie"]   .ctb-tl-card { color: var(--violet-clair, #9b79e0); }
.ctb-tl-item[data-type="comment"] .ctb-tl-card { color: rgba(140,180,225,.85); }
.ctb-tl-item.hidden { display: none; }

.ctb-tl-card .activity-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid;
  background: rgba(255,255,255,.02);
}
.ctb-tl-card .activity-icon svg {
  width: 15px; height: 15px;
  stroke: currentColor; stroke-width: 1.5; fill: none;
}
.ctb-tl-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ctb-tl-title {
  font-family: var(--f-title);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: rgba(232,232,232,.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ctb-tl-sub {
  font-size: .55rem;
  font-weight: 300;
  color: rgba(232,232,232,.38);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ctb-tl-time {
  font-size: .58rem;
  color: rgba(232,232,232,.22);
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: .04em;
}
.ctb-tl-time svg {
  width: 9px; height: 9px;
  stroke: currentColor; stroke-width: 1.8; fill: none;
}
.ctb-tl-xp {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 2px;
  padding-left: 10px;
  border-left: 1px dashed rgba(196,160,82,.15);
}
.ctb-tl-xp__val {
  font-family: var(--f-display);
  font-size: 1.1rem;
  letter-spacing: .04em;
  color: var(--dore-clair, #f2e5c2);
  line-height: 1;
}
.ctb-tl-xp__lbl {
  font-size: .55rem;
  font-weight: 300;
  color: rgba(196,160,82,.4);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ── Milestone card (trading card gold) ── */
.ctb-milestone {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(135deg, #5a4118 0%, #876027 30%, #c4a052 62%, #e3c77a 100%);
  border: 1px solid rgba(255,230,170,.28);
  box-shadow:
    0 18px 44px rgba(196,160,82,.22),
    0 6px 18px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.14);
  overflow: hidden;
  transition: transform .32s cubic-bezier(.22,1,.36,1), box-shadow .32s ease;
}
.ctb-milestone:hover {
  transform: translateY(-3px);
  box-shadow:
    0 26px 60px rgba(196,160,82,.38),
    0 10px 24px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.2);
}
.ctb-milestone__shimmer {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; overflow: hidden;
  border-radius: inherit;
}
.ctb-milestone__shimmer::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transform: translateX(-120%) skewX(-18deg);
}
.ctb-milestone:hover .ctb-milestone__shimmer::after {
  animation: ctbMsShimmer .9s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes ctbMsShimmer {
  0%   { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(320%)  skewX(-18deg); }
}
.ctb-milestone__inner {
  position: relative;
  z-index: 2;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ctb-milestone__eyebrow {
  font-family: var(--f-title);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(60,40,10,.8);
  margin: 0;
}
.ctb-milestone__title {
  font-family: var(--f-display);
  font-size: 1.4rem;
  letter-spacing: .05em;
  line-height: 1.05;
  color: #2a1f0a;
  text-shadow: 0 1px 0 rgba(255,240,200,.3);
  margin: 0;
}
.ctb-milestone__title em {
  display: block;
  font-style: normal;
  font-size: .62em;
  letter-spacing: .08em;
  color: rgba(60,40,10,.72);
  margin-top: 3px;
}
.ctb-milestone__xp {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
}
.ctb-milestone__xp-num {
  font-family: var(--f-display);
  font-size: 1.4rem;
  letter-spacing: .04em;
  color: #2a1f0a;
  line-height: 1;
}
.ctb-milestone__xp-lbl {
  font-family: var(--f-title);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(60,40,10,.62);
}
.ctb-milestone__rewards {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ctb-milestone__reward {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 9px;
}
.ctb-milestone__reward-ico {
  font-size: 1.15rem;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.2));
}
.ctb-milestone__reward-title {
  font-family: var(--f-title);
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #2a1f0a;
}
.ctb-milestone__reward-sub {
  font-size: .58rem;
  font-weight: 300;
  color: rgba(60,40,10,.68);
}

/* Guide XP widget — juste un petit padding override */
.ctb-xpguide-widget { margin-bottom: 0; }

/* ── Frames section (gallery bento) ── */
.ctb-frames-section { margin-bottom: 24px; }

/* ── En-tête Collection de cadres ── */
.cfc-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-bottom: 20px;
}
.cfc-header__left {
  display: flex; align-items: flex-start; gap: 12px;
}
.cfc-header__left > i { color: var(--or-titre); margin-top: 2px; flex-shrink: 0; }
.cfc-header__title {
  font-family: var(--f-display);
  font-size: 1.3rem; letter-spacing: .08em;
  color: var(--argent-ecran); margin: 0 0 3px;
}
.cfc-header__sub {
  font-size: .65rem; font-weight: 300;
  color: rgba(232,232,232,.38); margin: 0;
}
.cfc-header__count {
  font-family: var(--f-title); font-size: .55rem; font-weight: 700;
  letter-spacing: .08em; color: rgba(232,232,232,.45);
  white-space: nowrap; padding-top: 4px;
}
.cfc-header__count strong { color: var(--or-titre); }

/* ── Grille de cartes cadres ── */
.cf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  padding-top: 16px; /* espace pour le pill ACTUEL qui déborde en haut */
}

/* ── Card "À venir" ── */
.cf-card.cf-card--coming-soon {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 20px 14px;
  border-radius: 14px; overflow: hidden;
  background: linear-gradient(145deg, #8b6914 0%, #b8882a 22%, #c4a052 42%, #d4a843 55%, #f2c84b 68%, #d4a843 80%, #b8882a 100%);
  border: none;
  box-shadow: 0 8px 32px rgba(184,136,42,.35), 0 4px 16px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.25);
  text-align: center; cursor: default;
}
.cf-card.cf-card--coming-soon::before { background: none; }
.cf-card--coming-soon::before {
  content: '';
  position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242,200,75,.8) 30%, rgba(255,224,133,.9) 50%, rgba(242,200,75,.8) 70%, transparent);
}
.cf-card__coming-shimmer {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,220,80,.06) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: comingShimmer 3s ease-in-out infinite;
}
@keyframes comingShimmer {
  0%, 100% { background-position: 200% 0; }
  50%       { background-position: -200% 0; }
}
.cf-card__coming-img-wrap {
  position: relative; z-index: 1;
  width: 80px; height: 80px; flex-shrink: 0;
}
.cf-card__coming-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 1px solid rgba(196,160,82,.3);
}
.cf-card__coming-img-placeholder {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.15);
  border: 1px dashed rgba(0,0,0,.25);
  color: rgba(0,0,0,.5);
}
.cf-card__coming-body { position: relative; z-index: 1; }
.cf-card__coming-eyebrow {
  display: inline-block; margin-bottom: 8px;
  font-family: var(--font-title); font-size: 0.62rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(0,0,0,.7);
}
.cf-card__coming-text {
  font-size: 0.68rem; font-weight: 400; line-height: 1.55;
  color: rgba(0,0,0,.55); margin-bottom: 12px;
}
.cf-card__coming-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 10px 16px; border-radius: 9px; text-decoration: none;
  font-family: var(--font-title); font-size: 0.68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #fff;
  background: rgba(10,16,28,.55);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.08);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.cf-card__coming-btn:hover {
  background: rgba(10,16,28,.72);
  border-color: rgba(255,255,255,.28);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.1);
}

/* ── Carte cadre ── */
.cf-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  padding: 20px 14px 16px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(10,20,36,.99), rgba(16,30,50,.98));
  border: 1.5px solid rgba(196,160,82,.28);
  cursor: pointer;
  transition: border-color .28s, transform .28s, box-shadow .28s;
  box-shadow:
    0 0 0 1px rgba(196,160,82,.05),
    inset 0 0 0 1px rgba(196,160,82,.04),
    inset 0 1px 0 rgba(255,240,180,.05),
    0 8px 28px rgba(0,0,0,.45);
  overflow: visible; /* pill ACTUEL déborde en haut — ne pas clipper */
}
/* Barre dorée haut — centrée */
.cf-card::before {
  content: '';
  position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242,200,75,.6) 30%, rgba(255,224,133,.7) 50%, rgba(242,200,75,.6) 70%, transparent);
  border-radius: 0 0 1px 1px;
  z-index: 1;
}
.cf-card:hover:not(.cf-card--active) {
  border-color: rgba(196,160,82,.55);
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(196,160,82,.12),
    inset 0 0 0 1px rgba(196,160,82,.08),
    inset 0 1px 0 rgba(255,240,180,.08),
    0 0 18px rgba(196,160,82,.12),
    0 16px 40px rgba(0,0,0,.55);
}

/* Carte active — border doré visible + halo lumineux + fond ambré */
/* Note: .frame-row--active force du bleu en !important → on surcharge avec sélecteur double */
.cf-card.cf-card--active,
.cf-card--active {
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(196,160,82,.18) 0%, transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(196,160,82,.10) 0%, transparent 65%),
    linear-gradient(160deg, rgba(14,24,42,.99) 0%, rgba(12,22,38,.99) 100%) !important;
  border: 2px solid rgba(196,160,82,.92) !important;
  border-color: rgba(196,160,82,.92) !important;
  box-shadow:
    0 0 0 1px rgba(242,200,75,.25),
    inset 0 0 0 1px rgba(242,200,75,.15),
    inset 0 0 40px rgba(196,160,82,.10),
    inset 0 1px 0 rgba(255,240,180,.25),
    0 0 24px rgba(196,160,82,.28),
    0 0 48px rgba(196,160,82,.10),
    0 20px 50px rgba(0,0,0,.55);
}
/* Barre haut lumineuse et bien visible */
.cf-card--active::before {
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(242,200,75,.85) 20%,
    rgba(255,245,140,1) 50%,
    rgba(242,200,75,.85) 80%,
    transparent 100%
  );
}
/* Bouton ÉQUIPÉ — bordure or */
.cf-card--active .cf-card__btn--equipped {
  border-color: rgba(196,160,82,.6) !important;
  color: var(--dore-clair) !important;
  background: rgba(196,160,82,.08) !important;
}

/* Pill "Actuel" */
.cf-card__actuel {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  padding: 3px 14px; border-radius: 999px;
  background: var(--gold-gradient);
  color: var(--bleu-nuit);
  font-family: var(--f-title); font-size: .44rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(196,160,82,.45);
  z-index: 2;
}

/* Preview wrapper — 100px fixe, contexte de positionnement */
.cf-card__preview-wrap {
  width: 100px; height: 100px;
  flex-shrink: 0;
  position: relative;
}
/* frame-row-badge-static dans la preview : remplit exactement les 100px */
.cf-card__preview-wrap .frame-row-badge-static {
  position: relative !important;
  width: 100px !important;
  height: 100px !important;
}
/* Photo centrée dans 100px */
.cf-card__preview-inner .bsp {
  width: 58px !important; height: 58px !important;
  top: 21px !important; left: 21px !important;
}
/* Frame PNG sans distorsion (Sherlock = 1440px) */
.cf-card__preview-inner .bsf {
  object-fit: contain !important;
}
/* Ring "Sans Cadre" — rayon photo 29px → ring à 31-34px */
.cf-card__preview-wrap .frame-row-badge-static--noframe::after {
  mask: radial-gradient(circle at 50% 50%, transparent 30px, black 31px, black 34px, transparent 35px) !important;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 30px, black 31px, black 34px, transparent 35px) !important;
}
.cf-card__preview-inner--locked { opacity: .55; }
.cf-card__lock-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(232,232,232,.6);
  z-index: 3;
}
.cf-card__preview-icon {
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 2px solid;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}

/* Nom + thème */
.cf-card__name {
  font-family: var(--f-title);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .06em; text-align: center;
  color: var(--argent-ecran);
  line-height: 1.3;
}
.cf-card--active .cf-card__name { color: var(--dore-clair); }
.cf-card__sublabel {
  font-size: .52rem; font-weight: 400; font-style: italic;
  color: rgba(232,232,232,.52); text-align: center;
  margin-top: 1px;
}
.cf-card__theme {
  font-size: .54rem; font-weight: 300;
  color: rgba(232,232,232,.40); text-align: center;
}

/* Boutons */
.cf-card__action { margin-top: auto; width: 100%; }
.cf-card__btn {
  width: 100%; padding: 8px 10px; border-radius: 8px;
  font-family: var(--f-title); font-size: .52rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; border: 1.5px solid; transition: all .22s;
}
.cf-card__btn--equip {
  background: transparent;
  border-color: rgba(196,160,82,.4);
  color: var(--or-titre);
}
.cf-card__btn--equip:hover {
  background: rgba(196,160,82,.12);
  border-color: rgba(196,160,82,.7);
  color: var(--dore-clair);
  transform: translateY(-1px);
}
.cf-card__btn--equipped {
  background: rgba(10,18,30,.85);
  border-color: rgba(196,160,82,.5);
  color: var(--dore-clair);
  cursor: default;
}
.cf-card__btn--locked {
  background: transparent;
  border-color: rgba(255,255,255,.08);
  color: rgba(232,232,232,.3);
  cursor: default;
}

/* Responsive */
@media (max-width: 640px) {
  .cf-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cf-card { padding: 14px 10px 12px; }
  /* Garder 100px pour que les cadres restent correctement proportionnés */
  .cf-card__preview-wrap { width: 100px; height: 100px; position: relative; }
}
.ctb-frames-count {
  font-family: var(--f-title);
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(232,232,232,.45);
}
.ctb-frames-count strong {
  color: var(--or-titre);
  font-weight: 700;
  font-size: 1.08em;
}
.ctb-frames-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

/* ── Frame tile (bento card) ── */
.ctb-frame-tile {
  /* reset frame-row defaults for grid context */
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  padding: 14px !important;
  background: linear-gradient(160deg, rgba(10,20,34,.96), rgba(16,30,50,.92)) !important;
  border: 1.5px solid rgba(255,255,255,.055) !important;
  border-radius: 14px !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.ctb-frame-tile.is-locked:hover { overflow: visible; }
.ctb-frame-tile:hover:not(.frame-row--locked) {
  transform: translateY(-2px);
  border-color: rgba(196,160,82,.28) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.38);
}
.ctb-frame-tile.frame-row--active {
  border: 1px solid rgba(255,230,170,.55) !important;
  background: linear-gradient(
    145deg,
    #8b6914 0%,
    #b8882a 22%,
    #c4a052 42%,
    #d4a843 55%,
    #f2c84b 68%,
    #d4a843 80%,
    #b8882a 100%
  ) !important;
  box-shadow:
    0 16px 44px rgba(184,136,42,.42),
    0 4px 14px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.28);
}
/* Grain texture subtil — identique djc-cta */
.ctb-frame-tile.frame-row--active::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  border-radius: inherit;
}
.ctb-frame-tile.frame-row--active > * {
  position: relative;
  z-index: 1;
}
.ctb-frame-tile.frame-row--locked {
  opacity: .58;
  cursor: not-allowed;
}

.ctb-frame-tile__preview {
  position: relative;
  align-self: center;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
}
.ctb-frame-tile__preview .frame-row-badge-static,
.ctb-frame-tile__preview .frame-row-icon {
  width: 88px !important;
  height: 88px !important;
  margin: 0 !important;
}
.ctb-frame-tile__preview .frame-row-badge-static .bsp {
  width: 50px !important;
  height: 50px !important;
  top: 19px !important;
  left: 19px !important;
}
.ctb-frame-tile__preview .frame-row-badge-static--noframe::after {
  mask: radial-gradient(circle at 50% 50%, transparent 27px, black 28px, black 31px, transparent 32px);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 27px, black 28px, black 31px, transparent 32px);
}
.ctb-frame-tile__preview .frame-row-icon {
  font-size: 2.4rem;
  border-width: 2px !important;
  border-style: solid;
}
.ctb-frame-tile__preview--dimmed { filter: grayscale(.6) brightness(.6); }
.ctb-frame-tile__lock-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10,16,26,.45);
  border-radius: 50%;
  color: rgba(232,232,232,.75);
  z-index: 5;
}
.ctb-frame-tile__lock-overlay svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
}
.ctb-frame-tile__info {
  text-align: center;
  padding: 0;
  min-width: 0;
}
.ctb-frame-tile__name {
  font-family: var(--f-title);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(232,232,232,.92);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ctb-frame-tile.frame-row--active .ctb-frame-tile__name {
  color: var(--bleu-nuit, #142234);
  text-shadow: 0 1px 0 rgba(255,240,200,.28);
}
.ctb-frame-tile.frame-row--locked .ctb-frame-tile__name { color: rgba(232,232,232,.42); }
.ctb-frame-tile__theme {
  font-size: .6rem;
  font-weight: 300;
  color: rgba(232,232,232,.35);
  letter-spacing: .04em;
}
.ctb-frame-tile.frame-row--active .ctb-frame-tile__theme {
  color: rgba(20,34,52,.62);
  font-style: italic;
}

/* Hide the compat check (kept in DOM for gamification.js compatibility) */
.ctb-frame-tile__check-compat {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

/* Status pill (visible CTA) */
.ctb-frame-tile__status {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  font-family: var(--f-title);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .22s ease, color .22s ease, border-color .22s ease;
}
.ctb-frame-tile__status svg {
  width: 11px; height: 11px;
  fill: none;
  stroke: currentColor;
}
.ctb-frame-tile__status.is-active {
  background: var(--bleu-nuit, #142234);
  color: var(--or-titre, #c4a052);
  border: 1px solid rgba(20,34,52,.75);
  box-shadow:
    0 4px 14px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.04);
  transition: background .28s ease, color .28s ease, transform .2s ease, box-shadow .28s ease;
}
.ctb-frame-tile.frame-row--active:hover .ctb-frame-tile__status.is-active {
  background: #0a1520;
  color: var(--dore-clair, #f2e5c2);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,0,0,.5);
}
.ctb-frame-tile__status.is-ready {
  background: rgba(196,160,82,.1);
  border: 1px solid rgba(196,160,82,.28);
  color: rgba(196,160,82,.85);
}
.ctb-frame-tile:hover:not(.frame-row--locked) .ctb-frame-tile__status.is-ready {
  background: rgba(196,160,82,.22);
  border-color: rgba(196,160,82,.55);
  color: var(--dore-clair, #f2e5c2);
}
.ctb-frame-tile__status.is-locked {
  background: rgba(65,90,119,.08);
  border: 1px solid rgba(65,90,119,.2);
  color: rgba(232,232,232,.4);
}

/* ── Tooltip cadre verrouillé ── */
.ctb-frame-tile { position: relative; }
.frame-tile__tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%; transform: translateX(-50%);
  z-index: 20;
  width: 220px;
  background: rgba(10,18,34,.97);
  border: 1px solid rgba(196,160,82,.35);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(196,160,82,.08);
  pointer-events: none;
  text-align: left;
}
.frame-tile__tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(196,160,82,.35);
}
.ctb-frame-tile.is-locked:hover .frame-tile__tooltip { display: block; }
.frame-tile__tooltip-title {
  font-family: var(--f-title); font-size: .65rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--dore-clair, #f2e5c2); margin-bottom: 8px;
}
.frame-tile__tooltip-title em { font-style: normal; color: rgba(255,255,255,.45); font-weight: 400; }
.frame-tile__tooltip-row {
  display: flex; align-items: center; gap: 6px;
  font-size: .68rem; color: rgba(232,232,232,.7);
  margin-bottom: 4px;
}
.frame-tile__tooltip-row strong { color: #fff; }
.frame-tile__tooltip-close { color: rgba(100,200,120,.8); margin-left: 2px; }
.frame-tile__tooltip-hint {
  margin-top: 8px; padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: .65rem; color: rgba(196,160,82,.8);
  font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .ctb-main { grid-template-columns: 1fr; }
  /* Quand on stacke, remettre timeline en haut pour lecture naturelle */
  .ctb-side-col     { order: 2; flex-direction: row; flex-wrap: wrap; }
  .ctb-timeline-col { order: 1; }
  .ctb-milestone, .ctb-xpguide-widget { flex: 1; min-width: 280px; }
}
@media (max-width: 900px) {
  .ctb-hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ctb-frames-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .ctb-hero__xp-val { font-size: 2.1rem; }
  .ctb-hero__streak-big { font-size: 2.2rem; }
  .ctb-tl-card { padding: 10px 12px; gap: 10px; }
  .ctb-tl-xp { padding-left: 8px; }
  .ctb-tl-xp__val { font-size: .95rem; }
  .ctb-side-col { flex-direction: column; }
}
@media (max-width: 500px) {
  /* Timeline : 1 colonne sur mobile étroit */
  .ctb-timeline { grid-template-columns: 1fr; }
  /* cf-grid cadres : 2 colonnes max */
  .cf-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  /* Masquer XP dans la timeline pour gagner de l'espace */
  .ctb-tl-xp { display: none; }
}


/* ══════════════════════════════════════════════════════════════
   PTAB — GRID & CARDS PREMIUM (tous onglets profil)
══════════════════════════════════════════════════════════════ */
.ptab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 28px;
}
.ptab-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Spans */
.ptab-card--span2 { grid-column: span 2; }
.ptab-card--full  { grid-column: 1 / -1; }

/* Card premium — même identité que ctb2-card */
.ptab-card {
  position: relative;
  padding: 20px 22px;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 55% 60% at 10% 40%, rgba(196,160,82,.04) 0%, transparent 55%),
    linear-gradient(160deg, rgba(10,20,36,.99) 0%, rgba(16,30,50,.98) 100%);
  border: 1.5px solid rgba(196,160,82,.28);
  box-shadow:
    0 0 0 1px rgba(196,160,82,.05),
    inset 0 0 0 1px rgba(196,160,82,.04),
    inset 0 1px 0 rgba(255,240,180,.05),
    0 8px 28px rgba(0,0,0,.45);
  overflow: hidden;
}
/* Barre dorée haut */
.ptab-card::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242,200,75,.6) 30%, rgba(255,224,133,.7) 50%, rgba(242,200,75,.6) 70%, transparent);
}
/* Reset des widgets et sections à l'intérieur des ptab-card */
.ptab-card .widget        { background: none; border: none; box-shadow: none; padding: 0; }
.ptab-card .widget-head   { padding: 0 0 12px; }
.ptab-card > section      { padding: 0; }
.ptab-card .sec-eyebrow   { margin-bottom: 4px; }
.ptab-card .sec-header    { margin-bottom: 10px; }

/* Créations — col 1 sidebar spans multiple rows, sections en col 2-3 */
#creations .ptab-card:not(.ptab-card--span2) { grid-column: 1; }
#creations .ptab-card--span2 { grid-column: 2 / span 2; }

/* Favoris — accès rapide col 1 */
#favoris .ptab-card:not(.ptab-card--span2) { grid-column: 1; }
#favoris .ptab-card--span2 { grid-column: 2 / span 2; }

/* ── Onglet Profil — placement grid explicite ── */
.ptab-profil-danger { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
.ptab-profil-info   { grid-column: 2 / span 2; grid-row: 1; }
.ptab-profil-prefs  { grid-column: 2 / span 2; grid-row: 2; }

/* ── Onglet Profil — placement grid forcé ── */
.ptab-profil-danger {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  align-self: start;
}
.ptab-profil-info {
  grid-column: 2 / span 2 !important;
  grid-row: 1 !important;
}
.ptab-profil-prefs {
  grid-column: 2 / span 2 !important;
  grid-row: 2 !important;
}

/* ══ ONGLET CRÉATIONS — MOBILE (≤ 480px) ══════════════════ */
@media (max-width: 480px) {
  /* Layout 1 colonne */
  .crea-layout { grid-template-columns: 1fr; gap: 16px; }
  .crea-sidebar { display: none; }

  /* Filter bar — pills plus compactes */
  .filter-bar { gap: 5px; }
  .f-pill { font-size: .5rem; padding: 3px 9px; }
  .filter-sep { display: none; }

  /* Champ recherche pleine largeur */
  .filter-bar input,
  .filter-bar .f-search { width: 100%; max-width: 100%; }

  /* List row — pas de débordement */
  .list-row { overflow: hidden; gap: 10px; padding: 10px 12px; }
  .list-row__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
  .list-row__top { flex-wrap: wrap; gap: 4px; }
  .list-row__actions { flex-shrink: 0; }
  .lr-btn { padding: 0 8px; height: 26px; font-size: .5rem; }

  /* Tags film — clip */
  .lr-tag { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Actions status badge ne déborde pas */
  .lr-status { font-size: .48rem; padding: 1px 5px; }
}
