/* ============================================================
   Tendre Chaos — Coming Soon
   Direction : Clair-Obscur (sombre · doré · intimiste)
   ============================================================ */

:root {
  /* Palette — variation Rose Poudré */
  --ink:        #2b1820;          /* texte principal — bordeaux profond */
  --ink-2:      #3a212a;          /* texte titres */
  --ink-3:      #533039;          /* surfaces interactives */
  --cream:      #2b1820;          /* alias texte principal */
  --cream-dim:  #6e4651;          /* texte secondaire */
  --cream-mute: #8e6671;          /* texte tertiaire / méta */
  --gold:       #a8506b;          /* accent — vieux rose profond */
  --gold-soft:  #c46883;          /* hover */
  --green:      #1f4a3a;          /* écho du logo */
  --rose:       #d9b5a8;          /* écho du logo */
  --bg-base:    #f5d8d2;          /* fallback du fond rose */

  /* Type */
  --font-serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Rythme */
  --max-width: 580px;
  --pad-x: clamp(1.5rem, 6vw, 3rem);
}

/* ----------- Reset & base ----------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg-base);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(15px, 1vw + 13px, 17px);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

/* ----------- Atmosphere layers ----------- */
.atmosphere {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}

/* Photographic background — version rose poudré */
.bg-photo {
  position: absolute; inset: -2%;
  background: var(--bg-base) url("assets/bg.jpg") center/cover no-repeat;
  /* Blur léger seulement — on veut bien voir la portée et les notes */
  filter: blur(2px) saturate(1.08) brightness(1.04);
  transform: scale(1.03);
  animation: drift 28s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to   { transform: scale(1.06) translate3d(-1.2%, -0.8%, 0); }
}

/* Voile rose très discret — on garde la photo lisible */
.bg-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(255,240,235,0.10) 0%, rgba(245,210,205,0.22) 65%, rgba(225,180,180,0.32) 100%),
    linear-gradient(180deg, rgba(255,238,232,0.15) 0%, rgba(245,210,205,0.05) 40%, rgba(220,170,170,0.30) 100%);
}

.atmosphere .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: soft-light;
}
.glow-1 {
  width: 70vmax; height: 70vmax;
  top: -28vmax; left: -22vmax;
  background: radial-gradient(circle, rgba(255,220,215,0.55), rgba(255,220,215,0) 60%);
}
.glow-2 {
  width: 55vmax; height: 55vmax;
  bottom: -22vmax; right: -18vmax;
  background: radial-gradient(circle, rgba(168,80,107,0.18), rgba(168,80,107,0) 60%);
}
.grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.40 0 0 0 0 0.15 0 0 0 0 0.20 0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.35;
}

/* ----------- Page layout ----------- */
.page {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 5rem) var(--pad-x) clamp(2rem, 5vh, 3.5rem);
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(2.5rem, 6vh, 4rem);
  text-align: center;
}

/* ----------- Brand ----------- */
.brand { display: grid; gap: clamp(1.25rem, 3vh, 2rem); justify-items: center; }

/* Boost text legibility against the now-prominent staff/notes background
   by adding a soft white halo behind everything in .brand & .signup */
.wordmark,
.tagline,
.signup-title,
.signup-sub,
.field-help,
.copyright {
  text-shadow:
    0 1px 1px rgba(255, 245, 240, 0.6),
    0 0 18px rgba(255, 245, 240, 0.55);
}

.logo-wrap {
  position: relative;
  width: min(72vw, 300px);
  aspect-ratio: 1 / 1;
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0);
  transition: transform 600ms cubic-bezier(.2, .8, .2, 1);
}
.halo {
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
                rgba(255,240,235,0.65) 0%,
                rgba(255,225,220,0.25) 32%,
                rgba(255,220,215,0) 68%);
  filter: blur(6px);
  animation: breathe 7s ease-in-out infinite;
  z-index: -1;
}
.logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  border-radius: 50%;
  filter: contrast(1.02) saturate(1.04) drop-shadow(0 14px 36px rgba(120,55,70,0.28));
}

@keyframes breathe {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1.00; transform: scale(1.04); }
}

