/* ================================================================
   Les Anciennes des Boucles de la Seine – Feuille de styles principale
   ================================================================ */

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

:root {
  --olive:      #6b7c3a;
  --olive-dark: #4a5828;
  --cream:      #f4eed8;
  --sand:       #d9c99a;
  --brown:      #3e2e1a;
  --rust:       #b84c1a;
  --khaki:      #8a9456;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--brown);
  font-family: 'Libre Baskerville', Georgia, serif;
  overflow-x: hidden;
}

/* ── NAVIGATION ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brown);
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
}

.nav-brand {
  font-family: 'Oswald', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sand);
  text-decoration: none;
  white-space: nowrap;
}

/* Menu WordPress : wp_nav_menu génère <ul class="nav-links"> */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .2rem;
}

.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  padding: .45rem .8rem;
  border-radius: 2px;
  transition: color .15s, background .15s;
  display: block;
}

.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current-page-ancestor > a { color: #fff; background: rgba(255,255,255,.1); }

/* Sous-menu WordPress : .menu-item-has-children + .sub-menu */
.nav-links .menu-item-has-children { position: relative; }
.nav-links .menu-item-has-children > a { color: var(--sand); }

.nav-links .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--brown);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 3px;
  list-style: none;
  min-width: 220px;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}

.nav-links .sub-menu a {
  white-space: nowrap;
  padding: .6rem 1rem;
  border-radius: 0;
}

.nav-links .menu-item-has-children:hover .sub-menu { display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--sand);
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 680px) {
  .nav-brand { font-size: .7rem; }
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: .5rem 0;
  }
  .nav-links.open { display: flex; }
  .nav-container { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .nav-links .sub-menu {
    position: static;
    border: none;
    box-shadow: none;
    background: rgba(255,255,255,.05);
    display: none;
  }
  .nav-links .menu-item-has-children:hover .sub-menu { display: none; }
  .nav-links .menu-item-has-children.open .sub-menu { display: block; }
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem 4rem;
  background:
    linear-gradient(180deg, rgba(30,20,5,.55) 0%, rgba(74,88,40,.45) 60%, rgba(30,20,5,.7) 100%),
    var(--hero-bg, #3e2e1a) center/cover no-repeat;
  color: #fff;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,.03) 0px, rgba(0,0,0,.03) 1px,
    transparent 1px, transparent 4px
  );
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  border: 2px solid var(--sand);
  color: var(--sand);
  font-family: 'Oswald', sans-serif;
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  padding: .4rem 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-shadow: 3px 4px 12px rgba(0,0,0,.6);
  position: relative;
  z-index: 1;
}

.hero h1 span { color: var(--sand); display: block; }

.hero-sub {
  margin-top: 1.5rem;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  position: relative;
  z-index: 1;
}

.hero-date-box {
  margin-top: 2.5rem;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 4px;
  padding: 1.2rem 2.5rem;
  position: relative;
  z-index: 1;
}

.hero-date-box .day {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: .04em;
}

.hero-date-box .time {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: .2em;
  color: var(--sand);
  margin-top: .25rem;
}

.hero-cta { margin-top: 2.5rem; position: relative; z-index: 1; }

.btn {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .9rem 2.4rem;
  border-radius: 2px;
  transition: background .2s, color .2s, transform .15s;
  cursor: pointer;
}

.btn-primary { background: var(--olive); color: #fff; border: 2px solid var(--olive); }
.btn-primary:hover { background: var(--olive-dark); border-color: var(--olive-dark); transform: translateY(-2px); }

.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); margin-left: 1rem; }
.btn-outline:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.6);
  font-family: 'Oswald', sans-serif;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.scroll-hint svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── DIVIDER ── */
.divider { height: 6px; background: linear-gradient(90deg, var(--olive-dark), var(--khaki), var(--olive-dark)); }

/* ── SECTIONS ── */
section { padding: 5rem 1rem; }
.container { max-width: 1000px; margin: 0 auto; }

