/* Abadenn Event — one-page */
:root {
  --bg: #0a0b0d;
  --bg-elevated: #12141a;
  --bg-soft: #181b24;
  --text: #f2f0ea;
  --text-muted: #a8a59c;
  --accent: #f3bf0d;
  --accent-dim: #c9980a;
  --line: rgba(242, 240, 234, 0.12);
  --danger: #e85d5d;
  --ok: #5dce8a;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --space: clamp(1rem, 2.5vw, 2rem);
  --max: 72rem;
  --header-h: 4.25rem;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #ffd24a;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--accent);
  color: #111;
  padding: 0.6rem 1rem;
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.section__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section__lead {
  margin: 0;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section__head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: #14110a;
}

.btn--primary:hover {
  background: #ffd24a;
  color: #14110a;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 11, 13, 0.94);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  height: 2.35rem;
  width: auto;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav__list a:hover,
.nav__list a[aria-current="true"] {
  color: var(--text);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem var(--space) 1.5rem;
    background: rgba(10, 11, 13, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav .btn {
    width: 100%;
  }
}

/* Hero — exactement 1 écran, enchaînement direct vers Prestations */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: clip;
}

.hero__pin {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 95% 85% at 50% 40%, transparent 35%, rgba(5, 6, 8, 0.55) 100%),
    linear-gradient(180deg, rgba(10, 11, 13, 0.22) 0%, rgba(10, 11, 13, 0.35) 38%, rgba(10, 11, 13, 0.72) 72%, rgba(10, 11, 13, 0.9) 100%),
    radial-gradient(ellipse 45% 55% at 62% 18%, rgba(243, 191, 13, 0.2), transparent 70%);
  transition: opacity 0.65s var(--ease);
}

.hero.is-ready .hero__shade {
  opacity: 1;
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: overlay;
  background-image: repeating-radial-gradient(
    circle at 20% 30%,
    rgba(255, 255, 255, 0.045) 0 0.5px,
    transparent 0.6px 3px
  );
  transition: opacity 0.8s var(--ease) 0.15s;
}

.hero.is-ready .hero__grain {
  opacity: 0.45;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  height: 100%;
  padding: calc(var(--header-h) + 2.5rem) 0 12vh;
}

.hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: min(18vh, 9rem);
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(10, 11, 13, 0) 0%,
    rgba(10, 11, 13, 0.55) 50%,
    var(--bg) 100%
  );
}

.section--after-hero {
  position: relative;
  z-index: 1;
  margin-top: -1px;
  background-color: var(--bg);
}

