/* HfE Charity Gala — Design tokens */
:root {
  --hfe-navy: #0f1e3d;
  --hfe-navy-deep: #0a1530;
  --hfe-gold: #c9a961;
  --hfe-gold-light: #e0c88a;
  --hfe-coral: #c14a5a;
  --hfe-cream: #f8f4ec;
  --hfe-ink: #1a1a1a;
  --hfe-muted: #6b7280;
  --hfe-border: #e5e0d3;
  --hfe-bg: #fbf9f4;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 30, 61, 0.06);
  --shadow-md: 0 6px 24px rgba(15, 30, 61, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--hfe-bg);
  color: var(--hfe-ink);
  line-height: 1.55;
  font-size: 16px;
}

/* Language bar */
.lang-bar {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 500;
}
.lang-btn {
  background: none;
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  color: var(--hfe-muted);
  font-weight: 500;
  font-family: inherit;
}
.lang-btn.active { color: var(--hfe-navy); font-weight: 700; }
.lang-sep { color: var(--hfe-border); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--hfe-navy) 0%, var(--hfe-navy-deep) 100%);
  color: var(--hfe-cream);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(201,169,97,0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(193,74,90,0.10) 0%, transparent 40%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 900px; margin: 0 auto; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 2rem;
  color: var(--hfe-cream);
}
.logo-text {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.15;
  text-align: right;
  letter-spacing: -0.01em;
}
.logo-for { color: var(--hfe-coral); font-weight: 700; }
.logo-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--hfe-gold);
  letter-spacing: -0.03em;
  line-height: 1;
  border-left: 2px solid var(--hfe-gold);
  padding-left: 12px;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.6rem;
  color: var(--hfe-gold);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--hfe-cream);
  margin: 0 0 1.2rem;
  opacity: 0.9;
}
.hero-slogan {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--hfe-gold-light);
  margin: 0 auto 2.5rem;
  max-width: 600px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  max-width: 780px;
  margin: 0 auto 2rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,169,97,0.25);
  border-radius: var(--radius);
}
.fact { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.fact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--hfe-gold);
  font-weight: 600;
}
.fact-value { font-size: 0.95rem; color: var(--hfe-cream); font-weight: 500; }
.fact-value small { display: block; font-size: 0.75rem; opacity: 0.7; font-weight: 400; }

.hero-cause {
  max-width: 600px;
  margin: 1.5rem auto 0;
  font-size: 0.95rem;
  opacity: 0.85;
  font-style: italic;
}

/* Container */
.container {
  max-width: 820px;
  margin: -1.5rem auto 3rem;
  padding: 0 1.25rem;
  position: relative;
  z-index: 2;
}

/* Cards */
.card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--hfe-border);
}
.card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--hfe-navy);
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.01em;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--hfe-gold);
  color: white;
  border-radius: 50%;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Form */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field > span, .field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--hfe-ink);
  letter-spacing: 0.01em;
}
.field-label { margin: 0 0 0.75rem; }

input[type="text"], input[type="email"], input[type="tel"],
select, textarea {
  padding: 10px 12px;
  border: 1px solid var(--hfe-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  background: var(--hfe-cream);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--hfe-gold);
  box-shadow: 0 0 0 3px rgba(201,169,97,0.18);
  background: #fff;
}

.subsection { margin-bottom: 1.5rem; }
.subsection:last-child { margin-bottom: 0; }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px 16px;
  margin-bottom: 0.75rem;
}
.checkbox-grid label, .radio-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14.5px;
  padding: 4px 0;
}
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.checkbox-block {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14.5px;
  padding: 4px 0;
  line-height: 1.45;
}
.checkbox-block input, .checkbox-grid input, .radio-row input {
  margin-top: 3px;
  accent-color: var(--hfe-gold);
}

/* Accompagnants dynamique */
.guest-block {
  background: var(--hfe-cream);
  border: 1px dashed var(--hfe-border);
  border-radius: 8px;
  padding: 1.2rem;
  margin-top: 1rem;
}
.guest-block h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--hfe-navy);
  margin: 0 0 1rem;
}

/* Hôtel */
.hotel-card {
  background: linear-gradient(135deg, var(--hfe-cream) 0%, #fff 100%);
  border: 1px solid var(--hfe-gold);
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 1rem;
}
.hotel-link {
  color: var(--hfe-navy);
  font-weight: 600;
  word-break: break-all;
}
.promo-code {
  background: var(--hfe-navy);
  color: var(--hfe-gold);
  padding: 3px 10px;
  border-radius: 4px;
  font-family: 'Inter', monospace;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.hotel-note { font-size: 13px; color: var(--hfe-muted); margin: 0.75rem 0 0; font-style: italic; }

/* Total */
.summary-card { background: linear-gradient(180deg, #fff 0%, var(--hfe-cream) 100%); }
.total-box {
  background: var(--hfe-navy);
  color: var(--hfe-cream);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.total-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14.5px;
}
.total-final {
  border-top: 1px solid rgba(201,169,97,0.35);
  margin-top: 6px;
  padding-top: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--hfe-gold);
  font-weight: 600;
}

/* Bouton */
.btn-primary {
  background: var(--hfe-gold);
  color: var(--hfe-navy);
  border: none;
  padding: 14px 32px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s, transform 0.1s;
  margin-top: 0.5rem;
}
.btn-primary:hover { background: var(--hfe-gold-light); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.disclaimer {
  font-size: 12.5px;
  color: var(--hfe-muted);
  text-align: center;
  margin: 1rem 0 0;
  font-style: italic;
}

/* Confirmation */
.confirmation { text-align: center; padding: 3rem 2rem; }
.check-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--hfe-gold);
  color: white;
  font-size: 40px;
  line-height: 70px;
  margin: 0 auto 1rem;
  font-weight: bold;
}

/* Footer */
footer {
  background: var(--hfe-navy-deep);
  color: var(--hfe-cream);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 13px;
  opacity: 0.9;
}
footer a { color: var(--hfe-gold); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer p { margin: 0.35rem 0; }
.madagascar { margin-top: 1rem !important; font-style: italic; color: var(--hfe-gold-light); }

/* Responsive */
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 1.5rem 1.2rem; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .hero h1 { font-size: 2rem; }
  .logo-mark { font-size: 34px; }
  .container { padding: 0 0.9rem; }
}

/* Logo image */
.logo-img {
  max-width: 260px;
  width: 100%;
  height: auto;
  background: #fbf9f4;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  margin-bottom: 12px;
}
@media (max-width: 640px) {
  .logo-img { max-width: 200px; padding: 8px 12px; }
}
