@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');

:root {
  --bg: #fff8f3;
  --surface: #ffffff;
  --text: #1a1108;
  --muted: #9a8070;
  --border: #f0e0d0;
  --flame-1: #ff4500;
  --flame-2: #ff8c00;
  --flame-3: #ffc200;
  --accent: #ff4500;
  --accent-hover: #e03d00;
  --success: #16a34a;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
}

/* ── Hero photo ── */

.hero {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 1.75rem;
}

.profile-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 4px solid transparent;
  background-image: linear-gradient(white, white),
                    linear-gradient(135deg, var(--flame-1), var(--flame-2), var(--flame-3));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 0 6px #fff8f3,
              0 0 30px rgba(255, 69, 0, 0.25);
}

/* ── Contenu principal ── */

.container {
  width: 100%;
  max-width: 480px;
  text-align: center;
  padding: 3rem 1.5rem 3rem;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--flame-1);
  background: #fff1ea;
  border: 1px solid #ffd4be;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

h1 {
  font-size: clamp(2.8rem, 12vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--flame-1) 0%, var(--flame-2) 60%, var(--flame-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.subtitle strong {
  color: var(--text);
  font-weight: 700;
}

/* ── Compteur ── */

.counter-section {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem 1.5rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 24px rgba(255, 100, 0, 0.07);
}

.counter-emoji {
  font-size: 2rem;
  margin-bottom: 0.4rem;
  line-height: 1;
}

.counter-amount {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, var(--flame-1), var(--flame-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.counter-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.progress-track {
  height: 10px;
  background: #f5e8e0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--flame-1), var(--flame-2), var(--flame-3));
  border-radius: 999px;
  transition: width 0.6s ease;
  min-width: 3px;
}

.progress-pct {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
}

/* ── Bouton ── */

.btn {
  display: block;
  background: linear-gradient(135deg, var(--flame-1) 0%, var(--flame-2) 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  padding: 1.1rem 2.5rem;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255, 69, 0, 0.35);
  margin-bottom: 1.5rem;
}

.btn:hover {
  opacity: 0.88;
}

.btn:active {
  transform: scale(0.97);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--flame-1);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 2rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: var(--flame-2);
  background: #fff4ee;
}

/* ── Footer note ── */

.footer-note {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Pages success / cancel ── */

.page-center {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

.icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

h2 {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}

.message {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.highlight {
  font-weight: 700;
  color: var(--flame-1);
}

/* ── Responsive ── */

@media (max-width: 420px) {
  h1 { font-size: 2.5rem; }
  .counter-amount { font-size: 2.2rem; }
  .profile-photo { width: 130px; height: 130px; }
}
