/* ============================================================
   SERMENTMEDICAL.COM — Elite Premium Style
   Palette: Navy (#1A2B4A), Blue (#4A6FA5), Gold (#C5A880), Cream (#F5F0E8)
   ============================================================ */

:root {
  --navy: #1A2B4A;
  --navy-dark: #0f1c33;
  --blue: #4A6FA5;
  --blue-light: #5c84be;
  --slate: #6B8DB5;
  --cream: #F5F0E8;
  --white: #ffffff;
  --gold: #C5A880;
  --gold-light: #E2C999;
  
  /* Luxury Shadows */
  --shadow-sm: 0 4px 12px rgba(26,43,74,0.08);
  --shadow-md: 0 12px 32px rgba(26,43,74,0.15);
  --shadow-lg: 0 24px 64px rgba(15,28,51,0.35);
  --shadow-gold: 0 8px 24px rgba(197, 168, 128, 0.25);
  
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--navy-dark);
  color: var(--cream);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
}

/* ---- SCROLL PROGRESS BAR ---- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--cream));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ---- CUSTOM CURSOR ---- */
#custom-cursor {
  position: fixed;
  width: 36px;
  height: 36px;
  pointer-events: none;
  z-index: 10002;
  transform: translate(-50%, -50%);
  transition: transform 0.1s cubic-bezier(0.2, 1, 0.2, 1);
}
#custom-cursor svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 8px rgba(197, 168, 128, 0.4));
}
body:not(:hover) #custom-cursor {
  opacity: 0;
}

/* ---- LOADING SCREEN ---- */
#loader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, var(--navy) 0%, var(--navy-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  flex-direction: column;
}
.loader-inner {
  text-align: center;
}
#caduceus-svg {
  width: 120px;
  height: 180px;
  margin-bottom: 28px;
}
.loader-text {
  font-family: var(--font-serif);
  color: var(--cream);
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: 0.08em;
  animation: pulse 1.8s infinite ease-in-out;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1); }
}

/* ---- FLOATING PARTICLES ---- */
#particles-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  pointer-events: none;
  animation: floatUp linear infinite;
  opacity: 0;
  font-weight: 300;
}
@keyframes floatUp {
  0% { transform: translateY(105vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.25; }
  90% { opacity: 0.15; }
  100% { transform: translateY(-120px) rotate(360deg); opacity: 0; }
}

/* ---- MAIN WRAPPER ---- */
#main-wrapper {
  position: relative;
  z-index: 1;
}

/* ============================================================
   PAGE 1: SPLIT SCREEN HERO
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  background: radial-gradient(ellipse at top right, #1d335c 0%, var(--navy-dark) 70%);
  overflow: hidden;
}
.hero-bg-caduceus {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: slowRotate 80s linear infinite;
}
.hero-bg-caduceus svg {
  width: 450px;
  height: 600px;
}
@keyframes slowRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-grid {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* LEFT COLUMN - HERO INFO */
.hero-info-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 75vh;
}
.hero-info-content {
  margin-bottom: 40px;
}
.header-badge {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(-20px);
}
#site-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1.05;
  opacity: 0;
  transform: translateY(30px);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}
#site-title span {
  color: var(--gold);
  text-shadow: 0 0 30px rgba(197, 168, 128, 0.2);
}

.header-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  color: rgba(245,240,232,0.9);
  margin-top: 16px;
  font-weight: 500;
  opacity: 0;
}
.header-promo {
  font-size: 0.95rem;
  color: var(--slate);
  margin-top: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0;
}
.header-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 32px 0;
  max-width: 400px;
  opacity: 0;
}
.header-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.header-divider span:last-child {
  background: linear-gradient(270deg, var(--gold), transparent);
}
.header-divider svg {
  width: 14px;
  height: 14px;
}

