:root {
  --bg: #f5f1ec;
  --green: #6a8f70;
  --green-dark: #4f6a54;
  --text: #2d2d2d;
  --card: #ffffff;
}

html, body {
  height: 100%;
}

/* RESET DE BASE */
* {
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  padding-top: 0; /* header hidden on landing; added back when scrolled */
}

/* Écran mot de passe */
#password-screen {
  min-height: 100vh;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  background: url('../assets/home-password/desktop.jpeg') center/cover no-repeat;
}

.pwd-card {
  background: rgba(245,241,236,0.9);
  padding: 2rem 2.5rem;
  border-radius: 1rem;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.pwd-card h1 {
  margin-top: 0;
}
.pwd-card input {
  width: 100%;
  padding: .6rem .8rem;
  margin: 1rem 0;
  border: 1px solid #ddd;
  border-radius: .4rem;
}
.pwd-card button {
  background: var(--green);
  color: #fff;
  border: none;
  padding: .6rem 1.2rem;
  border-radius: .4rem;
  cursor: pointer;
}
.pwd-card button.toggle-password {
  background: none !important;
  color: #333 !important;
  padding: 0.25rem;
}
.error {
  color: #b3261e;
}
/* ============= */
/* Tampon Annulé */
/* ============= */
.stamp-cancelled {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  z-index: 1000;
  pointer-events: none;
  opacity: 1;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.7));
}

.stamp-text {
  border: 10px solid #dc2626;
  border-radius: 12px;
  padding: 35px 55px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 0 0 4px #dc2626,
    inset 0 0 20px rgba(220, 38, 38, 0.1),
    0 10px 40px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.stamp-main {
  font-size: 80px;
  font-weight: 900;
  color: #dc2626;
  letter-spacing: 10px;
  text-transform: uppercase;
  font-family: 'Arial Black', Arial, sans-serif;
  text-shadow: 
    3px 3px 0px rgba(220, 38, 38, 0.3),
    -1px -1px 0px rgba(255, 255, 255, 0.8);
  line-height: 1;
}

.stamp-sub {
  font-size: 26px;
  font-weight: 700;
  color: #b91c1c;
  margin-top: 12px;
  letter-spacing: 3px;
  font-family: 'Arial', sans-serif;
  text-shadow: 
    2px 2px 0px rgba(220, 38, 38, 0.2),
    -1px -1px 0px rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .stamp-main {
    font-size: 52px;
    letter-spacing: 5px;
  }
  
  .stamp-sub {
    font-size: 19px;
    letter-spacing: 2px;
  }
  
  .stamp-text {
    padding: 25px 35px;
    border-width: 8px;
    box-shadow: 
      0 0 0 3px #dc2626,
      inset 0 0 15px rgba(220, 38, 38, 0.1),
      0 8px 25px rgba(0, 0, 0, 0.5);
  }
}

/* ============= */
/* Popup overlay */
/* ============= */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.25s ease;
  -moz-transition: opacity 0.25s ease;
  -o-transition: opacity 0.25s ease;
  transition: opacity 0.25s ease;
  z-index: 3000;
}

.popup-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.popup-box {
  background: #fff;
  border-radius: .8rem;
  padding: 1rem 1.4rem;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  position: relative;
  text-align: center;
}

.popup-box p {
  margin: 0;
  font-size: .95rem;
}

.popup-close {
  position: absolute;
  top: .3rem;
  right: .4rem;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

/* ============================== */
/*  RICK ROLL                   */
/* ============================== */

#rickroll-video {
  width: 100%;
  max-height: 70vh;
  border-radius: .6rem;
}

/* ============================== */
/*  EASTER EGG                    */
/* ============================== */
/* ========== Easter egg nos tronche ========== */

.easter-egg-trigger {
  transition: opacity 0.2s ease;
}

.easter-egg-trigger:hover {
  opacity: 0.8;
}

.easter-egg-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 3500;
}