.section--prestations {
  /* Moins de noir vide sous le hero ; viser 1 écran utile */
  min-height: auto;
  padding: clamp(1.75rem, 4vh, 2.75rem) 0 clamp(2.5rem, 5vh, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section__head--center {
  text-align: center;
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}

.section__lead--center {
  margin-inline: auto;
  max-width: 36rem;
}

.section__sep {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.section__sep span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(243, 191, 13, 0.12);
}

.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.02em;
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

.hero__brand-word {
  display: inline-flex;
  align-items: baseline;
}

.hero__brand-cap {
  font-size: clamp(3.55rem, 12vw, 6.85rem);
  line-height: 0.85;
}

.hero__brand-rest {
  font-size: clamp(1.75rem, 5.2vw, 3.05rem);
  letter-spacing: 0.02em;
  font-weight: 700;
}

.hero__brand-word--accent .hero__brand-cap,
.hero__brand-word--accent .hero__brand-rest {
  color: var(--accent);
}

.hero__tagline {
  margin: 0 0 0.7rem;
  max-width: none;
  white-space: nowrap;
  font-size: clamp(0.95rem, 2.15vw, 1.42rem);
  color: var(--text);
  font-weight: 500;
  line-height: 1.45;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

@media (max-width: 520px) {
  .hero__tagline {
    white-space: normal;
  }
}

.hero__meta {
  margin: 0 0 1.7rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}

.hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 2.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.hero__scroll:hover {
  color: var(--accent);
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 2.25rem;
  background: linear-gradient(180deg, var(--accent), transparent);
  transform-origin: top center;
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.55); opacity: 0.45; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Entrées cascade (une fois) */
.hero__reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.hero.is-ready .hero__reveal {
  opacity: 1;
  transform: none;
}

.hero.is-ready .hero__brand { transition-delay: 0.12s; }
.hero.is-ready .hero__tagline { transition-delay: 0.24s; }
.hero.is-ready .hero__meta { transition-delay: 0.32s; }
.hero.is-ready .btn-group { transition-delay: 0.4s; }
.hero.is-ready .hero__scroll { transition-delay: 0.52s; }

@media (prefers-reduced-motion: reduce) {
  .hero__shade,
  .hero__grain,
  .hero__reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero__scroll-line {
    animation: none;
    opacity: 0.8;
    transform: none;
  }
}

/* Prestations — icônes centrées, 4 colonnes + micro-animations */
.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.35rem);
}

/* Le conteneur reveal ne s’anime pas lui-même : les cartes en cascade */
.services.reveal {
  opacity: 1;
  transform: none;
}

.service {
  text-align: center;
  padding: clamp(1rem, 2.2vh, 1.45rem) 0.75rem;
  border-top: 1px solid rgba(243, 191, 13, 0.35);
  background: linear-gradient(180deg, rgba(243, 191, 13, 0.06), transparent 70%);
  opacity: 0;
  transform: translateY(0.85rem);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease),
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.services.reveal.is-in .service,
.services:not(.reveal) .service {
  opacity: 1;
  transform: none;
}

.services.reveal.is-in .service:nth-child(1) { transition-delay: 0.04s; }
.services.reveal.is-in .service:nth-child(2) { transition-delay: 0.12s; }
.services.reveal.is-in .service:nth-child(3) { transition-delay: 0.2s; }
.services.reveal.is-in .service:nth-child(4) { transition-delay: 0.28s; }

.service:hover {
  border-top-color: var(--accent);
  background: linear-gradient(180deg, rgba(243, 191, 13, 0.12), transparent 75%);
  transform: translateY(-0.28rem);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition-delay: 0s;
}

.service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  color: var(--accent);
  transition: transform 0.35s var(--ease), filter 0.35s ease;
}

.service:hover .service__icon {
  transform: translateY(-2px) scale(1.07);
  filter: drop-shadow(0 0 8px rgba(243, 191, 13, 0.35));
}

.service h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 700;
  transition: color 0.25s ease;
}

.service:hover h3 {
  color: var(--accent);
}

.service p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 18rem;
  margin-inline: auto;
}

@media (max-width: 900px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .services {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service,
  .service__icon {
    opacity: 1 !important;
    transform: none !important;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease !important;
    filter: none !important;
    box-shadow: none !important;
  }

  .service:hover {
    transform: none !important;
  }
}

/* Gallery — 1 écran sous le header sticky (pas de débordement bas) */
.section--gallery {
  --gallery-chrome: calc(var(--header-h) + 1.1rem);
  background: var(--bg-elevated);
  height: calc(100vh - var(--gallery-chrome));
  height: calc(100dvh - var(--gallery-chrome));
  max-height: calc(100svh - var(--gallery-chrome));
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2.4vh, 1.55rem) 0;
  box-sizing: border-box;
  overflow: hidden;
}

.section--gallery > .container {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.85rem, 2.4vh, 1.5rem);
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.section--gallery .section__head {
  margin-bottom: 0;
}

.section__head--compact {
  margin-bottom: clamp(0.45rem, 1.2vh, 0.75rem);
  flex-shrink: 0;
}

.section__head--compact .section__title {
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  margin-bottom: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  flex: 0 1 auto;
  min-height: 0;
  height: min(68vh, 100%);
  max-height: 100%;
  overflow: hidden;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  border: 0;
  padding: 0;
  cursor: zoom-in;
  color: inherit;
  min-height: 0;
  grid-column: span 3;
  grid-row: span 1;
}

/* IMG_2543 — pleine verticalité */
.gallery__item--tall {
  grid-column: 1 / 4;
  grid-row: 1 / -1;
}

.gallery__item--wide {
  grid-column: span 5;
}

