:root {
  --cream: #d7cdc3;
  --sand: #b0a099;
  --sand-light: #e4ddd7;
  --sage: #3b1111;
  --sage-dark: #280c0c;
  --sage-light: #6b2828;
  --warm-dark: #1a0808;
  --warm-mid: #5a2e2e;
  --warm-muted: #8a6464;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;

  --shadow-card: 0 2px 16px 0 rgba(26, 8, 8, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--warm-dark);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  margin: 0;
}

.page {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  overflow: hidden;
}

.border-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    to right,
    transparent,
    var(--sand),
    transparent
  );
  pointer-events: none;
}

/* HERO */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4.5rem 1.5rem 2rem;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--sand);
  margin-bottom: 2rem;
}

.ornament-line {
  display: block;
  width: 4rem;
  height: 1px;
}

.ornament-line--right {
  background: linear-gradient(to right, transparent, var(--sand));
}

.ornament-line--left {
  background: linear-gradient(to left, transparent, var(--sand));
}

.ornament-star {
  flex-shrink: 0;
  animation: gentleSpin 24s linear infinite;
}

@keyframes gentleSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--warm-muted);
  margin: 0 0 0.75rem;
}

.title {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  line-height: 1.05;
  font-weight: 600;
  color: var(--warm-dark);
  margin: 0 0 1rem;
}

.title .amp {
  color: var(--sand);
  font-style: italic;
  font-weight: 400;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
}

.divider-line {
  display: block;
  width: 6rem;
  height: 1px;
}

.divider-line--right {
  background: linear-gradient(to right, transparent, var(--sand-light));
}

.divider-line--left {
  background: linear-gradient(to left, transparent, var(--sand-light));
}

.divider-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--sand);
}

.lede {
  max-width: 32rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--warm-muted);
  margin: 0.5rem auto 2.5rem;
}

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

.status {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 400;
  color: var(--sage);
  margin: 0 0 2rem;
}

/* COUNTDOWN */
.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 3rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  min-width: 5.25rem;
  box-shadow: var(--shadow-card);
}

.countdown-value {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: var(--warm-dark);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-muted);
}

.countdown-sep {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--sand);
  align-self: center;
  padding-bottom: 1.5rem;
}

@media (max-width: 480px) {
  .countdown {
    gap: 0.5rem;
  }
  .countdown-sep {
    display: none;
  }
  .countdown-item {
    min-width: 4.25rem;
    padding: 0.75rem 0.85rem;
    flex: 1 1 0;
  }
}

/* NOTIFY FORM */
.notify {
  width: 100%;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.notify-label {
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-mid);
  margin-bottom: 0.875rem;
}

.notify-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.notify-row input {
  flex: 1;
  border: 1px solid var(--sand);
  background: #ffffff;
  color: var(--warm-dark);
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  transition: all 0.15s ease;
  min-width: 0;
}

.notify-row input::placeholder {
  color: var(--warm-muted);
}

.notify-row input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(59, 17, 17, 0.18);
}

.btn-primary {
  background: var(--sage);
  color: #ffffff;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--sage-dark);
}

.btn-primary:active {
  transform: scale(0.96);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.notify-message {
  margin-top: 0.875rem;
  min-height: 1.2em;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--warm-muted);
}

.notify-message.is-error {
  color: var(--sage-light);
  font-style: normal;
}

.notify-message.is-success {
  color: var(--sage);
  font-style: italic;
}

@media (max-width: 480px) {
  .notify-row {
    flex-direction: column;
  }
  .btn-primary {
    width: 100%;
  }
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--sand-light);
  padding: 2rem 1rem;
  text-align: center;
  margin-top: auto;
}

.footer p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--warm-muted);
  font-size: 0.875rem;
}

/* CUSTOM SCROLLBAR (cohérent avec le site) */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--sand);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--warm-muted);
}
