:root {
  --navy: #10203f;
  --navy-deep: #0a1730;
  --cream: #ece7dc;
  --white: #ffffff;
  --gold: #c9a227;
  --gold-deep: #a8841c;
  --ink: #1c2230;
  --ink-soft: #5a6172;
  --line: #ddd6c4;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Bandeau marine --- */

.hero-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 3rem 1.5rem 3.25rem;
}

.hero-icon {
  width: 62px;
  height: auto;
  margin-bottom: 1rem;
}

.hero-eyebrow {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 0.9rem;
}

.hero-band h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 9vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 0.5rem;
  color: var(--white);
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.1rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--navy-deep);
  background: var(--gold);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin: 0;
}

/* --- Page --- */

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px -18px rgba(16, 32, 63, 0.35);
  padding: 2rem 1.75rem;
  margin-top: -1.75rem;
}

.intro-text {
  font-size: 1rem;
  color: var(--ink);
  margin: 0 0 1.75rem;
}

.portrait {
  float: right;
  width: 128px;
  margin: 0 0 0.75rem 1.25rem;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px -10px rgba(16, 32, 63, 0.4);
}

/* --- Form --- */

form { display: flex; flex-direction: column; clear: both; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.req { color: var(--gold-deep); font-weight: 600; }
.optional { font-weight: 400; color: var(--ink-soft); font-size: 0.82rem; }

input[type="text"],
input[type="email"],
textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

textarea { resize: vertical; min-height: 130px; }

input[type="file"] {
  font-family: var(--sans);
  font-size: 0.9rem;
}

.hint {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0.35rem 0 0;
  min-height: 1.1em;
}

.consent { margin-top: 0.25rem; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
}

.checkbox input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.privacy-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  margin: 0.5rem 0 1.5rem;
}

button[type="submit"] {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--navy-deep);
  background: var(--gold);
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

button[type="submit"]:hover { background: var(--gold-deep); }
button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
  margin-top: 1rem;
  font-size: 0.92rem;
  min-height: 1.4em;
}

.form-status.success { color: #2e5c3e; }
.form-status.error { color: #8b2331; }

/* --- Cagnotte --- */

.cagnotte-box {
  background: #faf3de;
  border: 1px solid #e5d19c;
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  margin: 1.5rem 0 0;
}

.cagnotte-box-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.cagnotte-box-text {
  font-size: 0.9rem;
  color: var(--ink);
  margin: 0 0 0.9rem;
}

.cagnotte-options {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cagnotte-options li {
  font-size: 0.9rem;
  padding: 0.5rem 0;
  border-top: 1px solid #e5d19c;
}

.cagnotte-options li:first-child { border-top: none; padding-top: 0; }
.cagnotte-options li:last-child { padding-bottom: 0; }

.cagnotte-opt-label {
  font-weight: 600;
  color: var(--gold-deep);
  margin-right: 0.4rem;
}

.cagnotte-options a {
  color: var(--navy);
  font-weight: 600;
}

/* --- Footer --- */

.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* --- Responsive --- */

@media (max-width: 560px) {
  .hero-band { padding: 2.5rem 1.1rem 3rem; }
  .card { padding: 1.5rem 1.25rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .portrait { width: 92px; margin: 0 0 0.5rem 1rem; }
}

/* --- Reduced motion --- */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
