* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #9b8a7a;
  font-family:
    "Inter",
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  color: #4e3a22;
  line-height: 1.55;
  padding: 2rem 1rem;
}

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

.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;
}

/* Conteneur principal comme une toile tendue */
.louvre-frame {
  max-width: 1280px;
  margin: 0 auto;
  background-color: #f9f6ef; /* parchemin ancien, lumière tamisée */
  box-shadow:
    0 30px 40px -20px rgba(0, 0, 0, 0.5),
    0 0 0 1px #d4c9b5,
    0 0 0 12px #3a3229,
    0 0 0 14px #1f1b16;
  border-radius: 2px;
  position: relative;
  transition: all 0.2s;
}

/* en-tête à la manière d'un cartel d'oeuvre monumental */
.museum-header {
  text-align: center;
  padding: 2.5rem 2rem 1.8rem;
  border-bottom: 1px solid #d8cdb0;
  background: linear-gradient(to bottom, #fff9ef, #f9f0e0);
}

h1 {
  font-size: 3.2rem;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: #2c241a;
  font-family: "Cormorant Garamond", serif;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #d4c29b;
  display: inline-block;
  padding-bottom: 0.3rem;
}

/* Oeuvre principale — le texte devient "l'œuvre" comme un panneau historique */
.oeuvre-container {
  padding: 2.8rem 3rem;
  background: #fefaf3;
  margin: 1.5rem 2rem;
  box-shadow:
    inset 0 0 0 1px rgba(200, 180, 140, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.05);
}

.legend {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: monospace;
  color: #b68b40;
  margin-bottom: 1.8rem;
  border-left: 3px solid #c6a56e;
  padding-left: 1rem;
}

.historical-text {
  font-size: 1.15rem;
  font-weight: 400;
  text-align: justify;
  columns: 2;
  column-gap: 2.5rem;
  column-rule: 1px solid #e4d9c5;
}

.historical-text p {
  margin-bottom: 1.2rem;
  text-indent: 1.5em;
  break-inside: avoid-column;
}

.historical-text p:first-of-type {
  margin-top: 0;
}

/* petites initiales ornées */
.dropcap::first-letter {
  font-size: 3.5rem;
  font-weight: 600;
  float: left;
  line-height: 0.85;
  margin-right: 0.4rem;
  color: #7a582e;
  font-family: "Times New Roman", serif;
}

/* galerie d’ambiance : trois médaillons d'époque (évocation) */
.ambiance-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 2rem 3rem;
  background: #f3ede2;
  border-top: 1px solid #e3d5bc;
}

.medallion {
  flex: 1;
  min-width: 180px;
  text-align: center;
  background: #fef9ef;
  padding: 1.2rem 0.8rem;
  border-radius: 32px 12px 32px 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.medallion:hover {
  transform: translateY(-6px);
}

.medallion .symbol {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.medallion h4 {
  font-family: "Inter", sans-serif;
  letter-spacing: 1px;
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 500;
  color: #8b6b3e;
}

.medallion p {
  font-size: 0.75rem;
  margin-top: 0.4rem;
  color: #4f3f2c;
}

/* Footer */
footer {
  background: #1a1a1a;
  color: #b0a088;
  padding: 3rem 2rem 1.5rem;
}

.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;
}

/* Hamburger menu */
.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;
}

/* Le menu lui-même - glisse depuis la droite */
.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;
}

/* Bouton de fermeture (croix) */
.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;
}

/* Logo dans le menu */
.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;
}

/* Liens dans le menu */
.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;
}

/* Cacher le hamburger sur desktop */
.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);
}

/* Mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  /* Cacher les anciens liens */
  .nav-links {
    display: none !important;
  }
}

/* responsive: colonne unique sur mobile */
@media (max-width: 780px) {
  .historical-text {
    columns: 1;
    column-rule: none;
  }
  .oeuvre-container {
    padding: 1.8rem;
    margin: 1rem;
  }
  h1 {
    font-size: 2.2rem;
  }
  .museum-header {
    padding: 1.5rem;
  }
  .ambiance-gallery {
    flex-direction: column;
    align-items: center;
  }
  .vitrine-quote {
    margin: 0 1rem 1.5rem;
  }
}

/* décors supplémentaires style moulures */
.louvre-frame::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  pointer-events: none;
  border: 1px solid rgba(210, 180, 120, 0.3);
  border-radius: 1px;
}