.easter-egg-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.easter-egg-overlay img {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  object-fit: cover;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

/* ========== Easter egg zone (cachée par défaut) ========== */
.egg-zone {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  -webkit-transition: max-height 600ms ease, opacity 400ms ease;
  -moz-transition: max-height 600ms ease, opacity 400ms ease;
  -o-transition: max-height 600ms ease, opacity 400ms ease;
  transition: max-height 600ms ease, opacity 400ms ease;
  margin-top: 0;
}

.egg-zone .egg-inner {
  background: #fff;
  border-radius: .7rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid rgba(106,143,112,0.3);
  margin-top: 1rem;
}

.egg-zone .egg-inner h3 {
  text-align: center;
}

.egg-zone img {
  width: 50%;
  max-width: 400px;
  height: auto;
  border-radius: .6rem;
  margin: .8rem auto 0;
  display: block;
}

/* Débloqué */
.egg-zone.unlocked {
  max-height: 1200px; /* assez grand pour image + texte */
  opacity: 1;
}



/* ============================== */
/*  HEADER FIXE                   */
/* ============================== */
.topbar {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -moz-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  background: rgba(245,241,236,0.95);
  padding: .7rem 1.5rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /*height: 64px;*/
  z-index: 2000;
  /* hidden by default: slide up */
  -webkit-transform: translateY(-120%);
  -moz-transform: translateY(-120%);
  -ms-transform: translateY(-120%);
  -o-transform: translateY(-120%);
  transform: translateY(-120%);
  -webkit-transition: transform 0.35s ease, background 0.25s ease;
  -moz-transition: transform 0.35s ease, background 0.25s ease;
  -o-transition: transform 0.35s ease, background 0.25s ease;
  transition: transform 0.35s ease, background 0.25s ease;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* show header when body has the class */
body.show-header .topbar {
  -webkit-transform: translateY(0);
  -moz-transform: translateY(0);
  -ms-transform: translateY(0);
  -o-transform: translateY(0);
  transform: translateY(0);
}

.brand {
  font-weight: 700;
  letter-spacing: .05em;
}
.tabs {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  gap: .5rem;
}
.tab-btn {
  background: transparent;
  border: none;
  padding: .4rem .8rem;
  border-radius: .4rem;
  cursor: pointer;
}
.tab-btn:hover {
  background: rgba(106,143,112,0.1);
}

/* ===== BURGER BUTTON ===== */
.burger {
  display: none; /* visible seulement via media query */
  width: 32px;
  height: 24px;
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--green-dark);
  border-radius: 3px;
  -webkit-transition: transform 0.35s ease, opacity 0.25s ease, top 0.3s ease;
  -moz-transition: transform 0.35s ease, opacity 0.25s ease, top 0.3s ease;
  -o-transition: transform 0.35s ease, opacity 0.25s ease, top 0.3s ease;
  transition: transform 0.35s ease, opacity 0.25s ease, top 0.3s ease;
}

/* Barre du haut */
.burger span:nth-child(1) {
  top: 0;
}

/* Barre centrale */
.burger span:nth-child(2) {
  top: 10px;
}

/* Barre du bas */
.burger span:nth-child(3) {
  top: 20px;
}

/* ===== ANIMATION OPEN ===== */
.burger.open span:nth-child(1) {
  top: 10px;
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  top: 10px;
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}



/* ============================== */
/*  PAGES GÉNÉRALES               */
/* ============================== */
.page {
  display: none;
  padding: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.page.active {
  display: block;
}

/* Make the home page hero truly full-bleed and full-height */
#home.page {
  max-width: 100%;
  padding: 0; /* remove container padding so hero can reach edges */
  margin: 0;
}

/* Ajouter du padding-top aux pages non-home quand la topbar est visible */
body.show-header .page:not(#home) {
  padding-top: calc(64px + 1.5rem); /* hauteur topbar + padding normal */
}

#home .hero-fullscreen {
  width: 100%;
  height: 100dvh; /* full viewport height */
  min-height: 100vh;
  border-radius: 0; /* no rounding for full-bleed */
}

/* ensure overlay sits above images and content below doesn't push hero */
#home .hero-fullscreen .overlay {
  max-width: 100%;
  margin: 0 auto;
}

