* {
  box-sizing: border-box;
}

/* BODY BASE */

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
}

/* INTRO PAGE */

.intro {
  height: 100vh;
  width: 100%;
  background-image: url("./assets/fond intro.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  justify-content: center;
  align-items: flex-end;

  cursor: pointer;
  position: relative;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.intro h1 {
  position: relative;
  color: #d4a373;
  margin-bottom: 50px;
  font-size: 10px;
  font-family: "inter", small;
  letter-spacing: 3px;

  animation: fade 2s infinite;
}

a {
  text-decoration: none;
}

@keyframes fade {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

/* PAGE DATE */

.date-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  padding: 20px;
}

.names {
  font-family: "Inspiration", cursive;
  color: #d4a373;
  font-size: 32px;
  margin: 10px 0;
}

.subtitle {
  color: #d4a373;
  font-size: 14px;
  margin-bottom: 25px;
}

/* BOULES CONTAINER */

.buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* BOULE */

.box {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.box:active {
  transform: scale(1.1);
}

/* IMAGE BOULE */

.btn {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* OVERLAY "CLIQUEZ" */

.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  color: white;
  font-size: 12px;
  font-weight: bold;

  z-index: 3;
  pointer-events: none;
}

/* VALEUR (DATE) */

.value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  color: #ffffff;
  font-size: 15px;
  font-weight: bold;

  z-index: 4;
}

/* TEXTE SOUS BOULE */

.box small {
  margin-top: -15px;
  color: #d4a373;
  font-size: 14px;
  display: block;
}

.instruction {
  margin-top: 30px;  
  text-align: center;
  color: #000000;
  font-size: 14px;
  line-height: 1.5;
}

/* RESULT TEXT */

.result {
  margin-top: 20px;
  font-size: 20px;
  color: #d4a373;
}

/* MUSIQUE (HIDE PLAYER) */

audio {
  display: none;
}

/* CONFETTIS ANIMATION */

@keyframes fall {
  to {
    transform: translateY(110vh);
    opacity: 0;
  }
}

/* GALLERY PAGE */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

h1 {
  font-size: clamp(24px, 5vw, 40px);
}

p {
  font-size: clamp(14px, 3vw, 18px);
}

/* HERO SECTION */

.hero {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: black;
  isolation: isolate;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 1s ease;
  
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 8px;
  z-index: 9999;
}

.hero-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: 0.3s;
}

.hero-dots span.active {
  background: rgb(230, 6, 6);
  transform: scale(1.3);
}

.hero::before {
  z-index: 2;
}

.hero-dots {
  z-index: 10;
}

.scroll-text {
  position: absolute;
  bottom: 40px; 
  left: 50%;
  transform: translateX(-50%);

  color: #000000;
  font-size: 12px;
  letter-spacing: 3px;

  z-index: 10;
  text-align: center;

  animation: fade 2s infinite;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 150px;
  width: 100%;
  background: linear-gradient(to bottom, transparent, white);
}
.date {
  font-family: "Bodoni Moda SC", serif;
  margin: 50px 0;
}
.date span {
  display: block;
  color: #d4a373;
}
.date span:nth-child(1) {
  font-size: 48px;
  font-weight: bold;
}
.date span:nth-child(2) {
  font-size: 18px;
  letter-spacing: 4px;
  margin: 5px 0;
}
.date span:nth-child(3) {
  font-size: 33px;
}

.main-page {
  width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-page .content {
  width: 100%;
  max-width: 1100px;
  padding: 40px 20px 0px;
  text-align: center;
}

.names {
  font-family: "Inspiration", cursive;
  color: #d4a373;
  letter-spacing: 2px;
}

.subtitle {
  color: #d4a373;
}

/* DATE */

.date span {
  display: block;
  font-size: 30px;
  color: #d4a373;
}

/* LIEUX CARDS */

.lieux-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 40px;
}

.lieu-card {
  width: 340px;
  background: white;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.lieu-card img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.lieu-info {
  padding: 15px;
  text-align: center;
}

.map-btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(45deg, #9a5d21, #f6ac62);
  color: white;
  border-radius: 20px;
  text-decoration: none;
}

/* PROGRAMME */

.program-title {
  font-family: "Inspiration", cursive;
  color: #ffffff;
  font-size: 50px;
}

.program-section {
 width: 100vw;                 
  margin-left: calc(-50vw + 50%);
  padding: 80px 20px;      
  background: linear-gradient(45deg, #9a5d21, #f6ac62);
  box-sizing: border-box;
  margin-top: 60px;   
}

.program-bar {
  background: transparent;
  color: white;
  padding: 10px 0;
  margin: 10px 0;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.3); /* ligne fine */
}

.content h1 {
  color: #d4a373;
  margin-top: 40px;
  font-family: "Inspiration", cursive;
}

.story-text {
  max-width: 650px;
  margin: 30px auto;
  line-height: 1.9;
  font-size: 14px;
  color: #555;
  text-align: center;
  letter-spacing: 0.5px;
}

/* RSVP */

.rsvp-section {
  text-align: center;
  padding: 80px 20px;
}
.rsvp-section p {
  margin: 10px 0;
  line-height: 1.6;
  font-size: 14px;
}
.rsvp-section h2 {
  margin-top: 30px;
  margin-bottom: 10px;
}

.rsvp-btn {
  display: inline-block;
  margin-top: 20px;
  margin-bottom: 30px;
  padding: 14px 28px;
}

.rsvp-btn {
  background: linear-gradient(45deg, #9a5d21, #f6ac62);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
}
.rsvp-section p:first-of-type {
  margin-top: 20px;
}

.rsvp-section p:last-of-type {
  margin-bottom: 20px;
}

/* COUNTDOWN */

.countdown-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}
.countdown-section img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  display: block;
}
.countdown-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  text-align: center;
  color: white;
}
.countdown-box h2 {
  font-size: 14px;
  letter-spacing: 5px;
  font-family: "inter", small;;
}