.section-label {
  font-family: 'Oswald', sans-serif;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: .8rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.section-lead { font-size: 1.05rem; line-height: 1.8; color: #5a4530; max-width: 640px; }

hr.fancy { border: none; height: 2px; width: 60px; background: var(--olive); margin: 1.2rem 0 1.8rem; }

/* ── INFO CARDS ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.info-card {
  background: #fff;
  border-top: 4px solid var(--olive);
  padding: 2rem 1.5rem;
  border-radius: 2px;
  box-shadow: 0 2px 18px rgba(60,40,10,.08);
  transition: transform .2s, box-shadow .2s;
}

.info-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(60,40,10,.14); }
.info-card .icon { font-size: 2.2rem; margin-bottom: 1rem; display: block; }
.info-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--olive-dark);
  margin-bottom: .5rem;
}
.info-card p { font-size: .9rem; line-height: 1.7; color: #5a4530; }

/* ── TARIFS ── */
.tarifs-section { background: var(--olive-dark); color: #fff; }

.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.tarif-card {
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: border-color .2s;
}
.tarif-card:hover { border-color: var(--sand); }
.tarif-card.featured { background: rgba(255,255,255,.08); border-color: var(--sand); }

.tarif-card .price {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--sand);
}
.tarif-card .price sup { font-size: 1.5rem; vertical-align: super; }
.tarif-card .label { font-family: 'Oswald', sans-serif; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-top: .6rem; }
.tarif-card .desc { margin-top: 1rem; font-size: .88rem; line-height: 1.6; color: rgba(255,255,255,.75); }

/* ── PROGRAMME ── */
.programme-list { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }

.prog-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.2rem 1.5rem;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 1px 8px rgba(60,40,10,.07);
  border-left: 4px solid var(--olive);
}

.prog-time { font-family: 'Oswald', sans-serif; font-size: .95rem; font-weight: 600; color: var(--olive-dark); white-space: nowrap; min-width: 80px; }
.prog-desc { font-size: .92rem; line-height: 1.6; color: var(--brown); }

/* ── LIEU ── */
.lieu-section { background: #f0e8cf; }

.lieu-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }

@media (max-width: 680px) {
  .lieu-content { grid-template-columns: 1fr; }
  .btn-outline { margin-left: 0; margin-top: .8rem; }
}

.map-placeholder {
  background: var(--sand);
  border-radius: 4px;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--brown);
  font-family: 'Oswald', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .9rem;
  border: 2px dashed var(--olive);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}
.map-placeholder:hover { background: #c8b57a; }
.map-placeholder .map-icon { font-size: 3rem; }

.lieu-details { display: flex; flex-direction: column; gap: 1.2rem; }
.lieu-row { display: flex; align-items: flex-start; gap: 1rem; }
.lieu-row .ico { font-size: 1.4rem; flex-shrink: 0; margin-top: .1rem; }
.lieu-row strong { font-family: 'Oswald', sans-serif; font-weight: 600; letter-spacing: .05em; color: var(--olive-dark); display: block; font-size: .8rem; text-transform: uppercase; }
.lieu-row span { font-size: .95rem; color: #5a4530; }

/* ── ORGANISATEUR ── */
.orga-section { text-align: center; background: var(--cream); }

.orga-logo { width: 120px; height: 120px; background: var(--olive); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 3rem; }
.orga-name { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; }
.orga-desc { max-width: 560px; margin: 0 auto; font-size: .95rem; line-height: 1.8; color: #5a4530; }

/* ── GALERIE (pages Sorties) ── */
.page-header {
  background: linear-gradient(135deg, var(--olive-dark) 0%, #2a3518 100%);
  color: #fff;
  padding: 4rem 1rem 3rem;
  text-align: center;
}
.page-header .breadcrumb { font-family: 'Oswald', sans-serif; font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--sand); margin-bottom: 1rem; }
.page-header .breadcrumb a { color: var(--sand); text-decoration: none; }
.page-header .breadcrumb a:hover { text-decoration: underline; }
.page-header h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; text-shadow: 2px 3px 10px rgba(0,0,0,.4); }
.page-header .date-badge { display: inline-block; margin-top: 1.2rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); border-radius: 3px; padding: .4rem 1.2rem; font-family: 'Oswald', sans-serif; font-size: .85rem; letter-spacing: .15em; text-transform: uppercase; }

.gallery-section { padding: 4rem 1rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item { overflow: hidden; border-radius: 3px; box-shadow: 0 2px 12px rgba(60,40,10,.12); transition: transform .2s, box-shadow .2s; cursor: pointer; }
.gallery-item:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(60,40,10,.2); }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }

/* Lecteur vidéo */
.video-wrapper { max-width: 800px; margin: 2rem auto; }
.video-wrapper video { width: 100%; border-radius: 4px; box-shadow: 0 4px 20px rgba(60,40,10,.2); }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999; align-items: center; justify-content: center; padding: 1rem; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 2px; }
.lightbox-close { position: absolute; top: 1rem; right: 1.5rem; color: #fff; font-size: 2.5rem; cursor: pointer; background: none; border: none; opacity: .8; }
.lightbox-close:hover { opacity: 1; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 2rem; padding: .6rem 1rem; cursor: pointer; border-radius: 2px; transition: background .15s; }
.lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* ── FOOTER ── */
.site-footer {
  background: var(--brown);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 2.5rem 1rem;
  font-family: 'Oswald', sans-serif;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.site-footer a { color: var(--sand); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .footer-title { color: var(--sand); font-size: 1rem; margin-bottom: .5rem; }

/* ── TEXTURE ── */
.texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%23000'/%3E%3Crect width='1' height='1' fill='%23fff'/%3E%3C/svg%3E");
}

/* ── CONTENU WP générique (page/article) ── */
.entry-content {
  max-width: 720px;
  margin: 4rem auto;
  padding: 0 1rem;
  font-size: 1rem;
  line-height: 1.8;
}
.entry-content h2 { font-family: 'Playfair Display', serif; margin: 2rem 0 .8rem; }
.entry-content p { margin-bottom: 1rem; }
