/*!
 * moment - style.css — Version 1.1
 * moment-app.io : Site Vitrine
 * Dernière mise à jour : 2025-06-02
 * Auteur : Christophe Troin
 */

html, body {
  height: 100vh !important;
  width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #000;
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}

body {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 100vh !important;
  min-width: 100vw !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Overlay portrait message en paysage sur petit écran */
@media screen and (max-width: 1024px) and (orientation: landscape) {
  body > * {
    display: none !important;
  }
  body::before {
    content: attr(data-portrait-message);
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #000;
    color: #fff;
    font-size: 1rem;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    z-index: 9999;
    text-transform: lowercase;
  }
}

.logo-container {
  margin-top: 16vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  animation: logoPulse 2s ease-in-out infinite alternate !important;
  will-change: transform, opacity !important;
  overflow: hidden !important;
}

@keyframes logoPulse {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.05); opacity: 0.92; }
}

.main-content {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  max-height: calc(100vh - 16vh - 240px) !important;
}

.coming-soon-block {
  margin-top: 60px !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  min-height: auto !important;
  opacity: 0;
  transition: opacity 0.4s !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  overflow: visible !important;
}

.block-visible {
  opacity: 1 !important;
  transition: opacity 0.4s !important;
}

.comingsoon-word {
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  min-width: 11ch !important;
  white-space: pre !important;
  display: inline-block !important;
  font-family: inherit !important;
  vertical-align: middle !important;
  margin: 0 !important;
  padding: 0 !important;
}

