* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Google Sans Flex", sans-serif;
}


/************************************* CONFIRMATION PAGE *********************************/
.confirmation-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #070707;
  background-image: url('/assets/images/image3.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px;
}

.confirmation-card {
  width: min(100%, 380px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.confirmation-intro {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.confirmation-intro .names {
  margin: 0 0 8px;
  font-family: "Luxurious Script", cursive;
  color: #000000;
  font-size: 42px;
  line-height: 1.1;
  text-align: center;
}

.confirmation-intro p {
  margin: 4px 0;
  color: #000000;
  font-size: 16px;
  text-align: center;
}

.confirmation-form {
  background: rgba(255, 255, 255, 0.9);
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: min(100%, 360px);
  max-width: 360px;
  margin: 0 auto;
}

.confirmation-form h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #000000;
}

.confirmation-form label {
  display: block;
  margin-bottom: 6px;
  color: #000000;
}

.confirmation-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.confirmation-form button {
  width: 100%;
  padding: 10px;
  background: #000000;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.confirmation-form button:hover {
  background: #744a2f;
}

#success-message {
  display: none;
  margin-top: 14px;
  text-align: center;
  color: #2f6b2f;
  font-weight: bold;
  line-height: 1.4;
}

/************************************* MOBILE VERSION CONFIRMATION *************************************/

@media (max-width: 480px) {
  .confirmation-page {
    padding: 15px;
    justify-content: flex-start;
    align-items: center;
  }

  .confirmation-intro {
    margin-bottom: 16px;
  }

  .confirmation-intro .names {
    font-size: 32px;
  }

  .confirmation-form {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    border-radius: 8px;
  }

  .confirmation-form h2 {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .confirmation-form input {
    padding: 9px;
    margin-bottom: 12px;
  }

  .confirmation-form button {
    padding: 10px;
    font-size: 15px;
  }
}

/********************************** PAGE DATE *********************************/

.date-page {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background: white;
  position: relative;
  overflow: hidden;
}

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

  text-align: center;
  padding: 20px;
}
.date-page p {
  color: #000000;
  font-size: 12px;
}

.names {
  font-family: "Luxurious Script", cursive;
  color: #000000;
  font-size: 25px;
  margin: 10px 0;
}

.date-page .subtitle{
  font-family: "Google Sans Flex", sans-serif;
  color: #000000;
  font-size: 14px;
  margin-bottom: 25px;
}

/* BOULES CONTAINER */

.buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap; 
  gap: 12px;
  overflow-x: auto; 
  padding: 10px;
}

.box {
  width: 80px;
  height: 80px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  
  background: linear-gradient(
    145deg,
    #0f0f0f,
    #1d0f01
  );

  box-shadow: 
    0 6px 15px rgba(0,0,0,0.08);

  cursor: pointer;
  transition: all 0.25s ease;
}

.box:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 10px 20px rgba(0,0,0,0.12);
}

.overlay {
  position: absolute;
  color: white;
  font-size: 9px;
  letter-spacing: 1px;
  z-index: 3;
}

/* DATE */

.value {
  position: absolute;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;

  z-index: 4;
}

.date-page {
  padding: 40px 25px;
}

.names {
  font-size: 52px;
  line-height: 1;
  margin-top: 15px;
  margin-bottom: 20px;
}

.date-page p:first-child {
  letter-spacing: 3px;
  font-size: 11px;
  opacity: 0.75;
}

.subtitle {
  font-size: 15px;
  line-height: 1.7;
  margin-top: 10px;
  margin-bottom: 40px;
}

/* ESPACE ENTRE LES BOULES */

.buttons {
  gap: 22px;
  margin-top: 10px;
}

/* STYLE TEXTE JOUR / MOIS / ANNÉE */

.item small {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 2px;
  color: #6a6969;
}

.box {
  width: 92px;
  height: 92px;
}

/* DATE À L’INTÉRIEUR */

.value {
  font-size: 20px;
}

/* AJOUT D’UNE LUMIÈRE DE FOND */

.date-page::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at top,
      rgba(212,163,115,0.08),
      transparent 45%
    );

  pointer-events: none;
}

/******************************** MOBILE ********************************/

@media (max-width: 480px) {

  .date-page {
    padding: 25px 18px;
  }

  .names {
    font-size: 42px;
  }

  .subtitle {
    font-size: 13px;
    margin-bottom: 30px;
  }

  .buttons {
    gap: 14px;
  }

  .box {
    width: 72px;
    height: 72px;
  }

  .value {
    font-size: 16px;
  }

  .item small {
    font-size: 10px;
    letter-spacing: 1px;
  }
}

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

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

/* MUSIQUE (HIDE PLAYER) */

audio {
  display: none;
}

/* CONFETTIS ANIMATION */

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

/************************************* INVITATION PAGE ****************************/

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Google Sans Flex", sans-serif;
}

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

