/* ============================================
   offrir.lequai56.fr — Bons cadeaux
   ============================================ */

:root {
  --bg: #112318;
  --bg-deep: #0a1510;
  --bg-card: #162b20;
  --bg-card-hover: #1a3328;
  --gold: #d4a843;
  --gold-light: #e8c96a;
  --gold-pale: #f3dea0;
  --ivory: #f5f0e8;
  --ivory-dim: #c5bfb3;
  --ivory-darker: #8a8478;
  --border: rgba(212,168,67,0.2);
  --error: #e07a5f;
  --success: #7ab090;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Lato', sans-serif;
  background:
    radial-gradient(ellipse at top, rgba(212,168,67,0.08) 0%, transparent 50%),
    linear-gradient(180deg, #0d1b14 0%, #112318 40%, #0a1510 100%);
  background-attachment: fixed;
  color: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover { color: var(--gold-light); }

h1, h2, h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  letter-spacing: 0.05em;
  line-height: 1.25;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 56px 20px 24px;
  max-width: 720px;
  margin: 0 auto;
}

.hero-anchor {
  display: inline-block;
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 12px;
  animation: lq-float 4s ease-in-out infinite;
}

@keyframes lq-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero h1 {
  font-size: 2.4rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero .tagline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ivory-dim);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.hero .divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 22px;
}
.hero .divider .line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero .divider .diamond {
  font-size: 10px;
}

.hero .intro {
  font-size: 1rem;
  color: var(--ivory-dim);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ---- Form wrapper ---- */
.form-wrap {
  max-width: 640px;
  margin: 30px auto 60px;
  padding: 0 20px;
}

.form-card {
  background: linear-gradient(180deg, rgba(22,43,32,0.85) 0%, rgba(17,35,24,0.9) 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 32px;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(4px);
}

.form-card h2 {
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.18em;
}

.form-card .card-sub {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--ivory-dim);
  margin-bottom: 28px;
  font-size: 1rem;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.field label .opt {
  color: var(--ivory-darker);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: none;
  margin-left: 6px;
  font-size: 0.72rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: rgba(10,21,16,0.6);
  border: 1px solid rgba(212,168,67,0.25);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ivory);
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(10,21,16,0.85);
  box-shadow: 0 0 0 3px rgba(212,168,67,0.12);
}

.field textarea {
  resize: vertical;
  min-height: 80px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ivory-darker);
  font-style: italic;
}

.field .help {
  display: block;
  font-size: 0.8rem;
  color: var(--ivory-darker);
  margin-top: 6px;
  font-style: italic;
}

.field .error-msg {
  display: none;
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 6px;
}
.field.has-error .error-msg { display: block; }
.field.has-error input,
.field.has-error textarea {
  border-color: var(--error);
}

/* ---- Montant presets ---- */
.amount-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.amount-preset {
  background: rgba(10,21,16,0.4);
  border: 1px solid rgba(212,168,67,0.2);
  border-radius: 8px;
  padding: 12px 6px;
  color: var(--ivory);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.amount-preset:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,168,67,0.08);
}

.amount-preset.active {
  border-color: var(--gold);
  background: rgba(212,168,67,0.15);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.amount-custom {
  position: relative;
}
.amount-custom input {
  padding-right: 40px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}
.amount-custom .currency {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  pointer-events: none;
}

/* ---- Submit ---- */
.submit-wrap {
  text-align: center;
  margin-top: 28px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--bg-deep);
  border: none;
  border-radius: 10px;
  padding: 16px 36px;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(212,168,67,0.25);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212,168,67,0.35);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: wait;
}

.submit-help {
  font-size: 0.8rem;
  color: var(--ivory-darker);
  margin-top: 14px;
  font-style: italic;
}

/* ---- Flash messages ---- */
.flash {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.flash.error {
  background: rgba(224,122,95,0.12);
  border: 1px solid rgba(224,122,95,0.3);
  color: var(--error);
}
.flash.success {
  background: rgba(122,176,144,0.12);
  border: 1px solid rgba(122,176,144,0.3);
  color: var(--success);
}

/* ---- Success page ---- */
.success-hero {
  max-width: 560px;
  margin: 80px auto;
  text-align: center;
  padding: 0 24px;
}
.success-hero .check {
  width: 72px;
  height: 72px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 32px;
  animation: pop 0.5s ease-out;
}
@keyframes pop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.success-hero h1 { font-size: 1.8rem; margin-bottom: 16px; letter-spacing: 0.15em; }
.success-hero p { color: var(--ivory-dim); margin-bottom: 12px; line-height: 1.75; }

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 40px 20px 30px;
  color: var(--ivory-darker);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.footer .resto-name {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  margin-bottom: 6px;
}

.footer a { margin: 0 8px; }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .hero { padding: 40px 20px 18px; }
  .hero h1 { font-size: 1.75rem; letter-spacing: 0.18em; }
  .hero .tagline { font-size: 1rem; }
  .form-card { padding: 28px 22px; }
  .amount-presets { grid-template-columns: repeat(2, 1fr); }
  .btn-primary { width: 100%; }
}
