html {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #ffffff url('../img/background.png') center center repeat;
  background-size: 150%;
  min-height: 100vh;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  color: #5a5a5a;
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
}

/* Bloquer le scroll quand l'overlay est actif */
body.no-scroll {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
}

/* ---------- OVERLAY ---------- */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff url('../img/background.png') center center repeat;
  background-size: 150%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.7s ease;
  overflow: hidden;
}

.overlay-content {
  text-align: center;
  padding: 5vh 6vw;
  border: 4px solid #d4c398;
  background: transparent;
  position: relative;
  opacity: 1;
  transform: scale(1);
  transition: all 0.6s ease;
  max-width: 85vw;
  max-height: 90vh;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.overlay-content::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 2px solid #d4c398;
  background: #f5ecdd;
  z-index: -1;
}

.overlay-logo {
  width: min(350px, 60vw);
  max-width: 100%;
  margin-bottom: 3vh;
  animation: fadeInDown 0.8s ease;
}

.overlay-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 600;
  color: #5a5a5a;
  margin: 0 0 1vh 0;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.overlay-greeting {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(18px, 3.5vw, 24px);
  font-weight: 400;
  font-style: italic;
  color: #5a5a5a;
  margin: 2vh 0 0.5vh 0;
  animation: fadeInUp 0.8s ease 0.3s backwards;
}

.overlay-name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(42px, 8vw, 64px);
  font-weight: 900;
  letter-spacing: 6px;
  color: #d4c398;
  margin: 0 0 2vh 0;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.overlay-guest {
  font-family: "Great Vibes", cursive;
  font-size: clamp(32px, 7vw, 52px);
  font-weight: 400;
  color: #d4c398;
  margin: 0 0 3vh 0;
  text-shadow: 0 2px 8px rgba(212, 195, 152, 0.3);
  animation: fadeInUp 0.8s ease 0.5s backwards;
}

.overlay-button {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 700;
  color: #ffffff;
  background-color: #d4c398;
  padding: 14px 40px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.4s ease;
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

.overlay-button:hover {
  background-color: #c4b388;
  transform: translateY(-2px);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CONTAINER */
.section {
  width: 100%;
  max-width: 100vw;
  display: flex;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* ----- BIG ARCH ----- */
.big-arch {
  border: 4px solid #d4c398;
  border-radius: 300px 300px 0 0;
  padding: 7px;
  overflow: visible;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  /* centre parfaitement la petite arche */
  width: 90vw;
  max-width: 500px;
  position: relative;
}

/* ----- DECORATIVE FLOWER ----- */
.decorative-flower {
  position: absolute;
  top: -15px;
  right: -40px;
  width: 200px;
  height: auto;
  z-index: 100;
  pointer-events: none;
  display: block;
  animation: floatFlower 7s ease-in-out infinite;
}

/* ----- DECORATIVE BIRD ----- */
.decorative-bird {
  position: absolute;
  bottom: -15px;
  left: -70px;
  width: 120px;
  height: auto;
  z-index: 100;
  pointer-events: none;
  display: block;
  animation: floatBird 8s ease-in-out infinite;
}

@keyframes floatFlower {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(3deg);
  }
}

@keyframes floatBird {

  0%,
  100% {
    transform: translateX(0) translateY(0);
  }

  50% {
    transform: translateX(5px) translateY(-8px);
  }
}

/* ----- LITTLE ARCH ----- */
.little-arch {
  width: 100%;
  height: 100%;
  border: 2px solid #d4c398;
  border-radius: 300px 300px 0 0;
  background: #f5ecdd;
  box-sizing: border-box;
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* top row en haut / bottom text en bas */
  align-items: center;

  padding: 40px 20px;
}

.first-arch {
  padding-top: 50px !important;
}

.first-arch .hebrew-letter {
  margin-bottom: 20px;
}

/* ---------- TOP ROW (PARENTS) ---------- */
.top-row {
  width: 100%;
  display: flex;
  justify-content: space-between;

}

.parents-left,
.parents-right {
  font-size: 17px;
  line-height: 1.25;
  text-align: left;
  max-width: 45%;
}

.parents-right {
  text-align: right;
}

/* ---------- BOTTOM TEXT ---------- */
.bottom-text {
  text-align: center;
  font-size: 24px;
  line-height: 1.4;
  margin-top: 30px;
}

.names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: 15px;
}

.name-french {
  font-family: "Cormorant Garamond", serif;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #d4c398;
}

.name-hebrew {
  font-family: "David Libre", serif;
  font-size: 62px;
  font-weight: 700;
  direction: rtl;
  color: #d4c398;
}

/* ---------- COUNTDOWN ---------- */
.countdown-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px 20px 20px;
}

.countdown-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  border: 4px solid #d4c398;
  border-radius: 0;
  background: transparent;
  position: relative;
  width: 90vw;
  max-width: 500px;
  box-sizing: border-box;
}

.countdown-wrapper::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 2px solid #d4c398;
  border-radius: 0;
  background: #f5ecdd;
  z-index: -1;
}

.countdown-header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.save-the-date {
  font-family: "Great Vibes", cursive;
  font-size: 48px;
  color: #d4c398;
  margin: 0 0 5px 0;
  font-weight: 400;
}

.countdown-date {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  font-weight: 600;
  color: #5a5a5a;
  margin: 0;
}

.countdown-container {
  display: flex;
  flex-direction: row;
  gap: 15px;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 60px;
  position: relative;
  z-index: 1;
}

