/* Lithosya — page d'ouverture. Palette du site : abîme, crypte, lune, voile, améthyste. */
:root {
  --abime: #0a0911;
  --crypte: #121020;
  --lune: #eae6f2;
  --voile: #9a93ad;
  --amethyste: #a97fe8;
  --amethyste-clair: #c9adf5;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--abime);
  color: var(--lune);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--amethyste-clair); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--amethyste-clair);
  outline-offset: 3px;
}
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── La scène ─────────────────────────────────────────────── */
.scene {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.scene-art { position: absolute; inset: 0; }
.scene-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 22%;
  animation: respire 16s ease-out both;
}
@keyframes respire { from { transform: scale(1.05); } to { transform: none; } }
.voile {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 9, 17, 0.96) 0%, rgba(10, 9, 17, 0.78) 38%, rgba(10, 9, 17, 0.1) 72%),
    linear-gradient(0deg, var(--abime) 0%, transparent 30%);
}
.scene-texte {
  position: relative;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
}
.scene-texte > * { max-width: 34rem; }

.surtitre {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amethyste-clair);
}
h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3.4rem, 10vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55), 0 0 70px rgba(169, 127, 232, 0.45);
}
.pitch {
  margin: 1.6rem 0 2.2rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  line-height: 1.4;
  color: rgba(234, 230, 242, 0.95);
}

/* ── La porte (newsletter) ───────────────────────────────── */
.porte {
  padding: 1.4rem 1.4rem 1.2rem;
  border: 1px solid rgba(169, 127, 232, 0.3);
  border-radius: 1.1rem;
  background: rgba(18, 16, 32, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.porte-titre {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
}
.porte-texte { margin: 0.3rem 0 1rem; font-size: 0.92rem; color: var(--voile); }
.champ { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.champ input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(10, 9, 17, 0.8);
  color: var(--lune);
  font: inherit;
}
.champ input::placeholder { color: #6f6983; }
.champ button {
  flex: 0 0 auto;
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--amethyste);
  color: var(--abime);
  font: 600 0.95rem var(--sans);
  cursor: pointer;
  box-shadow: 0 0 28px rgba(169, 127, 232, 0.4);
  transition: filter 0.2s, box-shadow 0.2s;
}
.champ button:hover { filter: brightness(1.1); box-shadow: 0 0 40px rgba(169, 127, 232, 0.65); }
.champ button:disabled { opacity: 0.6; cursor: wait; }
.accord {
  display: flex; gap: 0.6rem; align-items: flex-start;
  margin-top: 0.9rem;
  font-size: 0.8rem; line-height: 1.45; color: var(--voile);
  cursor: pointer;
}
.accord input { margin-top: 0.2rem; accent-color: var(--amethyste); }
.piege { position: absolute; left: -9999px; }
.message { min-height: 1.2em; margin: 0.7rem 0 0; font-size: 0.9rem; }
.message.ok { color: #a9e2c4; }
.message.ko { color: #f2a7a7; }
.mention { margin: 0.4rem 0 0; font-size: 0.72rem; color: #7d7690; }

/* ── Le premier trait ────────────────────────────────────── */
.trait {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.trait-dessin {
  margin: 0;
  padding: 0.8rem;
  border-radius: 1rem;
  background: #f4f1ea;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 60px rgba(169, 127, 232, 0.12);
  transform: rotate(-1.2deg);
}
.trait-dessin img { border-radius: 0.5rem; }
h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
}
.trait-texte p { color: rgba(234, 230, 242, 0.82); font-size: 1.05rem; }
.trait-texte strong { color: var(--lune); font-weight: 600; }
.lien-porte {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}
.lien-porte:hover { text-decoration: underline; }

/* ── Pied ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #7d7690;
}
footer p { margin: 0 0 0.6rem; }
footer nav { display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; }
footer a { color: var(--voile); text-decoration: none; }
footer a:hover { color: var(--lune); }

/* ── Téléphone ──────────────────────────────────────────── */
@media (max-width: 720px) {
  .scene { align-items: flex-end; }
  .scene-art img { object-position: 50% 15%; }
  .voile {
    background: linear-gradient(0deg, var(--abime) 0%, rgba(10, 9, 17, 0.9) 48%, rgba(10, 9, 17, 0.15) 78%);
  }
  .scene-texte { padding: 40svh 1rem 2.5rem; }
  .trait { grid-template-columns: 1fr; gap: 2rem; padding: 3.5rem 1rem 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-art img { animation: none; }
}

/* ── Pages de texte (mentions légales) ──────────────────── */
.page {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}
.page h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); text-transform: none; letter-spacing: 0; text-shadow: none; }
.page h2 { font-size: 1.7rem; margin-top: 2.6rem; }
.page p, .page li { color: rgba(234, 230, 242, 0.85); }
.retour { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; }