/* Masquée dans la grille, toujours présente pour la lightbox */
.gallery__item--hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  pointer-events: none;
}

/* Collage asymétrique (hors tall) */
.gallery__item:nth-child(2) { grid-column: 4 / 8; grid-row: 1 / 3; } /* 2597 un peu réduite */
.gallery__item:nth-child(3) { grid-column: 8 / 11; grid-row: 1; }
.gallery__item:nth-child(4) { grid-column: 11 / 13; grid-row: 1 / 3; } /* 2437 un peu plus large */
.gallery__item:nth-child(5) { grid-column: 8 / 11; grid-row: 2; }
.gallery__item:nth-child(6) { grid-column: 4 / 7; grid-row: 3; }
.gallery__item:nth-child(7) { grid-column: 7 / 10; grid-row: 3; }
.gallery__item:nth-child(8) { grid-column: 10 / 13; grid-row: 3; }
.gallery__item:nth-child(9) { grid-column: 4 / 9; grid-row: 4; }
.gallery__item:nth-child(10) { grid-column: 9 / 13; grid-row: 4; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.04);
}

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
  }

  .gallery__item--tall {
    grid-column: 1 / 3;
    grid-row: 1 / 5;
  }

  .gallery__item:nth-child(2) { grid-column: 3 / 7; grid-row: 1 / 3; }
  .gallery__item:nth-child(3) { grid-column: 3 / 5; grid-row: 3; }
  .gallery__item:nth-child(4) { grid-column: 5 / 7; grid-row: 3; }
  .gallery__item:nth-child(5) { grid-column: 3 / 7; grid-row: 4; }
  .gallery__item:nth-child(n+6) {
    /* hors cadre volontairement — accessibles via lightbox */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

@media (max-width: 520px) {
  .section--gallery {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 1.5rem 0 2rem;
  }

  .section--gallery > .container {
    overflow: visible;
    max-height: none;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    height: auto;
    max-height: none;
    overflow: visible;
    flex: none;
    gap: 0.4rem;
  }

  .gallery__item,
  .gallery__item--tall,
  .gallery__item--wide,
  .gallery__item:nth-child(n) {
    position: relative;
    grid-column: auto;
    grid-row: auto;
    width: auto;
    height: auto;
    clip: auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }

  .gallery__item--tall {
    grid-column: 1 / -1;
    aspect-ratio: 3 / 4;
    max-height: 22rem;
  }
}

/* Packs — 5 colonnes, 1 écran, micro-animations */
.section--packs {
  --packs-chrome: calc(var(--header-h) + 1.1rem);
  height: calc(100vh - var(--packs-chrome));
  height: calc(100dvh - var(--packs-chrome));
  max-height: calc(100svh - var(--packs-chrome));
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2.4vh, 1.55rem) 0;
  box-sizing: border-box;
  overflow: hidden;
}

.section--packs > .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.9rem, 2.6vh, 1.6rem);
  min-height: 0;
}

.section--packs .section__head {
  margin-bottom: 0;
}

.section__lead--wide {
  max-width: min(100%, 58rem);
}

.section--packs .section__head--compact .section__title {
  margin-bottom: 0.45rem;
}

.packs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.7rem, 1.5vw, 1.05rem);
  flex: 0 1 auto;
  min-height: 0;
  max-height: min(72vh, 100%);
  align-content: stretch;
  align-items: stretch;
}

.packs.reveal {
  opacity: 1;
  transform: none;
}

