/* ============================================================
   Retrouvailles ESCP Exec MBA — Promo 2021
   Identité affinée par Claude Design (handoff hifi)
   ============================================================ */

:root {
  --blue: #002B5C;
  --blue-dark: #001830;
  --blue-darker: #001020;
  --blue-light: #003E7A;
  --blue-light2: #0A4D8F;
  --gold: #C8A840;
  --gold-dark: #9A7A28;
  --gold-mid: #B89030;
  --cream: #F6F0E4;
  --cream-card: #FFFEF8;
  --ink: #1A1D2E;
  --wa-green: #25D366;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --shadow-card: 0 4px 28px rgba(0, 43, 92, 0.10);
  --shadow-soft: 0 4px 24px rgba(0, 43, 92, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; -webkit-tap-highlight-color: transparent; color: inherit; }
button { -webkit-tap-highlight-color: transparent; font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

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

.app { min-height: 100vh; }
.wrap { max-width: 760px; margin: 0 auto; }
.section { padding: 0 16px; }

/* hidden helper */
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream-card);
  box-shadow: 0 1px 0 rgba(0, 43, 92, 0.10);
  padding: 10px 16px 12px;
}
.header__inner { max-width: 700px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.brand__name { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--blue); letter-spacing: 0.07em; }
.brand__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.brand__sub { font-size: 12px; font-weight: 500; color: rgba(26,29,46,0.45); letter-spacing: 0.02em; }
.tabs { display: flex; gap: 6px; }
.tab {
  flex: 1; border: none; border-radius: 100px; padding: 8px 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
  background: rgba(0,43,92,0.07); color: rgba(26,29,46,0.6);
  transition: background 0.2s, color 0.2s;
}
.tab--active { background: var(--blue); color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(155deg, #001830 0%, #002B5C 55%, #003E7A 100%);
  padding: 40px 20px 48px; text-align: center; position: relative; overflow: hidden;
}
.hero__glow { position: absolute; border-radius: 50%; pointer-events: none; }
.hero__glow--tr { top: -50px; right: -50px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(200,168,64,0.14) 0%, transparent 70%); }
.hero__glow--bl { bottom: -70px; left: -40px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(200,168,64,0.09) 0%, transparent 70%); }
.hero__inner { position: relative; z-index: 1; }
.badge {
  display: inline-block; border: 1.5px solid rgba(200,168,64,0.55);
  border-radius: 100px; padding: 6px 14px; margin-bottom: 18px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.11em; color: var(--gold);
}
.hero__title {
  font-family: var(--font-display); font-weight: 700; color: var(--cream);
  font-size: clamp(46px, 12vw, 62px); line-height: 1.0; margin: 0 0 14px;
}
.hero__title em { font-style: italic; color: var(--gold); }
.hero__subtitle { font-size: 15px; color: rgba(246,240,228,0.76); max-width: 320px; margin: 0 auto; line-height: 1.55; }
.hero__cta { margin-top: 22px; border: none; background: var(--gold); color: var(--blue-dark); font-size: 16px; font-weight: 700; letter-spacing: 0.04em; border-radius: 100px; padding: 14px 32px; box-shadow: 0 6px 20px rgba(0,0,0,0.25); transition: transform 0.1s, opacity 0.2s; }
.hero__cta:active { transform: scale(0.98); }
.hero__cta.voted, .hero__cta[disabled] { background: rgba(246,240,228,0.25); color: var(--cream); cursor: default; box-shadow: none; }

/* ---------- Info dates ---------- */
.info-section { padding: 20px 16px 28px; background: var(--cream); }
.info-card { max-width: 600px; margin: 0 auto; background: var(--cream-card); border: 1px solid rgba(200,168,64,0.45); border-radius: 14px; padding: 16px 18px; text-align: center; box-shadow: var(--shadow-soft); }
.info-card__date { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.info-card__note { font-size: 13px; color: rgba(26,29,46,0.65); line-height: 1.55; margin: 0; }

/* ---------- Countdown ---------- */
.countdown { background: var(--blue-dark); padding: 18px 20px 24px; text-align: center; }
.countdown__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(200,168,64,0.75); margin-bottom: 12px; }
.countdown__grid { display: flex; gap: 8px; max-width: 320px; margin: 0 auto; }
.cd-box { flex: 1; background: rgba(200,168,64,0.10); border: 1px solid rgba(200,168,64,0.24); border-radius: 10px; padding: 10px 4px; }
.cd-box__num { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--gold); line-height: 1; }
.cd-box__lbl { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(246,240,228,0.35); margin-top: 6px; }
.countdown--over .countdown__label { color: var(--gold); }

