/* ===== EGG – landing page ===== */
@font-face {
  font-family: "Lilita One";
  src: url("fonts/lilita-one-latin-400-normal.woff2") format("woff2");
  font-display: swap;
}

:root {
  --nuit: #0d0709;
  --nuit-90: rgba(13, 7, 9, .9);
  --violet: #2a1520;
  --rouge: #e0063f;
  --rouge-fonce: #b80033;
  --creme: #f7e1bd;
  --texte: #f3e8dc;
  --doux: #c9aab4;
  --titre: "Lilita One", "Arial Black", system-ui, sans-serif;
  --corps: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--texte);
  font-family: var(--corps);
  font-size: 16px;
  line-height: 1.5;
}
a { color: var(--creme); }
a:hover { color: #fff; }
img { display: block; max-width: 100%; }

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(13,7,9,.55) 0%, rgba(13,7,9,0) 16%),
    linear-gradient(to top, var(--nuit) 0%, rgba(13,7,9,.94) 24%, rgba(13,7,9,.6) 44%, rgba(13,7,9,0) 64%);
}

.hero__top { padding: 28px 32px 0; }
.logo { width: 112px; height: auto; filter: drop-shadow(0 2px 10px rgba(0,0,0,.6)); }

.hero__content {
  margin-top: auto;
  width: 100%;
  max-width: 660px;
  margin-left: auto; margin-right: auto;
  padding: 0 24px 18px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 6px;
  font-family: var(--titre);
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rouge);
  text-shadow: 0 1px 0 rgba(0,0,0,.6);
}
h1 {
  margin: 0;
  font-family: var(--titre);
  font-weight: 400;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.02;
  color: var(--creme);
  text-shadow: 0 3px 0 rgba(0,0,0,.45), 0 0 30px rgba(0,0,0,.6);
}
.pitch {
  margin: 14px auto 0;
  max-width: 34em;
  color: var(--texte);
  font-size: 17px;
}

/* ---------- Formulaire (habillage du code Brevo) ---------- */
.egg-form.sib-form {
  margin: 24px auto 0 !important;
  padding: 0 !important;
  background: transparent !important;
  font-family: var(--corps) !important;
  text-align: center;
}
.egg-form .sib-form-container { max-width: 560px; margin: 0 auto; }
.egg-form #sib-container {
  max-width: 560px !important;
  margin: 0 auto !important;
  padding: 20px 20px 16px !important;
  background: rgba(42, 21, 32, .78) !important;
  border: 1px solid rgba(247, 225, 189, .18) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  text-align: left !important;
}
.egg-form #sib-form { margin: 0; }
.egg-form .egg-form__intro {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--texte);
  text-align: center;
}
.egg-form .egg-form__intro strong { color: var(--creme); }

.egg-form .egg-form__row { display: flex; gap: 10px; align-items: flex-start; }
.egg-form .egg-form__row > .sib-input { flex: 1 1 auto; min-width: 0; }
.egg-form .sib-form-block { padding: 0 !important; margin: 0 !important; }
.egg-form .form__entry, .egg-form .form__label-row { margin: 0 !important; }

.egg-form .entry__field {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  background: #fff !important;
  border: 2px solid transparent !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
.egg-form .entry__field:focus-within { border-color: var(--creme) !important; box-shadow: 0 0 0 3px rgba(224,6,63,.45) !important; }
.egg-form input.input {
  width: 100% !important;
  height: 52px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #1d0f15 !important;
  font: 400 17px/1.2 var(--corps) !important;
  outline: none !important;
  box-shadow: none !important;
}
.egg-form input.input::placeholder { color: #8f7a82 !important; font-family: var(--corps) !important; }

.egg-form .sib-form-block__button {
  display: inline-flex !important;
  align-items: center; justify-content: center; gap: 8px;
  height: 52px !important;
  margin: 0 !important;
  padding: 0 22px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--rouge) !important;
  color: #fff !important;
  font: 400 19px/1 var(--titre) !important;
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--rouge-fonce), 0 8px 20px rgba(224,6,63,.35) !important;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.egg-form .sib-form-block__button:hover { background: #f2154f !important; transform: translateY(-1px); }
.egg-form .sib-form-block__button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--rouge-fonce) !important; }
.egg-form .sib-form-block__button:focus-visible { outline: 3px solid var(--creme); outline-offset: 2px; }
.egg-form .sib-form-block__button svg { width: 18px; height: 18px; fill: currentColor; }
.egg-form .sib-hide-loader-icon { display: none !important; }

.egg-form .entry__error {
  margin: 8px 0 0 !important;
  padding: 6px 10px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #ffe3e9 !important;
  color: #7a0021 !important;
  font: 400 14px/1.35 var(--corps) !important;
  text-align: left !important;
}
.egg-form .entry__error:empty { display: none !important; }
.egg-form .entry__label { display: none; }

.egg-form .egg-form__legal {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--doux);
  text-align: center;
}
.egg-form .egg-form__legal a { color: var(--doux); }

/* honeypot anti-robots : doit rester invisible */
.egg-form .input--hidden { display: none !important; }