.pack {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  overflow: hidden;
  opacity: 0;
  transform: translateY(0.75rem);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.packs.reveal.is-in .pack,
.packs:not(.reveal) .pack {
  opacity: 1;
  transform: none;
}

.packs.reveal.is-in .pack:nth-child(1) { transition-delay: 0.04s; }
.packs.reveal.is-in .pack:nth-child(2) { transition-delay: 0.1s; }
.packs.reveal.is-in .pack:nth-child(3) { transition-delay: 0.16s; }
.packs.reveal.is-in .pack:nth-child(4) { transition-delay: 0.22s; }
.packs.reveal.is-in .pack:nth-child(5) { transition-delay: 0.28s; }

.pack:hover {
  border-color: rgba(243, 191, 13, 0.55);
  transform: translateY(-0.25rem);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transition-delay: 0s;
}

/* Visuels 500×700 → ratio 5/7, contain pour ne plus tronquer */
.pack__media {
  flex: 1 1 auto;
  min-height: 0;
  background: #0c0d11;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pack__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transition: transform 0.55s var(--ease);
}

.pack:hover .pack__media img {
  transform: scale(1.03);
}

/* Texte compact en bas — plus de flex vide */
.pack__body {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  padding: 0.75rem 0.75rem 0.85rem;
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
}

.pack__body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.3vw, 1.08rem);
  line-height: 1.2;
  transition: color 0.25s ease;
}

.pack:hover .pack__body h3 {
  color: var(--accent);
}

.pack__price {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: clamp(0.88rem, 1.2vw, 1rem);
}

.pack__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.72rem, 1.05vw, 0.84rem);
  line-height: 1.35;
}

.pack__meta {
  margin: 0;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 1000px) {
  .packs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section--packs {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 2rem 0;
  }
}

@media (max-width: 640px) {
  .packs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pack__media {
    flex: none;
    aspect-ratio: 5 / 7;
    max-height: 14rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pack,
  .pack__media img {
    opacity: 1 !important;
    transform: none !important;
    transition: border-color 0.2s ease, color 0.2s ease !important;
    box-shadow: none !important;
  }
}

/* Engagements + partenaires — 1 écran, micro-animations */
.section--engagements {
  --section-chrome: calc(var(--header-h) + 1.1rem);
  background: var(--bg-elevated);
  height: calc(100vh - var(--section-chrome));
  height: calc(100dvh - var(--section-chrome));
  max-height: calc(100svh - var(--section-chrome));
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2.4vh, 1.55rem) 0;
  box-sizing: border-box;
  overflow: hidden;
}

.section--engagements > .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1rem, 2.8vh, 1.75rem);
  min-height: 0;
}

.section--engagements .section__head {
  margin-bottom: 0;
}

.engagements {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, auto));
  gap: clamp(0.6rem, 1.3vw, 0.95rem);
  flex: 0 1 auto;
  min-height: 0;
  align-content: start;
}

.engagements.reveal {
  opacity: 1;
  transform: none;
}

.engagement {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(0.75rem, 1.7vh, 1.1rem) clamp(0.8rem, 1.3vw, 1rem);
  border-top: 2px solid var(--accent);
  background: linear-gradient(180deg, rgba(243, 191, 13, 0.08), transparent 70%);
  opacity: 0;
  transform: translateY(0.55rem);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease),
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.engagements.reveal.is-in .engagement,
.engagements:not(.reveal) .engagement {
  opacity: 1;
  transform: none;
}

.engagements.reveal.is-in .engagement:nth-child(1) { transition-delay: 0.03s; }
.engagements.reveal.is-in .engagement:nth-child(2) { transition-delay: 0.06s; }
.engagements.reveal.is-in .engagement:nth-child(3) { transition-delay: 0.09s; }
.engagements.reveal.is-in .engagement:nth-child(4) { transition-delay: 0.12s; }
.engagements.reveal.is-in .engagement:nth-child(5) { transition-delay: 0.15s; }
.engagements.reveal.is-in .engagement:nth-child(6) { transition-delay: 0.18s; }
.engagements.reveal.is-in .engagement:nth-child(7) { transition-delay: 0.21s; }
.engagements.reveal.is-in .engagement:nth-child(8) { transition-delay: 0.24s; }

.engagement:hover {
  border-top-color: #ffd24a;
  background: linear-gradient(180deg, rgba(243, 191, 13, 0.14), transparent 75%);
  transform: translateY(-0.15rem);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transition-delay: 0s;
}

.engagement h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 1.2vw, 1.05rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.engagement:hover h3 {
  color: var(--accent);
}

.engagement p {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.8rem, 1.05vw, 0.92rem);
  line-height: 1.45;
}