.header-venue, .header-date {
  font-size: 1.1rem;
  color: var(--cream);
  opacity: 0;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* COUNTDOWN CONTAINER */
.countdown-container {
  margin-top: 48px;
  opacity: 0;
}
.countdown-label {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 18px;
}

/* FLIP CLOCK IN HERO */
.flip-clock {
  display: flex;
  align-items: center;
  gap: 16px;
}
.flip-unit {
  text-align: center;
}
.flip-card {
  background: linear-gradient(180deg, #162642 0%, #0d1729 100%);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4),
              inset 0 1px 1px rgba(255,255,255,0.05);
  border: 1px solid rgba(197, 168, 128, 0.2);
  width: 76px;
  position: relative;
}
.flip-top, .flip-bot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1;
}
.flip-top {
  border-bottom: 1px solid rgba(197, 168, 128, 0.15);
}
.flip-bot {
  background: #09111e;
}
.flip-label {
  display: block;
  font-size: 0.65rem;
  color: var(--slate);
  margin-top: 6px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.flip-sep {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--gold);
  margin-bottom: 20px;
  animation: sepBlink 1s step-end infinite;
}
@keyframes sepBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.scroll-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate);
  margin-top: 32px;
  cursor: pointer;
}
.scroll-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounceArrow 2s infinite ease-in-out;
}
@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* RIGHT COLUMN - REGISTRATION FORM (GLASSMORPHISM) */
.hero-form-col {
  opacity: 0;
  transform: translateY(40px);
}
.form-card {
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.4);
  overflow: hidden;
  padding: 44px;
  position: relative;
}
.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.form-card-header {
  text-align: center;
  margin-bottom: 32px;
}
.form-icon {
  width: 52px;
  height: 52px;
  background: rgba(197, 168, 128, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  box-shadow: 0 0 0 4px rgba(197, 168, 128, 0.04);
}
.form-icon svg {
  width: 26px;
  height: 26px;
}

.form-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}
.form-subtitle {
  color: var(--blue);
  font-size: 0.9rem;
  margin-top: 8px;
  font-weight: 400;
}

/* FIELD GROUPS */
.field-group {
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(16px);
}
.field-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  pointer-events: none;
}
.input-wrapper input {
  width: 100%;
  padding: 14px 44px 14px 44px;
  border: 1.5px solid rgba(74, 111, 165, 0.25);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--navy);
  background: white;
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
  transition: all var(--transition);
}
.input-wrapper input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(197, 168, 128, 0.15);
}
.input-wrapper input.valid {
  border-color: #22c55e;
}
.input-wrapper input.invalid {
  border-color: #ef4444;
}

.field-status {
  position: absolute;
  right: 16px;
  font-weight: bold;
}

/* Phone */
.phone-wrapper {
  gap: 8px;
}
.phone-flag {
  background: var(--navy);
  color: var(--cream);
  padding: 14px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  white-space: nowrap;
  font-weight: 600;
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.phone-wrapper input {
  padding-left: 16px;
}

.field-error {
  font-size: 0.78rem;
  color: #ef4444;
  margin-top: 4px;
  min-height: 18px;
}

/* TOGGLE SWITCH */
.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(74, 111, 165, 0.05);
  border-radius: 12px;
  border: 1.5px solid rgba(74, 111, 165, 0.12);
}
.toggle-switch {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-track {
  display: block;
  width: 56px;
  height: 30px;
  background: rgba(26, 43, 74, 0.15);
  border-radius: 99px;
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}
.toggle-switch input:checked + .toggle-track {
  background: var(--gold);
}
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.toggle-thumb svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}
.toggle-switch input:checked + .toggle-track .toggle-thumb {
  transform: translateX(26px);
}
.toggle-switch input:checked + .toggle-track .toggle-thumb svg {
  opacity: 1;
}

.toggle-label-off, .toggle-label-on {
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 600;
}
.toggle-label-on {
  flex: 1;
}
.toggle-hint {
  font-size: 0.78rem;
  color: var(--slate);
  margin-top: 6px;
}