/* Wordmark */
.wordmark {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  color: var(--cream);
  display: inline-flex;
  align-items: baseline;
  gap: clamp(0.6rem, 2vw, 1rem);
  flex-wrap: wrap;
  justify-content: center;
}
.wordmark-line { font-style: italic; font-weight: 400; }
.wordmark-line + .wordmark-line { font-style: normal; font-weight: 500; }
.wordmark-amp {
  color: var(--gold);
  font-style: normal;
  font-size: 0.5em;
  transform: translateY(-0.5em);
  font-weight: 400;
}

.tagline {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.4;
  color: var(--cream-dim);
  max-width: 28ch;
  text-wrap: balance;
}

.status {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.55rem 1.1rem 0.5rem;
  border: 1px solid rgba(168,80,107,0.32);
  border-radius: 999px;
  background: rgba(255,255,255,0.30);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(168,80,107,0.55);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168,80,107,0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(168,80,107,0); }
}

/* ----------- Signup ----------- */
.signup {
  display: grid;
  gap: 1rem;
  justify-items: center;
  align-content: center;
}
.signup-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 3.4vw, 1.7rem);
  line-height: 1.25;
  color: var(--cream);
  text-wrap: balance;
}
.signup-sub {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.95rem;
  max-width: 36ch;
  text-wrap: pretty;
}

.signup-form {
  width: 100%;
  max-width: 460px;
  margin-top: 0.5rem;
}
.hp { position: absolute; left: -9999px; }

.field {
  display: flex;
  gap: 0.5rem;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(168,80,107,0.22);
  border-radius: 999px;
  padding: 0.35rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}
.field:focus-within {
  border-color: rgba(168,80,107,0.55);
  background: rgba(255,255,255,0.70);
  box-shadow: 0 0 0 4px rgba(168,80,107,0.12);
}
.field input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink);
  font: inherit;
  padding: 0.65rem 0.5rem 0.65rem 1rem;
}
.field input::placeholder { color: var(--cream-mute); }

.field button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--gold);
  color: #fff5f2;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font: 500 0.92rem/1 var(--font-sans);
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 200ms ease, transform 200ms ease;
}
.field button:hover { background: var(--gold-soft); }
.field button:active { transform: translateY(1px); }
.field button:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }

.field-help {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: var(--cream-mute);
  letter-spacing: 0.01em;
}

.thanks {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
  margin: 0;
}

/* ----------- Footer ----------- */
.foot {
  display: grid;
  gap: 1.1rem;
  color: var(--cream-mute);
  font-size: 0.85rem;
}
.foot-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cream-dim);
  text-decoration: none;
  letter-spacing: 0.01em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 200ms ease, border-color 200ms ease;
}
.contact:hover { color: var(--gold); border-color: rgba(168,80,107,0.5); }
.contact:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.social {
  display: inline-flex;
  gap: 0.4rem;
}
.social a {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  color: var(--cream-dim);
  border: 1px solid rgba(168,80,107,0.22);
  background: rgba(255,255,255,0.35);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease, transform 200ms ease;
}
.social a:hover {
  color: var(--gold);
  border-color: rgba(168,80,107,0.5);
  background: rgba(255,255,255,0.55);
}
.social a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.social a:active { transform: translateY(1px); }

.copyright {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--cream-mute);
}

/* ----------- Reveal on load -----------
   (intentionally minimal — content is visible by default; no JS gating) */

/* ----------- Responsive ----------- */
@media (min-width: 640px) {
  .foot-row {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 420px) {
  .field {
    flex-direction: column;
    border-radius: 28px;
    padding: 0.5rem;
  }
  .field input { padding: 0.85rem 1rem; }
  .field button {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.15rem;
  }
}

/* ----------- Motion / contrast preferences ----------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root { --cream-mute: #b8b3a6; --cream-dim: #e8dfca; }
  .field { border-color: rgba(244,234,216,0.35); }
}

/* ----------- Print ----------- */
@media print {
  body { background: #fff; color: #000; }
  .atmosphere, .signup, .social { display: none; }
}