.partners__eyebrow {
  margin: 0;
  flex: 0 0 auto;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.6vw, 2.2rem) clamp(1.2rem, 3vw, 2.4rem);
  flex: 0 0 auto;
  min-height: 0;
}

.partners.reveal {
  opacity: 1;
  transform: none;
}

.partners img {
  max-height: clamp(3.25rem, 7.5vh, 4.5rem);
  width: auto;
  max-width: 10rem;
  object-fit: contain;
  opacity: 0;
  transform: translateY(0.35rem);
  filter: grayscale(1) contrast(1.05) brightness(1.18);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease),
    filter 0.25s ease;
}

.partners.reveal.is-in img,
.partners:not(.reveal) img {
  opacity: 0.78;
  transform: none;
}

.partners.reveal.is-in img:nth-child(1) { transition-delay: 0.04s; }
.partners.reveal.is-in img:nth-child(2) { transition-delay: 0.07s; }
.partners.reveal.is-in img:nth-child(3) { transition-delay: 0.1s; }
.partners.reveal.is-in img:nth-child(4) { transition-delay: 0.13s; }
.partners.reveal.is-in img:nth-child(5) { transition-delay: 0.16s; }
.partners.reveal.is-in img:nth-child(6) { transition-delay: 0.19s; }
.partners.reveal.is-in img:nth-child(7) { transition-delay: 0.22s; }

.partners img:hover {
  opacity: 1;
  filter: grayscale(1) contrast(1.12) brightness(1.28);
  transform: translateY(-2px);
  transition-delay: 0s;
}

.partners img[src*="mairie-guemene"] {
  filter: grayscale(1) contrast(1.02) brightness(1.35);
}

.partners img[src*="mairie-guemene"]:hover {
  filter: grayscale(1) contrast(1.05) brightness(1.5);
}

@media (max-width: 900px) {
  .engagements {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .section--engagements {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 2rem 0;
  }

  .section--engagements > .container {
    justify-content: flex-start;
    gap: 1.5rem;
  }
}

@media (max-width: 520px) {
  .engagements {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .engagement,
  .partners img {
    opacity: 1 !important;
    transform: none !important;
    transition: border-color 0.2s ease, color 0.2s ease, filter 0.2s ease !important;
    box-shadow: none !important;
  }
}

/* Team */
.section--equipe {
  --section-chrome: calc(var(--header-h) + 1.1rem);
  height: calc(100vh - var(--section-chrome));
  height: calc(100dvh - var(--section-chrome));
  max-height: calc(100svh - var(--section-chrome));
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2.4vh, 1.55rem) 0;
  box-sizing: border-box;
  overflow: hidden;
}

.section--equipe > .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1rem, 2.8vh, 1.75rem);
  min-height: 0;
}

.section--equipe .section__head {
  margin-bottom: 0;
}

.section--equipe .section__lead {
  margin-bottom: 0;
  max-width: none;
  white-space: nowrap;
  font-size: clamp(0.82rem, 1.05vw, 0.98rem);
}

.team {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  gap: clamp(0.85rem, 2.2vh, 1.35rem) clamp(0.65rem, 1.5vw, 1.15rem);
  flex: 0 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 56rem;
  margin-inline: auto;
}

.team .member:nth-child(-n + 4) {
  grid-column: span 2;
}

.team .member:nth-child(5) { grid-column: 2 / 4; }
.team .member:nth-child(6) { grid-column: 4 / 6; }
.team .member:nth-child(7) { grid-column: 6 / 8; }

.team.reveal {
  opacity: 1;
  transform: none;
}

.member {
  max-width: 12rem;
  width: 100%;
  justify-self: center;
  text-align: center;
  opacity: 0;
  transform: translateY(0.55rem);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}

.team.reveal.is-in .member,
.team:not(.reveal) .member {
  opacity: 1;
  transform: none;
}

.team.reveal.is-in .member:nth-child(1) { transition-delay: 0.03s; }
.team.reveal.is-in .member:nth-child(2) { transition-delay: 0.06s; }
.team.reveal.is-in .member:nth-child(3) { transition-delay: 0.09s; }
.team.reveal.is-in .member:nth-child(4) { transition-delay: 0.12s; }
.team.reveal.is-in .member:nth-child(5) { transition-delay: 0.15s; }
.team.reveal.is-in .member:nth-child(6) { transition-delay: 0.18s; }
.team.reveal.is-in .member:nth-child(7) { transition-delay: 0.21s; }

