/* =========================================================
   L'amazone – Page d'attente 2027
   ========================================================= */

/* ---- Polices de la charte ----
   Déposez les fichiers dans assets/fonts/ avec ces noms exacts.
   Sans eux, la page utilise Shrikhand / Montserrat (Google Fonts). */
@font-face {
  font-family: "New Experiental";
  src: url("../fonts/NEW-EXPERIMENTAL.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "Gotham";
  src: url("../fonts/Gotham-Book.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
/* Facultatif : si vous récupérez Gotham-Black.otf, déposez-le dans assets/fonts.
   En attendant, les textes gras utilisent Montserrat Black. */
@font-face {
  font-family: "Gotham Black";
  src: url("../fonts/Gotham-Black.otf") format("opentype");
  font-weight: 900;
  font-display: swap;
}

:root {
  --bleu-fonce: #2E2F80;
  --bleu: #3A3D96;
  --bleu-moyen: #4B6BB5;
  --bleu-ciel: #8EC5EE;
  --ombre: #241F66;
  --rose: #E8468C;
  --rose-clair: #E77FB2;
  --jaune: #FCD449;
  --creme: #FBF3DC;

  --f-display: "New Experiental", "Shrikhand", serif;
  --f-text: "Gotham", "Montserrat", system-ui, sans-serif;
  --f-bold: "Gotham Black", "Montserrat", system-ui, sans-serif;
}

/* Gras : jamais de faux-gras calculé à partir de Gotham Book */
h1, h2, strong, b,
.eyebrow, .countdown-label, .cd-txt, .infos {
  font-family: var(--f-bold);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bleu);
  color: #fff;
  font-family: var(--f-text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--jaune); }
a:hover { color: #fff; }
a:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; }

.logo {
  font-family: var(--f-display);
  font-size: 30px;
  line-height: 1;
  color: var(--jaune);
}

.eyebrow {
  margin: 0;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bleu-ciel);
}

/* ---- Bouton ---- */
.btn {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 24px;
  line-height: 1.2;
  color: var(--jaune);
  background: var(--rose);
  text-decoration: none;
  padding: 11px 30px;
  box-shadow: 0 0 0 4px var(--jaune), 0 0 0 7px var(--rose);
  transition: transform .2s ease;
}
.btn:hover, .btn:focus-visible { color: var(--jaune); transform: rotate(-2deg) scale(1.03); }

/* =========================================================
   1. HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 36px 24px 110px;
  background: radial-gradient(120% 90% at 70% 10%, var(--bleu-moyen) 0%, var(--bleu) 55%, var(--bleu-fonce) 100%);
}

.confetti { position: absolute; border-radius: 50%; }
.c1 { top: 140px; left: 6%;  width: 16px; height: 16px; background: var(--jaune); }
.c2 { top: 210px; left: 9%;  width: 10px; height: 10px; background: var(--rose); }
.c3 { top: 90px;  right: 8%; width: 14px; height: 14px; background: var(--bleu-ciel); }
.c4 { bottom: 160px; right: 5%; width: 18px; height: 18px; background: var(--jaune); }
.c5 { bottom: 120px; left: 46%; width: 10px; height: 10px; background: var(--creme); }

.topbar {
  max-width: 1280px;
  margin: 0 auto 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.socials { display: flex; gap: 12px; }
.soc {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--rose);
  color: var(--jaune);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.soc:hover, .soc:focus-visible { background: var(--jaune); color: var(--rose); }

.hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px 70px;
}

.hero-poster {
  flex: 0 1 560px;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 22px 22px 0;
}
.poster {
  display: block;
  width: 100%;
  box-shadow: 0 0 0 6px var(--jaune), 0 0 0 11px var(--rose), 22px 22px 0 11px var(--ombre);
  transform: rotate(-2deg);
  transition: transform .3s ease;
}
.poster:hover { transform: rotate(0) scale(1.01); }

.hero-text {
  flex: 999 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.hero-text h1 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.02;
  text-transform: uppercase;
}
.hero-text h1 span { color: var(--jaune); }
.lead {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  max-width: 560px;
  color: #E6E8F7;
}
.lead strong { font-weight: 900; color: #fff; }

/* ---- Compte à rebours ---- */
.countdown-wrap { display: flex; flex-direction: column; gap: 14px; }
.countdown-label {
  margin: 0;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rose-clair);
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 520px;
}
.cd-box {
  background: var(--rose);
  padding: 16px 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 6px 6px 0 var(--ombre);
}
.cd-num {
  font-family: var(--f-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  color: var(--jaune);
  font-variant-numeric: tabular-nums;
}
.cd-txt {
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.countdown-done {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--jaune);
}

.infos {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 15px;
  font-weight: 700;
  color: var(--creme);
}
.infos li { display: inline-flex; align-items: center; gap: 8px; }
.infos svg { color: var(--jaune); flex: 0 0 auto; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding-top: 10px;
}
.launch { font-size: 14px; color: #C9CDEE; }
.launch strong { color: #fff; }

/* =========================================================
   2. FOOTER
   ========================================================= */
.footer {
  background: var(--bleu-fonce);
  padding: 48px 24px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer .logo { font-size: 26px; }
.footer p { margin: 0; font-size: 14px; color: #C9CDEE; }
.footer .small { font-size: 12px; color: #9FA4DA; }
.footer .small a { color: #fff; text-decoration: none; }

/* =========================================================
   Lien "Mentions légales" (bouton stylé en lien)
   ========================================================= */
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--jaune); }
.link-btn:focus-visible { outline: 3px solid var(--jaune); outline-offset: 3px; }

/* =========================================================
   Modale
   ========================================================= */
.modal {
  width: min(680px, calc(100% - 32px));
  max-height: min(84vh, 900px);
  padding: 0;
  border: 0;
  background: var(--creme);
  color: var(--bleu);
  box-shadow: 0 0 0 5px var(--jaune), 0 0 0 9px var(--rose), 16px 16px 0 9px var(--ombre);
  overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; animation: modal-in .25s ease-out; }
.modal::backdrop { background: rgba(36, 31, 102, .75); backdrop-filter: blur(3px); }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--rose);
  color: var(--jaune);
}
.modal-head h2 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.1;
}
.modal-close {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--jaune);
  color: var(--rose);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.modal-close:hover { background: #fff; }
.modal-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.modal-body {
  overflow-y: auto;
  padding: 8px 28px 28px;
  font-size: 15px;
  line-height: 1.6;
}
.modal-body h3 {
  margin: 24px 0 6px;
  font-family: var(--f-bold);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rose);
}
.modal-body p { margin: 0 0 10px; }
.modal-body a { color: var(--bleu); font-weight: 700; text-underline-offset: 3px; }
.modal-body a:hover { color: var(--rose); }
body.modal-open { overflow: hidden; }

/* =========================================================
   Bouton don collant (mobile uniquement)
   ========================================================= */
.sticky-don { display: none; }

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 640px) {
  .hero { padding: 20px 20px 72px; text-align: center; }

  .topbar { margin-bottom: 28px; }
  .logo { font-size: 24px; }
  .soc { width: 40px; height: 40px; }

  .c1 { top: 300px; left: 4%; }
  .c2 { top: 420px; left: 90%; }
  .c3 { top: 96px; right: 30%; }
  .c4 { bottom: 300px; right: 6%; }
  .c5 { bottom: 90px; left: 12%; }

  .hero-inner { flex-direction: column; gap: 44px; }

  /* affiche centrée, un peu plus petite pour laisser respirer */
  .hero-poster {
    flex: none;
    width: 82%;
    max-width: 340px;
    padding: 0 12px 12px 0;
  }
  .poster {
    transform: rotate(-3deg);
    box-shadow: 0 0 0 5px var(--jaune), 0 0 0 9px var(--rose), 12px 12px 0 9px var(--ombre);
  }

  .hero-text { flex: none; width: 100%; align-items: center; gap: 22px; }
  .eyebrow { font-size: 12px; }
  .hero-text h1 { font-size: clamp(30px, 9vw, 40px); }
  .hero-text h1 span { display: block; }
  .lead { font-size: 16px; max-width: 34ch; }

  .countdown-wrap { width: 100%; align-items: center; }
  .countdown { width: 100%; gap: 8px; }
  .cd-box { padding: 12px 2px 10px; box-shadow: 4px 4px 0 var(--ombre); }
  .cd-box:nth-child(odd)  { transform: rotate(-2deg); }
  .cd-box:nth-child(even) { transform: rotate(2deg); }
  .cd-num { font-size: clamp(28px, 9vw, 36px); }
  .cd-txt { font-size: 9px; letter-spacing: .06em; }

  .infos {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, .08);
    border: 2px dashed rgba(251, 243, 220, .35);
  }

  .hero-cta { flex-direction: column; gap: 14px; }

  .footer { padding: 40px 20px 110px; }
  .footer p { font-size: 13px; line-height: 1.6; }

  /* barre de don collante, visible quand le bouton principal sort de l'écran */
  .sticky-don {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 50;
    padding: 14px 20px;
    font-family: var(--f-display);
    font-size: 22px;
    line-height: 1;
    color: var(--jaune);
    background: var(--rose);
    text-decoration: none;
    box-shadow: 0 0 0 3px var(--jaune), 0 0 0 6px var(--rose), 0 10px 24px rgba(20, 16, 70, .45);
    transform: translateY(160%);
    transition: transform .3s ease;
  }
  .sticky-don.is-visible { transform: none; }
  .sticky-don:hover { color: var(--jaune); }

  .modal { width: calc(100% - 24px); max-height: 88vh; box-shadow: 0 0 0 4px var(--jaune), 0 0 0 7px var(--rose); }
  .modal-head { padding: 16px 18px; }
  .modal-body { padding: 4px 20px 24px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .poster, .soc, .sticky-don { transition: none; }
  .modal[open] { animation: none; }
}
