html {
    scroll-behavior: smooth;
}

body {
    padding-top: 0;
    font-family: 'Geist Mono', 'Courier New', monospace;
}

/* Override Oswald (set by full-width-pics.css) with Geist Mono globally */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Geist Mono', 'Courier New', monospace;
}

/* ── Header banner ─────────────────────────────────────────── */

header {
    position: relative;
    margin-top: 0;           /* banner starts at y=0, behind the transparent navbar */
    padding-top: 70px;       /* push content below the ~50px fixed navbar */
    height: 55vh;            /* exact height so header+first-section = 100vh */
    min-height: 300px;       /* floor for very short screens */
    overflow: hidden;
}

/* Subtle dark-to-transparent gradient at the top so white nav text stays readable */
header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 130px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35), transparent);
    z-index: 5;
    pointer-events: none;
}

.banner-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease;
    opacity: 0;
}

.banner-layer.active {
    opacity: 1;
}

/* ── Header logo ────────────────────────────────────────────── */

.header-logo {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    animation: logo-pulse 5s ease-in-out infinite;
}

.header-logo svg {
    width: 360px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
}

.header-logo svg path {
    fill: white;
}

/*
 * Timing locked to the 5 s image cycle and 0.8 s crossfade:
 *   0 %→16 % (800 ms)  : invisible while image crossfades
 *  16 %→26 % (500 ms)  : fade in
 *  26 %→76 % (2500 ms) : fully visible — half the total cycle
 *  76 %→100% (1200 ms) : scale up + fade out before next swap
 */
@keyframes logo-pulse {
    0%   { opacity: 0; transform: scale(1);    }
    16%  { opacity: 0; transform: scale(1);    }
    26%  { opacity: 1; transform: scale(1);    }
    76%  { opacity: 1; transform: scale(1);    }
    100% { opacity: 0; transform: scale(1.15); }
}

.nav-link {
    padding-right: 1rem;
    font-size: 1.4rem;
    margin-left: 24px;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 1px 4px rgba(0,0,0,0.45);
    transition: color 0.3s ease, font-size 0.3s ease, text-shadow 0.3s ease;
}

.nav-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* ── Navbar: transparent over banner, white once scrolled ── */
.navbar-expand-lg {
    background-color: transparent;
    padding: 0;
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.navbar-expand-lg.navbar-scrolled {
    background-color: #fff;
    box-shadow: 0 1px 10px rgba(0,0,0,0.08);
}

.navbar-expand-lg.navbar-scrolled .nav-link {
    font-size: 1.1rem;
    color: #212529;
    text-shadow: none;
}

.navbar-expand-lg.navbar-scrolled .nav-link:hover {
    color: rgba(0,0,0,1);
}

/* Hamburger icon colours */
.navbar-toggler {
    border-color: rgba(255,255,255,0.55);
}
.navbar-toggler .fa-bars {
    color: rgba(255,255,255,0.92);
    transition: color 0.3s ease;
}
.navbar-scrolled .navbar-toggler {
    border-color: rgba(0,0,0,0.2);
}
.navbar-scrolled .navbar-toggler .fa-bars {
    color: #212529;
}

/* Expanded mobile menu always gets a white backdrop */
.navbar-collapse.show {
    background: #fff;
    padding: 0.5rem 1rem 0.75rem;
    margin-top: 4px;
    border-radius: 4px;
}
.navbar-collapse.show .nav-link {
    color: #212529 !important;
    text-shadow: none;
}

.navbar-expand-lg .nav-item.active .nav-link {
    text-decoration: overline;
}

.navbar-nav {
    margin-bottom: 8px;
    margin-top: 8px;
}

.odd-row {
    background-color: rgba(153, 178, 223, 0.20);
}

.veggy-row {
    background-color: rgba(76, 255, 0, 0.20);
}

div.gallery img {
  width: 100%;
  height: auto;
}

.responsive {
  padding: 0 6px 6px 0px;
  float: left;
  width: 24.99999%;
}

@media only screen and (max-width: 700px) {
  .responsive {
    width: 49.99999%;
    margin: 6px 0;
  }
}

@media only screen and (max-width: 500px) {
  .responsive {
    width: 100%;
  }
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

/* ── Gallery ───────────────────────────────────────────────── */

.gallery-container {
    max-width: 90%;
    padding-right: 0;
    padding-left: 0;
}

#section-nav ~ .gallery-container { max-width: 80%; }

.gallery-group-title {
    margin: 2rem 0 0.75rem;
    text-transform: capitalize;
    font-size: 1.4rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: .4rem;
}

/* Masonry grid via CSS columns */
.masonry-grid {
    column-count: 4;
    column-gap: 1.25rem;
}

@media (max-width: 1199px) { .masonry-grid { column-count: 3; } }
@media (max-width: 992px)  { .masonry-grid { column-count: 2; } }
@media (max-width: 576px)  { .masonry-grid { column-count: 1; } }

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.25rem;
    cursor: pointer;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Lightbox ──────────────────────────────────────────────── */

#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#lightbox.active {
    display: flex;
}

#lightbox-img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    width: auto;
    height: auto;
    display: block;
}

#lightbox .lb-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
    line-height: 1;
    user-select: none;
}

#lightbox .lb-close:hover { color: #adb5bd; }

#lightbox .lb-prev,
#lightbox .lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    user-select: none;
    transition: background 0.2s;
}

#lightbox .lb-prev:hover,
#lightbox .lb-next:hover { background: rgba(255, 255, 255, 0.3); }

#lightbox .lb-prev { left: 1rem; }
#lightbox .lb-next { right: 1rem; }

/* ── Right side dot navigation (used on accueil, evenement) ───────── */
#section-nav {
    position: fixed;
    right: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

#section-nav.nav-visible { opacity: 1; }

.section-nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0,0,0,0.13);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    position: relative;
}

.section-nav-dot::after {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Geist Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    color: rgba(0,0,0,0.28);
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.section-nav-dot:hover::after,
.section-nav-dot.active::after { opacity: 1; }

.section-nav-dot.active {
    background: #8B6914;
    transform: scale(1.85);
}

.section-nav-dot:hover {
    background: #C8A96E;
    transform: scale(1.45);
}

@media (max-width: 576px) {
    #section-nav { display: none; }
}

/* ── Top horizontal progress bar (shown on any page that has #top-progress) ── */
#top-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 3000;
    background: rgba(0,0,0,0.06);
    pointer-events: none;
}

#top-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #C8A96E 0%, #8B6914 100%);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px rgba(200, 169, 110, 0.5);
}

/* ── Shared ────────────────────────────────────────────────── */

img.hover-shadow { transition: 0.25s; }

.hover-shadow:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25), 0 6px 20px rgba(0, 0, 0, 0.18);
}
