:root {
  --blue: #004aad;
  --blue-deep: #06367b;
  --yellow: #ffe04c;
  --paper: #f7f4ed;
  --paper-soft: rgba(255, 255, 255, 0.88);
  --paper-strong: rgba(255, 255, 255, 0.94);
  --ink: #0f2145;
  --ink-soft: #45618f;
  --line: rgba(15, 33, 69, 0.12);
  --shadow: 0 28px 70px rgba(6, 54, 123, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 224, 76, 0.22), transparent 28%),
    radial-gradient(circle at bottom right, rgba(13, 84, 183, 0.22), transparent 34%),
    linear-gradient(180deg, #eef4ff 0%, #f4f6fb 24%, #f7f4ed 100%);
  padding: 22px;
}

body.album-modal-open { overflow: hidden; }

.album-shell { width: min(1120px, 100%); margin: 0 auto; }

.hero-banner-wrap {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(6, 54, 123, 0.12), rgba(13, 84, 183, 0.08)),
    var(--paper);
}

.hero-banner {
  position: relative;
  min-height: 360px;
  background:
    url("../images/bandeau.JPG") center 36%/contain no-repeat,
    #004aad;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(247, 244, 237, 0.96));
}

.album-content-card {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
  transform: translateY(-36px);
  border-radius: 30px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 50px rgba(15, 33, 69, 0.12);
  padding: 30px;
}

.menu-card,
.album-panel,
.album-empty,
.album-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper-strong);
}

.menu-card { padding: 14px; }

.site-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--blue-deep);
  background: rgba(0, 74, 173, 0.06);
  border: 1px solid rgba(0, 74, 173, 0.08);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.16rem;
  letter-spacing: 0.04em;
}

.site-menu-link.is-active {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}

.album-panel {
  margin-top: 18px;
  padding: 24px;
}

.album-kicker,
.album-panel h1,
.album-empty h2,
.album-card h2,
.album-lightbox h2 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.album-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 1.45rem;
  letter-spacing: 0.08em;
}

.album-panel h1 {
  margin: 6px 0 14px;
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  line-height: 0.92;
}

.album-intro,
.album-empty p,
.album-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.album-empty {
  margin-top: 20px;
  padding: 28px;
}

.album-empty h2 {
  margin: 0 0 12px;
  font-size: 1.9rem;
}

.album-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.album-card {
  overflow: hidden;
}

.album-cover {
  position: relative;
  width: 100%;
  height: 250px;
  border: 0;
  padding: 0;
  display: block;
  cursor: pointer;
  background: rgba(0, 74, 173, 0.05);
}

.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-cover span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(6, 54, 123, 0.9);
  color: white;
  font-weight: 700;
}

.album-card-body {
  padding: 20px;
}

.album-card h2 {
  margin: 0 0 8px;
  color: var(--blue-deep);
  font-size: 1.7rem;
  line-height: 0.95;
}

.album-date {
  font-weight: 700;
  color: var(--blue);
}

.album-lightbox[hidden] { display: none; }

.album-lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow-y: auto;
  padding: 22px 0;
}

.album-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 33, 69, 0.62);
  backdrop-filter: blur(4px);
}

.album-lightbox-dialog {
  position: relative;
  width: min(1020px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 80px rgba(15, 33, 69, 0.26);
}

.album-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 74, 173, 0.08);
  color: var(--blue-deep);
  font-size: 1.8rem;
  cursor: pointer;
}

.album-lightbox h2 {
  margin: 0 52px 20px 0;
  color: var(--blue-deep);
  font-size: 2rem;
}

.album-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.album-photo-grid figure {
  margin: 0;
  display: grid;
  gap: 8px;
}

.album-photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.album-photo-grid figcaption {
  color: var(--ink-soft);
}

@media (max-width: 920px) {
  .album-content-card { transform: translateY(-24px); }
  .album-grid,
  .album-photo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body { padding: 14px; }
  .hero-banner-wrap { border-radius: 24px; }
  .hero-banner { min-height: 300px; }
  .album-content-card {
    width: calc(100% - 20px);
    padding: 20px;
    border-radius: 24px;
    transform: translateY(-18px);
  }
  .album-panel,
  .album-empty {
    padding: 20px;
    border-radius: 22px;
  }
  .album-panel h1 { font-size: 2.1rem; }
  .album-card h2,
  .album-lightbox h2,
  .album-empty h2 { font-size: 1.55rem; }
  .album-grid,
  .album-photo-grid {
    grid-template-columns: 1fr;
  }
  .album-cover { height: 210px; }
  .site-menu-link {
    flex: 1 1 calc(50% - 4px);
    width: calc(50% - 4px);
    min-width: 0;
  }
}
