:root {
  --background: 30 15% 97%;
  --foreground: 30 10% 20%;
  --muted-foreground: 30 8% 45%;
  --border-color: 30 12% 88%;
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Layout */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

/* Header */
.header {
  width: 100%;
  z-index: 50;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  animation: fade-down 0.6s ease-out;
}

@media (min-width: 640px) {
  .header { padding: 2rem 2rem; }
}

@media (min-width: 1024px) {
  .header { padding: 2rem 4rem; }
}

.logo {
  height: 3rem;
  width: auto;
  object-fit: contain;
}

/* Hero */
.hero {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  min-height: 600px;
}

@media (min-width: 768px) {
  .hero { padding: 2rem; }
}

.hero-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 72rem;
  margin: 0 auto;
  animation: fade-in 0.6s ease-out;
}

.spacer {
  flex: 1;
}

.headline-wrap {
  flex: none;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slide-up 0.6s ease-out 0.1s both;
}

.headline {
  font-size: 1.5rem;
  font-weight: 300;
  color: #fff;
  text-align: center;
  text-shadow: 0 10px 25px rgba(0,0,0,0.35);
  letter-spacing: -0.01em;
  max-width: 42rem;
}

.headline-soft {
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .headline { font-size: 1.875rem; }
}

@media (min-width: 768px) {
  .headline { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .headline { font-size: 2.25rem; }
}

.form-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.notify-form {
  width: 100%;
  max-width: 28rem;
  margin: 4rem auto 1rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
  animation: slide-up 0.6s ease-out 0.2s both;
}

@media (min-width: 768px) {
  .notify-form { margin: 6rem auto 3rem auto; }
}

.field {
  text-align: left;
}

.field-label {
  color: #fff;
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 500;
}

.field-input {
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  font-size: 1rem;
  font-family: inherit;
  background-color: #fff;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border-color));
  border-radius: var(--radius);
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.field-input::placeholder {
  color: hsl(var(--muted-foreground));
}

.field-input:focus {
  border-color: #111;
}

.field-input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.submit-btn {
  width: 100%;
  height: 3rem;
  border: none;
  border-radius: var(--radius);
  background-color: #111111;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.submit-btn:hover:not(:disabled) {
  background-color: #1a1a1a;
}

.submit-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.disclaimer {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.9);
  text-align: center;
  margin: 0.5rem 0 0 0;
  font-weight: 500;
}

/* Mobile : accroche centrée au milieu de l'écran, formulaire collé en bas */
@media (max-width: 640px) {
  .page { min-height: 100dvh; }

  .header { padding: 1.25rem 1.5rem; }

  .hero {
    min-height: 0;
    padding: 0.75rem;
    position: relative;
  }

  .hero-inner {
    position: relative;
    min-height: 100%;
  }

  .spacer { display: none; }

  .headline-wrap {
    position: absolute;
    top: 28%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    padding: 0 0.5rem;
  }

  .headline { font-size: 1.6rem; }

  .form-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.75rem;
    flex: none;
  }

  .notify-form {
    margin: 0 auto;
    gap: 0.5rem;
  }

  .field-label { margin-bottom: 0.25rem; }

  .field-input,
  .submit-btn { height: 2.5rem; }

  .disclaimer {
    font-size: 0.7rem;
    margin-top: 0.3rem;
  }
}

/* Toast */
.toast {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #111;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  background: #b91c1c;
}

.toast.success {
  background: #166534;
}

/* Animations */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
