/* Nova Arca — Styles */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Montserrat:wght@200;300;400&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --noir:     #0d0d0d;
  --graphite: #111111;
  --ivoire:   #e8e0d0;
  --sable:    #c9bfa8;
  --or:       #a89060;
  --bord:     rgba(232, 224, 208, 0.28);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--noir);
  color: var(--ivoire);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem 3rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Wrapper principal ─────────────────────────── */
.wrapper {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── Logo / Identité ───────────────────────────── */
.logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.logo-block img {
  height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border: 1px solid var(--or);
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.logo-mark::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 1px solid var(--or);
  display: block;
  transform: rotate(0deg);
  opacity: 0.6;
}

.logo-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  font-size: 1.05rem;
  letter-spacing: 0.55em;
  color: var(--ivoire);
  text-transform: uppercase;
  margin-top: 0.4rem;
}

/* ── Citation ──────────────────────────────────── */
.citation-block {
  width: 100%;
  padding: 3.5rem 0;
  border-top: 1px solid var(--bord);
  border-bottom: 1px solid var(--bord);
  text-align: center;
  margin-bottom: 5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.citation-text {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  line-height: 1.85;
  color: var(--ivoire);
  max-width: 520px;
  margin: 0 auto 1.8rem;
  letter-spacing: 0.01em;
}

.citation-auteur {
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--sable);
  text-transform: uppercase;
  opacity: 0.75;
}

/* ── Formulaire ────────────────────────────────── */
.form-block {
  width: 100%;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  width: 100%;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  color: var(--sable);
  text-transform: uppercase;
  opacity: 0.8;
}

input,
textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--bord);
  color: var(--ivoire);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 0.65rem 0;
  width: 100%;
  outline: none;
  transition: border-color 0.4s ease;
  resize: none;
}

input::placeholder,
textarea::placeholder {
  color: transparent;
}

input:focus,
textarea:focus {
  border-bottom-color: rgba(232, 224, 208, 0.4);
}

textarea {
  min-height: 90px;
  line-height: 1.7;
}

/* Honeypot Netlify */
.hidden-field {
  display: none;
}

.submit-wrap {
  margin-top: 0.8rem;
  display: flex;
  justify-content: center;
}

button[type="submit"] {
  background: transparent;
  border: 1px solid rgba(232, 224, 208, 0.25);
  color: var(--ivoire);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  padding: 1rem 3rem;
  cursor: pointer;
  transition: border-color 0.4s ease, color 0.4s ease, background 0.4s ease;
  min-width: 200px;
  min-height: 48px;
}

button[type="submit"]:hover {
  border-color: rgba(232, 224, 208, 0.55);
  color: var(--ivoire);
  background: rgba(232, 224, 208, 0.04);
}

button[type="submit"]:active {
  opacity: 0.7;
}

/* ── Footer ────────────────────────────────────── */
footer {
  margin-top: 6rem;
  width: 100%;
  text-align: center;
  opacity: 0;
  animation: fadeIn 1.4s ease 1.4s forwards;
}

.footer-line {
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  font-size: 0.58rem;
  letter-spacing: 0.5em;
  color: var(--sable);
  text-transform: uppercase;
  opacity: 0.65;
}

/* ── Animations ────────────────────────────────── */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ── Responsive Mobile ─────────────────────────── */
@media (max-width: 600px) {
  body {
    padding: 3rem 1.4rem 2.5rem;
    justify-content: flex-start;
  }

  .logo-block {
    margin-bottom: 3.5rem;
  }

  .logo-block img {
    height: 54px;
  }

  .logo-name {
    font-size: 0.9rem;
    letter-spacing: 0.45em;
  }

  .citation-block {
    padding: 2.5rem 0;
    margin-bottom: 3.5rem;
  }

  .citation-text {
    font-size: 1.08rem;
    line-height: 1.9;
  }

  button[type="submit"] {
    width: 100%;
    padding: 1.1rem 2rem;
  }

  footer {
    margin-top: 4rem;
  }
}