/* STEPPER */
.stepper-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  background: rgba(74, 111, 165, 0.05);
  border-radius: 12px;
  border: 1.5px solid rgba(74, 111, 165, 0.12);
  width: fit-content;
}
.stepper-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  transition: all var(--transition);
}
.stepper-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: white;
  transform: scale(1.1);
}
.stepper-btn:active {
  transform: scale(0.95);
}
.stepper-btn svg {
  width: 16px;
  height: 16px;
}

.stepper-display {
  text-align: center;
  min-width: 60px;
}
.stepper-display span {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.stepper-display small {
  font-size: 0.75rem;
  color: var(--slate);
}

/* ============================================================
   PROFILE SELECTION FORM
   ============================================================ */
.profile-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(197, 168, 128, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  color: var(--navy);
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.profile-btn:hover {
  background: rgba(197, 168, 128, 0.1);
  transform: translateY(-2px);
  border-color: var(--gold);
}

/* ---- PREMIUM GUEST PROFILE CARDS ---- */
.guest-profile-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(197,168,128,0.2);
  border-radius: 20px;
  padding: 32px 20px 28px;
  cursor: pointer;
  font-family: var(--font-sans);
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.25,0.8,0.25,1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  backdrop-filter: blur(8px);
}
.guest-profile-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
/* Shimmer animation on load */
.guest-profile-card::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -60%;
  width: 40%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  transform: skewX(-20deg);
  animation: cardShimmer 4s ease-in-out infinite;
}
@keyframes cardShimmer {
  0%, 100% { left: -60%; opacity: 0; }
  20% { opacity: 1; }
  50% { left: 140%; opacity: 0; }
}

.guest-profile-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--card-color, var(--gold));
  box-shadow: 0 20px 50px var(--card-glow, rgba(197,168,128,0.3)),
              0 0 0 1px var(--card-color, var(--gold));
}

/* Glow blob behind card */
.gpc-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--card-glow, rgba(197,168,128,0.2));
  filter: blur(40px);
  top: -20px; left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.4s, transform 0.4s;
  opacity: 0;
  pointer-events: none;
}
.guest-profile-card:hover .gpc-glow {
  opacity: 1;
  transform: translateX(-50%) scale(1.3);
}

.gpc-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245,240,232,0.9);
  filter: drop-shadow(0 4px 12px var(--card-glow, rgba(197,168,128,0.4)));
  transition: transform 0.3s ease;
}
.gpc-icon svg { width: 32px; height: 32px; }
.guest-profile-card:hover .gpc-icon {
  transform: scale(1.2) translateY(-4px);
}

.gpc-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.gpc-desc {
  font-size: 0.75rem;
  color: rgba(245,240,232,0.5);
  line-height: 1.4;
  margin-bottom: 16px;
}

.gpc-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(197,168,128,0.12);
  border: 1px solid rgba(197,168,128,0.3);
  color: var(--gold);
  font-size: 1rem;
  transition: all 0.3s ease;
  margin: 0 auto;
}
.guest-profile-card:hover .gpc-arrow {
  background: var(--card-color, var(--gold));
  border-color: var(--card-color, var(--gold));
  color: white;
  transform: translateX(4px);
}

.profile-form {
  animation: fadeIn 0.4s ease-out forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-back-selection:hover {
  color: var(--navy);
}

/* PAIEMENT PLACEHOLDER */
   ============================================================ */
.form-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  gap: 12px;
}
.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(74, 111, 165, 0.1);
  color: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.step-dot.active {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(197, 168, 128, 0.3);
}
.step-dot.completed {
  background: var(--gold);
  color: var(--navy);
}
.step-line {
  flex: 1;
  max-width: 40px;
  height: 2px;
  background: rgba(74, 111, 165, 0.2);
  transition: all var(--transition);
}
.step-line.completed {
  background: var(--gold);
}