/* 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(255, 255, 255);
  transform: scale(1.3);
}

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

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

.scroll-btn {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 25px;
  border-radius: 52px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 12px;
  letter-spacing: 2px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.4);
  white-space: nowrap;
  transition: 0.3s;
  z-index: 5;
}

.scroll-btn:hover {
  background: white;
  color: black;
  transform: translateX(-50%) scale(1.05);
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

.scroll-btn {
  animation: bounce 2s infinite;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 150px;
  width: 100%;
  background: linear-gradient(to bottom, transparent, white);
}
.date {
  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;
}

.subtitle {
  color: #be7429;
  font-size: 50px;
  font-family: "Luxurious Script", cursive;
}

/* 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;
  margin-top: 20px;
  padding: 14px 30px;
  background: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
  text-decoration: none;
  border-radius: 30px;
  transition: 0.3s;
  width: auto;
  font-size: 13px;
}
.map-btn:hover {
  transform: scale(1.05);
  background: #000000;
  color: white;
}

.program-title {
  color: #ffffff;
  font-size: 50px;
}

.program-section {
 width: 100vw;                 
  margin-left: calc(-50vw + 50%);
  padding: 80px 20px;      
  background: black;
  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);
}
.lieu-name-info {
  font-size: 14px;
}

.lieu-name {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.2;
}


h1 {
  color: #000000;
  margin-top: 18px;
  font-size: 18px;
  margin-bottom: 10px;
}

.center-btn {
  position: fixed; 
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 14px 28px;
  border-radius: 30px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 14px;
  letter-spacing: 2px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.4);
  z-index: 9999;
  transition: 0.3s;
 
}

.center-btn:hover {
  background: white;
  color: black;
  transform: translate(-50%, -50%) scale(1.05);
}

@keyframes bounce-center {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% + 8px)); }
}

.center-btn {
  animation: bounce-center 2s infinite;
}

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

/* RSVP */

.rsvp-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 30px;
  background: rgb(0, 0, 0);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  transition: 0.3s;
  width: auto;
  font-size: 13px;
}

.rsvp-btn:hover {
  transform: scale(1.05);
  background: #000000;
  color: white;
}
.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 {
  margin-top: 15px;
  text-align: center;
  color: #000000;
  text-align: center;
}
.countdown-box h2 {
  font-size: 12px;
  letter-spacing: 5px;
}

/* FOOTER SECTION */

.footer {
  background: black;
  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;
}

.floating-ball {
  position: fixed;
  bottom: -50px;
  border-radius: 50%;
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
  animation: floatUp linear forwards;
}

@keyframes floatUp {
  from {
    transform: translateY(0);
    opacity: 0.6;
  }
  to {
    transform: translateY(-110vh);
    opacity: 0;
  }
}

.contact-info {
  margin-top: 50px;
  text-align: center;
  max-width: 600px;
  padding: 25px 20px;
  border-radius: 15px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(10px);
}

.contact-info {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.contact-info p {
  margin: 8px 0;
  font-size: 14px;
  color: #444;
}

/*************************************** MOBILE VERSION ***************************************/

@media (max-width: 768px) {

  /* HERO FULL SCREEN */
  .hero {
    height: 100vh;
  }

  .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* BOUTON SCROLL */
  .scroll-btn {
    bottom: 100px;
    font-size: 11px;
    padding: 10px 20px;
  }

  /* BOUTON RSVP FIX */
  .center-btn {
    top: 12%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: auto;
    min-width: 140px;

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

    font-size: 12px;
    padding: 12px 20px;
  }

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

  /* DATE */
  .date span:nth-child(1) {
    font-size: 32px;
  }

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

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

  /* LIEUX CARDS */
  .lieux-container {
    flex-direction: column;
    align-items: center;
  }

  .lieu-card {
    width: 95%; /* prend presque tout l'écran */
  }

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

  /* PROGRAM */
  .program-title {
    font-size: 30px;
  }

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

  /* TEXT */
  .story-text {
  font-size: 13px;
  line-height: 1.7;
  margin: 15px auto 25px;
  padding: 0 15px;
  text-align: center;
}

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

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

  /* GALLERY GRID */
  .page-gallery .program-photos {
    grid-template-columns: 1fr; /* 1 colonne mobile */
  }

}
  /* STORY SECTION MOBILE */
h1 {
  font-size: 16px;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.story-text {
  font-size: 13px;
  line-height: 1.7;
  margin: 15px auto 25px;
  padding: 0 15px;
  text-align: center;
}

/* paragraphe simple (le "Oui, pour toujours.") */
.main-page p:not(.story-text):not(.subtitle):not(.lieu-name) {
  text-align: center;
  font-size: 13px;
  margin: 10px auto;
}

/* CONTACT BOX MOBILE */
.contact-info {
  margin: 30px 15px;
  padding: 15px;
  text-align: center;
}

.contact-info p {
  margin: 6px 0;
  font-size: 13px;
}