/* FOOTER SECTION */

.footer {
  background: linear-gradient(45deg, #9a5d21, #f6ac62);
  color: white;
  text-align: center;
  padding: 3px;

}
.footer p {
  font-size: 12px;
}

.page-gallery .lieux-container,
.page-gallery .program-photos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.page-gallery .program-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 900px;
  margin: 40px auto;
}

/* MOBILE VERSION*/

@media (max-width: 768px) {

  .lieu-card {
    width: 90%;
  }

  .program-photos {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 70vh;
  }
}

@media (max-width: 768px) {

  /* HERO */

  .hero {
    height: 75vh;
  }

  .scroll-text {
    font-size: 10px;
    letter-spacing: 2px;
    bottom: 25px;
  }

  /* TITRES */

  h1 {
    font-size: 26px;
    line-height: 1.3;
  }

  .names {
    font-size: 28px;
  }

  .subtitle {
    font-size: 13px;
  }

  /* DATE */

  .date {
    margin: 30px 0;
  }

  .date span:nth-child(1) {
    font-size: 40px;
  }

  .date span:nth-child(2) {
    font-size: 14px;
    letter-spacing: 3px;
  }

  .date span:nth-child(3) {
    font-size: 26px;
  }

  /* CONTENU */
  
  .main-page .content {
    padding: 30px 15px 0;
  }

  /* CARTES LIEUX */
  .lieux-container {
    gap: 20px;
  }

  .lieu-card {
    width: 100%;
    border-radius: 14px;
  }

  .lieu-card img {
    height: 200px;
  }

  /* PROGRAMME */
  .program-section {
    padding: 60px 15px;
  }

  .program-title {
    font-size: 32px;
  }

  .program-bar {
    font-size: 13px;
    padding: 8px 0;
  }

  /* STORY TEXT */
  .story-text {
    font-size: 12px;
    line-height: 1.7;
    padding: 0 10px;
  }

  /* RSVP */
  .rsvp-section {
    padding: 60px 15px;
  }

  .rsvp-section h2 {
    font-size: 18px;
    letter-spacing: 2px;
  }

  .rsvp-section p {
    font-size: 14px;
  }

  .rsvp-btn {
    width: 100%;
    max-width: 300px;
    padding: 14px;
    font-size: 13px;
    letter-spacing: 2px;
  }

  /* COUNTDOWN */
  .countdown-section img {
    height: 60vh;
  }

  .countdown-box h2 {
    font-size: 12px;
    letter-spacing: 3px;
  }

  #countdown {
    font-size: 18px;
  }

  /* FOOTER */
  .footer {
    padding: 10px;
  }

  .footer p {
    font-size: 11px;
  }
}

/* ========================= */
/* VIDEO BACKGROUND FIX */
/* ========================= */

.video-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* HERO CONTENT */
.hero-content {
  position: absolute;
  bottom: 80px;
  width: 100%;
  text-align: center;
  color: white;
  z-index: 2;
}

/* MENU */
.menu {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
}

.hamburger {
  font-size: 30px;
  color: white;
  cursor: pointer;
}

/* MENU PANEL */
.menu-panel {
  position: fixed;
  top: 0;
  left: -100%;
  width: 260px;
  height: 100%;
  background: white;
  padding: 20px;
  transition: 0.3s;
  z-index: 10;
}

.menu-panel.active {
  left: 0;
}

.menu-panel a {
  display: block;
  margin: 20px 0;
  color: black;
  text-decoration: none;
}
.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 30px;
  background: white;
  color: black;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: 0.3s;
  width: auto;
}

.btn:hover {
  transform: scale(1.05);
  background: #d4a373;
  color: white;
}


/* INDEX MOBILE VERSION */

@media (max-width: 768px) {

  .side-menu {
    width: 220px;
    padding: 70px 20px;
  }

  .side-menu a {
    font-size: 16px;
  }

  .menu-toggle {
    top: 15px;
    left: 15px;
    width: 28px;
  }
}

/* BUTTON */
.menu-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 10003;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: rgb(0, 0, 0);
  margin: 5px 0;
  transition: 0.3s;
}

/* X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* MENU */
.side-menu {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100vh;
  background: white;
  z-index: 10001;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 80px 30px;
  gap: 20px;

  transition: 0.4s ease;
}

.side-menu.active {
  left: 0;
}

/* OVERLAY */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 10000;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.menu-toggle {
  position: fixed; /* IMPORTANT */
  top: 20px;
  left: 20px;
  z-index: 99999; /* ULTRA HAUT */
}
.hero-content h1 {
  margin-bottom: 5px; /* rapproche le texte */
}

.hero-content p {
  margin-top: 0;
}