.member:hover {
  transform: translateY(-0.15rem);
  transition-delay: 0s;
}

.member__photo {
  margin: 0 auto 0.65rem;
  width: clamp(5.25rem, 11vh, 6.75rem);
  height: clamp(5.25rem, 11vh, 6.75rem);
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  transition: border-color 0.25s ease, transform 0.35s var(--ease);
}

.member:hover .member__photo {
  border-color: var(--accent);
  transform: scale(1.04);
}

.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 1.15vw, 1rem);
  transition: color 0.25s ease;
}

.member:hover h3 {
  color: var(--accent);
}

.member p {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.75rem, 0.95vw, 0.85rem);
  line-height: 1.35;
}

@media (max-width: 900px) {
  .section--equipe {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 2rem 0;
  }

  .section--equipe > .container {
    justify-content: flex-start;
    gap: 1.5rem;
  }

  .section--equipe .section__lead {
    white-space: normal;
  }

  .team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .team .member:nth-child(n) {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member,
  .member__photo {
    opacity: 1 !important;
    transform: none !important;
    transition: border-color 0.2s ease, color 0.2s ease !important;
  }
}

/* Contact */
.section--contact {
  --section-chrome: calc(var(--header-h) + 1.1rem);
  background: var(--bg-elevated);
  height: calc(100vh - var(--section-chrome));
  height: calc(100dvh - var(--section-chrome));
  max-height: calc(100svh - var(--section-chrome));
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2.4vh, 1.55rem) 0;
  box-sizing: border-box;
  overflow: hidden;
}

.section--contact > .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.9rem, 2.4vh, 1.5rem);
  min-height: 0;
}

.section--contact .section__head {
  margin-bottom: 0;
}

