/* ═══════════════════════════════════════════════
   YOUPIPOPI — Página "Próximamente" · v2 épurée
   Palette : bleu #3D7BF4 · corail #F25C4D · vert #24B47E
             ambre #F0A80A · violet #7A5AF8
   ═══════════════════════════════════════════════ */

:root {
  --blue:   #3D7BF4;
  --coral:  #F25C4D;
  --green:  #24B47E;
  --amber:  #F0A80A;
  --violet: #7A5AF8;
  --ink:    #23263B;
  --gray:   #6B7186;
  --line:   #E9E9E4;
  --bg:     #FCFCFB;
  --radius: 16px;
  --font: "Avenir Next", "Nunito Sans", -apple-system, BlinkMacSystemFont,
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Halos décoratifs très discrets ─────────── */
.glow {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(90px); opacity: .16;
}
.glow-a { width: 480px; height: 480px; top: -180px; right: -140px; background: var(--amber); }
.glow-b { width: 420px; height: 420px; bottom: -160px; left: -140px; background: var(--violet); }

/* ── Header ─────────────────────────────────── */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; padding: 26px clamp(20px, 6vw, 64px); position: relative; z-index: 2;
}

.logo img { display: block; height: 38px; width: auto; }

.badge-soon {
  color: var(--ink); font-weight: 600; font-size: .82rem; letter-spacing: .04em;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
}

/* ── Hero ───────────────────────────────────── */
main { flex: 1; position: relative; z-index: 1; }

.hero { padding: clamp(40px, 9vh, 96px) 20px 24px; display: flex; justify-content: center; }
.hero-inner { max-width: 640px; text-align: center; }

.dots { display: flex; justify-content: center; gap: 10px; margin-bottom: 26px; }
.dots span { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.d-blue   { background: var(--blue); }
.d-coral  { background: var(--coral); }
.d-green  { background: var(--green); }
.d-amber  { background: var(--amber); }
.d-violet { background: var(--violet); }

h1 {
  font-size: clamp(1.9rem, 5.2vw, 3rem); line-height: 1.12;
  letter-spacing: -.02em; margin: 0 0 18px; font-weight: 800;
}

.subtitle {
  font-size: clamp(1.05rem, 2.4vw, 1.2rem); font-weight: 600;
  color: var(--ink); margin: 0 0 12px;
}

.lead {
  font-size: 1rem; line-height: 1.7; color: var(--gray);
  margin: 0 auto 36px; max-width: 54ch;
}

/* ── Formulaire ─────────────────────────────── */
.signup { text-align: left; max-width: 520px; margin: 0 auto; }

.field-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px; box-shadow: 0 10px 30px rgba(35, 38, 59, .06);
}

.field-row input[type="email"] {
  flex: 1 1 200px; min-width: 0;
  padding: 12px 18px; font-size: .98rem; font-family: inherit;
  border: none; border-radius: 999px; background: transparent; color: var(--ink);
}
.field-row input[type="email"]:focus { outline: none; }
.field-row:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(61, 123, 244, .14); }

.field-row button {
  flex: 0 0 auto; cursor: pointer; font-family: inherit; font-weight: 700;
  font-size: .95rem; color: #fff; background: var(--ink);
  border: none; border-radius: 999px; padding: 12px 22px;
  transition: background .2s, transform .15s, opacity .2s;
}
.field-row button:hover  { background: var(--blue); transform: translateY(-1px); }
.field-row button:active { transform: translateY(0); }
.field-row button:disabled { opacity: .55; cursor: wait; transform: none; }

.field-row button:focus-visible,
.linklike:focus-visible, .cb-actions button:focus-visible,
.social-links a:focus-visible, .consent input:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 2px;
}

/* Honeypot : invisible pour les humains */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; overflow: hidden; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 0 8px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--blue); }
.consent label { font-size: .8rem; line-height: 1.55; color: var(--gray); }
.consent a { color: var(--blue); font-weight: 600; text-decoration: none; }
.consent a:hover { text-decoration: underline; }

.form-msg { min-height: 1.4em; margin: 14px 8px 0; font-weight: 600; font-size: .92rem; }
.form-msg.ok    { color: var(--green); }
.form-msg.error { color: var(--coral); }

/* ── Avantages ──────────────────────────────── */
.benefits { padding: clamp(40px, 8vh, 80px) 20px 16px; display: flex; justify-content: center; }
.benefit-grid {
  list-style: none; margin: 0; padding: 32px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px; max-width: 880px; width: 100%;
  border-top: 1px solid var(--line);
}