.form-step {
  animation: fadeIn 0.4s ease-out forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-actions {
  display: flex;
  align-items: center;
  margin-top: 32px;
}
.form-actions.right {
  justify-content: flex-end;
}
.form-actions.space-between {
  justify-content: space-between;
}

.btn-prev, .btn-next {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  font-size: 0.95rem;
}
.btn-prev {
  background: transparent;
  color: var(--slate);
  border: 1.5px solid rgba(107, 141, 181, 0.3);
}
.btn-prev:hover {
  background: rgba(107, 141, 181, 0.1);
  color: var(--navy);
}
.btn-next {
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  box-shadow: 0 4px 12px rgba(197, 168, 128, 0.3);
}
.btn-next:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(197, 168, 128, 0.4);
}
.btn-prev svg, .btn-next svg {
  width: 18px;
  height: 18px;
}

/* ---- GUEST PILL V2 ---- */
.guest-pill-v2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 99px;
  border: 1.5px solid var(--pill-color, var(--gold));
  background: transparent;
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.guest-pill-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--pill-color, var(--gold));
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: inherit;
}
.guest-pill-v2:hover::before { opacity: 0.15; }
.guest-pill-v2:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--pill-color, var(--gold)) 40%, transparent);
}

/* PAIEMENT PLACEHOLDER */
.payment-placeholder {
  text-align: center;
  padding: 40px 20px;
  border: 2px dashed rgba(197, 168, 128, 0.4);
  border-radius: var(--radius-md);
  background: rgba(197, 168, 128, 0.03);
  margin-bottom: 20px;
}
.pay-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: rgba(197, 168, 128, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pay-icon svg {
  width: 32px;
  height: 32px;
}
.payment-placeholder h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.payment-placeholder p {
  color: var(--slate);
  font-size: 0.95rem;
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.5;
}

/* CTA BUTTON */
.btn-submit {
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--cream);
  border: none;
  border-radius: 14px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  margin-top: 28px;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-md);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(26,43,74,0.3);
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
}
.btn-submit:active {
  transform: translateY(0);
}
.btn-icon svg {
  width: 20px;
  height: 20px;
}
.btn-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.18), transparent);
  animation: glowPulse 2.5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* ============================================================
   PAGE 2: GALLERY & RETROSPECTIVE
   ============================================================ */
.gallery-section {
  background: var(--navy);
  padding: 120px 40px 100px;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}
.gallery-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
}
.section-divider {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}
.section-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 48px;
}



.gallery-header-block {
  text-align: center;
  margin-bottom: 72px;
}
.gallery-badge {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}
.gallery-main-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
}
.gallery-main-subtitle {
  color: rgba(245,240,232,0.65);
  font-size: 1.05rem;
  margin-top: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

/* Force grid items to shrink — without min-width:0 they overflow on mobile */
.gallery-carousel-block,
.gallery-timeline-block {
  min-width: 0;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* CAROUSEL BLOCK */
.carousel-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  clip-path: inset(0 0 0 0 round var(--radius-lg));
  box-shadow: var(--shadow-lg);
  height: 440px;
  background: var(--navy-dark);
  border: 1px solid rgba(197, 168, 128, 0.15);
  transform: translateZ(0);
  width: 100%;
  max-width: 100%;
}
.carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  will-change: transform;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.25, 1);
}
.carousel-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  height: 100%;
  background: var(--bg);
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.slide-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: kenBurns 12s ease-in-out infinite alternate;
}
.slide-visual svg {
  width: 240px;
  height: 240px;
}
@keyframes kenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.1) translate(0.5%, 0.5%); }
}

.slide-overlay {
  position: relative;
  z-index: 2;
  padding: 44px;
  background: linear-gradient(to top, rgba(15,28,51,0.95) 0%, rgba(15,28,51,0.4) 60%, transparent 100%);
  width: 100%;
}
.slide-quote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--cream);
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.5;
}
.slide-label {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  font-weight: 500;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(245, 240, 232, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 240, 232, 0.2);
  color: var(--cream);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 10;
}
.carousel-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.08);
}
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(245, 240, 232, 0.35);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.carousel-dot.active {
  background: var(--gold);
  width: 28px;
  border-radius: 99px;
}