.section--contact .section__lead {
  margin-bottom: 0;
  font-size: clamp(0.88rem, 1.1vw, 1rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: stretch;
  flex: 0 1 auto;
  min-height: 0;
}

.contact-grid.reveal {
  opacity: 1;
  transform: none;
}

.contact-info {
  display: grid;
  gap: clamp(0.55rem, 1.4vh, 0.9rem);
  align-content: stretch;
  padding-top: 0.15rem;
  min-height: 0;
}

.contact-info__item {
  padding: 0.65rem 0 0.7rem;
  border-top: 2px solid var(--accent);
  background: linear-gradient(180deg, rgba(243, 191, 13, 0.07), transparent 80%);
  opacity: 0;
  transform: translateY(0.45rem);
  transition:
    opacity 0.45s var(--ease),
    transform 0.45s var(--ease),
    border-color 0.25s ease,
    background 0.25s ease;
}

.contact-grid.reveal.is-in .contact-info__item,
.contact-grid:not(.reveal) .contact-info__item {
  opacity: 1;
  transform: none;
}

.contact-grid.reveal.is-in .contact-info__item:nth-child(1) { transition-delay: 0.04s; }
.contact-grid.reveal.is-in .contact-info__item:nth-child(2) { transition-delay: 0.1s; }
.contact-grid.reveal.is-in .contact-info__item:nth-child(3) { transition-delay: 0.16s; }

.contact-info__item:hover {
  border-top-color: #ffd24a;
  background: linear-gradient(180deg, rgba(243, 191, 13, 0.12), transparent 85%);
  transform: translateY(-0.12rem);
  transition-delay: 0s;
}

.contact-info h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.15vw, 1.02rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.contact-info__item:hover h3 {
  color: var(--accent);
}

.contact-info p,
.contact-info a {
  margin: 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: clamp(0.82rem, 1vw, 0.92rem);
  line-height: 1.4;
}

.contact-info__item p + p {
  margin-top: 0.2rem;
}

.contact-info a:hover {
  color: var(--accent);
}

.contact-map {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 0;
  flex: 1 1 auto;
  opacity: 0;
  transform: translateY(0.45rem);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.contact-grid.reveal.is-in .contact-map,
.contact-grid:not(.reveal) .contact-map {
  opacity: 1;
  transform: none;
  transition-delay: 0.2s;
}

.contact-map__canvas {
  flex: 1 1 auto;
  min-height: clamp(9.5rem, 22vh, 14rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.contact-map__canvas .leaflet-container {
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: #0a0b0d;
  font: inherit;
}

/* OSM clair → rendu sombre aligné charte (tuiles seules, pas le pin or) */
.contact-map__canvas .leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.92) saturate(0.35);
}

.contact-map__canvas .leaflet-control-attribution {
  background: rgba(10, 11, 13, 0.75) !important;
  color: var(--text-muted);
  font-size: 0.62rem;
  max-width: 70%;
}

.contact-map__canvas .leaflet-control-attribution a {
  color: var(--accent);
}

.contact-map__canvas .leaflet-control-zoom a {
  background: var(--bg-elevated) !important;
  color: var(--text) !important;
  border-color: var(--line) !important;
  width: 1.85rem;
  height: 1.85rem;
  line-height: 1.85rem;
}

.contact-map__canvas .leaflet-control-zoom a:hover {
  color: var(--accent) !important;
  border-color: var(--accent) !important;
}

.contact-map__pin {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #14110a;
  box-shadow: 0 0 0 4px rgba(243, 191, 13, 0.28);
}

.contact-map__credit {
  margin: 0;
  text-align: right;
  line-height: 1;
}

.contact-map__credit a {
  color: var(--text-muted);
  font-size: 0.62rem;
  text-decoration: none;
  opacity: 0.55;
}

.contact-map__credit a:hover {
  color: var(--accent);
  opacity: 0.9;
}

.form {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  align-content: stretch;
  gap: clamp(0.65rem, 1.5vh, 0.95rem);
  padding: clamp(1.15rem, 2.4vh, 1.65rem);
  background: var(--bg);
  border: 1px solid var(--line);
  min-height: clamp(28rem, 62vh, 36rem);
  height: 100%;
  opacity: 0;
  transform: translateY(0.55rem);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease),
    border-color 0.25s ease;
}

.contact-grid.reveal.is-in .form,
.contact-grid:not(.reveal) .form {
  opacity: 1;
  transform: none;
  transition-delay: 0.12s;
}

.form:focus-within {
  border-color: rgba(243, 191, 13, 0.45);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.55rem, 1.2vw, 0.85rem);
}

.form label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.8rem;
  font-weight: 560;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  min-height: 2.45rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease;
}

.form__message {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  align-self: stretch;
}

.form textarea {
  min-height: clamp(8rem, 22vh, 13rem);
  height: 100%;
  max-height: none;
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.form .btn {
  justify-self: start;
  min-height: 2.65rem;
  margin-top: 0.15rem;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form__status {
  margin: 0;
  min-height: 1.2rem;
  font-size: 0.85rem;
}

.form__status[data-state="ok"] {
  color: var(--ok);
}

.form__status[data-state="error"] {
  color: var(--danger);
}

@media (max-width: 800px) {
  .section--contact {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 2rem 0;
  }

  .section--contact > .container {
    justify-content: flex-start;
    gap: 1.35rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .form {
    min-height: 0;
    height: auto;
  }

  .form textarea {
    min-height: 9rem;
  }

  .contact-map__canvas {
    min-height: 12rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-map {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-info__item,
  .form {
    opacity: 1 !important;
    transform: none !important;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease !important;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  background: #07080a;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(5, 6, 8, 0.92);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(88vw, 1100px);
  max-height: 84vh;
  object-fit: contain;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: 1px solid var(--line);
  background: rgba(10, 11, 13, 0.65);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.4rem;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.85rem;
  height: 2.85rem;
  font-size: 1.75rem;
  line-height: 1;
}

.lightbox__nav--prev { left: 0.75rem; }
.lightbox__nav--next { right: 0.75rem; }

.lightbox__counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Legal page */
.legal {
  padding: 4rem 0 5rem;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.legal h2 {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.legal p,
.legal li {
  color: var(--text-muted);
}
