:root {
    --ink: #182536;
    --muted: #728090;
    --line: #e5ded5;
    --card: #ffffff;
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #494747;
    color: var(--ink);
    font-family: Arial, sans-serif;
}

.hero {
    min-height: 290px;
    display: grid;
    place-items: center;
    text-align: center;
    color: white;
    padding: 56px 20px;
    background: linear-gradient(120deg, #527b91, #80d0ca);
}

.hero-inner {
    max-width: 900px;
}

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.hero h1 {
    font-family: Georgia, serif;
    font-size: clamp(36px, 5vw, 64px);
    margin: 20px 0;
}

.intro {
    font-size: 25px;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 35px 0 60px;
}

.breadcrumbs {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    margin-bottom: 60px;
}

.breadcrumbs a,
.back-link {
    color: var(--muted);
    text-decoration: none;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-heading h2 {
    font-family: Georgia, serif;
    font-size: 34px;
    margin: 0;
}

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

.album-card {position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 112px;
  gap: 15px;
  padding: 17px 38px 17px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #F8F8F8;
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.album-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(28, 38, 48, .08);
}
.album-art {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: linear-gradient(145deg, #bbaa96, #697267);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  text-align: center;
  overflow-wrap: anywhere;
}
.album-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.album-info { min-width: 0; flex: 1 1 auto; }
.album-info h3 {
  margin: 0 0 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.album-info p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.card-arrow {
  position: absolute;
  top: 14px;
  right: 15px;
  color: #8c9eaa;
  font-size: 15px;
}

/* Photos dans un album */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 15px;
  margin-top: 24px;
}
.photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: #e8e5df;
}
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 200ms ease;
}
.photo:hover img { transform: scale(1.045); }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.empty-icon { font-size: 35px; }
.empty h3 { color: var(--ink); }
.footer { min-height: 28px; }

/* Affichage en grand des photos */
.lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 60px;
  background: rgba(9, 13, 19, .94);
}
.lightbox[aria-hidden="false"],
.lightbox.active,
.lightbox.open,
.lightbox.is-open,
.lightbox.show { display: flex; }
.lightbox > img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.lightbox button {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close { top: 16px; right: 20px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Petits écrans */
@media (max-width: 700px) {
  .hero { min-height: 210px; padding: 40px 15px; }
  .container { width: calc(100% - 28px); }
  .section-heading { margin-top: 35px; }
  .album-grid { grid-template-columns: 1fr; }
  .album-card { min-height: 105px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lightbox { padding: 60px 45px; }
}

/* Albums sous forme de cases carrées */

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

.album-card {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 20px;
}

.album-art {
    flex: 0 0 110px;
    width: 110px;
    height: 110px;
}

.album-info {
    flex: 0 1 auto;
    width: 100%;
    text-align: center;
}

/* Adaptation aux écrans plus petits */
@media (max-width: 900px) {
    .album-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 500px) {
    .album-card {
        padding: 10px;
        gap: 8px;
    }

    .album-art {
        flex-basis: 80px;
        width: 80px;
        height: 80px;
    }

    .album-info h3 {
        font-size: 17px;
    }
}

/* Afficher les flèches au-dessus des photos */

.lightbox .lightbox-prev,
.lightbox .lightbox-next,
.lightbox .lightbox-close {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute !important;
    z-index: 9999;
    visibility: visible !important;
    opacity: 1 !important;
    color: white !important;
    background: rgba(0, 0, 0, 0.7) !important;
}

.lightbox .lightbox-prev {
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox .lightbox-next {
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox .lightbox-close {
    top: 15px;
    right: 20px;
}
/* Bandeau rose avec image PNG répétée */

.hero {
    background-image: url("/galerie2/noise.png");
    background-repeat: repeat-x;
    background-position: left top;
    background-size: 300px 100%;
    background-color: #cc008d;
    color: white;
}

.hero h1 {
    color: white;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.25);
}
/* Couleur du lien Accueil */
.breadcrumbs a {
    color: #d00087;
    font-weight: bold;
}

.breadcrumbs a:hover {
    color: #870057;
}

/* Année en blanc dans le fil de navigation */
.page-annee .breadcrumbs strong {
    color: #ffffff;
}

/* Grand titre de l'année en blanc */
.page-annee .section-heading h2 {
    color: #ffffff;
}

/* Bouton Retour en blanc */
.back-link {
    color: #ffffff;
    font-weight: bold;
}

.back-link:hover {
    color: #ff69b4;
}