.countdown-number {
  font-family: "Cormorant Garamond", serif;
  font-size: 36px;
  font-weight: 700;
  color: #5a5a5a;
  line-height: 1;
}

.countdown-label {
  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  font-weight: 600;
  color: #5a5a5a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- TEFILIN SECTION ---------- */
.tefilin-arch {
  padding-top: 50px !important;
  padding-bottom: 50px !important;
}

.hebrew-letter {
  font-family: "David Libre", serif;
  font-size: 20px;
  font-weight: 700;
  color: #5a5a5a;
  margin-top: 0;
  margin-bottom: 50px;
  direction: rtl;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #d4c398;
  margin: 0 0 30px 0;
  text-align: center;
}

.tefilin-text {
  text-align: center;
  color: #5a5a5a;
}

.tefilin-intro {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.tefilin-date {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: #5a5a5a;
}

.tefilin-location {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 5px 0;
  line-height: 1.4;
}

.tefilin-synagogue {
  font-family: "Great Vibes", cursive;
  font-size: 52px;
  font-weight: 400;
  margin: 10px 0 20px 0;
  color: #d4c398;
  line-height: 1.2;
}

.tefilin-address {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 18px 0;
  line-height: 1.5;
}

.tefilin-time {
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: #5a5a5a;
}

.waze-button {
  display: inline-block;
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background-color: #d4c398;
  padding: 10px 20px;
  border: 2px solid #d4c398;
  border-radius: 0;
  text-decoration: none;
  margin: 25px 0 0 0;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.waze-button:hover {
  background-color: #f5ecdd;
  color: #d4c398;
  border-color: #d4c398;
}

.tefilin-breakfast {
  font-family: "Great Vibes", cursive;
  font-size: 26px;
  font-weight: 400;
  margin: 0 0 10px 0;
  color: #5a5a5a;
  line-height: 1.2;
}

.reception-intro {
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 5px 0;
  color: #5a5a5a;
  line-height: 1.3;
}

.reception-venue {
  font-family: "Great Vibes", cursive;
  font-size: 42px;
  font-weight: 400;
  margin: 15px 0 25px 0;
  color: #5a5a5a;
  line-height: 1.2;
}

.reception-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 3px;
  margin: 0 0 30px 0;
  color: #d4c398;
  text-transform: uppercase;
}

/* ---------- MUSIC TOGGLE BUTTON ---------- */
.music-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background-color: #d4c398;
  border: 3px solid #d4c398;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.music-toggle:hover {
  background-color: #c4b388;
  border-color: #c4b388;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.music-icon {
  width: 24px;
  height: 24px;
  color: #ffffff;
  transition: opacity 0.3s ease;
}

/* ---------- FORMULAIRE RSVP ---------- */
.form-section {
  width: 90vw;
  max-width: 500px;
  margin: 40px auto;
  padding: 0;
  box-sizing: border-box;
}

#rsvp {
  background: transparent;
  padding: 40px 25px 40px 25px;
  border: 4px solid #d4c398;
  border-radius: 300px 300px 0 0;
  box-sizing: border-box;
  position: relative;
}

#rsvp::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 2px solid #d4c398;
  border-radius: 300px 300px 0 0;
  background: #f5ecdd;
  z-index: 0;
  pointer-events: none;
}

/* Fleur et oiseau pour le formulaire */
.decorative-flower-form {
  position: absolute;
  top: -15px;
  right: -40px;
  width: 200px;
  height: auto;
  z-index: 100;
  pointer-events: none;
  animation: floatFlower 7s ease-in-out infinite;
}

.decorative-bird-form {
  position: absolute;
  bottom: -15px;
  left: -70px;
  width: 120px;
  height: auto;
  z-index: 100;
  pointer-events: none;
  animation: floatBird 8s ease-in-out infinite;
}

#rsvp h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #d4c398;
  text-align: center;
  margin: 80px 0 30px 0;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}

.form-group label {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  font-weight: 700;
  color: #5a5a5a;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 500;
  color: #5a5a5a;
  background: #ffffff;
  border: 2px solid #d4c398;
  border-radius: 0;
  box-sizing: border-box;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus {
  border-color: #c4b388;
  box-shadow: 0 0 0 3px rgba(212, 195, 152, 0.2);
}

.form-group input[type="number"] {
  margin-top: 10px;
}

.form-group input[type="number"]:disabled {
  background: #e8e8e8;
  cursor: not-allowed;
  opacity: 0.6;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.checkbox-group {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  font-weight: 500;
  color: #5a5a5a;
  cursor: pointer;
  margin: 0;
}

.checkbox-group input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #d4c398;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

.btnSubmit {
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background-color: #d4c398;
  padding: 14px 50px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btnSubmit:hover {
  background-color: #c4b388;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btnSubmit:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Message de statut (créé dynamiquement par JS) */
#statusDiv {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 480px) {
  #rsvp h1 {
    font-size: 36px;
  }

  #rsvp {
    padding: 25px 20px;
  }

  .checkbox-group {
    flex-direction: column;
    gap: 12px;
  }

  .btnSubmit {
    padding: 12px 40px;
    font-size: 15px;
  }

  .decorative-flower {
    width: 200px;
    top: -10px;
    right: -30px;
  }

  .decorative-bird {
    width: 105px;
    bottom: -10px;
    left: -65px;
  }
}