.coming-letter-1 { color: #FF2424 !important; }
.coming-letter-2 { color: #FF9900 !important; }
.coming-letter-3 { color: #FFEB3B !important; }
.coming-letter-4 { color: #00C853 !important; }
.coming-letter-5 { color: #2196F3 !important; }
.coming-letter-6 { color: #9C27B0 !important; }
.soon-letter { color: #fff !important; opacity: 0.7 !important; }

.typing-cursor {
  display: inline-block !important;
  width: 0.7ch !important;
  animation: blink 1s steps(1) infinite !important;
  color: #fff !important;
  vertical-align: bottom !important;
  margin-left: 1px !important;
}

@keyframes blink {
  0%, 50% { opacity: 1 !important; }
  51%, 100% { opacity: 0 !important; }
}

.typing-cursor-final {
  display: none !important;
  opacity: 0 !important;
  animation: none !important;
}

.catchphrase {
  margin: 2em 0 0 0 !important;
  padding: 0 1rem !important;
  font-size: 1.18rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  color: #fff !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  opacity: 0.88 !important;
  min-height: auto !important;
  white-space: normal !important;
  max-width: 90vw !important;
  word-break: break-word !important;
  box-sizing: border-box !important;
  line-height: 1.1 !important;
  overflow: visible !important;
  height: auto !important;
}

/* Reduire la taille de la phrase d'accroche uniquement sur smartphones */
@media (max-width: 600px) {
  .catchphrase {
    font-size: 0.98rem !important;
  }
}

.catchphrase .typing-cursor {
  font-size: 1.15em !important;
  margin-left: 2px !important;
}

/* Bouton App Store */
#storesRow {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  position: relative !important;
  margin-top: 30px !important;
  display: flex !important;
  justify-content: center !important;
  width: auto !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 11 !important;
}

#storesRow.stores-visible {
  opacity: 1;
  pointer-events: auto;
}

.store-badge-clean {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 56px !important;
  width: 170px !important;
  border-radius: 15px !important;
  background: transparent !important;
  box-shadow: 0 4px 16px 0 rgba(0,0,0,0.13) !important;
  filter: grayscale(0.4) brightness(0.96) opacity(0.88) !important;
  overflow: visible !important;
  border: none !important;
  padding: 0 !important;
  pointer-events: all !important;
  margin: 0 auto !important;
}

.store-badge-inner img {
  width: 150px !important;
  height: auto !important;
  margin: auto !important;
  opacity: 0.98 !important;
  background: transparent !important;
  user-select: none !important;
  pointer-events: none !important;
  border: none !important;
  display: block !important;
}

.social-row {
  position: fixed !important;
  left: 0 !important;
  bottom: 34px !important;
  width: 100vw !important;
  display: flex !important;
  justify-content: center !important;
  gap: 20px !important;
  min-height: 28px !important;
  margin-bottom: 0 !important;
  z-index: 10 !important;
  pointer-events: none !important;
}

.social-icon {
  width: 22px !important;
  height: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  background: none !important;
  transition: opacity 0.4s !important;
  user-select: none !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.icon-facebook   { color: #FF2424 !important; }
.icon-instagram  { color: #FF9900 !important; }
.icon-x          { color: #FFEB3B !important; }
.icon-tiktok     { color: #00C853 !important; }
.icon-linkedin   { color: #2196F3 !important; }
.icon-threads    { color: #9C27B0 !important; }

.social-icon svg {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
}

.icon-visible {
  opacity: 1 !important;
  transition: opacity 0.4s !important;
}

@media (max-width: 600px) {
  .logo-container img {
    width: 180px !important;
    height: 180px !important;
  }
  .logo-container {
    margin-top: 25vh !important;
  }
  .comingsoon-word {
    font-size: 1.15rem !important;
  }
  .coming-soon-block {
    margin-top: 40px !important;
    margin-bottom: 0 !important;
    min-height: auto !important;
    padding-bottom: 0 !important;
  }
  .catchphrase {
    margin-top: 3em !important;
    margin-bottom: 0 !important;
    padding: 0 1rem !important;
    max-width: 90vw !important;
    word-break: break-word !important;
    text-align: center !important;
    box-sizing: border-box !important;
    line-height: 1.1 !important;
    overflow: visible !important;
    white-space: normal !important;
  }
  #storesRow {
    margin-top: 40px !important;
  }
  .store-badge-clean {
    height: 32px !important;
    width: 93px !important;
  }
  .store-badge-inner img {
    width: 70px !important;
  }
  .social-row {
    gap: 11px !important;
    bottom: 14px !important;
  }
  .social-icon, .social-icon svg {
    width: 15px !important;
    height: 15px !important;
  }
}

/* Page fallback Safari pour les liens de parrainage */
.referral-block[hidden] {
  display: none !important;
}

body.referral-page .main-content {
  max-height: none !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
}

body.referral-page .coming-soon-block,
body.referral-page #storesRow,
body.referral-page .social-row {
  display: none !important;
}

body.referral-page .logo-container {
  margin-top: 17vh !important;
}

.referral-block {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: min(88vw, 420px) !important;
  margin: 54px auto 0 auto !important;
  color: #fff !important;
}

.referral-title {
  margin: 0 !important;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-size: 1.34rem !important;
  font-weight: 650 !important;
  line-height: 1.18 !important;
  letter-spacing: 0.01em !important;
  color: #fff !important;
}

.referral-text {
  margin: 18px 0 0 0 !important;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.42 !important;
  letter-spacing: 0.005em !important;
  color: rgba(255, 255, 255, 0.76) !important;
}

.referral-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 178px !important;
  margin-top: 34px !important;
  padding: 14px 26px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #000 !important;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-size: 0.98rem !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22) !important;
  -webkit-tap-highlight-color: transparent !important;
}

.referral-button:active {
  transform: scale(0.985) !important;
  background: rgba(255, 255, 255, 0.86) !important;
}

.referral-help {
  margin: 22px 0 0 0 !important;
  max-width: 320px !important;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  color: rgba(255, 255, 255, 0.46) !important;
}

@media (max-width: 600px) {
  body.referral-page .logo-container {
    margin-top: 21vh !important;
  }

  .referral-block {
    width: min(86vw, 360px) !important;
    margin-top: 42px !important;
  }

  .referral-title {
    font-size: 1.14rem !important;
  }

  .referral-text {
    margin-top: 15px !important;
    font-size: 0.92rem !important;
    line-height: 1.38 !important;
  }

  .referral-button {
    min-width: 160px !important;
    margin-top: 30px !important;
    padding: 13px 23px !important;
    font-size: 0.92rem !important;
  }

  .referral-help {
    margin-top: 20px !important;
    font-size: 0.74rem !important;
  }
}

/* Bêta Lyon */
.beta-entry-link {
  position: fixed;
  top: 26px;
  right: 30px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(8,8,8,.62);
  color: rgba(255,255,255,.86);
  text-decoration: none;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .09em;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.beta-entry-link::before { content:""; width:7px; height:7px; border-radius:50%; background:#c7ff5e; box-shadow:0 0 18px rgba(199,255,94,.55); }
.beta-entry-link:hover { border-color:rgba(199,255,94,.45); background:rgba(20,20,20,.78); transform:translateY(-1px); }

body.beta-page { overflow-y:auto !important; overflow-x:hidden !important; display:block !important; min-height:100vh !important; background:#050505 !important; }
body.beta-page::after { content:""; position:fixed; inset:-30vh -20vw auto; height:80vh; pointer-events:none; background:radial-gradient(circle at 50% 18%, rgba(255,255,255,.055), transparent 43%), radial-gradient(circle at 72% 32%, rgba(0,122,255,.045), transparent 32%), radial-gradient(circle at 30% 34%, rgba(88,86,214,.038), transparent 30%); filter:blur(24px); z-index:0; }
.beta-shell { position:relative; z-index:1; width:min(1180px, calc(100% - 48px)); margin:0 auto; padding:28px 0 42px; box-sizing:border-box; }


.beta-nav-label, .beta-kicker { font-size:.7rem; font-weight:700; letter-spacing:.2em; color:rgba(255,255,255,.44); }

.beta-hero { min-height:calc(100vh - 130px); display:flex; flex-direction:column; justify-content:center; align-items:flex-start; padding:6vh 0 8vh; max-width:980px; }
.beta-hero h1 { margin:18px 0 0; max-width:920px; font-size:clamp(3.4rem, 8vw, 7.4rem); font-weight:680; letter-spacing:-.065em; line-height:.91; color:#fff; }
.beta-rainbow-word { display:inline-flex; white-space:nowrap; font-weight:570; }
.beta-rainbow-word > span:nth-child(1) { color:#ff3b30; }
.beta-rainbow-word > span:nth-child(2) { color:#ff9500; }
.beta-rainbow-word > span:nth-child(3) { color:#ffcc00; }
.beta-rainbow-word > span:nth-child(4) { color:#34c759; }
.beta-rainbow-word > span:nth-child(5) { color:#007aff; }
.beta-rainbow-word > span:nth-child(6) { color:#5856d6; }
.beta-lead { margin:34px 0 0; max-width:720px; font-size:clamp(1.16rem, 2vw, 1.55rem); line-height:1.5; letter-spacing:-.015em; color:rgba(255,255,255,.7); }
.beta-primary-link { display:inline-flex; margin-top:38px; padding:15px 24px; border-radius:999px; background:#f5f5f2; color:#050505; text-decoration:none; font-weight:700; font-size:.93rem; transition:transform .2s ease, background .2s ease; }
.beta-primary-link:hover { transform:translateY(-2px); background:#fff; }
.beta-quiet { margin:18px 0 0; max-width:560px; color:rgba(255,255,255,.34); font-size:.82rem; line-height:1.5; }
.beta-story-simple { display:flex; align-items:flex-end; justify-content:space-between; gap:48px; margin:0 0 118px; padding:34px 0 38px; border-top:1px solid rgba(255,255,255,.09); border-bottom:1px solid rgba(255,255,255,.09); }
.beta-story-simple p { margin:0; max-width:700px; color:rgba(255,255,255,.72); font-size:clamp(1.22rem,2.4vw,1.75rem); line-height:1.42; letter-spacing:-.025em; }
.beta-story-simple strong { color:#fff; font-weight:680; }
.beta-story-simple .beta-story-note { max-width:340px; color:rgba(255,255,255,.38); font-size:.84rem; line-height:1.55; letter-spacing:0; }
.beta-candidature { display:grid; grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr); gap:80px; align-items:start; padding:90px 0 120px; border-top:1px solid rgba(255,255,255,.09); }
.beta-form-intro { position:sticky; top:70px; }
.beta-form-intro h2 { margin:18px 0 0; max-width:480px; font-size:clamp(2.3rem, 4.5vw, 4.2rem); line-height:1; letter-spacing:-.055em; }
.beta-form-intro > p:last-child { max-width:470px; margin:26px 0 0; color:rgba(255,255,255,.5); line-height:1.6; }
.beta-form { display:flex; flex-direction:column; gap:20px; padding:30px; border:1px solid rgba(255,255,255,.1); border-radius:30px; background:rgba(12,12,12,.74); box-shadow:0 30px 90px rgba(0,0,0,.34); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px); }
.beta-field-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.beta-form label:not(.beta-consent):not(.beta-honeypot) { display:flex; flex-direction:column; gap:9px; color:rgba(255,255,255,.72); font-size:.78rem; font-weight:650; letter-spacing:.015em; }
.beta-form label span { color:rgba(255,255,255,.32); font-weight:450; }
.beta-form input[type="text"], .beta-form input[type="email"], .beta-form textarea { width:100%; box-sizing:border-box; border:1px solid rgba(255,255,255,.1); border-radius:17px; background:#050505; color:#fff; padding:14px 15px; font:inherit; font-size:.95rem; font-weight:450; letter-spacing:0; outline:none; transition:border-color .2s ease, box-shadow .2s ease; }
.beta-form textarea { resize:vertical; min-height:118px; line-height:1.5; }
.beta-form input:focus, .beta-form textarea:focus { border-color:rgba(199,255,94,.42); box-shadow:0 0 0 3px rgba(199,255,94,.06); }
.beta-form input::placeholder, .beta-form textarea::placeholder { color:rgba(255,255,255,.24); }
.beta-field-note { display:block; margin-top:8px; padding:0 15px; box-sizing:border-box; width:100%; }
.beta-consent { display:grid; grid-template-columns:auto 1fr; gap:11px; align-items: start; cursor:pointer; }
.beta-consent input { margin-top:2px; accent-color:#c7ff5e; }
.beta-submit { margin-top:4px; border:0; border-radius:17px; padding:15px 20px; background:#f2f2ef; color:#050505; font:inherit; font-size:.92rem; font-weight:750; cursor:pointer; transition:transform .2s ease, opacity .2s ease; }
.beta-submit:hover { transform:translateY(-1px); }
.beta-submit:disabled { opacity:.48; cursor:wait; transform:none; }
.beta-form-status { min-height:20px; margin:0; color:rgba(255,255,255,.62); font-size:.82rem; line-height:1.45; }
.beta-form-status.is-success { color:#d9ff9b; }
.beta-form-status.is-error { color:#ffb1b1; }
.beta-honeypot { position:absolute !important; left:-9999px !important; width:1px !important; height:1px !important; overflow:hidden !important; }
@media (max-width: 820px) {
  .beta-entry-link { top:18px; right:18px; font-size:.66rem; padding:9px 12px; }
  .beta-shell { width:min(100% - 32px, 680px); padding-top:18px; }

  .beta-nav-label { font-size:.58rem; letter-spacing:.14em; }
  .beta-hero { min-height:auto; padding:16vh 0 16vh; }
  .beta-hero h1 { font-size:clamp(3rem, 14vw, 5.1rem); line-height:.93; }
  .beta-lead { font-size:1.08rem; }
  .beta-story-simple { align-items:flex-start; flex-direction:column; gap:18px; margin-bottom:84px; padding:28px 0 30px; }
  .beta-story-simple p { font-size:1.2rem; }
  .beta-story-simple .beta-story-note { font-size:.82rem; }
  .beta-candidature { grid-template-columns:1fr; gap:42px; padding:72px 0 90px; }
  .beta-form-intro { position:static; }
  .beta-field-grid { grid-template-columns:1fr; }
  .beta-form { padding:22px; border-radius:24px; }
}
body.referral-page .beta-entry-link { display:none !important; }


/* ==========================================================
   BETA LYON — EXPERIENCE FINALE
   ========================================================== */


.beta-experience {
  padding: 80px 0 128px;
}

.beta-experience-copy {
  max-width: 820px;
}

.beta-experience-copy h2,
.beta-pilot h2 {
  margin: 16px 0 26px;
  max-width: 840px;
  color: #f5f5f7;
  font-size: clamp(3rem, 6.5vw, 5.7rem);
  font-weight: 680;
  line-height: .96;
  letter-spacing: -.058em;
}

.beta-experience-lead,
.beta-pilot-lead {
  max-width: 700px;
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.52;
  letter-spacing: -.015em;
}

.beta-themes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 68px;
}

.beta-theme {
  min-height: 210px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.012));
  transition:
    transform .25s ease,
    border-color .25s ease,
    background .25s ease;
}

.beta-theme:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.17);
  background:
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.018));
}

.beta-theme-icon {
  margin-bottom: auto;
  color: rgba(255,255,255,.92);
  font-size: 2rem;
  line-height: 1;
}

.beta-theme strong {
  margin-bottom: 8px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 680;
}

.beta-theme > span:last-child {
  max-width: 240px;
  color: rgba(255,255,255,.42);
  font-size: .82rem;
  line-height: 1.5;
}

.beta-pilot {
  margin-top: 116px;
  padding-top: 94px;
  border-top: 1px solid rgba(255,255,255,.09);
}

.beta-pilot-cities {
  max-width: 1080px;
  margin: 36px 0 0;
  color: rgba(255,255,255,.52);
  font-size: .88rem;
  line-height: 1.75;
}

@media (max-width: 820px) {


  .beta-experience {
    padding: 64px 0 92px;
  }

  .beta-themes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 48px;
  }

  .beta-pilot {
    margin-top: 80px;
    padding-top: 68px;
  }
}

@media (max-width: 560px) {
  .beta-themes {
    grid-template-columns: 1fr;
  }

  .beta-theme {
    min-height: 165px;
  }
}


/* BETA LYON — THEMES COMPACTS IDENTITE APP */

/*
   Couleurs canoniques MomentsView.swift :
   food    Color(0.96, 0.22, 0.28) -> #F53847
   sport   Color(1.00, 0.58, 0.18) -> #FF942E
   music   Color(1.00, 0.83, 0.20) -> #FFD433
   walk    Color(0.22, 0.74, 0.38) -> #38BD61
   culture Color(0.18, 0.48, 0.95) -> #2E7AF2
   games   Color(0.58, 0.32, 0.86) -> #9452DB
*/

.beta-shell {
  width: min(1180px, calc(100% - 56px));
}

/* Le logo retrouve une vraie présence et respire. */


/* Le contenu conserve sa respiration, les cartes non. */
.beta-experience {
  padding-top: 58px;
  padding-bottom: 104px;
}

.beta-themes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  margin-top: 50px;
}

.beta-theme {
  min-height: 142px;
  padding: 17px;
  border-radius: 21px;
  box-sizing: border-box;
}

.beta-theme-icon {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: auto;

  background: var(--theme-accent);

  -webkit-mask-image: var(--theme-icon);
  mask-image: var(--theme-icon);

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-position: center;
  mask-position: center;

  -webkit-mask-size: contain;
  mask-size: contain;
}

.beta-theme strong {
  margin-top: 18px;
  margin-bottom: 5px;
  color: var(--theme-accent);
  font-size: .93rem;
  font-weight: 700;
}

.beta-theme > span:last-child {
  max-width: 165px;
  color: rgba(255,255,255,.42);
  font-size: .69rem;
  line-height: 1.4;
}

.beta-theme-food {
  --theme-accent: #F53847;
  --theme-icon: url("/img/beta-themes/food.png");
  border-color: rgba(245,56,71,.18);
}

.beta-theme-sport {
  --theme-accent: #FF942E;
  --theme-icon: url("/img/beta-themes/sport.png");
  border-color: rgba(255,148,46,.18);
}

.beta-theme-music {
  --theme-accent: #FFD433;
  --theme-icon: url("/img/beta-themes/music.png");
  border-color: rgba(255,212,51,.18);
}

.beta-theme-walk {
  --theme-accent: #38BD61;
  --theme-icon: url("/img/beta-themes/walk.png");
  border-color: rgba(56,189,97,.18);
}

.beta-theme-culture {
  --theme-accent: #2E7AF2;
  --theme-icon: url("/img/beta-themes/culture.png");
  border-color: rgba(46,122,242,.18);
}

.beta-theme-games {
  --theme-accent: #9452DB;
  --theme-icon: url("/img/beta-themes/games.png");
  border-color: rgba(148,82,219,.18);
}

.beta-theme:hover {
  border-color: var(--theme-accent);
}

@media (max-width: 1100px) {
  .beta-themes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .beta-shell {
    width: min(100% - 32px, 1180px);
  }


  .beta-themes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 38px;
  }

  .beta-theme {
    min-height: 136px;
    padding: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {

}

/* ==========================================================
   BETA LYON — RYTHME FINAL DES SECTIONS
   ========================================================== */

/*
   Même respiration entre :
   hero -> expérience
   expérience -> zone pilote
   zone pilote -> candidature
*/

.beta-experience {
  margin-top: 112px;
  padding-top: 92px;
  padding-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.beta-pilot {
  margin-top: 112px;
  padding-top: 92px;
  padding-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.beta-candidature {
  margin-top: 112px;
  padding-top: 92px;
  border-top: 1px solid rgba(255, 255, 255, .10);
}

/* Les thèmes restent rattachés à leur introduction,
   sans créer une section géante supplémentaire. */
.beta-themes {
  margin-top: 48px;
}

/* Évite qu'une ancienne règle double le séparateur du pilote. */
.beta-pilot::before,
.beta-experience::before,
.beta-candidature::before {
  content: none !important;
}

@media (max-width: 820px) {
  .beta-experience,
  .beta-pilot,
  .beta-candidature {
    margin-top: 76px;
    padding-top: 64px;
  }

  .beta-themes {
    margin-top: 38px;
  }
}

@media (max-width: 560px) {
  .beta-experience,
  .beta-pilot,
  .beta-candidature {
    margin-top: 64px;
    padding-top: 56px;
  }
}


/* ==========================================================
   BETA LYON — HEADER / LOGO FINAL
   Une seule source de vérité.
   ========================================================== */

.beta-nav {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  min-height: 220px;

  padding-top: 54px;
  padding-bottom: 54px;

  box-sizing: border-box;
}

.beta-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 124px;
  height: 124px;

  margin: 0;
  padding: 0;

  opacity: 1;
  text-decoration: none;
}

.beta-brand picture {
  display: block;
  width: 100%;
  height: 100%;
}

.beta-brand img {
  display: block;

  width: 124px !important;
  height: 124px !important;

  max-width: none !important;

  object-fit: contain;

  border-radius: 0;

  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.beta-brand:hover {
  opacity: 1;
  transform: none;
}

@media (max-width: 820px) {
  .beta-nav {
    min-height: 174px;

    padding-top: 38px;
    padding-bottom: 38px;
  }

  .beta-brand {
    width: 98px;
    height: 98px;
  }

  .beta-brand img {
    width: 98px !important;
    height: 98px !important;
  }
}

@media (max-width: 560px) {
  .beta-nav {
    min-height: 150px;

    padding-top: 30px;
    padding-bottom: 30px;
  }

  .beta-brand {
    width: 88px;
    height: 88px;
  }

  .beta-brand img {
    width: 88px !important;
    height: 88px !important;
  }
}

/* ==========================================================
   BETA LYON — HOME-LIKE FLOW FINAL
   Le haut reprend le rythme de la home.
   Les sections suivantes prolongent naturellement la page.
   ========================================================== */

/* ---------- HEADER / LOGO ---------- */

.beta-nav {
  min-height: 196px;
  padding-top: 30px;
  padding-bottom: 38px;
  align-items: flex-start;
}

/*
   Le conteneur donne de l'air.
   L'image est volontairement agrandie dans ce conteneur
   pour compenser la marge visuelle interne de l'asset.
*/
.beta-brand {
  width: 132px;
  height: 132px;
  overflow: visible;
}

.beta-brand picture {
  display: flex;
  width: 132px;
  height: 132px;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.beta-brand img {
  width: 132px !important;
  height: 132px !important;
  max-width: none !important;
  object-fit: contain;
  transform: scale(1.22) !important;
  transform-origin: center;
}


/* ---------- HERO : FIN DU FAUX PLEIN ECRAN ---------- */

/*
   Le hero ne crée plus un écran artificiellement immense.
   Son espacement inférieur devient la référence de toute la page.
*/
.beta-hero {
  min-height: 0 !important;
  height: auto !important;

  margin: 0;
  padding-top: 32px;
  padding-bottom: 112px;
}


/* ---------- EXPERIENCE ---------- */

/*
   Plus de trou supplémentaire ici :
   le hero fournit les 112 px avant le trait,
   puis cette section reprend avec 92 px après le trait.
*/
.beta-experience {
  margin-top: 0 !important;
  padding-top: 92px;
  padding-bottom: 112px;

  border-top: 1px solid rgba(255, 255, 255, .10);
}


/* ---------- PILOTE ---------- */

.beta-pilot {
  margin-top: 0 !important;
  padding-top: 92px;
  padding-bottom: 112px;

  border-top: 1px solid rgba(255, 255, 255, .10);
}


/* ---------- CANDIDATURE ---------- */

.beta-candidature {
  margin-top: 0 !important;
  padding-top: 92px;

  border-top: 1px solid rgba(255, 255, 255, .10);
}


/* ---------- TABLETTE ---------- */

@media (max-width: 820px) {
  .beta-nav {
    min-height: 164px;
    padding-top: 24px;
    padding-bottom: 30px;
  }

  .beta-brand,
  .beta-brand picture {
    width: 112px;
    height: 112px;
  }

  .beta-brand img {
    width: 112px !important;
    height: 112px !important;
    transform: scale(1.28) !important;
  }

  .beta-hero {
    padding-top: 20px;
    padding-bottom: 82px;
  }

  .beta-experience,
  .beta-pilot {
    padding-top: 68px;
    padding-bottom: 82px;
  }

  .beta-candidature {
    padding-top: 68px;
  }
}


/* ---------- IPHONE ---------- */

@media (max-width: 560px) {
  /*
     Sur iPhone : logo franchement visible dès l'ouverture.
     Il reste haut dans la page et respire avant le hero.
  */
  .beta-nav {
    min-height: 156px;
    padding-top: 18px;
    padding-bottom: 26px;
  }

  .beta-brand,
  .beta-brand picture {
    width: 108px;
    height: 108px;
  }

  .beta-brand img {
    width: 108px !important;
    height: 108px !important;
    transform: scale(1.34) !important;
  }

  .beta-hero {
    padding-top: 8px;
    padding-bottom: 72px;
  }

  .beta-experience,
  .beta-pilot {
    padding-top: 58px;
    padding-bottom: 72px;
  }

  .beta-candidature {
    padding-top: 58px;
  }

  .beta-themes {
    margin-top: 36px;
  }
}

/* ==========================================================
   BETA LYON — RYTHME VERTICAL CANONIQUE
   Une seule valeur pour toutes les séparations.
   ========================================================== */

.beta-page {
  --beta-section-gap: 92px;
  --beta-section-line: rgba(255, 255, 255, .10);
}

/* ----------------------------------------------------------
   HERO -> EXPERIENCE
   ---------------------------------------------------------- */

.beta-hero {
  margin: 0 !important;
  padding-bottom: var(--beta-section-gap) !important;
}

.beta-experience {
  position: relative;

  margin: 0 !important;
  padding-top: var(--beta-section-gap) !important;

  /*
     IMPORTANT :
     pas de padding-bottom ici puisque beta-pilot
     vit DANS beta-experience.
  */
  padding-bottom: 0 !important;

  border-top: 1px solid var(--beta-section-line) !important;
}


/* ----------------------------------------------------------
   EXPERIENCE / THEMES -> ZONE PILOTE
   ---------------------------------------------------------- */

.beta-pilot {
  position: relative;

  /*
     Exactement le même espace avant le trait
     que celui utilisé entre hero et experience.
  */
  margin-top: var(--beta-section-gap) !important;

  padding-top: var(--beta-section-gap) !important;
  padding-bottom: var(--beta-section-gap) !important;

  border-top: 1px solid var(--beta-section-line) !important;
}


/* ----------------------------------------------------------
   ZONE PILOTE -> CANDIDATURE
   ---------------------------------------------------------- */

.beta-candidature {
  position: relative;

  /*
     beta-pilot fournit déjà l'espace AVANT ce trait
     via son padding-bottom.
  */
  margin-top: 0 !important;

  padding-top: var(--beta-section-gap) !important;

  border-top: 1px solid var(--beta-section-line) !important;
}


/* ----------------------------------------------------------
   GARDE-FOU :
   aucun ancien pseudo-séparateur ne doit interférer.
   ---------------------------------------------------------- */

.beta-experience::before,
.beta-pilot::before,
.beta-candidature::before {
  content: none !important;
}


/* ----------------------------------------------------------
   TABLETTE
   ---------------------------------------------------------- */

@media (max-width: 820px) {
  .beta-page {
    --beta-section-gap: 68px;
  }
}


/* ----------------------------------------------------------
   IPHONE
   ---------------------------------------------------------- */

@media (max-width: 560px) {
  .beta-page {
    --beta-section-gap: 56px;
  }
}

/* ==========================================================
   FOOTER BETA — LEGAL
   ========================================================== */

.beta-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;

  margin-top: 92px;
  padding: 34px 0 48px;

  border-top: 1px solid rgba(255,255,255,.10);

  color: rgba(255,255,255,.34);
  font-size: .72rem;
}

.beta-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.beta-footer nav a {
  color: inherit;
  text-decoration: none;
}

.beta-footer nav a:hover {
  color: rgba(255,255,255,.72);
}

.icon-facebook { color: #FF2424; }
.icon-instagram { color: #FF9900; }
.icon-x { color: #FFEB3B; }
.icon-tiktok { color: #38BD61; }
.icon-linkedin { color: #2E7AF2; }
.icon-threads { color: #9C27B0; }

.social-icon {
  position: relative !important;
}

.social-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translate(-50%, 4px);
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(18,18,18,.96);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  font-size: .68rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
  z-index: 40;
}

.social-icon:hover::after,
.social-icon:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.social-icon-disabled {
  cursor: default !important;
}

.social-icon-disabled:hover {
  transform: none !important;
}

.beta-footer .beta-social-row {
  position: static !important;
  left: auto !important;
  bottom: auto !important;
  width: auto !important;
  min-height: 22px !important;
  margin: 0 !important;
  gap: 20px !important;
  z-index: auto !important;
  pointer-events: auto !important;
}

.beta-footer .social-icon {
  opacity: 1 !important;
}

@media (max-width: 560px) {
  .beta-footer {
    margin-top: 56px;
    padding: 28px 0 38px;
  }

  .beta-footer nav {
    gap: 12px 16px;
  }
}

/* BETA — teaser themes : icons only */
.beta-themes {
  align-items: center;
}

.beta-theme {
  min-height: 92px;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  border-color: rgba(255,255,255,.08);
}

.beta-theme-icon {
  width: 36px;
  height: 36px;
  margin: 0;
}

.beta-theme:hover {
  transform: none;
  background: transparent;
}

/* ==========================================================
   BETA — LANGUAGE SWITCHER
   ========================================================== */

.beta-nav-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.beta-language-select {
  appearance: none;
  -webkit-appearance: none;

  min-width: 64px;
  height: 38px;
  padding: 0 28px 0 14px;

  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;

  background:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.52) 50%)
      calc(100% - 14px) 16px / 4px 4px no-repeat,
    linear-gradient(135deg, rgba(255,255,255,.52) 50%, transparent 50%)
      calc(100% - 10px) 16px / 4px 4px no-repeat,
    rgba(255,255,255,.035);

  color: rgba(255,255,255,.74);
  font: inherit;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;

  cursor: pointer;
  outline: none;
}

.beta-language-select:hover {
  border-color: rgba(255,255,255,.22);
  color: #fff;
}

.beta-language-select:focus-visible {
  border-color: rgba(255,255,255,.38);
  box-shadow: 0 0 0 3px rgba(255,255,255,.07);
}

.beta-language-select option {
  background: #111;
  color: #fff;
}

.sr-only {
  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;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 720px) {
  .beta-nav-tools {
    gap: 10px;
  }

  .beta-language-select {
    min-width: 58px;
    height: 36px;
    padding-left: 12px;
    font-size: .68rem;
  }
}


/* Sélecteur de langue — bêta */
.beta-language-picker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.beta-language-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  stroke: rgba(255, 255, 255, .58);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.beta-source-field {
  display: block;
}

.beta-source-field > span {
  display: block;
}

.beta-form select {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  padding: 14px 42px 14px 15px;
  box-sizing: border-box;
  background-color: rgba(0,0,0,.28);
  color: rgba(255,255,255,.82);
  font: inherit;
  font-size: .92rem;
  line-height: 1.35;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.48) 50%),
    linear-gradient(135deg, rgba(255,255,255,.48) 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 50%,
    calc(100% - 14px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.beta-form select:focus {
  outline: none;
  border-color: rgba(199,255,94,.42);
  box-shadow: 0 0 0 3px rgba(199,255,94,.06);
}


/* Typographie strictement identique : aide Apple + consentement */
.beta-field-note,
.beta-consent span {
  font-family: inherit;
  font-size: .76rem;
  font-weight: 450;
  line-height: 1.5;
  letter-spacing: 0;
  color: rgba(255,255,255,.48);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}



/* Provenance : label normal, note strictement identique à l'aide Apple */
.beta-source-field > span {
  display: block;
}

.beta-source-field .beta-field-note {
  margin-top: 8px;
}

/* VERROUILLAGE FINAL — formulaire bêta */

/* Le titre provenance reprend STRICTEMENT la typo du label parent,
   donc le même rendu que Votre prénom / Votre nom / Votre e-mail. */
.beta-source-field > #betaSourceLabel {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

/* Les deux aides utilisent STRICTEMENT la même règle visuelle. */
#betaEmailNote,
#betaSourceNote {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 0 15px;
  font-family: inherit;
  font-size: .76rem;
  font-weight: 450;
  line-height: 1.5;
  letter-spacing: 0;
  color: rgba(255,255,255,.48);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* VERROUILLAGE FINAL — trois textes secondaires identiques */
#betaEmailNote,
#betaSourceNote,
.beta-consent span {
  font-family: inherit;
  font-size: .76rem;
  font-weight: 450;
  line-height: 1.5;
  letter-spacing: 0;
  color: rgba(255,255,255,.48);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* SOURCE — alignement strict sur les autres champs du formulaire */
.beta-form .beta-source-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.beta-form .beta-source-field > #betaSourceLabel {
  display: block;
  margin: 0;
  padding: 0;
  color: rgba(255,255,255,.72);
  font-family: inherit;
  font-size: .78rem;
  font-weight: 650;
  line-height: normal;
  letter-spacing: .015em;
}

.beta-form .beta-source-field > select {
  margin-top: 0;
}

.beta-form .beta-source-field > #betaSourceNote {
  margin-top: 0;
}

/* CONSENTEMENT — finition sobre et alignée */
.beta-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.beta-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 4px;
  background: transparent;
  box-sizing: border-box;
  cursor: pointer;
}

.beta-consent input[type="checkbox"]:checked {
  border-color: rgba(255,255,255,.92);
  background-color: rgba(255,255,255,.92);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.2 6.5 11 12.5 4.8' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
}

.beta-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid rgba(255,255,255,.55);
  outline-offset: 3px;
}

.beta-consent span {
  margin: 0;
  padding: 0;
}

/* CONSENTEMENT — verrouillage final de l'alignement */
.beta-form .beta-consent {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  margin: 0;
  padding: 0 15px;
  box-sizing: border-box;
}

.beta-form .beta-consent input[type="checkbox"] {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
}

.beta-form .beta-consent span {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: .76rem;
  font-weight: 450;
  line-height: 1.5;
  letter-spacing: 0;
  color: rgba(255,255,255,.48);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* CONSENTEMENT — importance renforcée sans alourdir */
.beta-form .beta-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin-top: 6px;
  padding: 10px 15px 0;
  box-sizing: border-box;
}

.beta-form .beta-consent input[type="checkbox"] {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
}

.beta-form .beta-consent span {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  color: rgba(255,255,255,.62);
}

/* CONSENTEMENT — alignement optique final */
.beta-form .beta-consent {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  column-gap: 11px;
  align-items: start;
  width: 100%;
  margin: 14px 0 0;
  padding: 0 15px;
  box-sizing: border-box;
}

.beta-form .beta-consent input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  padding: 0;
}

.beta-form .beta-consent span {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  color: rgba(255,255,255,.62);
}

@media (max-width: 560px) {
  .beta-footer {
    justify-content: center;
    text-align: center;
  }
  .beta-footer > span {
    width: 100%;
  }
  .beta-footer nav {
    order: 3;
  }
}

/* ==========================================================
   BETA FOOTER — LAYOUT FINAL VERROUILLE
   Gauche : copyright / Centre : socials / Droite : legal
   ========================================================== */

.beta-footer {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: center !important;
  width: 100% !important;
  gap: 24px !important;
}

.beta-footer > span {
  grid-column: 1 !important;
  justify-self: start !important;
}

.beta-footer .beta-social-row {
  grid-column: 2 !important;
  justify-self: center !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;

  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;

  z-index: 20 !important;
}

.beta-footer .beta-social-row .social-icon {
  position: relative !important;
  flex: 0 0 22px !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
}

.beta-footer nav {
  grid-column: 3 !important;
  justify-self: end !important;

  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;

  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;

  z-index: 10 !important;
}

.beta-footer nav a {
  display: inline-block !important;
  white-space: nowrap !important;
}

@media (max-width: 720px) {
  .beta-footer {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 20px !important;
  }

  .beta-footer > span,
  .beta-footer .beta-social-row,
  .beta-footer nav {
    grid-column: 1 !important;
    justify-self: center !important;
  }

  .beta-footer > span {
    order: 1 !important;
  }

  .beta-footer .beta-social-row {
    order: 2 !important;
  }

  .beta-footer nav {
    order: 3 !important;
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
}
}


/* ===== referral page ===== */
.referral-shell {
  min-height: 100vh;
}

.referral-hero {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 72px 24px 96px;
  text-align: center;
}

.referral-hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.referral-lead {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(255,255,255,0.68);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.referral-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 44px;
  margin-top: 56px;
  padding: clamp(28px, 5vw, 52px);
  text-align: left;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 8%, rgba(255,255,255,0.08), transparent 34%),
    rgba(255,255,255,0.035);
  box-shadow: 0 30px 90px rgba(0,0,0,0.34);
  backdrop-filter: blur(18px);
}

.referral-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.09), transparent 68%);
  pointer-events: none;
}

.referral-card-copy {
  position: relative;
  z-index: 1;
}

.referral-eyebrow {
  margin: 0 0 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.46);
}

.referral-card-copy h2 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.referral-card-copy p:last-child {
  max-width: 40rem;
  margin: 22px 0 0;
  color: rgba(255,255,255,0.62);
  line-height: 1.65;
}

.referral-form {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 24px;
  background: rgba(0,0,0,0.28);
}

.referral-form label {
  font-size: 0.88rem;
  font-weight: 650;
  color: rgba(255,255,255,0.8);
}

.referral-form input[type="email"] {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.045);
  color: #fff;
  font: inherit;
  outline: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.referral-form input[type="email"]:focus {
  border-color: rgba(255,255,255,0.36);
  background: rgba(255,255,255,0.065);
}

.referral-submit {
  margin-top: 4px;
  width: 100%;
}

.referral-status {
  min-height: 1.4em;
  margin: 0;
  text-align: center;
}

.referral-quiet {
  margin: 24px auto 0;
  color: rgba(255,255,255,0.38);
  font-size: 0.82rem;
}

.referral-footer {
  margin-top: auto;
}

@media (max-width: 760px) {
  .referral-hero {
    padding: 44px 18px 72px;
  }

  .referral-card {
    grid-template-columns: 1fr;
    gap: 28px;
    border-radius: 26px;
  }

  .referral-card-copy h2 {
    max-width: 14ch;
  }

  .referral-form {
    padding: 20px;
    border-radius: 20px;
  }
}

/* ===== referral — final surgical fixes ===== */

/* Le champ email reste strictement dans son bloc. */
body.referral-page .referral-form,
body.referral-page .referral-form * {
  box-sizing: border-box;
}

body.referral-page .referral-form input[type="email"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/*
 * Le footer est le vrai footer legal.
 * On ne modifie ni ses icones ni leur position :
 * on garantit uniquement leur rendu sur cette page.
 */
body.referral-page .legal-footer .legal-social-row {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.referral-page .legal-footer .legal-social-row .social-icon {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

body.referral-page .legal-footer .legal-social-row .social-icon svg {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ===== referral — iPhone portrait alignment ===== */

@media (max-width: 760px) {
  body.referral-page {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  body.referral-page .beta-shell,
  body.referral-page .referral-hero,
  body.referral-page .referral-card,
  body.referral-page .referral-form,
  body.referral-page .legal-header,
  body.referral-page .legal-footer {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.referral-page .referral-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.referral-page .referral-card {
    overflow: hidden;
  }

  body.referral-page .legal-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding-left: 16px;
    padding-right: 16px;
    text-align: center;
  }

  body.referral-page .legal-footer > span {
    width: 100%;
    text-align: center;
  }

  body.referral-page .legal-footer .legal-social-row {
    width: 100%;
    justify-content: center !important;
    margin-left: auto;
    margin-right: auto;
  }

  body.referral-page .legal-footer .legal-social-row .social-icon {
    flex: 0 0 auto;
  }
}
