* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    height: 100%;
    font-family: 'Roboto', sans-serif;
    color: #333;
  }
  
  /* TYPOGRAPHIE */
  h1, h2 {
    font-family: 'Playfair Display', serif;
  }
  h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
  }
  h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  /* NAVIGATION */
  nav.nav {
    position: absolute;
    top: 1rem; left: 1rem; right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
  }
  .nav__langs .lang {
    background: rgba(255,255,255,0.7);
    border: none;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    border-radius: 1rem;
    cursor: pointer;
  }
  .nav__toggle {
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    display: none;
  }
  .nav__menu {
    list-style: none;
    display: flex;
    gap: 1rem;
  }
  .nav__menu a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(0,0,0,0.4);
    border-radius: 1rem;
  }
  @media (max-width: 768px) {
    .nav__toggle { display: block; }
    .nav__menu {
      display: none;
      flex-direction: column;
      background: rgba(0,0,0,0.6);
      padding: 1rem;
      border-radius: 0.5rem;
    }
    .nav__menu.show { display: flex; }
  }
  
  /* POP-UP */
  .popup {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  .popup.show { display: flex; }
  
  .popup__bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('images/photo1.jpeg') center/cover no-repeat;
    background-size: cover;
  }
  
  .popup__close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    background: rgba(255,255,255,0.7);
    color: #333;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
    text-align: center;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.3s ease;
  }
  .popup__close:hover {
    background: rgba(255,255,255,0.9);
  }
  
  .popup__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding-top: 3rem;
  }
  .popup__title {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: #000;
  }
  
  /* HERO SECTION (noms ajustés) */

  .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); 
  z-index: 1;
}
.hero__content {
  position: relative; /* si ce n’est pas déjà présent */
  height: 100%;       /* prend toute la hauteur du hero-section */
}

  .hero-section {
    background-image: url('images/image1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 7rem; /* augmenté pour faire descendre les noms */
    text-align: center;
  }
  .hero__names {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 2.5rem;
  }
  
  /* COMPTEUR DESIGN ÉLÉGANT */
  #countdown-main {
  position: absolute;   
  top: 50%;            
  left: 50%;            
  transform: translate(-50%, -50%); 
  margin: 0;             
  z-index: 2;           
}

.countdown {
  margin-bottom: 0;      /* override du margin-bottom:2rem */
}

  .countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: nowrap;
  }
  .countdown__item {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 0.5rem;
    text-align: center;
  }
  .countdown__item span {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
  }
  .countdown__item small {
    font-size: 0.65rem;
    margin-top: 0.2rem;
    line-height: 1;
  }
  
  /* —— Ajustements Hero —— */
.hero-section {
  /* descend les prénoms à un peu au‑dessus du milieu */
  padding-top: 35vh !important;
}

.hero__names {
  /* espace avant le compteur */
  margin-bottom: 3rem !important;
}

#countdown-main {
  /* déplace le compteur plus bas dans la fenêtre */
  top: 65% !important;
}

  /* SECTION STANDARD */
  .section,
  #reception,
  #houppa {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: scroll;
    padding: 4rem 2rem;
    position: relative;
  }

  /* ——— SECTION “LA MAIRIE” ——— */
#mairie {
  /* vous pouvez remplacer la couleur par une image via background-image */
  background-color: #f5efe8;
  /* background-image: url('images/photo4.jpeg'); */
  background-size: cover;
  background-position: center;
  background-attachment: scroll; /* pas de parallax */
  padding: 4rem 2rem;
}

#mairie .mairie-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

#mairie .mairie-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 3rem;
  color: #b29e8d;
  margin-bottom: 1.5rem;
}

#mairie .mairie-text {
  font-family: 'Playfair Display', serif;
  color: #b29e8d;
  margin: 0.5rem 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

#mairie .mairie-text em {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-size: 0.95rem;
}

