/* ============================================================
   Association Club Culturel de Chennevières-sur-Marne — Landing page "Coming soon"
   Palette et règles conformes à DESIGN-SYSTEM.md
   ============================================================ */

:root {
  --navy: #0E1C31;
  --gold: #EE9731;
  --gold-hover: #D6842A;
  --white: #FFFFFF;
  --ink: #1F2933;
  --panel: #F4F5F7;
  --border: #E3E6EA;

  --font-heading: 'Marcellus', serif;
  --font-body: 'Inter', sans-serif;

  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
}

.card {
  width: 100%;
  max-width: 560px;
  text-align: center;
  animation: rise 0.7s ease-out both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  .underline-draw { animation: none !important; width: 64px !important; }
}

.logo {
  width: 140px;
  height: auto;
  margin: 0 auto 1.75rem;
  display: block;
}

@media (max-width: 480px) {
  .logo { width: 100px; margin-bottom: 1.25rem; }
}

h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 0.9rem;
  position: relative;
  display: inline-block;
}

h1::after {
  content: "";
  display: block;
  height: 3px;
  width: 0;
  margin: 0.75rem auto 0;
  background: var(--gold);
  border-radius: 2px;
  animation: underline-draw 0.9s 0.4s ease-out forwards;
}

@keyframes underline-draw {
  to { width: 64px; }
}

.subtitle {
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 1.5rem;
}

.intro {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  max-width: 46ch;
  margin: 0 auto 2.25rem;
  text-align: justify;
  text-align-last: center;
  hyphens: auto;
}

.newsletter {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: left;
}

.newsletter h2 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.newsletter-text {
  font-size: 0.9rem;
  color: var(--ink);
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.optional {
  font-weight: 400;
  color: #6b7684;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
}

input[type="text"]:focus,
input[type="email"]:focus,
.btn-primary:focus-visible,
.link-btn:focus-visible,
input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.consent-row input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--navy);
}

.consent-label {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--navy);
  text-decoration: underline;
  font: inherit;
  font-size: inherit;
  cursor: pointer;
  display: inline;
}

.consent-row .link-btn {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
}

.btn-primary {
  width: 100%;
  background-color: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 6px;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.25rem;
  transition: background-color 0.15s ease;
}

.btn-primary:hover {
  background-color: var(--gold-hover);
}

.form-message {
  min-height: 1.2em;
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
  font-weight: 500;
}

.form-message.success { color: #1e6b3d; }
.form-message.error { color: #b3261e; }

.footer {
  margin-top: 2.25rem;
  font-size: 0.78rem;
  color: #6b7684;
  line-height: 1.5;
}

.footer .link-btn {
  color: #6b7684;
  margin-top: 0.5rem;
}

/* ---- Modale politique de confidentialité ---- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 28, 49, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 10;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem 1.75rem 1.75rem;
  text-align: left;
}

.modal h2 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-size: 1.3rem;
  margin: 0 0 1rem;
}

.modal-body p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 0.9rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  padding: 0.25rem;
}
