  :root {
    --psg-navy: #004170;
    --psg-navy-deep: #001a2f;
    --psg-navy-dark: #002d4d;
    --psg-red: #DA291C;
    --psg-gold: #CEAB5D;
    --psg-gold-light: #e6c982;
    --white: #ffffff;
    --off-white: #f4f1ea;
    --grey-soft: rgba(255,255,255,0.08);
    --grey-mid: rgba(255,255,255,0.16);
    --grey-text: rgba(255,255,255,0.6);
    --green-ok: #2ecc71;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

  html, body {
    background: #0a0a0a;
    color: var(--white);
    font-family: 'Barlow Condensed', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
  }

  body {
    min-height: 100vh;
    background: var(--psg-navy-deep);
  }

  /* App container — full screen (plus de fake phone) */
  .phone {
    width: 100%;
    max-width: 520px;
    height: 100vh;
    margin: 0 auto;
    background: var(--psg-navy-deep);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
  }

  /* Noise texture */
  .phone::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 100;
    mix-blend-mode: overlay;
  }

  .status-bar {
    height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    font-family: -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    background: transparent;
  }
  .status-bar .icons { display: flex; gap: 4px; align-items: center; }
  .status-bar .icons svg { width: 14px; height: 14px; }

  /* Screens - swipe-style navigation */
  .screens-container {
    flex: 1;
    position: relative;
    overflow: hidden;
  }

  .screen {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    display: none;
    flex-direction: column;
    background:
      radial-gradient(ellipse at top, rgba(0,65,112,0.4) 0%, transparent 60%),
      radial-gradient(ellipse at bottom, rgba(218,41,28,0.08) 0%, transparent 50%),
      var(--psg-navy-deep);
  }
  .screen::-webkit-scrollbar { display: none; }

  .screen.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
  }
  .screen.active > * { flex-shrink: 0; }

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

  /* ===== SHARED: Top app bar ===== */
  .app-bar {
    display: flex;
    align-items: center;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 14px;
    gap: 12px;
    position: relative;
    z-index: 5;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--grey-soft);
    border: 1px solid var(--grey-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
  }
  .icon-btn:active { transform: scale(0.92); }
  .icon-btn svg { width: 20px; height: 20px; }

  .app-bar-title {
    flex: 1;
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 19px;
    letter-spacing: -0.01em;
  }
  .app-bar-title em { font-style: italic; color: var(--psg-gold); font-weight: 400; }

  /* ========== BOTTOM NAV ========== */
  .bottom-nav {
    flex-shrink: 0;
    height: calc(82px + env(safe-area-inset-bottom, 0px));
    padding: 10px 8px calc(24px + env(safe-area-inset-bottom, 0px));
    background: rgba(0,13,25,0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--grey-mid);
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    z-index: 20;
  }

  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--grey-text);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 6px;
    cursor: pointer;
    flex: 1;
    transition: color 0.2s;
  }
  .nav-item.active { color: var(--white); }
  .nav-item.active .nav-icon {
    background: var(--psg-red);
    box-shadow: 0 4px 16px rgba(218,41,28,0.4);
    color: var(--white);
  }

  .nav-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: var(--grey-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.2s;
  }

  /* ========================================
     ONBOARDING / AUTH
     ======================================== */

  .auth-screen {
    padding: calc(20px + env(safe-area-inset-top, 0px)) 28px 40px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    position: relative;
  }

  .auth-screen::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 300px;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(0,65,112,0.6) 0%, transparent 70%),
      radial-gradient(ellipse at 20% 30%, rgba(218,41,28,0.15) 0%, transparent 60%);
    pointer-events: none;
  }

  .auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
    justify-content: center;
  }
  .auth-logo .logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--psg-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: 16px;
    color: var(--psg-gold);
  }
  .auth-logo .logo-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3em;
    line-height: 1.1;
  }
  .auth-logo .logo-text small {
    display: block;
    color: var(--psg-gold);
    font-size: 9px;
    letter-spacing: 0.35em;
    margin-top: 2px;
  }

  .auth-hero {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
  }

  .auth-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--psg-gold);
    text-transform: uppercase;
    margin-bottom: 14px;
  }

  .auth-title {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 6px;
  }
  .auth-title em { font-style: italic; color: var(--psg-gold); font-weight: 400; }
  .auth-title strong { font-weight: 800; }

  .auth-subtitle {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.4;
    color: rgba(255,255,255,0.7);
    margin-top: 14px;
  }

  .maintenance-screen .auth-logo { margin-bottom: 74px; }
  .auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    position: relative;
    z-index: 2;
  }

  .btn-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 14px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
  }
  .btn-auth:active { transform: scale(0.98); }

  .btn-google {
    background: var(--white);
    color: #1a1a1a;
  }

  .btn-email {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--grey-mid);
  }

  .btn-main {
    background: var(--psg-red);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(218,41,28,0.3);
  }

  .btn-outline-gold {
    background: transparent;
    color: var(--psg-gold);
    border: 1.5px solid var(--psg-gold);
  }
  .btn-outline-gold:hover { background: rgba(206,171,93,0.1); }

  .auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--grey-text);
    letter-spacing: 0.05em;
  }
  .auth-link a { color: var(--psg-gold); text-decoration: none; font-weight: 600; }

  /* Language picker */
  .lang-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
  }
  .lang-picker--inline {
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 16px 12px;
  }
  .lang-pill {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    color: var(--grey-text);
    border-radius: 20px;
    padding: 5px 11px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: inherit;
  }
  .lang-pill.active {
    background: var(--psg-gold);
    border-color: var(--psg-gold);
    color: var(--dark-bg);
  }
  .lang-pill:hover:not(.active) {
    border-color: rgba(255,255,255,0.3);
    color: var(--white);
  }

  /* Form fields */
  .form-group {
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
  }
  .form-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--grey-text);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
  }
  .form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--grey-soft);
    border: 1px solid var(--grey-mid);
    border-radius: 12px;
    color: var(--white);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.2s;
  }
  .form-input:focus {
    outline: none;
    border-color: var(--psg-gold);
    background: rgba(206,171,93,0.05);
  }
  .form-input::placeholder { color: rgba(255,255,255,0.3); }

  .form-helper {
    font-size: 11px;
    color: var(--grey-text);
    margin-top: 6px;
    line-height: 1.4;
  }

  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .ticket-scan-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(206,171,93,0.08);
    border: 1px dashed rgba(206,171,93,0.4);
    border-radius: 12px;
    color: var(--psg-gold);
    width: 100%;
    cursor: pointer;
    margin-top: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  /* Step indicator */
  .step-indicator {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
  }
  .step-indicator-dot {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
  }
  .step-indicator-dot.active { background: var(--psg-gold); }

  /* ========================================
     LE TOUR — Info page
     ======================================== */

  .tour-hero {
    position: relative;
    height: 380px;
    background:
      linear-gradient(180deg, transparent 30%, var(--psg-navy-deep) 100%),
      linear-gradient(135deg, var(--psg-navy) 0%, var(--psg-navy-dark) 100%);
    overflow: hidden;
  }
  .tour-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      repeating-linear-gradient(90deg, transparent 0 60px, rgba(255,255,255,0.02) 60px 120px),
      radial-gradient(ellipse at 50% 30%, rgba(206,171,93,0.2) 0%, transparent 60%);
  }
  .tour-hero::after {
    content: 'PARC';
    position: absolute;
    bottom: -50px;
    right: -30px;
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: 260px;
    color: rgba(255,255,255,0.04);
    line-height: 0.8;
    letter-spacing: -0.05em;
  }

  .tour-hero-content {
    position: absolute;
    bottom: 40px;
    left: 24px;
    right: 24px;
    z-index: 2;
  }

  .tour-body {
    padding: 0 24px 40px;
  }

  .tour-lead {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    color: var(--white);
  }
  .tour-lead em { font-style: italic; color: var(--psg-gold); }

  .tour-text {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    margin-bottom: 16px;
    letter-spacing: -0.005em;
  }
  .tour-text strong {
    font-weight: 600;
    color: var(--white);
  }

  .tour-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 24px 0;
    padding: 20px;
    background: var(--grey-soft);
    border: 1px solid var(--grey-mid);
    border-radius: 16px;
  }
  .tour-stat {
    text-align: center;
  }
  .tour-stat-value {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 24px;
    color: var(--psg-gold);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 4px;
  }
  .tour-stat-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--grey-text);
    text-transform: uppercase;
  }

  .tour-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }

  .tour-feature {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: var(--grey-soft);
    border: 1px solid var(--grey-mid);
    border-radius: 14px;
  }
  .tour-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(206,171,93,0.12);
    color: var(--psg-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .tour-feature-text {
    font-family: 'Fraunces', serif;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 400;
    letter-spacing: -0.005em;
  }
  .tour-feature-text strong { font-weight: 600; color: var(--psg-gold); }

  /* ========================================
     PARCOURS (home) — je réutilise le travail précédent
     ======================================== */

  .home-hero {
    position: relative;
    padding: calc(20px + env(safe-area-inset-top, 0px)) 24px 40px;
    background:
      linear-gradient(180deg, transparent 0%, var(--psg-navy-deep) 90%),
      linear-gradient(135deg, var(--psg-navy) 0%, var(--psg-navy-dark) 100%);
    overflow: hidden;
  }
  .home-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(206,171,93,0.15) 0%, transparent 60%);
    pointer-events: none;
  }
  .home-hero::after {
    content: 'PSG';
    position: absolute;
    top: 40px;
    right: -20px;
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: 220px;
    color: rgba(255,255,255,0.03);
    line-height: 0.8;
    pointer-events: none;
    letter-spacing: -0.05em;
  }

  .home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
  }

  .logo-mark {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .logo-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--psg-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: 15px;
    color: var(--psg-gold);
  }
  .logo-circle img {
    width: 36px;
    height: 36px;
  }
  .logo-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--white);
    line-height: 1.1;
  }
  .logo-text small {
    display: block;
    color: var(--psg-gold);
    font-size: 9px;
    letter-spacing: 0.3em;
    margin-top: 2px;
  }

  .profile-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--grey-soft);
    border: 1px solid var(--grey-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
  }
  .profile-btn:active { transform: scale(0.92); }
  .profile-btn:hover {
    background: rgba(206,171,93,0.1);
    border-color: rgba(206,171,93,0.4);
  }
  .profile-btn svg { width: 18px; height: 18px; }

  .greeting { position: relative; z-index: 2; }
  .greeting-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--psg-gold);
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .greeting-title {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 38px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
  }
  .greeting-title em { font-style: italic; font-weight: 400; color: var(--psg-gold); }
  .greeting-subtitle {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 38px;
    line-height: 1;
    letter-spacing: -0.03em;
  }
  .greeting-subtitle em { font-style: italic; font-weight: 400; color: var(--psg-gold); }

  /* Progress card */
  .progress-card {
    margin: 16px 16px 0;
    padding: 22px;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    backdrop-filter: blur(20px);
    border: 1px solid var(--grey-mid);
    border-radius: 24px;
    position: relative;
    z-index: 3;
  }
  .progress-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 24px;
    right: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--psg-red), var(--psg-gold), var(--psg-red));
    border-radius: 2px;
  }
  .progress-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 12px;
  }
  .progress-head > div:first-child { flex: 1; min-width: 0; }
  .progress-stars { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
  .progress-title {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--grey-text);
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  .progress-rank {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 20px;
    letter-spacing: -0.01em;
  }
  .progress-rank em { font-style: italic; color: var(--psg-gold); }
  .star { width: 15px; height: 15px; }
  .star svg { width: 100%; height: 100%; }
  .progress-bar-wrap {
    height: 7px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 14px;
    position: relative;
  }
  .progress-bar-fill {
    position: absolute;
    inset: 0;
    width: 50%;
    background: linear-gradient(90deg, var(--psg-red) 0%, var(--psg-gold) 100%);
    box-shadow: 0 0 12px rgba(218,41,28,0.4);
  }
  .progress-tiers {
    display: flex;
    justify-content: space-between;
  }
  .tier { text-align: center; flex: 1; }
  .tier-mark {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
  }
  .tier.done .tier-mark { color: var(--psg-gold); }
  .tier.next .tier-mark { color: var(--white); }
  .tier:not(.done):not(.next) .tier-mark { color: rgba(255,255,255,0.3); }
  .tier-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--grey-text);
    white-space: nowrap;
  }

  /* Section heading */
  .section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 28px 24px 14px;
  }
  .section-title {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: 19px;
    letter-spacing: -0.01em;
  }
  .section-title em { font-style: italic; color: var(--psg-gold); }
  .section-count {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--grey-text);
  }

  /* Highlight card */
  .highlight-card {
    margin: 4px 24px 8px;
    padding: 22px;
    background:
      linear-gradient(135deg, rgba(218,41,28,0.2), rgba(218,41,28,0.05)),
      linear-gradient(135deg, var(--psg-navy-dark), var(--psg-navy));
    border: 1px solid rgba(218,41,28,0.3);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
  }
  .highlight-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(218,41,28,0.3) 0%, transparent 70%);
  }
  .highlight-kicker {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--psg-red);
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .highlight-title {
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    max-width: 80%;
  }
  .highlight-title em { font-style: italic; color: var(--psg-gold); }
  .highlight-meta {
    display: flex;
    gap: 14px;
    font-size: 10px;
    color: var(--grey-text);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
  }
  .highlight-meta span { display: flex; align-items: center; gap: 4px; }

  /* Steps */
  .steps {
    padding: 0 24px 24px;
    position: relative;
  }
  .steps::before {
    content: '';
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 50px;
    width: 2px;
    background: rgba(255,255,255,0.1);
  }
  .step-row {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 10px 0;
    position: relative;
    z-index: 1;
    cursor: pointer;
  }
  .step-node {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 19px;
    position: relative;
    background: var(--psg-navy-deep);
    border: 2px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.4);
  }
  .step-row.done .step-node {
    background: var(--psg-gold);
    border-color: var(--psg-gold);
    color: var(--psg-navy-deep);
    box-shadow: 0 0 20px rgba(206,171,93,0.3);
  }
  .step-row.current .step-node {
    background: var(--psg-navy-deep);
    border-color: var(--psg-red);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(218,41,28,0.2), 0 0 20px rgba(218,41,28,0.4);
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(218,41,28,0.2), 0 0 20px rgba(218,41,28,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(218,41,28,0.1), 0 0 30px rgba(218,41,28,0.6); }
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  .step-card {
    flex: 1;
    padding: 14px 16px;
    background: var(--grey-soft);
    border: 1px solid transparent;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-height: 60px;
    transition: all 0.2s;
  }
  .step-row:active .step-card { transform: scale(0.98); }
  .step-row.current .step-card {
    background: linear-gradient(135deg, rgba(218,41,28,0.15), rgba(218,41,28,0.03));
    border-color: rgba(218,41,28,0.3);
  }
  .step-row.done .step-card {
    background: rgba(206,171,93,0.06);
    border-color: rgba(206,171,93,0.15);
  }
  .step-info { flex: 1; min-width: 0; }
  .step-kicker {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--grey-text);
    text-transform: uppercase;
    margin-bottom: 2px;
  }
  .step-row.done .step-kicker { color: var(--psg-gold); }
  .step-row.current .step-kicker { color: var(--psg-red); }
  .step-name {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }
  .step-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0em;
    padding: 4px 7px;
    border-radius: 20px;
    text-transform: uppercase;
  }
  .step-row.done .step-badge { background: var(--psg-gold); color: var(--psg-navy-deep); }
  .step-row.current .step-badge { background: var(--psg-red); color: var(--white); }
  .step-photos-count {
    font-size: 10px;
    color: var(--grey-text);
    font-weight: 600;
    letter-spacing: 0.1em;
  }
  .step-chevron { color: rgba(255,255,255,0.3); flex-shrink: 0; }
  .step-row.current .step-chevron { color: var(--psg-red); }

  /* ========================================
     STEP DETAIL
     ======================================== */

  .detail-header {
    position: relative;
    height: 340px;
    background:
      linear-gradient(180deg, transparent 40%, var(--psg-navy-deep) 100%),
      linear-gradient(135deg, var(--psg-navy) 0%, var(--psg-red) 120%);
    overflow: hidden;
    flex-shrink: 0;
  }
  .detail-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      repeating-linear-gradient(90deg, transparent 0 40px, rgba(255,255,255,0.02) 40px 80px),
      radial-gradient(ellipse at 50% 20%, rgba(206,171,93,0.2) 0%, transparent 50%);
  }
  .detail-header::after {
    content: attr(data-big);
    position: absolute;
    bottom: -60px;
    right: -20px;
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: 340px;
    color: rgba(255,255,255,0.04);
    line-height: 0.8;
    letter-spacing: -0.05em;
  }

  /* === Ambiance spécifique par étape === */

  /* 01 — Entrée, premier stand photo : or/chaud */
  .detail-header--step1 {
    background:
      linear-gradient(180deg, transparent 40%, var(--psg-navy-deep) 100%),
      linear-gradient(135deg, var(--psg-navy) 0%, #8b6a2d 120%);
  }
  .detail-header--step1::before {
    background-image:
      repeating-linear-gradient(90deg, transparent 0 40px, rgba(255,255,255,0.02) 40px 80px),
      radial-gradient(ellipse at 50% 20%, rgba(206,171,93,0.35) 0%, transparent 55%);
  }

  /* 02 — Vestiaires : sombre, intimiste, rouge tamisé */
  .detail-header--step2 {
    background:
      linear-gradient(180deg, transparent 40%, var(--psg-navy-deep) 100%),
      linear-gradient(180deg, #1a1a1a 0%, var(--psg-navy-dark) 100%);
  }
  .detail-header--step2::before {
    background-image:
      repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 3px, transparent 3px 60px),
      radial-gradient(ellipse at 70% 30%, rgba(218,41,28,0.18) 0%, transparent 50%);
  }

  /* 03 — Auditorium : sombre, corporate, lumière scène */
  .detail-header--step3 {
    background:
      linear-gradient(180deg, transparent 40%, var(--psg-navy-deep) 100%),
      linear-gradient(180deg, #0d1a2e 0%, #1a2a40 60%, var(--psg-navy-dark) 100%);
  }
  .detail-header--step3::before {
    background-image:
      repeating-linear-gradient(0deg, transparent 0 30px, rgba(255,255,255,0.02) 30px 60px),
      radial-gradient(ellipse at 50% 60%, rgba(206,171,93,0.2) 0%, transparent 50%);
  }

  /* 04 — Avenue du Parc : bordeaux velours, VIP */
  .detail-header--step4 {
    background:
      linear-gradient(180deg, transparent 40%, var(--psg-navy-deep) 100%),
      linear-gradient(135deg, #2a0a1a 0%, #4a1020 50%, var(--psg-navy-dark) 100%);
  }
  .detail-header--step4::before {
    background-image:
      radial-gradient(ellipse at 80% 30%, rgba(206,171,93,0.25) 0%, transparent 45%),
      radial-gradient(ellipse at 20% 70%, rgba(218,41,28,0.12) 0%, transparent 40%);
  }

  /* 05 — Ici c'est Paris : bleu vif, tribune, lumière stade */
  .detail-header--step5 {
    background:
      linear-gradient(180deg, transparent 40%, var(--psg-navy-deep) 100%),
      linear-gradient(180deg, var(--psg-navy) 0%, #0066a8 60%, var(--psg-navy-dark) 100%);
  }
  .detail-header--step5::before {
    background-image:
      repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 30px),
      radial-gradient(ellipse at 50% 80%, rgba(255,255,255,0.15) 0%, transparent 40%);
  }

  /* 06 — Banc des joueurs : pelouse + lignes de terrain */

  /* 07 — Tir au but : rouge agressif, mouvement */
  .detail-header--step7 {
    background:
      linear-gradient(180deg, transparent 40%, var(--psg-navy-deep) 100%),
      linear-gradient(135deg, var(--psg-red) 0%, var(--psg-navy-dark) 80%);
  }
  .detail-header--step7::before {
    background-image:
      repeating-linear-gradient(45deg, transparent 0 20px, rgba(255,255,255,0.03) 20px 22px),
      radial-gradient(circle at 80% 40%, rgba(255,255,255,0.15) 0%, transparent 30%);
  }

  /* 08 — Buvette : chaud, convivial */
  .detail-header--step8 {
    background:
      linear-gradient(180deg, transparent 40%, var(--psg-navy-deep) 100%),
      linear-gradient(180deg, #2a1a0a 0%, #3d1f0f 50%, var(--psg-navy-dark) 100%);
  }
  .detail-header--step8::before {
    background-image:
      radial-gradient(ellipse at 50% 40%, rgba(255,160,50,0.2) 0%, transparent 50%),
      radial-gradient(ellipse at 70% 70%, rgba(206,171,93,0.15) 0%, transparent 40%);
  }

  /* 09 — Tyrolienne : ciel, hauteur, adrénaline */
  .detail-header--step9 {
    background:
      linear-gradient(180deg, transparent 40%, var(--psg-navy-deep) 100%),
      linear-gradient(180deg, #061530 0%, var(--psg-navy) 50%, #0d2d5c 100%);
  }
  .detail-header--step9::before {
    background-image:
      radial-gradient(ellipse at 50% 20%, rgba(255,255,255,0.2) 0%, transparent 40%),
      repeating-linear-gradient(135deg, transparent 0 40px, rgba(255,255,255,0.02) 40px 42px);
  }

  /* 10 — Trophée CL : doré royal, luxe */
  .detail-header--step10 {
    background:
      linear-gradient(180deg, transparent 40%, var(--psg-navy-deep) 100%),
      linear-gradient(135deg, #3d2d0f 0%, var(--psg-navy) 50%, var(--psg-gold) 150%);
  }
  .detail-header--step10::before {
    background-image:
      radial-gradient(circle at 50% 50%, rgba(206,171,93,0.5) 0%, transparent 40%),
      radial-gradient(ellipse at 50% 20%, rgba(255,255,255,0.15) 0%, transparent 50%);
  }
  .detail-header--step10::after {
    color: rgba(206,171,93,0.08);
  }
  .detail-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: max(16px, calc(env(safe-area-inset-top) + 12px)) 20px 16px;
    position: relative;
    z-index: 2;
  }
  .detail-counter {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--psg-gold);
    text-transform: uppercase;
  }
  .detail-hero-content {
    position: absolute;
    bottom: 30px;
    left: 24px;
    right: 24px;
    z-index: 2;
  }
  .detail-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--psg-red);
    text-transform: uppercase;
    margin-bottom: 10px;
  }
  .detail-title {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -0.03em;
  }
  .detail-title em { font-style: italic; color: var(--psg-gold); font-weight: 400; }
  .detail-body { padding: 24px 24px 32px; }
  .detail-desc {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.4;
    color: rgba(255,255,255,0.85);
    letter-spacing: -0.005em;
    margin-bottom: 22px;
  }
  .detail-desc strong { font-weight: 600; color: var(--white); }

  .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
  }
  .info-tile {
    padding: 12px 14px;
    background: var(--grey-soft);
    border: 1px solid var(--grey-mid);
    border-radius: 12px;
  }
  .info-label {
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--grey-text);
    text-transform: uppercase;
    margin-bottom: 3px;
  }
  .info-value {
    font-family: 'Fraunces', serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
  }

  .divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 16px;
  }
  .divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--grey-mid);
  }
  .divider span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--psg-gold);
    text-transform: uppercase;
  }

  .instruction-list { list-style: none; margin-bottom: 28px; }
  .instruction-list li {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--grey-soft);
  }
  .instruction-list li:last-child { border-bottom: none; }
  .step-num {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 14px;
    color: var(--psg-gold);
    flex-shrink: 0;
    width: 20px;
  }
  .step-desc {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255,255,255,0.85);
  }

  .cta-primary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 22px;
    background: var(--psg-red);
    color: var(--white);
    border: none;
    border-radius: 16px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(218,41,28,0.3);
    margin-bottom: 10px;
  }
  .cta-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: transparent;
    color: var(--grey-text);
    border: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
  }

  /* === QR tireur buttons (étape Tir au but) === */
  .qr-tireur-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
  }

  .qr-tireur-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    background: var(--grey-soft);
    border: 1px solid var(--grey-mid);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    font-family: inherit;
  }
  .qr-tireur-btn:active { transform: scale(0.98); }
  .qr-tireur-btn:hover {
    background: rgba(218,41,28,0.08);
    border-color: rgba(218,41,28,0.35);
  }

  .qr-tireur-btn--main {
    background: linear-gradient(135deg, rgba(206,171,93,0.1), rgba(206,171,93,0.02));
    border-color: rgba(206,171,93,0.35);
  }
  .qr-tireur-btn--main:hover {
    background: linear-gradient(135deg, rgba(206,171,93,0.18), rgba(206,171,93,0.04));
    border-color: rgba(206,171,93,0.6);
  }

  .qr-tireur-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--psg-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .qr-tireur-btn--main .qr-tireur-icon {
    background: var(--psg-gold);
    color: var(--psg-navy-deep);
  }

  .qr-tireur-info {
    flex: 1;
    min-width: 0;
  }
  .qr-tireur-name {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: -0.01em;
    color: var(--white);
    line-height: 1.2;
  }
  .qr-tireur-meta {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--grey-text);
    text-transform: uppercase;
    margin-top: 3px;
  }
  .qr-tireur-btn--main .qr-tireur-meta {
    color: var(--psg-gold);
  }

  .qr-tireur-arrow {
    color: rgba(255,255,255,0.3);
    flex-shrink: 0;
  }
  .qr-tireur-btn:hover .qr-tireur-arrow { color: var(--psg-red); }
  .qr-tireur-btn--main:hover .qr-tireur-arrow { color: var(--psg-gold); }

  /* Photos taken at step */
  .photo-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 6px;
  }
  .photo-mini {
    aspect-ratio: 1;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--psg-navy-dark), var(--psg-navy));
    border: 1px solid var(--grey-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }
  .photo-mini::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(ellipse at 30% 30%, rgba(206,171,93,0.2) 0%, transparent 60%);
  }
  .photo-mini .ph-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--psg-gold);
    color: var(--psg-navy-deep);
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
  }
  .photo-mini .ph-label {
    position: relative;
    color: var(--grey-text);
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    padding: 0 4px;
  }

  /* ========================================
     MES PHOTOS
     ======================================== */

  .photos-container {
    padding: 16px 20px 24px;
  }

  .photos-summary {
    padding: 20px;
    background: linear-gradient(135deg, rgba(218,41,28,0.12), rgba(206,171,93,0.06));
    border: 1px solid var(--grey-mid);
    border-radius: 20px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
  }
  .photos-summary::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--psg-red), var(--psg-gold));
  }
  .photos-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }
  .photos-summary-main {
    flex: 1;
  }
  .photos-summary-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--grey-text);
    text-transform: uppercase;
    margin-bottom: 6px;
  }
  .photos-summary-count {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 44px;
    line-height: 1;
    letter-spacing: -0.03em;
  }
  .photos-summary-count em {
    font-style: italic;
    color: var(--psg-gold);
    font-size: 18px;
    font-weight: 400;
    margin-left: 4px;
  }
  .photos-summary-btn {
    background: var(--psg-red);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
  }

  .category-section { margin-bottom: 28px; }

  .category-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
  }
  .category-title {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 17px;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .category-title em { font-style: italic; color: var(--psg-gold); }
  .category-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(206,171,93,0.15);
    color: var(--psg-gold);
    letter-spacing: 0.1em;
  }
  .category-badge.editable {
    background: rgba(218,41,28,0.15);
    color: var(--psg-red);
  }

  .photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .photo-card {
    aspect-ratio: 3/4;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--psg-navy-dark), var(--psg-navy));
    border: 1px solid var(--grey-mid);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8px;
  }
  .photo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.5) 100%),
      linear-gradient(135deg, rgba(206,171,93,0.15) 0%, transparent 50%);
  }
  .photo-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='35' r='12' fill='rgba(255,255,255,0.08)'/%3E%3Cpath d='M30 85 Q50 55 70 85' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E");
    background-size: cover;
    opacity: 0.6;
  }
  .photo-card .ph-label {
    position: relative;
    z-index: 1;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.9);
  }
  .photo-card .ph-sub {
    position: relative;
    z-index: 1;
    font-size: 9px;
    color: var(--grey-text);
    margin-top: 2px;
  }
  .photo-card .ph-corner {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
  }
  .photo-card .ph-corner-badge {
    background: rgba(218,41,28,0.9);
    color: var(--white);
    font-size: 8px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    letter-spacing: 0.1em;
    backdrop-filter: blur(4px);
  }
  .photo-card.locked {
    background: rgba(255,255,255,0.03);
    border: 1px dashed var(--grey-mid);
  }
  .photo-card.locked::before, .photo-card.locked::after { display: none; }
  .photo-card.locked .ph-label { color: rgba(255,255,255,0.3); }
  .photo-card .lock-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255,255,255,0.2);
  }

  /* Real photo inside a card */
  .photo-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 11px;
    z-index: 0;
  }
  .photo-card.has-photo::before { z-index: 1; }
  .photo-card.has-photo::after  { display: none; }
  .photo-card .ph-corner-badge--user {
    background: rgba(206,171,93,0.9);
    color: #001a2f;
  }

  .ph-delete {
    position: absolute;
    bottom: 6px;
    left: 6px;
    z-index: 3;
    background: rgba(180,28,20,0.85);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    padding: 0;
    transition: background 0.15s;
  }
  .ph-delete:hover { background: rgba(220,38,28,1); }

  /* Photos loading / empty */
  .photos-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 0;
  }
  .photos-loading-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(206,171,93,0.2);
    border-top-color: var(--psg-gold);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
  }
  .photos-empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--grey-text);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1.8;
  }

  /* Photo lightbox */
  .photo-lightbox {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(16px);
    z-index: 60;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 24px;
  }
  .photo-lightbox.open { display: flex; animation: fadeIn 0.2s; }
  .photo-lightbox > img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 8px;
    position: static;
    width: auto;
    height: auto;
    z-index: auto;
  }
  .lightbox-close {
    position: absolute;
    top: max(20px, calc(env(safe-area-inset-top) + 12px));
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
  }

  /* ========================================
     PHOTO EDITOR — Configuration joueurs
     ======================================== */

  .editor-container {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .editor-preview {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, var(--psg-navy-dark), var(--psg-navy));
    overflow: hidden;
    min-height: 300px;
  }
  .editor-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      repeating-linear-gradient(0deg, transparent 0 20px, rgba(255,255,255,0.02) 20px 22px),
      radial-gradient(ellipse at 50% 40%, rgba(206,171,93,0.25) 0%, transparent 60%);
  }
  /* Scene: client silhouette + players */
  .editor-scene {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
  }
  .silhouette {
    position: relative;
    width: 80px;
    height: 180px;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    border-radius: 30px 30px 12px 12px;
    margin: 0 4px;
  }
  .silhouette::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
  }
  .silhouette.client {
    background: linear-gradient(180deg, rgba(218,41,28,0.4), rgba(218,41,28,0.1));
    box-shadow: 0 0 30px rgba(218,41,28,0.2);
  }
  .silhouette.client::before { background: rgba(218,41,28,0.5); }
  .silhouette.client::after {
    content: 'TOI';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.2em;
  }
  .silhouette.player::after {
    content: attr(data-num);
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--psg-gold);
  }
  .silhouette.player {
    background: linear-gradient(180deg, rgba(0,65,112,0.6), rgba(0,65,112,0.2));
  }
  .silhouette.player::before { background: rgba(206,171,93,0.3); }

  .editor-top-bar {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 5;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 100%);
  }

  .editor-save {
    padding: 8px 14px;
    background: var(--psg-gold);
    color: var(--psg-navy-deep);
    border: none;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .editor-controls {
    background: var(--psg-navy-deep);
    border-top: 1px solid var(--grey-mid);
    padding: 20px;
    flex-shrink: 0;
  }

  .editor-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
  }
  .editor-tab {
    padding: 8px 14px;
    background: var(--grey-soft);
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--grey-text);
    cursor: pointer;
  }
  .editor-tab.active {
    background: var(--psg-red);
    color: var(--white);
  }

  .editor-section-title {
    font-family: 'Fraunces', serif;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .editor-section-title em { font-style: italic; color: var(--psg-gold); }
  .editor-section-sub {
    font-size: 10px;
    color: var(--grey-text);
    font-weight: 500;
    letter-spacing: 0.1em;
  }

  .players-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .players-row::-webkit-scrollbar { display: none; }

  .player-chip {
    flex-shrink: 0;
    width: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 6px;
    background: var(--grey-soft);
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
  }
  .player-chip.selected {
    border-color: var(--psg-red);
    background: rgba(218,41,28,0.15);
  }
  .player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--psg-navy), var(--psg-red));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--psg-gold);
    position: relative;
  }
  .player-chip.selected .player-avatar::after {
    content: '✓';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--psg-red);
    color: var(--white);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--psg-navy-deep);
  }
  .player-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
  }
  .player-name {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--white);
    text-align: center;
    line-height: 1.1;
  }
  .player-num {
    font-family: 'Fraunces', serif;
    font-size: 9px;
    color: var(--psg-gold);
    font-style: italic;
  }

  /* ========================================
     MON TIR — Scoreboard
     ======================================== */

  .score-hero {
    padding: 8px 24px 28px;
    background:
      linear-gradient(180deg, transparent 60%, var(--psg-navy-deep) 100%),
      linear-gradient(135deg, var(--psg-navy) 0%, var(--psg-red) 120%);
    position: relative;
    overflow: hidden;
  }
  .score-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(circle at 80% 0%, rgba(206,171,93,0.3) 0%, transparent 50%);
  }

  .score-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--psg-gold);
    text-transform: uppercase;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
  }
  .score-title {
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-size: 40px;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
    position: relative;
    z-index: 2;
  }
  .score-title em { font-style: italic; color: var(--psg-gold); font-weight: 400; }

  /* My score card */
  .my-score-card {
    margin: 0 20px 20px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(218,41,28,0.15), rgba(206,171,93,0.08));
    border: 1px solid rgba(218,41,28,0.3);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
  }
  .my-score-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--psg-red), var(--psg-gold), var(--psg-red));
  }

  .score-selector {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .score-selector::-webkit-scrollbar { display: none; }
  .tireur-chip {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 20px;
    background: var(--grey-soft);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey-text);
    border: 1px solid var(--grey-mid);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .tireur-chip.active {
    background: var(--psg-red);
    color: var(--white);
    border-color: var(--psg-red);
  }
  .tireur-chip .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--psg-gold);
    flex-shrink: 0;
    display: inline-block;
  }
  .tireur-chip.active .dot {
    background: var(--white);
    box-shadow: 0 0 8px rgba(255,255,255,0.6);
  }

  .score-display {
    text-align: center;
    margin-bottom: 8px;
  }
  .score-value {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    font-size: 92px;
    line-height: 0.9;
    letter-spacing: -0.04em;
    background: linear-gradient(180deg, var(--white) 0%, var(--psg-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .score-unit {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 16px;
    color: var(--grey-text);
    margin-top: -4px;
  }

  .score-rank-row {
    display: flex;
    justify-content: space-around;
    padding-top: 16px;
    border-top: 1px solid var(--grey-mid);
    margin-top: 12px;
  }
  .score-rank-item { text-align: center; }
  .score-rank-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--grey-text);
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  .score-rank-value {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
  }
  .score-rank-value em { font-style: italic; color: var(--psg-gold); font-size: 14px; font-weight: 400; }

  .leaderboard-section { padding: 16px 20px 24px; }

  .leaderboard-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    background: var(--grey-soft);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--grey-mid);
  }
  .leaderboard-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--grey-text);
    border-radius: 8px;
    cursor: pointer;
  }
  .leaderboard-tab.active {
    background: var(--psg-red);
    color: var(--white);
  }

  .leaderboard-list { display: flex; flex-direction: column; gap: 6px; }

  .lb-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--grey-soft);
    border: 1px solid transparent;
    border-radius: 12px;
  }
  .lb-row.me {
    background: linear-gradient(135deg, rgba(218,41,28,0.15), rgba(218,41,28,0.04));
    border-color: rgba(218,41,28,0.3);
  }
  .lb-row.pro {
    background: linear-gradient(135deg, rgba(206,171,93,0.12), rgba(206,171,93,0.02));
    border-color: rgba(206,171,93,0.3);
  }
  .lb-rank {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 18px;
    width: 32px;
    text-align: center;
    color: var(--grey-text);
  }
  .lb-row.top1 .lb-rank { color: var(--psg-gold); }
  .lb-row.top2 .lb-rank { color: #c0c0c0; }
  .lb-row.top3 .lb-rank { color: #cd7f32; }
  .lb-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--psg-navy), var(--psg-navy-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--psg-gold);
    flex-shrink: 0;
  }
  .lb-row.pro .lb-avatar {
    background: linear-gradient(135deg, var(--psg-red), var(--psg-gold));
    color: var(--psg-navy-deep);
  }
  .lb-info { flex: 1; min-width: 0; }
  .lb-name {
    font-family: 'Fraunces', serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.005em;
  }
  .lb-tag {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--grey-text);
    text-transform: uppercase;
    margin-top: 1px;
  }
  .lb-row.pro .lb-tag { color: var(--psg-gold); }
  .lb-row.me .lb-tag { color: var(--psg-red); }
  .lb-score {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--white);
    letter-spacing: -0.01em;
  }
  .lb-score small {
    font-size: 10px;
    color: var(--grey-text);
    font-weight: 400;
    margin-left: 2px;
  }

  /* Row expand cliquable (7 autres visiteurs...) */
  .lb-row.expand {
    cursor: pointer;
    transition: all 0.15s;
    background: transparent;
    border: 1px dashed var(--grey-mid);
  }
  .lb-row.expand:active { transform: scale(0.99); }
  .lb-row.expand:hover {
    background: rgba(206,171,93,0.06);
    border-color: rgba(206,171,93,0.35);
  }
  .lb-row.expand .lb-info-label {
    font-family: 'Fraunces', serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--psg-gold);
    letter-spacing: -0.005em;
  }
  .lb-row.expand .lb-info-meta {
    font-size: 10px;
    color: var(--grey-text);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 2px;
  }

  /* Tireur chip cliquable rendu plus actif */
  .tireur-chip { transition: all 0.2s; }
  .tireur-chip:active { transform: scale(0.96); }

  /* Période tab cliquable */
  .leaderboard-tab { transition: all 0.2s; }
  .leaderboard-tab:active { transform: scale(0.96); }

  /* Recherche leaderboard */
  .lb-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--grey-soft);
    border: 1px solid var(--grey-mid);
    border-radius: 12px;
    margin-bottom: 10px;
    transition: border 0.2s;
  }
  .lb-search:focus-within {
    border-color: var(--psg-gold);
    background: rgba(206,171,93,0.04);
  }
  .lb-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
  }
  .lb-search-input::placeholder { color: rgba(255,255,255,0.35); }
  .lb-search-clear {
    background: rgba(255,255,255,0.08);
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey-text);
    cursor: pointer;
    flex-shrink: 0;
  }

  .lb-meta {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--grey-text);
    text-transform: uppercase;
    margin-bottom: 14px;
    padding: 0 4px;
  }

  .lb-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--grey-text);
    font-family: 'Fraunces', serif;
    font-size: 16px;
    font-style: italic;
  }
  .lb-empty svg { margin: 0 auto 12px; display: block; }

  /* Prize banner */
  .prize-banner {
    margin: 16px 20px 0;
    padding: 18px;
    background: linear-gradient(135deg, rgba(206,171,93,0.2), rgba(206,171,93,0.04));
    border: 1px solid rgba(206,171,93,0.3);
    border-radius: 16px;
    display: flex;
    gap: 14px;
    align-items: center;
  }
  .prize-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--psg-gold), var(--psg-red));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
  }
  .prize-text { flex: 1; }
  .prize-title {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 2px;
  }
  .prize-title em { font-style: italic; color: var(--psg-gold); }
  .prize-sub {
    font-size: 11px;
    color: var(--grey-text);
    line-height: 1.3;
  }

  /* ========================================
     PROFIL
     ======================================== */

  .profile-header {
    padding: 20px 24px 24px;
    text-align: center;
    background:
      radial-gradient(ellipse at top, rgba(0,65,112,0.4) 0%, transparent 70%);
    position: relative;
  }

  .profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--psg-navy), var(--psg-red));
    border: 2px solid var(--psg-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 36px;
    color: var(--psg-gold);
    margin: 0 auto 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  }

  .profile-name {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 24px;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
  }
  .profile-name em { font-style: italic; color: var(--psg-gold); }
  .profile-email {
    font-size: 12px;
    color: var(--grey-text);
    letter-spacing: 0.05em;
  }

  .profile-section {
    padding: 4px 20px 24px;
  }

  .profile-section-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--psg-gold);
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 0 4px;
  }

  .profile-card {
    background: var(--grey-soft);
    border: 1px solid var(--grey-mid);
    border-radius: 16px;
    overflow: hidden;
  }

  .profile-item {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
  }
  .profile-item:last-child { border-bottom: none; }

  .profile-item-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--grey-text);
    text-transform: uppercase;
    margin-bottom: 3px;
  }
  .profile-item-value {
    font-family: 'Fraunces', serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: -0.005em;
  }
  .profile-item-arrow { color: rgba(255,255,255,0.3); flex-shrink: 0; }

  /* Ticket cards */
  .ticket-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .ticket-card {
    background: var(--grey-soft);
    border: 1px solid var(--grey-mid);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .ticket-card-body {
    padding: 14px 16px 12px 20px;
    position: relative;
  }
  .ticket-card-body::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: rgba(218,41,28,.7);
  }
  .ticket-card.primary {
    border-color: rgba(206,171,93,.4);
    background: linear-gradient(135deg, rgba(206,171,93,.12) 0%, rgba(206,171,93,.03) 100%);
  }
  .ticket-card.primary .ticket-card-body::before { background: var(--psg-gold); }

  .ticket-name {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 15px;
    color: rgba(255,255,255,.95);
    margin-bottom: 4px;
  }
  .ticket-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: .08em;
    text-transform: uppercase;
    flex-shrink: 0;
  }
  .ticket-badge.primary { background: var(--psg-gold); color: var(--psg-navy-deep, #000d19); }
  .ticket-badge.secondary { background: rgba(255,255,255,.15); color: rgba(255,255,255,.7); }
  .ticket-number {
    font-size: 10px;
    color: var(--grey-text);
    letter-spacing: .08em;
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    margin-top: 2px;
  }
  .ticket-card.primary .ticket-number { color: rgba(206,171,93,.7); }

  .ticket-card-actions {
    display: flex;
    gap: 6px;
    padding: 8px 12px 10px;
    border-top: 1px solid var(--grey-mid);
    background: rgba(0,0,0,.15);
    flex-wrap: wrap;
  }
  .ticket-card.primary .ticket-card-actions {
    background: rgba(0,0,0,.1);
    border-top-color: rgba(206,171,93,.2);
  }

  .add-ticket-btn {
    padding: 14px;
    background: rgba(218,41,28,.06);
    border: 1.5px dashed rgba(218,41,28,.35);
    border-radius: 14px;
    color: var(--psg-red);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
  }

  /* QR code modal */
  .qr-modal {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    z-index: 50;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  .qr-modal.open { display: flex; animation: fadeIn 0.2s; }
  .qr-card {
    background: var(--white);
    border-radius: 24px;
    padding: 24px;
    width: 100%;
    position: relative;
    text-align: center;
  }
  .qr-card-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #333;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .qr-header {
    color: var(--psg-navy-deep);
    margin-bottom: 16px;
  }
  .qr-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--psg-red);
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .qr-title {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 20px;
    color: var(--psg-navy-deep);
  }
  .qr-image {
    width: 100%;
    aspect-ratio: 1;
    max-width: 240px;
    margin: 0 auto 16px;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .qr-image svg { width: 100%; height: 100%; }
  .qr-id {
    font-family: 'Barlow Condensed', sans-serif;
    color: var(--psg-navy-deep);
    font-size: 13px;
    letter-spacing: 0.2em;
    font-weight: 600;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 10px;
  }

  /* ========== Utilities ========== */
  .hidden { display: none !important; }

  /* Prototype selector */
  .proto-selector {
    max-width: 420px;
    margin: 0 auto 20px;
    text-align: center;
    font-family: 'Barlow Condensed', sans-serif;
    color: var(--grey-text);
    font-size: 13px;
    letter-spacing: 0.1em;
  }
  .proto-selector strong { color: var(--psg-gold); font-weight: 600; }
  .proto-hint {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(206,171,93,0.1);
    border: 1px solid rgba(206,171,93,0.3);
    color: var(--psg-gold);
    font-size: 11px;
  }

  /* ---- Tour button in header ---- */
  .header-actions { display: flex; gap: 8px; align-items: center; }
  .tour-header-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--grey-soft); border: 1px solid var(--grey-mid);
    display: flex; align-items: center; justify-content: center;
    color: var(--psg-gold); cursor: pointer; flex-shrink: 0; transition: all 0.2s;
  }
  .tour-header-btn:active { transform: scale(0.92); }
  .tour-header-btn svg { width: 18px; height: 18px; }

  /* ---- HISTOIRE ---- */
  .histoire-intro {
    margin: 0 20px 20px; padding: 14px 16px;
    background: rgba(206,171,93,0.06); border: 1px solid rgba(206,171,93,0.18);
    border-radius: 14px; font-size: 12px; color: var(--grey-text); line-height: 1.55;
  }
  .histoire-intro strong { color: var(--white); }
  .histoire-count {
    margin: 0 20px 16px; display: flex; justify-content: space-between; align-items: center;
  }
  .histoire-count-label { font-size: 10px; color: var(--grey-text); letter-spacing: 0.15em; text-transform: uppercase; }
  .histoire-count-value { font-family: 'Fraunces', serif; font-size: 24px; color: var(--psg-gold); font-weight: 300; }
  .histoire-count-value em { font-size: 14px; font-style: normal; color: var(--grey-text); }
  .histoire-spots { padding: 0 20px 100px; }
  .histoire-row {
    display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; position: relative;
  }
  .histoire-row:not(:last-child)::after {
    content: ''; position: absolute; left: 17px; top: 38px;
    width: 1px; height: calc(100% + 12px); background: var(--grey-mid);
  }
  .histoire-node {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--grey-soft); border: 1px solid var(--grey-mid);
    display: flex; align-items: center; justify-content: center;
    color: var(--grey-text); font-size: 12px; font-weight: 700;
    flex-shrink: 0; position: relative; z-index: 1;
  }
  .histoire-row.discovered .histoire-node {
    background: rgba(206,171,93,0.15); border-color: rgba(206,171,93,0.4); color: var(--psg-gold);
  }
  .histoire-card {
    flex: 1; background: var(--grey-soft); border: 1px solid var(--grey-mid);
    border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: all 0.2s;
  }
  .histoire-row.discovered .histoire-card {
    border-color: rgba(206,171,93,0.2); background: rgba(206,171,93,0.04);
  }
  .histoire-card:active { transform: scale(0.98); }
  .histoire-location {
    font-size: 10px; font-weight: 700; letter-spacing: 0.2em;
    color: var(--psg-gold); text-transform: uppercase; margin-bottom: 4px;
  }
  .histoire-title {
    font-family: 'Fraunces', serif; font-weight: 500; font-size: 16px; line-height: 1.25; margin-bottom: 6px;
  }
  .histoire-title em { font-style: italic; color: var(--psg-gold); }
  .histoire-desc { font-size: 12px; color: var(--grey-text); line-height: 1.5; }
  .histoire-tag {
    display: inline-flex; align-items: center; gap: 5px; margin-top: 10px;
    padding: 4px 10px; border-radius: 20px; font-size: 10px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
  }
  .histoire-tag.scanned { background: rgba(206,171,93,0.12); color: var(--psg-gold); }
  .histoire-tag.pending { background: var(--grey-soft); color: var(--grey-text); border: 1px solid var(--grey-mid); }

  /* ---- SHARE ---- */
  .share-container { padding: 0 20px 100px; }
  .share-section-title {
    font-family: 'Fraunces', serif; font-weight: 500; font-size: 18px;
    margin-bottom: 14px; letter-spacing: -0.01em;
  }
  .share-section-title em { font-style: italic; color: var(--psg-gold); }
  .share-notice {
    padding: 12px 16px; background: rgba(206,171,93,0.06);
    border: 1px solid rgba(206,171,93,0.18); border-radius: 12px;
    font-size: 11px; color: var(--grey-text); line-height: 1.5; margin-bottom: 20px;
  }
  .share-notice strong { color: var(--psg-gold); }
  .share-photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
  .share-photo-item { border-radius: 14px; overflow: hidden; position: relative; background: var(--grey-soft); border: 1px solid var(--grey-mid); }
  .share-photo-thumb {
    width: 100%; aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center;
    font-family: 'Fraunces', serif; font-size: 13px; font-style: italic;
    color: rgba(255,255,255,0.5); text-align: center; padding: 16px;
  }
  .share-photo-info { padding: 10px 12px; }
  .share-photo-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--white); margin-bottom: 2px; }
  .share-photo-step { font-size: 10px; color: var(--grey-text); margin-bottom: 8px; }
  .share-photo-platforms { display: flex; gap: 5px; flex-wrap: wrap; }
  .share-photo-btn {
    width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--grey-mid);
    background: var(--grey-soft); display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.15s;
  }
  .share-photo-btn:active { transform: scale(0.88); }
  .share-photo-btn svg { width: 13px; height: 13px; }
  .share-photo-btn.ig { border-color: rgba(225,48,108,0.4); color: #E1306C; }
  .share-photo-btn.tt { border-color: rgba(105,201,208,0.4); color: #69C9D0; }
  .share-photo-btn.sc { border-color: rgba(255,220,0,0.4); color: #FFDC00; }
  .share-photo-btn.tw { border-color: rgba(255,255,255,0.25); color: var(--white); }
  .share-photo-btn.fb { border-color: rgba(24,119,242,0.4); color: #1877F2; }
  .share-locked-overlay {
    position: absolute; inset: 0; background: rgba(0,13,25,0.82); backdrop-filter: blur(4px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; border-radius: 14px;
  }
  .share-locked-overlay svg { color: var(--grey-text); }
  .share-locked-text { font-size: 11px; color: var(--grey-text); text-align: center; padding: 0 12px; line-height: 1.4; }
  .share-locked-link { font-size: 11px; color: var(--psg-gold); font-weight: 700; cursor: pointer; }
  .share-divider { height: 1px; background: var(--grey-mid); margin: 24px 0; }
  .share-score-card {
    background: linear-gradient(135deg, rgba(218,41,28,0.1), rgba(218,41,28,0.03));
    border: 1px solid rgba(218,41,28,0.2); border-radius: 18px; padding: 20px; margin-bottom: 16px;
  }
  .share-score-value { font-family: 'Fraunces', serif; font-size: 52px; font-weight: 800; color: var(--white); line-height: 1; letter-spacing: -0.02em; }
  .share-score-unit { font-size: 18px; color: var(--grey-text); margin-left: 2px; }
  .share-score-meta { font-size: 12px; color: var(--grey-text); margin-top: 2px; margin-bottom: 10px; }
  .share-score-rank {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
    background: rgba(206,171,93,0.1); border: 1px solid rgba(206,171,93,0.25);
    border-radius: 20px; padding: 4px 12px; font-size: 11px; color: var(--psg-gold); font-weight: 700; letter-spacing: 0.08em;
  }
  .platform-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .platform-btn {
    display: flex; align-items: center; gap: 7px; padding: 9px 12px;
    border-radius: 11px; border: 1px solid var(--grey-mid); background: var(--grey-soft);
    color: var(--white); font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; transition: all 0.2s; flex: 1; min-width: 70px; justify-content: center;
  }
  .platform-btn:active { transform: scale(0.95); }
  .platform-btn.instagram { border-color: rgba(225,48,108,0.4); color: #E1306C; }
  .platform-btn.tiktok    { border-color: rgba(105,201,208,0.4); color: #69C9D0; }
  .platform-btn.snapchat  { border-color: rgba(255,220,0,0.4); color: #FFDC00; }
  .platform-btn.twitter   { border-color: rgba(255,255,255,0.25); color: var(--white); }
  .platform-btn.facebook  { border-color: rgba(24,119,242,0.4); color: #1877F2; }

  /* ── Billet choice buttons ───────────────────────────── */
  .billet-choice-btn {
    display: flex; align-items: center; gap: 14px; width: 100%;
    padding: 16px; border: 1.5px solid #e5e7eb; border-radius: 14px;
    background: #fff; cursor: pointer; margin-bottom: 10px; text-align: left;
    transition: border-color .15s, background .15s;
  }
  .billet-choice-btn:active { border-color: var(--psg-navy); background: rgba(0,65,112,.04); }
  .billet-choice-icon {
    width: 46px; height: 46px; display: flex;
    align-items: center; justify-content: center;
    background: rgba(0,65,112,.08); border-radius: 12px; flex-shrink: 0;
    color: var(--psg-navy);
  }
  .billet-choice-title { font-size: .95rem; font-weight: 700; color: var(--psg-navy); margin-bottom: 2px; }
  .billet-choice-sub   { font-size: .78rem; color: #6b7280; }

  /* ── QR generated display overlay ────────────────────── */
  #qr-display-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: var(--psg-navy-deep, #000d19);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: calc(24px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .qr-display-title {
    color: var(--psg-gold, #ceab5d); font-family: 'Fraunces', serif;
    font-size: 1.4rem; margin: 0 0 6px; text-align: center;
  }
  .qr-display-sub {
    color: rgba(255,255,255,.5); font-size: .75rem; margin: 0 0 24px;
    font-family: monospace; letter-spacing: .04em; text-align: center;
  }
  .qr-display-card {
    background: #fff; border-radius: 20px; padding: 20px; margin-bottom: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,.4);
  }
  .qr-display-note {
    color: rgba(255,255,255,.4); font-size: .75rem;
    text-align: center; margin-bottom: 28px; max-width: 260px;
  }
  .qr-display-done {
    padding: 14px 48px; border-radius: 12px; background: var(--psg-gold, #ceab5d);
    color: var(--psg-navy, #002554); font-weight: 700; font-size: .9rem;
    border: none; cursor: pointer; letter-spacing: .03em;
  }

  /* ── QR Scanner overlay ──────────────────────────────── */
  #qr-scanner-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #000;
  }
  #qr-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .qr-viewfinder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }
  .qr-frame {
    width: 240px;
    height: 240px;
    border: 3px solid var(--psg-gold, #ceab5d);
    border-radius: 20px;
    box-shadow: 0 0 0 9999px rgba(0,0,0,.55);
  }
  .qr-hint {
    margin-top: 28px;
    color: #fff;
    font-size: .9rem;
    font-family: 'Barlow Condensed', sans-serif;
    text-align: center;
    letter-spacing: .04em;
  }
  .qr-close {
    position: absolute;
    top: calc(20px + env(safe-area-inset-top, 0px));
    right: 20px;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