/* TIMELINE BLOCK */
.gallery-timeline-block {
  padding-left: 20px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 32px;
}
.timeline-scroll {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline-item {
  display: flex;
  gap: 24px;
  position: relative;
  padding-bottom: 28px;
}
.timeline-item:not(:last-child) .t-dot::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 22px;
  width: 1.5px;
  height: calc(100% - 10px);
  background: rgba(197, 168, 128, 0.2);
}
.t-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--slate);
  flex-shrink: 0;
  margin-top: 4px;
  position: relative;
  box-shadow: 0 0 0 3px rgba(107, 141, 181, 0.2);
  transition: all var(--transition);
}
.timeline-item.active .t-dot {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(197, 168, 128, 0.25), 0 0 20px rgba(197, 168, 128, 0.6);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(197, 168, 128, 0.25); }
  50% { box-shadow: 0 0 0 10px rgba(197, 168, 128, 0.1); }
}

.t-content {
  min-width: 0;
  flex: 1;
  overflow-wrap: break-word;
  word-break: break-word;
}
.t-content strong {
  display: block;
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.t-content p {
  color: rgba(245, 240, 232, 0.65);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--navy-dark);
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(197, 168, 128, 0.1);
}
.footer-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}
.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.footer-insignia {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 2px 10px rgba(197, 168, 128, 0.3));
}
.footer-logo h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cream);
}
.footer-logo h3 span {
  color: var(--gold);
}

.footer-event {
  color: var(--slate);
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.footer-copy {
  color: rgba(245,240,232,0.4);
  font-size: 0.8rem;
}

#footer-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.footer-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  animation: sparkle ease-in-out infinite;
}
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
  50% { opacity: 0.6; transform: translateY(-50px) scale(1.2); }
}

/* ============================================================
   SUCCESS MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 28, 51, 0.9);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 56px 44px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.8);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(197, 168, 128, 0.3);
}
.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 20px;
  animation: starSpin 4s linear infinite;
}
@keyframes starSpin {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 18px;
}
.modal-body {
  color: rgba(26, 43, 74, 0.8);
  font-size: 1rem;
  line-height: 1.7;
}

.modal-close {
  margin-top: 32px;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--cream);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
}
.modal-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 43, 74, 0.3);
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* ============================================================
   BADGE PAIEMENT MODAL
   ============================================================ */
.badge-payment-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px 28px;
  max-width: 440px;
  width: 92%;
  margin: auto;
  box-shadow: 0 24px 64px rgba(26,43,74,0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
  max-height: 90vh;
  overflow-y: auto;
}