/* ============================== */
/*  HERO PLEIN ÉCRAN              */
/* ============================== */
.hero-fullscreen {
  position: relative;
  width: 100%;
  height: 100dvh; /* plein écran (header overlayed) */
  min-height: 100vh;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

/* Carousel */
.carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.carousel-track {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  height: 100%;
  -webkit-transition: transform 0.6s ease;
  -moz-transition: transform 0.6s ease;
  -o-transition: transform 0.6s ease;
  transition: transform 0.6s ease;
  will-change: transform;
}
.slide {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 100vw;
  -moz-box-flex: 0;
  -ms-flex: 0 0 100vw;
  flex: 0 0 100vw; /* force viewport width per slide */
  width: 100vw;
  height: 100dvh; /* full viewport height per slide */
  min-height: 100vh;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.slide picture,
.slide img {
  width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  object-fit: cover;
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -moz-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -moz-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
}
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-dots {
  position: absolute;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
  transform: translateX(-50%);
  bottom: 16px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  gap: .4rem;
  z-index: 2;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
}
.carousel-dots button.active { background: rgba(255,255,255,0.95); }

/* Hide navigation controls: arrows and dots (both desktop and mobile) */
.carousel-btn,
.carousel-dots { display: none !important; }

/* Couche image pour stabilité du z-index */
.hero-fullscreen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Voile et texte */
.hero-fullscreen .overlay {
  position: relative;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  z-index: 2;
}

.hero-fullscreen h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin: 0;
  font-weight: 700;
  text-shadow: 0 3px 6px rgba(0,0,0,0.5);
}

/* Message de bienvenue personnalisé */
.hero-greeting {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  color: #fff;
  margin-bottom: 1.5rem;
  text-align: center;
  opacity: 0.95;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Mise en forme des noms dans le H1 du hero */
.hero-names {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -moz-box-orient: vertical;
  -moz-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  line-height: 1.1;
}

.hero-names .hn-first,
.hero-names .hn-last {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
}

.hero-names .hn-et {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  margin: 0.3rem 0;
  opacity: 0.9;
}

/* Conteneur date + lieu */
.date-container {
  margin: 1.4rem 0 1.8rem;
  text-align: center;
  color: #fff;
}

/* La date — beaucoup plus visible */
.wedding-date {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-shadow: 0 3px 8px rgba(0,0,0,0.55);
  margin-bottom: 0.6rem;
}

/* Le lieu — plus petit et discret */
.wedding-location {
  font-size: clamp(1rem, 2.3vw, 1.3rem);
  opacity: 0.9;
  font-weight: 400;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.wedding-date::before,
.wedding-date::after {
  content: "";
  display: block;
  width: 60%;
  height: 2px;
  margin: 0.4rem auto;
  background: rgba(255,255,255,0.55);
  border-radius: 2px;
}

.intro {
  max-width: 700px;
  margin: 2rem auto 1rem;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #3c3c3c;
}

.intro strong {
  color: var(--green-dark);
}

/* Countdown sur photo */
.hero-fullscreen .countdown {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-fullscreen .countdown div {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: .8rem 1rem;
  border-radius: .8rem;
  text-align: center;
  min-width: 70px;
  color: #fff;
}
.hero-fullscreen .countdown span {
  font-size: 1.6rem;
  font-weight: bold;
}

/* Flèche vers la suite */
.scroll-down {
  display: inline-block;
  margin-top: 2rem;
  font-size: 2rem;
  color: #fff;
  text-decoration: none;
  animation: bounce 1.8s infinite;
  z-index: 3;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* style for the hero scroll button when it's a <button> */
.scroll-down {
  border: none;
  background: rgba(255,255,255,0.08);
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
}

/* slightly more visible on hover */
.scroll-down:hover {
  background: rgba(255,255,255,0.18);
}

/* ============================== */
/*  DÉROULÉ + INFOS DOMAINE       */
/* ============================== */
.scroll-area {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.timeline {
  list-style: none;
  padding: 0;
}
.timeline li {
  background: #fff;
  margin: .7rem 0;
  padding: .8rem 1rem;
  border-radius: .6rem;
  border-left: 4px solid var(--green);
}

/* ============================== */
/*  LOGEMENTS                     */
/* ============================== */
.lodging-group {
  background: #fff;
  padding: 1rem 1.2rem;
  border-radius: .7rem;
  margin-bottom: 1rem;
  border-left: 3px solid rgba(106,143,112,0.3);
}

.lodging-group ul {
  margin: 0.5rem 0 0.5rem 1.5rem;
}

.lodging-group .btn-reserver {
  display: inline-block;
  margin-top: 0.6rem;
  background: var(--green-dark);
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
}

.lodging-group .btn-reserver:hover {
  background: var(--green);
}

.note-dortoir {
  font-size: 0.65rem;
  color: #555;
  margin-top: 0.3rem;
  margin-left: 0.2rem;
}

/* Wrapper section logements */
.lodging-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.lodging-wrap h2 {
  margin-bottom: 1rem;
}

/* Zone boutons */
.lodging-actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: .7rem;
}



/* ============================== */
/*  FORMULAIRE RSVP               */
/* ============================== */
#rsvp-form {
  background: #fff;
  padding: 1rem 1.2rem;
  border-radius: .7rem;
  max-width: 600px;
  margin-top: 1rem auto 0;
}
.form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: .8rem;
}
.form-row label {
  font-weight: 600;
  margin-bottom: .3rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  padding: .6rem .7rem;
  border: 1px solid #ddd;
  border-radius: .4rem;
}
#rsvp-form button {
  background: var(--green);
  color: white;
  border: none;
  padding: .6rem 1rem;
  border-radius: .4rem;
  cursor: pointer;
}
#rsvp-form button:hover {
  background: var(--green-dark);
}

#rsvp-status {
  margin-top: .8rem;
}
#rsvp-status.success {
  color: green;
}
#rsvp-status.error {
  color: #b3261e;
}
.alert {
  background: #fff2f1;
  border: 1px solid #ffc7c1;
  padding: .5rem .8rem;
  border-radius: .4rem;
  max-width: 600px;
}