#mairie .btn--mairie {
  background: #b29e8d;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  margin: 1rem 0.5rem;
  text-decoration: none;
  display: inline-block;
  font-family: 'Playfair Display', serif;
}

  
  /* NOTRE HISTOIRE (parallax activé uniquement ici) */
  .story-section {
    background-image: url('images/photo3.jpeg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 2rem;
    position: relative;
  }
  .story-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
  }
  .story-content {
    position: relative;
    z-index: 2;
    background: transparent;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    animation: slideUp 2s ease-out forwards;
    opacity: 0;
    transform: translateY(40px);
  }
  @keyframes slideUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .story-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
  }
  .story-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #eee;
    text-align: justify;
  }
  
  /* BOUTONS */
  .btn {
    font-family: 'Playfair Display', serif;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 2rem;
    cursor: pointer;
    margin-top: 1rem;
  }
  .btn--primary {
    background: linear-gradient(45deg, #d67f7f, #f1a7a6);
    color: #fff;
  }
  .btn-group .btn {
    margin: 0 0.5rem;
  }
  
/* —— RSVP SECTION —— */
.rsvp-section {
  background-color: #fefcf8;
  padding: 4rem 2rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: #b29e8d;
  text-align: center;
  margin-bottom: 2rem;
}

/* Form layout */
.rsvp-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* Floating labels */
.form-group {
  position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #d8cfc4;
  border-radius: 0.75rem;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #b29e8d;
  box-shadow: 0 0 0 3px rgba(178, 158, 141, 0.2);
}

.form-group label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  background: #fefcf8;
  padding: 0 0.25rem;
  color: #b29e8d;
  font-size: 1rem;
  pointer-events: none;
  transition: transform 0.3s, font-size 0.3s;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not([value=""]) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  transform: translateY(-130%) scale(0.85);
  font-size: 0.85rem;
}

/* Override for selects to match inputs */
.form-group select {
  padding: 1rem !important;
  line-height: 1.4;
  border-radius: 0.75rem !important;
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid #d8cfc4 !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none !important;
}

/* Submit button */
.rsvp-submit {
  padding: 1.2rem;
  font-size: 1.1rem;
  font-family: 'Playfair Display', serif;
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.rsvp-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .section-title {
    font-size: 2.2rem;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.8rem;
  }
}


  /* FADE-IN CONTENT OBSERVER */
  .content.visible {
    opacity: 1;
    transform: translateY(0);
  }

/* SECTION PHOTO SCROLL ENTRE MAIRIE ET ROOFTOP */
.scroll-section {
  background: url('images/photo3.jpeg') center center / cover fixed no-repeat;
  height: 40vh;
  position: relative;
  overflow: hidden;
}

/* voile sombre optionnel */
.scroll-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.scroll-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* —— LA HOUPPA —— */
#houppa {
  background-color: #f5efe8; /* ou ton image de fond si tu en veux une */
  padding: 4rem 2rem;
  position: relative;
}

.houppa-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.houppa-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: #b29e8d;
  margin-bottom: 2rem;
}

.houppa-names {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.houppa-names__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.houppa-names__col:first-child {
  text-align: left;
}

.houppa-names__col:last-child {
  text-align: right;
}

.houppa-names p {
  margin: 0;
  font-family: 'Playfair Display', serif;
  color: #b29e8d;
  font-size: 1rem;
  line-height: 1.4;
}

.houppa-text {
  margin: 1rem 0;
  font-family: 'Playfair Display', serif;
  color: #b29e8d;
  font-size: 1.1rem;
  line-height: 1.4;
}

.houppa-text strong {
  font-size: 1.2rem;
}

.houppa-note {
  margin-top: 2.5rem;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  color: #b29e8d;
  opacity: 0.8;
  line-height: 1.3;
}

  
  /* RESPONSIVE */
  @media (max-width: 768px) {
    .form-row {
      flex-direction: column;
    }
    .countdown {
      gap: 1rem;
    }
    .countdown__item {
      width: 90px;
      height: 90px;
    }
    .countdown__item span {
      font-size: 1rem;
    }
    .countdown__item small {
      font-size: 0.6rem;
    }
    .hero__names {
      font-size: 3rem;
    }
  }
  
  


/* même voile sombre que les autres sections */
.popup__bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.2);      
}

/* noms = même style que .hero__names */
.popup__title{
 font-size: 3rem;            
  color:#fff;                       
  margin-bottom:15.5rem;           
}

/* compteur = même grille que dans le hero */
#countdown-popup{
  display:flex;
  justify-content:center;
  gap:1.5rem;
}

#countdown-popup .countdown__item{
  width:80px;
  height:80px;
  border:2px solid #fff;
  background:rgba(255,255,255,0.1);
  backdrop-filter:blur(4px);
  color:#fff;
}

/* petit décalage vertical : noms un peu plus haut, compteur plus bas */
.popup__content{
  padding-top: 15vh; 
}  