.bpm-header { text-align: center; }
.bpm-check {
  width: 56px; height: 56px;
  background: #2ecc71;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700;
  margin: 0 auto 12px;
}
.bpm-title {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.bpm-subtitle { color: #888; font-size: .88rem; }

/* ============================================================
   BADGE GRADUATION CARD — Design 2026
   ============================================================ */
.badge-gc {
  --bgc-accent: #003087;
  width: 100%;
  max-width: 300px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  font-family: var(--font-sans);
  background: #fff;
  margin: 0 auto;
}
.badge-gc.type-etudiant { --bgc-accent: #003087; }
.badge-gc.type-vip      { --bgc-accent: #B91C1C; }
.badge-gc.type-invite   { --bgc-accent: #92400E; }
.badge-gc.type-media    { --bgc-accent: #5B21B6; }
.badge-gc.type-kids     { --bgc-accent: #166534; }

/* Header dark */
.bgc-header {
  background: #111;
  position: relative;
  overflow: hidden;
  padding: 14px 14px 10px;
  min-height: 96px;
}
.bgc-diagonal {
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: var(--bgc-accent);
  clip-path: polygon(22% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.bgc-header::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 25%; height: 35%;
  background: #111;
  clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
}
.bgc-header-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.bgc-mascot {
  width: 40px; height: 40px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}
.bgc-title-block { display: flex; flex-direction: column; line-height: 1.1; }
.bgc-main { font-size: 1rem; font-weight: 900; color: #fff; letter-spacing: 1.5px; text-transform: uppercase; }
.bgc-sub  { font-size: 0.5rem; font-weight: 600; color: rgba(255,255,255,0.55); letter-spacing: 4px; text-transform: uppercase; }
.bgc-year { font-size: 0.8rem; font-style: italic; font-weight: 700; color: #fff; }
.bgc-meta {
  position: relative; z-index: 2;
  display: flex; gap: 10px;
  font-size: 0.56rem;
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
}

/* Tagline bar */
.bgc-tagline {
  background: var(--bgc-accent);
  color: #fff;
  text-align: center;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 10px;
  text-transform: uppercase;
}

/* White body */
.bgc-body {
  background: #fff;
  padding: 16px 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.bgc-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--bgc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  overflow: hidden;
}
.badge-gc.type-vip .bgc-avatar {
  border-radius: 0;
  border: none;
  background: transparent;
  width: 90px; height: 90px;
}
.bgc-name { font-size: 1rem; font-weight: 700; color: #111; line-height: 1.2; }
.bgc-details { font-size: 0.72rem; color: #666; line-height: 1.6; white-space: pre-line; }

/* Dark footer */
.bgc-footer-dark { background: #111; padding: 10px 14px 12px; }
.bgc-type {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 8px;
}
.bgc-type .badge,
.bgc-type .badge-type-label {
  font-size: inherit; font-weight: inherit;
  color: #fff; background: none;
  padding: 0; border-radius: 0;
  letter-spacing: inherit; text-transform: inherit; border: none;
}
.bgc-bottom-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.bgc-code-block { text-align: left; }
.btp-code, .badge-code-label {
  font-family: monospace;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
  display: block;
}
.bgc-scan-hint { font-size: 0.52rem; color: rgba(255,255,255,0.3); margin-top: 2px; }
.btp-qr { display: flex; justify-content: center; font-size: 0; overflow: hidden; }
.btp-qr img ~ * { display: none; }

/* ── NOTES EXPLICATIVES ── */
.form-info-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(74, 111, 165, 0.07);
  border: 1px solid rgba(74, 111, 165, 0.18);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: .82rem;
  color: var(--slate);
  line-height: 1.5;
  margin-bottom: 4px;
}
.form-info-note svg { flex-shrink: 0; margin-top: 2px; }

.label-hint {
  display: block;
  font-size: .76rem;
  font-weight: 400;
  color: #8fa8c8;
  margin-top: 3px;
}

.payment-hint {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: .78rem;
  color: #8fa8c8;
  margin-top: 8px;
  line-height: 1.5;
}
.payment-hint svg { flex-shrink: 0; margin-top: 2px; }

.guest-section-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(197,168,128,0.1);
  border: 1px solid rgba(197,168,128,0.25);
  border-radius: 10px;
  padding: 11px 16px;
  font-size: .82rem;
  color: rgba(245,240,232,0.75);
  line-height: 1.5;
  max-width: 520px;
  margin: 18px auto 0;
  text-align: left;
}
.guest-section-note svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }
.guest-section-note strong { color: rgba(245,240,232,0.95); }

/* badge-print-single (impression tous les badges) */
.badge-print-single {
  page-break-after: always;
  page-break-inside: avoid;
}

.bpm-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.bpm-btn-print {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
  width: 100%;
}
.bpm-btn-print:hover { opacity: .88; }
.bpm-btn-close {
  background: transparent;
  color: #aaa;
  border: 1.5px solid #eee;
  border-radius: 12px;
  padding: 12px;
  font-size: .88rem;
  cursor: pointer;
  transition: all .2s;
  width: 100%;
}
.bpm-btn-close:hover { border-color: var(--navy); color: var(--navy); }

/* ============================================================
   IMPRESSION — uniquement le badge
   ============================================================ */
@media print {
  body > *:not(#badge-to-print):not(#print-area) { display: none !important; }
  #badge-to-print {
    display: block !important;
    position: fixed !important;
    top: 50% !important; left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 300px !important;
    box-shadow: none !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  #print-area {
    display: block !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
/* ============================================================
   RESPONSIVE — Tablette large (≤ 1200px)
   ============================================================ */
@media (max-width: 1200px) {
  .hero-grid {
    gap: 40px;
  }
  .gallery-section {
    padding: 100px 32px 80px;
  }
}

/* ============================================================
   RESPONSIVE — Tablette / petit laptop (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-info-col {
    min-height: auto;
  }
  .hero-section {
    padding: 80px 32px 60px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    width: 100%;
  }
  .gallery-carousel-block,
  .gallery-timeline-block {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
  }
  .timeline-item {
    width: 100% !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
  }
  .t-content {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
  .t-content p, .t-content strong {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    max-width: 100% !important;
  }
  .form-card {
    padding: 36px 32px;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Curseur */
  body { cursor: auto; }
  #custom-cursor { display: none; }

  /* Hero */
  .hero-section {
    padding: 60px 20px 48px;
    min-height: auto;
  }
  #site-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
  .hero-info-col {
    min-height: auto;
    gap: 32px;
  }
  .hero-info-content {
    margin-bottom: 24px;
  }
  /* Logo dans le header sur mobile */
  .hero-info-content > div[style*="display: flex"] {
    gap: 12px;
  }
  .hero-info-content img[alt="SermentMédical Oran"] {
    width: 48px !important;
    height: 48px !important;
    border-radius: 10px !important;
  }
  .header-venue, .header-date {
    font-size: 0.95rem;
  }
  .header-divider {
    margin: 20px 0;
  }
  .countdown-container {
    margin-top: 32px;
  }

  /* Formulaire */
  .form-card {
    padding: 28px 18px;
    border-radius: 16px;
  }
  .form-title {
    font-size: 1.5rem;
  }
  .btn-submit {
    padding: 16px 24px;
    font-size: 1rem;
  }

  /* Sélection profil (grille) */
  #guest-type-selection {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .guest-profile-card {
    padding: 20px 12px 18px;
  }
  .gpc-icon { width: 40px; height: 40px; margin-bottom: 10px; }
  .gpc-icon svg { width: 24px; height: 24px; }
  .gpc-title { font-size: 0.9rem; }
  .gpc-desc { font-size: 0.72rem; }

  /* Galerie */
  .gallery-section {
    padding: 80px 16px 60px;
    overflow-x: hidden;
  }
  .gallery-container {
    width: 100%;
    overflow: hidden;
  }
  .gallery-header-block {
    margin-bottom: 48px;
  }
  .carousel-wrapper {
    height: 300px;
    width: 100%;
    max-width: 100%;
  }
  .slide-overlay {
    padding: 28px 20px;
  }
  .slide-quote {
    font-size: 1rem;
  }

  /* Localisation */
  #location-section {
    padding: 48px 16px !important;
  }
  #location-section iframe {
    height: 280px !important;
  }
  #location-section h2 {
    font-size: 1.8rem !important;
  }

  /* Modal succès */
  .modal-card {
    padding: 40px 24px;
    width: 94%;
    max-width: 100%;
    border-radius: 16px;
  }
  .modal-title {
    font-size: 1.6rem;
  }
  .modal-body {
    font-size: 0.9rem;
  }
  .modal-close {
    padding: 14px 28px;
    width: 100%;
  }

  /* Badge modal */
  .badge-payment-card {
    padding: 24px 16px 20px;
    width: 96%;
    gap: 14px;
  }

  /* Footer */
  #site-footer {
    padding: 60px 20px 40px;
  }
  .footer-logo h3 {
    font-size: 1.4rem;
  }

  /* Stepper : centrer sur mobile */
  .stepper-wrapper {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   RESPONSIVE — Petit mobile (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  /* Hero */
  .hero-section {
    padding: 48px 16px 40px;
  }
  #site-title {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }
  .header-badge {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
  }
  .header-subtitle {
    font-size: 1rem;
  }
  .header-venue, .header-date {
    font-size: 0.88rem;
  }

  /* Flip clock */
  .flip-clock {
    gap: 6px;
  }
  .flip-card {
    width: 54px;
  }
  .flip-top, .flip-bot {
    font-size: 1.6rem;
    height: 34px;
  }
  .flip-sep {
    font-size: 1.6rem;
  }
  .flip-label {
    font-size: 0.58rem;
  }

  /* Sélection profil : 1 colonne sur très petit écran */
  #guest-type-selection {
    grid-template-columns: 1fr !important;
  }

  /* Formulaire */
  .form-card {
    padding: 24px 14px;
  }
  .form-title {
    font-size: 1.3rem;
  }
  .field-group {
    margin-bottom: 16px;
  }

  /* Galerie */
  .carousel-wrapper {
    height: 250px;
  }
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  /* Modal */
  .modal-card {
    padding: 32px 16px;
  }
  .modal-title {
    font-size: 1.4rem;
  }

  /* Map */
  #location-section iframe {
    height: 220px !important;
  }

  /* Footer */
  #site-footer {
    padding: 48px 16px 32px;
  }
}

/* HOVER TILT on gallery (applied via JS) */
.carousel-slide {
  transition: transform 0.2s ease;
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   MODE D'INSCRIPTION — SOLO / GROUPE
   ============================================================ */

/* Note invités gratuits */
.free-guests-note {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 125, 50, 0.07);
  border: 1px solid rgba(46, 125, 50, 0.22);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .83rem;
  color: #2e7d32;
  margin-bottom: 12px;
  line-height: 1.45;
}
.free-guests-note strong { color: #1b5e20; }

@media (max-width: 480px) {
  .free-guests-note { flex-direction: column; }
}

/* ── Méthode 1 / Méthode 2 note ── */
.method-note { flex-direction: column; gap: 8px; align-items: stretch; }
.method-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  line-height: 1.45;
}
.method-tag {
  font-size: .72rem;
  font-weight: 800;
  border-radius: 99px;
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: .03em;
}
.method-tag-free { background: rgba(46,125,50,.12); color: #2e7d32; border: 1px solid rgba(46,125,50,.25); }
.method-tag-paid { background: rgba(192,57,43,.10); color: #c0392b; border: 1px solid rgba(192,57,43,.25); }

/* ── Champ invité avec badge gratuit/payant ── */
.guest-input-row { display: flex; flex-direction: column; gap: 6px; }
.guest-input-badge {
  font-size: .72rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 10px;
  width: fit-content;
}
.guest-free-badge { background: rgba(46,125,50,.1); color: #2e7d32; border: 1px solid rgba(46,125,50,.2); }
.guest-paid-badge { background: rgba(192,57,43,.1); color: #c0392b; border: 1px solid rgba(192,57,43,.2); }

/* ── Badge invité payant (3e / 4e / 5e invité) ── */
.extra-badge-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
  padding: 6px 12px;
  background: rgba(74, 111, 165, 0.08);
  border-radius: 8px;
  border-left: 3px solid var(--blue);
}

#extra-badges-container .badge-gc {
  margin-top: 0;
}

/* Indicateur gratuit/payant sous le stepper */
#guest-free-paid-indicator {
  line-height: 1.6;
}

/* Impression : chaque badge sur sa propre page */
@media print {
  .bpm-header,
  .bpm-actions { display: none !important; }
  #badge-payment-modal,
  .badge-payment-card {
    position: static !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
  }
  .badge-gc { page-break-after: always; break-after: always; }
  .extra-badge-label { display: none !important; }
}