/* ============================== */
/*  COUNTDOWN (fallback général)  */
/* ============================== */
.countdown {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.countdown div {
  background: #fff;
  padding: .6rem .8rem;
  border-radius: .8rem;
  text-align: center;
  min-width: 70px;
}
.countdown span {
  font-size: 1.6rem;
  font-weight: bold;
}

/* Galerie photos du domaine */
.domain-gallery {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.domain-gallery figure {
  background: #fff;
  border-radius: .7rem;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.domain-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: .7rem;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  display: block;
}

.domain-gallery figcaption {
  padding: .6rem .8rem;
  font-size: .9rem;
  color: #555;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 3100; /* au-dessus de la popup globale */
}

.lightbox-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: .8rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

#shaduns-form {
  background: #fff;
  padding: 1rem 1.2rem;
  border-radius: .7rem;
  max-width: 600px;
  margin: 1rem auto 0;
}

#shaduns-form button {
  background: var(--green);
  color: white;
  border: none;
  padding: .6rem 1rem;
  border-radius: .4rem;
  cursor: pointer;
}

#shaduns-form button:hover {
  background: var(--green-dark);
}

#shaduns-status.success {
  color: var(--green-dark);
  margin-top: 0.5rem;
}

#shaduns-status.error {
  color: #c0392b;
  margin-top: 0.5rem;
}