.benefit { text-align: center; }
.benefit h2 { font-size: .92rem; font-weight: 600; margin: 12px 0 0; line-height: 1.4; color: var(--ink); }

.chip {
  width: 52px; height: 52px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
}
.chip svg { width: 26px; height: 26px; }
.chip-blue  { background: rgba(61, 123, 244, .10); color: var(--blue); }
.chip-coral { background: rgba(242, 92, 77, .10);  color: var(--coral); }
.chip-green { background: rgba(36, 180, 126, .10); color: var(--green); }
.chip-amber { background: rgba(240, 168, 10, .12); color: var(--amber); }

/* ── Réseaux sociaux ────────────────────────── */
.social { text-align: center; padding: 8px 20px 64px; }
.social p { font-weight: 600; color: var(--gray); font-size: .92rem; margin: 0 0 16px; }
.social-links { display: flex; justify-content: center; gap: 12px; }
.social-links a {
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  transition: border-color .2s, color .2s, transform .15s;
}
.social-links a:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.social-links svg { width: 21px; height: 21px; fill: currentColor; }

/* ── Footer ─────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line); background: #fff;
  padding: 28px 20px; text-align: center; position: relative; z-index: 1;
}
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-bottom: 12px; }
.site-footer a, .linklike { color: var(--gray); font-size: .85rem; text-decoration: none; }
.site-footer a:hover, .linklike:hover { color: var(--ink); }
.linklike { background: none; border: none; font-family: inherit; cursor: pointer; padding: 0; }
.site-footer p { margin: 0; font-size: .8rem; color: #9AA0B2; }

/* ── Bandeau cookies ────────────────────────── */
.cookie-banner {
  position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px;
  display: flex; justify-content: center;
}
.cb-inner {
  background: #fff; border-radius: var(--radius); max-width: 560px;
  padding: 22px 26px; border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(35, 38, 59, .14);
}
.cb-inner h2 { margin: 0 0 6px; font-size: 1rem; }
.cb-inner p { margin: 0 0 16px; font-size: .85rem; line-height: 1.55; color: var(--gray); }
.cb-inner a { color: var(--blue); font-weight: 600; }
.cb-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cb-actions button {
  cursor: pointer; font-family: inherit; font-weight: 700; font-size: .88rem;
  border-radius: 999px; padding: 10px 20px; border: none; transition: opacity .2s;
}
.cb-actions button:hover { opacity: .85; }
.btn-accept { background: var(--ink); color: #fff; }
.btn-reject { background: #F1F1EE; color: var(--ink); }

/* ── Animation d'entrée ─────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.22,.7,.35,1) forwards; }
.hero .reveal:nth-child(1) { animation-delay: .05s; }
.hero .reveal:nth-child(2) { animation-delay: .15s; }
.hero .reveal:nth-child(3) { animation-delay: .25s; }
.hero .reveal:nth-child(4) { animation-delay: .35s; }
.hero .reveal:nth-child(5) { animation-delay: .45s; }
.benefits.reveal { animation-delay: .55s; }
.social.reveal   { animation-delay: .7s; }

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

/* ── Accessibilité : mouvement réduit ───────── */
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none !important; opacity: 1; transform: none; }
  .benefit:hover, .social-links a:hover, .field-row button:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* ── Pages légales ──────────────────────────── */
.legal-main { display: flex; justify-content: center; padding: 24px 20px 64px; }
.legal-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  max-width: 780px; width: 100%; padding: clamp(28px, 5vw, 52px);
}
.legal-card h1 { font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -.01em; }
.legal-card h2 { color: var(--blue); font-size: 1.08rem; margin-top: 30px; }
.legal-card p, .legal-card li { line-height: 1.7; color: #454e6e; font-size: .95rem; }
.legal-card a { color: var(--blue); font-weight: 600; }
.legal-card table { border-collapse: collapse; width: 100%; font-size: .88rem; }
.legal-card th, .legal-card td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.legal-card th { background: #F7F7F4; }
.placeholder { background: #FFF3CD; padding: 1px 6px; border-radius: 6px; font-weight: 600; }
.back-home { display: inline-block; margin-top: 26px; font-weight: 700; text-decoration: none; }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 760px) {
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .site-header { justify-content: center; }
  .field-row { border-radius: 22px; }
  .field-row input[type="email"] { flex: 1 1 100%; text-align: center; }
  .field-row button { flex: 1 1 100%; padding: 13px 22px; }
  .glow { opacity: .1; }
}
@media (max-width: 380px) {
  .benefit-grid { grid-template-columns: 1fr; }
}