/* messages de succès / d'erreur */
:where(.sib-form-message-panel) { display: none; }
.egg-form .sib-form-message-panel {
  max-width: 560px !important;
  width: 100%;
  margin: 0 auto 12px !important;
  padding: 16px 18px !important;
  border: 1px solid !important;
  border-radius: 14px !important;
  font: 400 16px/1.45 var(--corps) !important;
  text-align: left !important;
}
.egg-form #success-message { background: rgba(26, 64, 41, .92) !important; border-color: #3ccf7a !important; color: #e9fff1 !important; }
.egg-form #error-message { background: rgba(90, 10, 30, .92) !important; border-color: #ff4f7b !important; color: #ffe8ee !important; }
.egg-form .sib-form-message-panel__text { display: flex; gap: 12px; align-items: flex-start; }
.egg-form .sib-notification__icon { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; fill: currentColor; }
.egg-form .sib-form-message-panel__inner-text strong { display: block; font-family: var(--titre); font-weight: 400; font-size: 20px; margin-bottom: 2px; }

/* ---------- Pied de page ---------- */
.foot {
  padding: 14px 24px 22px;
  text-align: center;
  font-size: 13px;
  color: var(--doux);
}
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.foot a { color: var(--doux); text-decoration: none; }
.foot a:hover { color: var(--creme); text-decoration: underline; }
.foot .sep { opacity: .4; }

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  .hero { display: block; min-height: 0; }
  .hero__bg { position: relative; inset: auto; height: 58svh; min-height: 330px; max-height: 560px; }
  .hero__bg img { object-position: 50% 25%; }
  .hero__bg::after {
    background:
      linear-gradient(to bottom, rgba(13,7,9,.55) 0%, rgba(13,7,9,0) 22%),
      linear-gradient(to top, var(--nuit) 0%, rgba(13,7,9,.7) 22%, rgba(13,7,9,0) 50%);
  }
  .hero__top { position: absolute; top: 0; left: 0; right: 0; padding: 18px 0 0; text-align: center; z-index: 1; }
  .logo { width: 92px; margin: 0 auto; }
  .hero__content { position: relative; margin-top: -84px; padding: 0 18px 8px; }
  .eyebrow { font-size: 13px; }
  h1 { font-size: 38px; }
  .pitch { font-size: 16px; margin-top: 12px; }
  .egg-form.sib-form { margin-top: 20px !important; }
  .egg-form #sib-container { padding: 16px 14px 14px !important; }
  .egg-form .egg-form__row { flex-direction: column; gap: 10px; }
  .egg-form .egg-form__row > .sib-form-block { width: 100%; }
  .egg-form .sib-form-block__button { width: 100% !important; }
}

/* ---------- Pages de texte (mentions, confidentialité) ---------- */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 22px 48px;
}
.page .logo { width: 80px; margin-bottom: 28px; }
.page h1 { font-size: 40px; margin-bottom: 18px; }
.page h2 { font-family: var(--titre); font-weight: 400; color: var(--creme); font-size: 22px; margin: 30px 0 8px; }
.page p, .page li { color: var(--texte); }
.page .todo { background: #ffe066; color: #1d0f15; padding: 0 4px; border-radius: 3px; font-weight: 600; }
.back { display: inline-block; margin-top: 30px; }

/* ---------- Page merci ---------- */
.merci .hero__content { max-width: 600px; padding-bottom: 28px; }
.merci .pitch { font-size: 18px; }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; border-radius: 10px;
  font: 400 18px/1 var(--titre); text-decoration: none; color: #fff;
  background: var(--rouge); box-shadow: 0 4px 0 var(--rouge-fonce);
}
.btn:hover { background: #f2154f; color: #fff; }
.btn--ghost { background: transparent; border: 2px solid rgba(247,225,189,.5); box-shadow: none; color: var(--creme); }
.btn--ghost:hover { background: rgba(247,225,189,.1); color: #fff; }

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

/* ---------- Desktop : texte à gauche, formulaire à droite, posés sur la table ---------- */
@media (min-width: 1000px) {
  .hero__bg::after {
    background:
      linear-gradient(to bottom, rgba(13,7,9,.55) 0%, rgba(13,7,9,0) 16%),
      linear-gradient(to top, var(--nuit) 0%, rgba(13,7,9,.93) 20%, rgba(13,7,9,.65) 36%, rgba(13,7,9,0) 54%);
  }
  .hero__content {
    max-width: 1240px;
    padding: 0 56px 6px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 500px;
    gap: 56px;
    align-items: end;
    text-align: left;
  }
  h1 { font-size: clamp(40px, 3.9vw, 58px); }
  .pitch { margin-left: 0; font-size: 17px; max-width: 30em; }
  .egg-form.sib-form { margin: 0 !important; }
  .egg-form .egg-form__intro { text-align: left; }
  .egg-form .egg-form__legal { text-align: left; }
}
@media (max-width: 700px) { .foot .sep { display: none; } }

/* Page merci : pas de colonnes, tout centré */
@media (min-width: 1000px) {
  .merci .hero__content {
    display: block;
    max-width: 680px;
    padding: 0 24px 28px;
    text-align: center;
  }
  .merci .pitch { margin-left: auto; margin-right: auto; }
}
@media (min-width: 1000px) {
  .merci .hero__bg::after {
    background:
      linear-gradient(to bottom, rgba(13,7,9,.55) 0%, rgba(13,7,9,0) 16%),
      linear-gradient(to top, var(--nuit) 0%, rgba(13,7,9,.94) 30%, rgba(13,7,9,.72) 48%, rgba(13,7,9,0) 68%);
  }
}
