/* ============================================
   STYLE COMPLET POUR BILLETERIE.HTML
   (À l'image de index.html)
   ============================================ */

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    "Inter",
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background: linear-gradient(145deg, #f7f3ee 0%, #e8e0d8 100%);
  color: #2c241e;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
}

/* ===== NAVIGATION (identique à index.html) ===== */

.navbar {
  background: #1a1a1a;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo h1 {
  color: #e8c9a0;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.logo p {
  color: #9b8a7a;
  font-size: 0.75rem;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: #f0ebe3;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: #e8c9a0;
}

/* ===== HAMBURGER MENU (identique à index.html) ===== */

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

.nav-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #1a1a1a;
  z-index: 1000;
  padding: 2rem 1.5rem;
  transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}

.nav-menu.active {
  right: 0;
}

.nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #e8c9a0;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s;
  padding: 5px;
  line-height: 1;
}

.nav-close:hover {
  transform: rotate(90deg);
  color: white;
}

.nav-menu .logo-mobile {
  margin-top: 40px;
  margin-bottom: 2rem;
  border-bottom: 1px solid #333;
  padding-bottom: 1rem;
}

.nav-menu .logo-mobile h2 {
  color: #e8c9a0;
  font-size: 1.3rem;
  font-weight: 500;
}

.nav-menu .logo-mobile p {
  color: #9b8a7a;
  font-size: 0.7rem;
  letter-spacing: 1px;
}

.nav-menu .nav-links-mobile {
  list-style: none;
  padding: 0;
}

.nav-menu .nav-links-mobile li {
  margin-bottom: 0.5rem;
}

.nav-menu .nav-links-mobile a {
  display: block;
  color: #f0ebe3;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.3s;
  font-weight: 500;
}

.nav-menu .nav-links-mobile a:hover,
.nav-menu .nav-links-mobile a.active {
  background: #b87c4f;
  color: white;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
  position: relative;
}

.hamburger .bar {
  width: 28px;
  height: 3px;
  background-color: #e8c9a0;
  border-radius: 3px;
  transition: 0.3s;
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== CONTENU PRINCIPAL ===== */

.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  width: 100%;
}

/* ===== CARTE BILLETTERIE ===== */

.card {
  max-width: 780px;
  width: 100%;
  background: #fffffffa;
  backdrop-filter: blur(2px);
  border-radius: 2.5rem;
  box-shadow:
    0 25px 50px -10px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 215, 175, 0.2);
  padding: 2.2rem 2.5rem;
  transition: 0.2s;
}

.museum-badge {
  display: inline-block;
  background: #efe6dc;
  padding: 0.2rem 1rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #4d3a2b;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2.1rem;
  font-weight: 600;
  color: #2c241e;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

h1 i {
  color: #b8864b;
  font-size: 2rem;
}

.subhead {
  color: #5f4e3f;
  font-size: 1rem;
  border-left: 4px solid #d4b48c;
  padding-left: 1rem;
  margin-bottom: 2rem;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.subhead p {
  margin-top: 0.3rem;
  font-size: 0.9rem;
}

/* ===== FORMULAIRE ===== */

.form-group {
  margin-bottom: 1.6rem;
}

label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: #2f241d;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

label i {
  color: #b07d4e;
  width: 1.2rem;
  font-size: 1rem;
}

input,
select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd0c2;
  border-radius: 1.2rem;
  font-size: 1rem;
  background: #fcf9f6;
  transition: 0.2s;
  outline: none;
  font-family: inherit;
}

input:focus,
select:focus {
  border-color: #b8864b;
  box-shadow: 0 0 0 4px rgba(184, 134, 75, 0.15);
  background: #fffdfa;
}

.row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.hint {
  font-size: 0.8rem;
  color: #7b6857;
  margin-top: 0.3rem;
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

/* ===== PRIX ===== */

.price-preview {
  background: #f3ede7;
  border-radius: 2rem;
  padding: 1.2rem 1.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin: 1.8rem 0;
  border: 1px solid #e5d5c4;
}

.price-label {
  font-weight: 500;
  color: #3f3228;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-total {
  font-size: 2rem;
  font-weight: 700;
  color: #2a1f18;
  letter-spacing: -0.5px;
}

.price-total small {
  font-size: 1rem;
  font-weight: 400;
  color: #6f5a48;
  margin-left: 0.2rem;
}

/* ===== BOUTON ===== */

.btn-primary {
  background: #1f2a36;
  border: none;
  padding: 1rem 2rem;
  width: 100%;
  border-radius: 3rem;
  font-weight: 600;
  font-size: 1.2rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.2);
  border: 1px solid #3b4a58;
  font-family: inherit;
}

.btn-primary i {
  font-size: 1.2rem;
}

.btn-primary:hover {
  background: #2e3d4e;
  transform: scale(1.01);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.25);
}

.btn-primary:active {
  transform: scale(0.97);
}

/* ===== FEEDBACK ===== */

.reservation-feedback {
  margin-top: 1.5rem;
  padding: 0.8rem 1.2rem;
  border-radius: 2rem;
  background: #e9f0e9;
  color: #1f4a2b;
  font-weight: 500;
  display: none;
  align-items: center;
  gap: 0.8rem;
  border-left: 6px solid #2e7d4a;
  transition: 0.2s;
}

.reservation-feedback.show {
  display: flex;
}

.reservation-feedback i {
  font-size: 1.4rem;
}

.reservation-feedback.error {
  background: #fce9e6;
  border-left-color: #b53b2c;
  color: #871f12;
}

.separator {
  margin: 0.5rem 0 1.2rem 0;
  border-bottom: 2px dashed #ddd0c2;
}

/* ===== SECURITE ===== */

.security-note {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: #a18b7a;
  text-align: center;
  border-top: 1px solid #e5d7cb;
  padding-top: 1rem;
}

.security-note i {
  margin-right: 0.3rem;
}

/* ===== FOOTER (identique à index.html) ===== */

footer {
  background: #1a1a1a;
  color: #b0a088;
  padding: 3rem 2rem 1.5rem;
  width: 100%;
  margin-top: auto;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  color: #e8c9a0;
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer-col p,
.footer-col a {
  color: #9b8a7a;
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-col a:hover {
  color: #e8c9a0;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #2c2c2c;
  font-size: 0.75rem;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links {
    display: none !important;
  }

  .main-content {
    padding: 1rem;
  }

  .card {
    border-radius: 1.5rem;
    padding: 1.5rem;
  }

  .row-2col {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  .price-total {
    font-size: 1.7rem;
  }

  .navbar {
    padding: 0.8rem 1rem;
  }

  .logo h1 {
    font-size: 1.2rem;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .card {
    padding: 1rem;
    border-radius: 0;
  }

  .price-preview {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .btn-primary {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }

  .nav-menu {
    width: 280px;
  }
}
