@font-face {
  font-family: "Felix Titling";
  src: url("../assets/fonts/FelixTitling-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #fff4e6;
  --olive: #6f7232;
  --olive-dark: #5a5c28;
  --terracotta: #845445;
  --sage: #979d72;
  --ink: #3a3a2e;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: #e7e2d3;
  color: var(--ink);
  font-family: "Felix Titling", "Times New Roman", serif;
  letter-spacing: 0.03em;
}

/* ---------- Cadre format téléphone ---------- */

.frame {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--cream);
  overflow: hidden;
}

@media (min-width: 481px) {
  .frame {
    margin: 2rem auto;
    min-height: calc(100vh - 4rem);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  }
}

.frame--home::before {
  content: "";
  position: absolute;
  inset: 1.2rem;
  border: 1.5px solid var(--olive);
  pointer-events: none;
}

/* ---------- Menu evenements ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  background: var(--olive);
}

.nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- Page d'accueil ---------- */

.hero {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero__logo {
  width: min(60vw, 320px);
  height: auto;
}

.hero__cta {
  margin-top: 4rem;
  display: inline-block;
  padding: 0.9rem 2.6rem;
  background: var(--olive);
  color: var(--cream);
  border: none;
  border-radius: 999px;
  font-family: "Felix Titling", serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero__cta:hover {
  background: var(--olive-dark);
  transform: translateY(-2px);
}

/* ---------- Bienvenue ---------- */

.welcome {
  min-height: calc(100% - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2.2rem;
  padding: 3rem 2rem;
}

.welcome__title {
  color: var(--terracotta);
  font-size: 2rem;
  line-height: 1.3;
}

.welcome__text {
  color: var(--olive);
  font-size: 1rem;
  line-height: 1.9;
  max-width: 300px;
}

.welcome__names {
  color: var(--terracotta);
  font-size: 1.6rem;
}

.welcome__logo {
  width: 140px;
  height: auto;
}

/* ---------- Carte évènement (Mairie, Henné...) ---------- */

.card {
  position: relative;
  padding: 3rem 1.6rem;
  background-image: url("../assets/images/mairie-bg.jpg?v=2");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.3rem;
  max-width: 260px;
  margin: 0 auto;
}

.card__names {
  color: var(--olive);
  font-size: 1.45rem;
}

.card__lead {
  color: var(--olive);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 300px;
}

.card__datetime {
  color: var(--olive);
  font-size: 1.15rem;
  line-height: 1.9;
}

.waze-btn {
  display: inline-block;
  background: var(--olive);
  color: var(--cream);
  border-radius: 999px;
  padding: 0.75rem 1.8rem;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 0.25s ease;
}

.waze-btn:hover {
  background: var(--olive-dark);
}

/* ---------- Scène évènement (Houppa, Shabbat...) ---------- */

.scene {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 2rem;
  gap: 1.6rem;
}

.scene__logo {
  width: 110px;
  height: auto;
}

.scene__parents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem 1.6rem;
  color: var(--olive);
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: left;
}

.scene__intro {
  color: var(--olive);
  font-size: 1.1rem;
  line-height: 1.6;
}

.scene__title {
  color: var(--terracotta);
  font-size: 1.95rem;
}

.scene__hebrew {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 280px;
  color: var(--terracotta);
  font-size: 1.25rem;
}

.scene__datetime {
  color: var(--olive);
  font-size: 1.1rem;
  line-height: 1.8;
}

.poster {
  display: block;
}

.poster img {
  display: block;
  width: 100%;
  height: auto;
}

.scene--henne {
  background-image: url("../assets/images/henne-bg.jpg?v=3");
}

.scene__suivi {
  color: var(--olive);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.scene__title--top {
  color: var(--terracotta);
  font-size: 2.1rem;
  margin-bottom: 0.4rem;
}

.scene__hosts {
  color: var(--olive);
  font-size: 1.35rem;
}

/* ---------- RSVP ---------- */

.rsvp {
  padding: 3rem 1.8rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rsvp__title {
  color: var(--terracotta);
  font-size: 1.9rem;
  margin-bottom: 1.2rem;
}

.rsvp__envelope {
  width: 220px;
  height: auto;
  border-radius: 6px;
  margin-bottom: 2.2rem;
}

.rsvp__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.rsvp__label {
  color: var(--olive-dark);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-top: 0.4rem;
}

.rsvp__input {
  width: 100%;
  border: none;
  border-radius: 999px;
  background: var(--sage);
  color: var(--cream);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 1.2rem;
}

.rsvp__input:focus {
  outline: 2px solid var(--olive-dark);
  outline-offset: 2px;
}

.rsvp__textarea {
  border-radius: 14px;
  min-height: 100px;
  resize: vertical;
}

.rsvp__event {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(111, 114, 50, 0.25);
}

.rsvp__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}

.rsvp__radio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--olive-dark);
  font-size: 0.85rem;
  cursor: pointer;
}

.rsvp__radio input[type="radio"] {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--sage);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.rsvp__radio input[type="radio"]:checked {
  background: var(--sage);
}

.rsvp__submit {
  margin-top: 1.2rem;
  width: 100%;
  border: none;
  border-radius: 999px;
  background: var(--olive-dark);
  color: var(--cream);
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.08em;
  padding: 0.9rem;
  cursor: pointer;
  transition: background 0.25s ease;
}

.rsvp__submit:hover {
  background: var(--olive);
}

.rsvp__submit:disabled {
  background: #c9c4b4;
  color: #8a8676;
  cursor: not-allowed;
}

.rsvp__submit:disabled:hover {
  background: #c9c4b4;
}

.rsvp__success {
  margin-top: 1rem;
  text-align: center;
  color: var(--olive-dark);
  font-size: 0.95rem;
}