/* ============================== */
/*  RESPONSIVE MOBILE             */
/* ============================== */
@media (max-width: 768px) {
  
  .brand {
      align-items: center;
      text-align: center;
    }

  .topbar {
    padding: .5rem 1rem;
    flex-wrap: wrap;           /* permet de passer le menu sur la ligne du dessous */
  }

  /* Afficher le burger sur mobile */
  .burger {
    display: flex;
    justify-content: center;
    align-items: center;
  }


  /* Menu replié par défaut sur mobile */
  .tabs {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: .4rem;
    margin-top: .4rem;
  }

  /* Menu visible quand on ajoute la classe .open en JS */
  .tabs.open {
    display: flex;
  }

  .tab-btn {
    width: 100%;
    text-align: left;
    padding: .5rem .7rem;
    font-size: .9rem;
  }

  /* Hero déjà présent dans ton CSS, je le garde */
  .hero-fullscreen .overlay {
    padding: 1.2rem;
  }

  .countdown {
    flex-wrap: wrap;
  }

  /* Section intro avec padding sur mobile */
  .intro {
    padding: 0 1.5rem;
    margin: 1.5rem auto 1rem;
    font-size: 1rem;
  }

  /* Image de fond mobile pour password-screen */
  #password-screen {
    background: url('../assets/home-password/mobile.jpeg') center/cover no-repeat;
  }
}
/* Bouton de d�connexion discret */
.logout-discrete {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s ease;
  z-index: 9999;
}

.logout-discrete:hover {
  background: rgba(220, 53, 69, 0.9);
  color: white;
  transform: scale(1.1);
}

.logout-discrete:active {
  transform: scale(0.95);
}

/* Liseré vert progressif pour l'easter egg Adrien */
#easter-egg-img {
  transition: border 0.3s ease, box-shadow 0.3s ease;
  border: 0px solid var(--green);
  box-shadow: 0 0 0px var(--green);
}

#easter-egg-img.typing {
  border: 3px solid var(--green);
  box-shadow: 0 0 10px var(--green);
}

/* Classes pour la progression de la séquence */
#easter-egg-img.progress-10 {
  border: 4px solid var(--green);
  box-shadow: 0 0 15px rgba(106, 143, 112, 0.3);
}

#easter-egg-img.progress-30 {
  border: 5px solid var(--green);
  box-shadow: 0 0 20px rgba(106, 143, 112, 0.5);
}

#easter-egg-img.progress-50 {
  border: 6px solid var(--green);
  box-shadow: 0 0 25px rgba(106, 143, 112, 0.7);
}

#easter-egg-img.progress-70 {
  border: 7px solid var(--green-dark);
  box-shadow: 0 0 30px rgba(79, 106, 84, 0.8);
}

#easter-egg-img.progress-90 {
  border: 8px solid var(--green-dark);
  box-shadow: 0 0 40px rgba(79, 106, 84, 1);
  animation: pulse-green 0.5s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 0 40px rgba(79, 106, 84, 1);
  }
  50% {
    box-shadow: 0 0 50px rgba(106, 143, 112, 1);
  }
}

/* ============================
   SECRET PAGE STYLES
   ============================ */
body.loading { 
  overflow: hidden; 
}

#secret-form-container { 
  opacity: 0; 
  transition: opacity .6s ease;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

body.loaded #secret-form-container { 
  opacity: 1; 
}

#secret-form-container .topbar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#secret-form-container h1 {
  color: #667eea;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

#secret-form-container main {
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
}

#secret-finder-form {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  border: 2px solid #667eea;
}

#secret-finder-form button[type="submit"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 1rem;
}

#secret-finder-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.master-sword-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
  perspective: 1000px;
}

.master-sword {
  width: 150px;
  height: auto;
  animation: rotateSword 4s linear infinite;
  filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6));
}

@keyframes rotateSword {
  0% { transform: rotateY(0deg) rotateZ(0deg); }
  50% { transform: rotateY(180deg) rotateZ(180deg); }
  100% { transform: rotateY(360deg) rotateZ(360deg); }
}

#secret-status.success {
  color: #38ef7d;
  font-weight: 600;
  text-align: center;
  margin-top: 1rem;
}

#secret-status.error {
  color: #f45c43;
  font-weight: 600;
  text-align: center;
  margin-top: 1rem;
}

/* ===================================
   PASSWORD VISIBILITY TOGGLE
   =================================== */
.password-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.password-wrapper input {
  padding-right: 3rem;
}

.toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none !important;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  opacity: 0.4;
  width: auto;
  height: auto;
  min-width: auto;
  margin: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.toggle-password:hover {
  opacity: 0.7;
  transform: translateY(-50%);
  background: none !important;
}

.toggle-password svg {
  display: block;
  pointer-events: none;
}