/* ---------- Eliminated ---------- */
.elim { background: var(--cream); padding: 22px 16px; border-bottom: 1px solid rgba(0,43,92,0.06); }
.elim__title, .section-title--mini { text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.13em; color: rgba(26,29,46,0.4); margin-bottom: 14px; }
.elim__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 480px; margin: 0 auto; }
.elim__col { text-align: center; }
.elim__photo { position: relative; height: 190px; border-radius: 14px; overflow: hidden; filter: grayscale(0.5); border: 1px solid rgba(26,29,46,0.1); }
.elim__photo img { width: 100%; height: 100%; object-fit: cover; }
.elim__photo--naples { background: linear-gradient(150deg, #6E94B4 0%, #A98C66 55%, #7A4A38 100%); }
.elim__photo--ibiza { background: linear-gradient(150deg, #E8A06A 0%, #D98AA8 50%, #5EA0B0 100%); }
.elim__photo--bangkok { background: linear-gradient(150deg, #D98A3A 0%, #B05828 55%, #7A3A60 100%); }
.elim__photo--lisbonne { background: linear-gradient(150deg, #E8C46A 0%, #6AA0C0 55%, #C05848 100%); }
.elim__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.45), transparent 55%); }
.elim__stamp { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-15deg); text-align: center; line-height: 1.05; font-size: 15px; font-weight: 800; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); text-shadow: 0 1px 6px rgba(0,0,0,0.45); }
.elim__caption { position: absolute; top: 8px; left: 8px; font-size: 9px; color: rgba(255,255,255,0.6); }
.elim__name { font-family: var(--font-display); font-size: 23px; font-weight: 700; color: rgba(26,29,46,0.5); text-decoration: line-through; text-decoration-color: rgba(200,168,64,0.7); text-decoration-thickness: 1.5px; margin-top: 8px; }

/* ---------- Live counter ---------- */
.counter-section { padding: 22px 16px 6px; }
.counter { background: var(--cream-card); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-soft); max-width: 760px; margin: 0 auto; }
.counter__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.counter__title { font-size: 13px; font-weight: 700; color: var(--blue); }
.counter__pill { font-size: 11px; font-weight: 700; color: var(--gold-dark); background: rgba(200,168,64,0.12); border-radius: 100px; padding: 4px 10px; }
.bar { position: relative; height: 48px; border-radius: 12px; overflow: hidden; display: flex; box-shadow: inset 0 1px 4px rgba(0,0,0,0.14); }
.bar__seg { display: flex; align-items: center; transition: width 0.6s cubic-bezier(0.34,1.2,0.64,1); overflow: hidden; white-space: nowrap; }
.bar__seg--aix { background: linear-gradient(90deg,#B89030,#9A7A28); color: #fff; justify-content: flex-start; padding-left: 14px; font-size: 15px; font-weight: 700; }
.bar__seg--porto { background: linear-gradient(90deg,#003E7A,#002B5C); color: var(--cream); justify-content: flex-end; padding-right: 14px; font-size: 15px; font-weight: 700; }
.bar__vs { position: absolute; top: 50%; width: 34px; height: 34px; border-radius: 50%; background: var(--cream-card); border: 2px solid var(--gold); transform: translate(-50%,-50%); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: var(--gold); z-index: 2; transition: left 0.6s cubic-bezier(0.34,1.2,0.64,1); }
.counter__legend { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; font-weight: 600; color: rgba(26,29,46,0.7); }
.counter__legend b { font-weight: 700; }
.counter__legend .aix b { color: var(--gold-dark); }
.counter__legend .porto b { color: var(--blue); }
.counter__confirm { margin-top: 14px; text-align: center; border: 1px dashed var(--gold); border-radius: 10px; padding: 10px; font-size: 13px; font-weight: 600; color: var(--gold-dark); background: rgba(200,168,64,0.06); }
.counter__note { margin-top: 10px; text-align: center; font-size: 10px; color: rgba(26,29,46,0.35); }

/* ---------- Finalists ---------- */
.finalists { padding: 24px 16px 8px; }
.section-title { font-family: var(--font-display); font-size: 28px; font-weight: 600; text-align: center; color: var(--blue); margin: 0 0 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 760px; margin: 0 auto; }
.card { background: var(--cream-card); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; animation: fadeInUp 0.5s both; }

/* slider */
.slider { height: 188px; position: relative; overflow: hidden; }
.slider__track { display: flex; height: 100%; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); }
.slide { flex: 0 0 100%; height: 100%; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.45), transparent 55%); pointer-events: none; }
.slider__badge { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.45); color: var(--gold); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 100px; }
.slider__caption { position: absolute; bottom: 10px; left: 10px; font-size: 9px; color: rgba(255,255,255,0.7); }
.slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(0,0,0,0.4); color: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.slider__arrow--prev { left: 8px; }
.slider__arrow--next { right: 8px; }
.slider__dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.dot { width: 7px; height: 7px; border-radius: 100px; background: rgba(255,255,255,0.55); transition: width 0.3s, background 0.3s; }
.dot--active { width: 18px; background: var(--gold); }

/* aix/porto gradient placeholders (shown until photos dropped) */
.ph-aix-1 { background: linear-gradient(148deg,#C8B888,#A08040 45%,#6A5018); }
.ph-aix-2 { background: linear-gradient(148deg,#D8C49C,#B08C48 45%,#7A5C20); }
.ph-aix-3 { background: linear-gradient(148deg,#BCAA78,#988038 45%,#5E4814); }
.ph-porto-1 { background: linear-gradient(148deg,#C04828,#E06838 45%,#284878); }
.ph-porto-2 { background: linear-gradient(148deg,#D0583A,#E87848 45%,#305088); }
.ph-porto-3 { background: linear-gradient(148deg,#A83E22,#C85830 45%,#223C68); }

.card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-family: var(--font-display); font-size: 27px; font-weight: 700; color: var(--blue); margin: 0 0 8px; }
.card__desc { font-size: 13px; color: rgba(26,29,46,0.65); line-height: 1.55; margin: 0 0 16px; }
.program__label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(0,43,92,0.45); margin-bottom: 8px; }
.program { list-style: none; padding: 0; margin: 0 0 16px; }
.program li { font-size: 13px; color: var(--ink); line-height: 1.5; padding-left: 18px; position: relative; margin-bottom: 6px; }
.program li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); }
.budget { background: rgba(0,43,92,0.05); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.budget__amount { font-size: 16px; font-weight: 700; color: var(--blue); }
.budget__note { font-size: 12px; color: rgba(26,29,46,0.55); margin-top: 2px; }
.vote-btn { margin-top: auto; display: block; width: 100%; border: none; background: var(--blue); color: var(--cream); font-size: 14px; font-weight: 700; border-radius: 12px; padding: 14px; text-align: center; transition: opacity 0.2s, transform 0.1s; }
.vote-btn:active { transform: scale(0.98); }
.vote-btn[disabled] { opacity: 0.55; cursor: default; }
.vote-btn--voted { background: var(--gold-dark); }

/* ---------- Bouton VOTER + modale ---------- */
.vote-cta { padding: 6px 16px 24px; text-align: center; }
.vote-cta__btn { width: 100%; max-width: 760px; border: none; background: var(--blue); color: var(--cream); font-size: 18px; font-weight: 700; letter-spacing: 0.06em; border-radius: 14px; padding: 18px; box-shadow: var(--shadow-card); transition: transform 0.1s, opacity 0.2s; }
.vote-cta__btn:active { transform: scale(0.99); }
.vote-cta__btn.voted, .vote-cta__btn[disabled] { background: var(--gold-dark); opacity: 0.9; cursor: default; }

.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(12,19,48,0.55); }
.modal__card { position: relative; z-index: 1; background: var(--cream-card); border-radius: 18px; padding: 26px 20px 20px; width: 100%; max-width: 380px; box-shadow: 0 12px 40px rgba(0,0,0,0.3); animation: fadeInUp 0.25s both; }
.modal__close { position: absolute; top: 8px; right: 12px; border: none; background: none; font-size: 26px; line-height: 1; color: rgba(26,29,46,0.4); }
.modal__title { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--blue); text-align: center; margin: 0 0 8px; }
.modal__warn { text-align: center; font-size: 12px; font-weight: 600; color: var(--gold-dark); background: rgba(200,168,64,0.12); border-radius: 8px; padding: 8px 10px; margin: 0 0 18px; }
.modal__choices { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.choice { display: flex; align-items: center; gap: 10px; border: 1.5px solid rgba(0,43,92,0.15); background: var(--cream); border-radius: 12px; padding: 14px 16px; font-size: 15px; font-weight: 600; color: var(--ink); text-align: left; transition: border-color 0.15s, background 0.15s; }
.choice span { font-size: 20px; }
.choice--active { border-color: var(--blue); background: rgba(0,43,92,0.07); }
.modal__name { width: 100%; border: 1.5px solid rgba(0,43,92,0.15); border-radius: 12px; padding: 13px 16px; font-size: 15px; font-family: var(--font-body); color: var(--ink); margin-bottom: 14px; }
.modal__name:focus { outline: none; border-color: var(--blue); }
.modal__submit { width: 100%; border: none; background: var(--blue); color: var(--cream); font-size: 15px; font-weight: 700; border-radius: 12px; padding: 14px; transition: opacity 0.2s; }
.modal__submit[disabled] { opacity: 0.4; cursor: default; }

/* ---------- Photo de groupe ---------- */
.groupe { padding: 8px 16px 12px; }
.groupe__card { background: var(--blue); border-radius: 18px; padding: 22px 18px; text-align: center; max-width: 760px; margin: 0 auto; box-shadow: var(--shadow-card); }
.groupe__title { font-family: var(--font-display); color: #fff; font-size: 26px; font-weight: 700; margin: 0 0 16px; }
.groupe__photo { width: 100%; border-radius: 12px; display: block; }

/* ---------- WhatsApp ---------- */
.whatsapp { padding: 20px 16px; }
.whatsapp__card { background: linear-gradient(130deg,#075E54,#128C7E); border-radius: 16px; padding: 22px 20px; text-align: center; max-width: 760px; margin: 0 auto; }
.whatsapp__title { color: #fff; font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.whatsapp__sub { color: rgba(255,255,255,0.85); font-size: 13px; margin: 0 0 16px; line-height: 1.5; }
.whatsapp__btn { display: inline-block; background: var(--wa-green); color: #053d33; font-weight: 700; font-size: 14px; padding: 12px 24px; border-radius: 100px; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 24px 16px 32px; font-size: 11px; color: rgba(26,29,46,0.28); }

/* ---------- Page 2 (locked) ---------- */
.lockhero { background: linear-gradient(160deg,#001020 0%,#001D3D 60%,#002B5C 100%); padding: 44px 20px 40px; text-align: center; position: relative; overflow: hidden; }
.lockhero__stripe { position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(200,168,64,0.04) 18px, rgba(200,168,64,0.04) 19px); pointer-events: none; }
.lockhero__inner { position: relative; z-index: 1; }
.lock-circle { width: 74px; height: 74px; border-radius: 50%; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 30px; margin: 0 auto 18px; }
.lockhero__title { font-family: var(--font-display); font-weight: 700; color: var(--cream); font-size: clamp(40px,11vw,54px); margin: 0 0 14px; }
.lockhero__title em { font-style: italic; color: var(--gold); }
.lockhero__text { font-size: 14px; color: rgba(246,240,228,0.72); max-width: 340px; margin: 0 auto; line-height: 1.55; }
.locked-sections { padding: 22px 16px; max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.locked-card { position: relative; background: var(--cream-card); border-radius: 16px; padding: 20px; box-shadow: var(--shadow-soft); overflow: hidden; }
.locked-card__inner { filter: blur(5px); opacity: 0.38; pointer-events: none; }
.locked-card__title { font-size: 14px; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.locked-card__badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--blue); color: var(--cream); font-size: 12px; font-weight: 700; padding: 8px 16px; border-radius: 100px; white-space: nowrap; }
.skeleton { height: 10px; border-radius: 6px; background: rgba(0,43,92,0.12); margin-bottom: 8px; }
.skeleton.w70 { width: 70%; } .skeleton.w50 { width: 50%; } .skeleton.w90 { width: 90%; }
.cd-skel { display: flex; gap: 8px; } .cd-skel > div { flex: 1; height: 60px; border-radius: 10px; background: rgba(0,43,92,0.1); display:flex; align-items:center; justify-content:center; font-family: var(--font-display); font-size: 28px; color: rgba(0,43,92,0.3); }
.back-btn { display: block; margin: 8px auto 0; background: none; border: none; color: var(--blue); font-size: 13px; font-weight: 600; }
