/* ===== Design tokens ===== */
:root {
  --ink: #2A1530;
  --muted: #6E6478;
  --body-text: #3C3444;
  --footer-ink: #1A1623;
  --placeholder: #A79DAF;
  --page-bg: #E4ECF3;
  --lilac: #F7F1FB;
  --blue: #EFF5FA;
  --modal-surface: #FDFAF3;
  --grad-pink: #FBD4DC;
  --grad-peach: #FFE9D4;
  --grad-lilac: #DFD0F2;
  --highlight-blue-grey: #C3D0DD;
  --accent-pink: #FF4D8F;
  --accent-orange: #F15B3E;
  --border-hairline: rgba(42, 21, 48, 0.08);
  --border-default: rgba(42, 21, 48, 0.14);
  --border-strong: rgba(42, 21, 48, 0.2);
  --toggle-track: rgba(42, 21, 48, 0.05);
  --modal-scrim: rgba(42, 21, 48, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: var(--body-text);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

button, input {
  font-family: inherit;
}

a { text-decoration: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
}

/* ===== Reveal words ===== */
.reveal-word {
  display: inline-block;
  opacity: 0;
  filter: blur(9px);
  transition: opacity 0.8s ease-out, filter 0.8s ease-out;
}
.reveal-word.visible {
  opacity: 1;
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-word { opacity: 1; filter: blur(0); transition: none; }
}

/* ===== Gradient drift ===== */
@keyframes gradientDrift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ===== Hero ===== */
.hero {
  padding: 28px 6vw 88px;
  overflow: hidden;
  background: linear-gradient(120deg, #F7F1FB 0%, #FBD4DC 25%, #FFE9D4 45%, #DFD0F2 70%, #F7F1FB 100%);
  background-size: 300% 300%;
  animation: gradientDrift 22s ease-in-out infinite alternate;
}
.hero-inner { max-width: 1280px; margin: 0 auto; }
.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 88px;
}
.wordmark {
  font-family: 'General Sans', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.lang-toggle {
  display: flex;
  background: var(--toggle-track);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.lang-toggle button {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-toggle button.active {
  background: var(--ink);
  color: #F7F1FB;
}
.lang-toggle button:not(.active):hover { color: var(--ink); }

.badge {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-default);
  background: #FFFFFF;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #3C3444;
}

.hero-h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  max-width: 880px;
  margin: 0 0 20px;
  color: var(--ink);
}
.hero-h1 .line1 { font-weight: 700; display: block; }
.hero-h1 .line2 { font-weight: 400; display: block; }
.highlight-blue {
  background-color: var(--highlight-blue-grey);
  padding: 0 8px;
}

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 0 56px;
}

.hero-form, .signup-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 780px;
}
.signup-form { flex-direction: column; gap: 16px; text-align: left; }

.field-name, .field-email { flex: 1 1 220px; min-width: 180px; }

.hero-form input, .signup-form input {
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--border-default);
  background: #fff;
  font-size: 15px;
  width: 100%;
  color: var(--body-text);
}
.hero-form input::placeholder, .signup-form input::placeholder { color: var(--placeholder); }
.hero-form input:focus, .signup-form input:focus {
  outline: none;
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 3px rgba(255, 77, 143, 0.15);
}

/* Honeypot : déplacé hors écran plutôt que display:none / visibility:hidden,
   que les bots savent détecter pour ignorer le champ. */
.hero-form .hp-field, .signup-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.consent-row {
  flex: 1 1 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.signup-form .consent-row { font-size: 14px; flex: none; }
.consent-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-pink);
  margin-top: 2px;
  flex-shrink: 0;
}

