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

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

/* =========================
   HEADER / NAVIGATION (commun)
   ========================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-name {
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 14px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}

nav a {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
}

/* =========================
   MENU DEROULANT (universel)
   ========================= */
nav li.dropdown {
  position: relative;
}

nav li.dropdown ul.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  border-radius: 12px;
  padding: 8px 0;
  margin: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  z-index: 200;
}

nav li.dropdown ul.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  text-decoration: none;
  font-size: 14px;
  color: #1a2a3a;
  font-weight: 500;
}

nav li.dropdown ul.dropdown-menu a:hover {
  background: rgba(0, 0, 0, 0.08);
}

nav li.dropdown:hover ul.dropdown-menu {
  display: block;
}

/* =========================
   PAGE ACCUEIL (page-accueil)
   ========================= */
body.page-accueil {
  background: url("fond-musee.png") center/cover no-repeat fixed;
  color: white;
  min-height: 100vh;
}

body.page-accueil header {
  background: rgba(0,0,0,.25);
}

body.page-accueil nav a,
body.page-accueil .brand {
  color: white;
}

body.page-accueil nav a:hover {
  background: rgba(255,255,255,.12);
}

body.page-accueil .burger {
  color: white;
}

body.page-accueil .mobile-panel {
  background: rgba(0,0,0,.95);
}

body.page-accueil .mobile-panel a {
  color: white;
}

/* =========================
   PAGES TEXTE (page-texte)
   ========================= */
body.page-texte {
  background: #eef1f4;
  padding: 2rem 1.5rem;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

body.page-texte header {
  background: rgba(255,255,255,.75);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

body.page-texte nav a,
body.page-texte .brand {
  color: #1a2a3a;
}

body.page-texte .card-texte {
  max-width: 920px;
  width: 100%;
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Titres dans les pages texte */
.card-texte h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #0a2f44;
  font-weight: 700;
}

.card-texte h2 {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.75rem 0;
  color: #1e4a6b;
}

.card-texte p {
  text-align: justify;
  margin-bottom: 1rem;
}

.card-texte ul, 
.card-texte ol {
  margin: 1rem 0 1.5rem 1.8rem;
  padding-left: 0.5rem;
}

.card-texte li {
  margin-bottom: 0.75rem;
  text-align: justify;
}

.card-texte ol.romains li h2 {
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  color: #2c6e9e;
}

/* =========================
   BURGER MENU (mobile)
   ========================= */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.mobile-panel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  padding: 100px 24px 40px 24px;
  overflow-y: auto;
}

.mobile-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-panel a {
  display: block;
  padding: 14px 18px;
  font-size: 18px;
  text-decoration: none;
  border-radius: 14px;
}

.mobile-panel.open {
  display: block;
}

body.page-texte .mobile-panel {
  background: white;
}

body.page-texte .mobile-panel a {
  color: #1a2a3a;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 860px) {
  nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  nav li.dropdown ul.dropdown-menu {
    position: static;
    background: rgba(255,255,255,0.98);
    backdrop-filter: none;
    box-shadow: none;
    padding-left: 20px;
  }
  nav li.dropdown:hover ul.dropdown-menu {
    display: none;
  }
}

@media (max-width: 640px) {
  body.page-texte {
    padding: 1rem;
  }
  .card-texte {
    padding: 1.5rem;
  }
  .card-texte h1 {
    font-size: 1.6rem;
  }
}