.btn-primary {
  padding: 16px 26px;
  border-radius: 999px;
  border: none;
  background: var(--ink);
  color: #F7F1FB;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
.btn-primary:hover { background: #3C3444; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.form-success {
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--blue);
  border: 1px solid var(--border-default);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.signup-form .form-success { padding: 24px; border-radius: 20px; font-size: 16px; }
/* Le message de succès remplace le formulaire (replaceWith), il devient donc
   enfant direct de .signup .container qui est centré : on force l'alignement. */
.form-success { text-align: left; }
.form-success strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.form-success p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 8px 0 0;
}
.form-success a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-success a:hover { color: var(--accent-pink); }
.form-error {
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(241, 91, 62, 0.08);
  border: 1px solid rgba(241, 91, 62, 0.3);
  font-size: 14px;
  color: var(--accent-orange);
  flex: 1 1 100%;
}

/* ===== About ===== */
.about {
  padding: 88px 6vw;
  background: linear-gradient(180deg, #F7F1FB 0%, #EFF5FA 100%);
}
.about .container { max-width: 800px; }
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.about-lead {
  font-family: 'Inter', sans-serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 20px;
}
.about-body {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ===== Marker band ===== */
.markers {
  padding: 44px 6vw;
  background: #E4ECF3;
}
.markers .container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.marker {
  font-family: 'General Sans', 'Inter', sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.chevron {
  font-family: 'General Sans', 'Inter', sans-serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  color: rgba(42, 21, 48, 0.35);
}

/* ===== Teaser ===== */
.teaser {
  padding: 88px 6vw;
  background: #EFF5FA;
}
.teaser .container { max-width: 1280px; }
.teaser-card {
  background: linear-gradient(135deg, #F7F1FB 0%, #EFF5FA 50%, #FBD4DC 100%);
  background-size: 200% 200%;
  animation: gradientDrift 26s ease-in-out infinite alternate;
  border-radius: 28px;
  padding: clamp(40px, 6vw, 72px);
  border: 1px solid var(--border-hairline);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}
.teaser-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 16px;
}
.teaser h2 {
  font-family: 'General Sans', 'Inter', sans-serif;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 16px;
}
.highlight-pink {
  background-color: var(--accent-pink);
  color: #FFFFFF;
  padding: 0 6px;
}
.teaser-body {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 560px;
  margin: 0;
}
.teaser-pill {
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

/* ===== Signup ===== */
.signup {
  padding: 88px 6vw;
  background: var(--lilac);
}
.signup .container { max-width: 640px; text-align: center; }
.signup h2 {
  font-family: 'General Sans', 'Inter', sans-serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 16px;
}
.signup-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 40px;
}
.signup-form { margin: 0 auto; }

/* ===== Footer ===== */
.site-footer {
  padding: 40px 6vw;
  background: #E4ECF3;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-left {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
  align-items: center;
}
.footer-left button {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}
.footer-left button:hover { color: var(--accent-pink); }
.footer-right {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
}
.footer-right a {
  color: var(--footer-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-right a:hover { color: var(--accent-pink); }

/* ===== Modals ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--modal-scrim);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-panel {
  background: var(--modal-surface);
  border-radius: 28px;
  border: 1px solid var(--border-hairline);
  max-width: 720px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  padding: clamp(28px, 4vw, 48px);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}
.modal-header h2 {
  font-family: 'General Sans', 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border-default);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.modal-close:hover { background: var(--lilac); }
.modal-block { margin-bottom: 24px; }
.modal-block h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0 0 8px;
}
.modal-block p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--body-text);
  margin: 0;
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  background: var(--modal-surface);
  border-top: 1px solid var(--border-default);
  box-shadow: 0 -12px 40px rgba(42, 21, 48, 0.1);
  padding: 20px 6vw;
  display: none;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.cookie-banner.open { display: flex; }
.cookie-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--body-text);
  max-width: 620px;
  margin: 0;
}
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cookie-actions button {
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.05s;
}
.cookie-actions button:active { transform: scale(0.98); }
.btn-text {
  border: none;
  background: transparent;
  padding: 0 !important;
  color: var(--body-text);
  text-decoration: underline;
}
.btn-outline {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink);
}
.btn-fill {
  border: none;
  background: var(--ink);
  color: #F7F1FB;
}

@media (max-width: 780px) {
  .hero-form { flex-direction: column; }
  .field-name, .field-email { flex: 1 1 100%; }
}
