/* Portfolio Joris BOUSSIGNE — accueil */

:root {
  --bg-about: #000;
  --accent: #00ff0c;
  --nav-hover: #00ff0c;
  --gallery-band-bg: #2a1810;
  --footer-bg: #000;
  --white: #fff;
  --hero-overlay: rgba(0, 0, 0, 0.60);
  --max-w: 1320px;
  --header-pad: 1.25rem 2rem;
  --font-stack: "Futura", "Century Gothic", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-about: "Libre Franklin", "Segoe UI", sans-serif;
  /* Navigation + pied de page : taille unifiée des libellés */
  --site-header-link-size: 1.05rem;
  --site-overlay-link-size: 1.15rem;
  /* Pied de page : un peu plus petit que le header pour moins de hauteur visuelle */
  --site-footer-text-size: 0.88rem;
  --portfolio-green: #5a9e00;
  --portfolio-red: rgba(180, 40, 40, 0.25);
  --portfolio-red-border: rgba(255, 255, 255, 0.35);
}

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

/* En plein ecran natif, le SVG custom n'est pas rendu : on rend la main au
   curseur systeme. Deux classes pour passer devant les regles `cursor: none`. */
html.custom-cursor-ready.is-fullscreen,
html.custom-cursor-ready.is-fullscreen *,
html.custom-cursor-ready.is-fullscreen *::before,
html.custom-cursor-ready.is-fullscreen *::after {
  cursor: auto !important;
}

html.custom-cursor-ready *:fullscreen,
html.custom-cursor-ready *:fullscreen * {
  cursor: auto !important;
}

html.custom-cursor-ready *:-webkit-full-screen,
html.custom-cursor-ready *:-webkit-full-screen * {
  cursor: auto !important;
}

html.custom-cursor-ready *:-moz-full-screen,
html.custom-cursor-ready *:-moz-full-screen * {
  cursor: auto !important;
}

html.custom-cursor-ready.is-fullscreen #custom-cursor {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

/* Pendant l’animation « retour en haut », désactive smooth pour des scrollTo frame par frame */
html.is-animating-scroll {
  scroll-behavior: auto !important;
}

section[id],
.site-footer[id] {
  scroll-margin-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font-stack);
  background: var(--bg-about);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ——— Header fixe ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--header-pad);
  background-color: transparent;
  transition: background-color 0.45s ease, padding 0.35s ease;
}

.site-header.is-scrolled {
  background-color: #000;
  padding: 0.65rem 2rem;
}

.header-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
}

.burger {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 28px;
  height: 22px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 1px;
  transition: background 0.22s ease;
}

.burger:hover span {
  background: var(--accent);
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main a {
  font-size: var(--site-header-link-size);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nav-main a:hover {
  color: var(--nav-hover);
}

/* Page courante — grisée pour indiquer où l'on est */
.nav-main a[aria-current="page"],
.nav-overlay a[aria-current="page"] {
  color: rgba(255, 255, 255, 0.35) !important;
  animation: none !important;
}

.nav-main a[aria-current="page"]:hover,
.nav-overlay a[aria-current="page"]:hover {
  color: rgba(255, 255, 255, 0.35) !important;
}

/* Portfolio actif — grisé pour indiquer la page courante */
.nav-main a[aria-current="page"][data-nav-section="portfolio"],
.nav-overlay a[aria-current="page"][data-nav-section="portfolio"],
.nav-main a.nav-link--portfolio[aria-current="page"],
.nav-overlay a.nav-link--portfolio[aria-current="page"] {
  color: rgba(255, 255, 255, 0.35) !important;
  animation: none !important;
}

.nav-main a[aria-current="page"][data-nav-section="portfolio"]:hover,
.nav-overlay a[aria-current="page"][data-nav-section="portfolio"]:hover,
.nav-main a.nav-link--portfolio[aria-current="page"]:hover,
.nav-overlay a.nav-link--portfolio[aria-current="page"]:hover {
  color: rgba(255, 255, 255, 0.35) !important;
}

/* Accueil actif — moins grisé + hover vert */
.nav-main a[aria-current="page"][data-nav-section="accueil"],
.nav-overlay a[aria-current="page"][data-nav-section="accueil"] {
  color: rgba(255, 255, 255, 0.72) !important;
}

.nav-main a[aria-current="page"][data-nav-section="accueil"]:hover,
.nav-overlay a[aria-current="page"][data-nav-section="accueil"]:hover {
  color: var(--accent) !important;
}

/* Mes projets — clignotement doux vert / blanc */
@keyframes nav-projets-pulse {
  0%, 100% { color: var(--accent); }
  50%      { color: #fff; }
}

.nav-main a[href*="-projets"]:not([aria-current="page"]),
.nav-overlay a[href*="-projets"]:not([aria-current="page"]) {
  animation: nav-projets-pulse 2.8s ease-in-out infinite;
}

.nav-main a.nav-link--projets {
  color: var(--accent);
}

.nav-main a.nav-link--projets:hover {
  opacity: 1;
}

/* Filtre portfolio (header droite) */
.portfolio-filter {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  gap: 0.55rem;
}

.portfolio-filter__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--white);
}

.portfolio-filter__btns {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.portfolio-filter__btn {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.38rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  background: transparent;
  color: rgba(255, 255, 255, 0.25);
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.portfolio-filter__btn.is-active {
  background: var(--portfolio-green);
  border-color: var(--portfolio-green);
  color: #fff;
}

.portfolio-filter__btn:not(.is-active):hover {
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 901px) {
  .portfolio-filter {
    display: flex;
  }
}

@media (max-width: 1100px) {
  .portfolio-filter__label {
    font-size: 0.68rem;
  }

  .portfolio-filter__btn {
    font-size: 0.65rem;
    padding: 0.32rem 0.65rem;
  }
}

.footer-links a:hover {
  opacity: 0.85;
}

/* Overlay menu (burger) — au-dessus du header (1000) pour couvrir toute la page */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 4, 0.97);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-overlay ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.nav-overlay a {
  display: block;
  padding: 0.85rem 1.5rem;
  font-size: var(--site-overlay-link-size);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.nav-overlay a:hover {
  color: var(--nav-hover);
}

.nav-overlay-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: var(--site-header-link-size);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.22s ease;
}

.nav-overlay-close:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .nav-main {
    display: none;
  }
}

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

/* ——— Hero ——— */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  /* Même logique que .index-splash pour caler le texte du bas comme « NAVIGATION… » */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  box-sizing: border-box;
  background: #050302 center / cover no-repeat;
  background-image:
    linear-gradient(var(--hero-overlay), var(--hero-overlay)),
    url("PHOTOS%20ACCUEIL/Accueil/Fond%20accueil.JPG");
}

.hero-inner {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0.4px, transparent 0.55px);
  background-size: 4px 4px;
}

/* Pictogrammes decoratifs, meme disposition que la page Mes projets */
.hero-deco {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  width: clamp(88px, 13vw, 178px);
  max-width: 178px;
  height: auto;
  opacity: 0;
  animation: hero-deco-in 1.4s ease-out 0.5s forwards;
}

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

@keyframes hero-deco-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.hero-deco--cactus {
  top: clamp(4.5rem, 12vh, 8rem);
  left: clamp(0.5rem, 3vw, 3rem);
}

.hero-deco--tv {
  top: clamp(4rem, 10vh, 7rem);
  right: clamp(0.5rem, 3vw, 3rem);
  width: clamp(96px, 14vw, 188px);
  max-width: 188px;
}

.hero-deco--oeil {
  bottom: clamp(6rem, 18vh, 11rem);
  left: clamp(0.25rem, 2.5vw, 2.5rem);
  width: clamp(100px, 14.5vw, 195px);
  max-width: 195px;
}

.hero-deco--fleche {
  bottom: clamp(5.5rem, 16vh, 10rem);
  right: clamp(1rem, 4vw, 4rem);
  width: clamp(104px, 15vw, 200px);
  max-width: 200px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-deco {
    opacity: 1;
    animation: none;
  }
}

@media (max-width: 700px) {
  .hero-deco--cactus {
    top: clamp(3.75rem, 9vh, 5.5rem);
    width: clamp(58px, 17vw, 92px);
    max-width: 92px;
  }

  .hero-deco--tv {
    top: clamp(3.5rem, 8vh, 5rem);
    width: clamp(62px, 18vw, 98px);
    max-width: 98px;
  }

  .hero-deco--oeil {
    bottom: clamp(5rem, 14vh, 7.5rem);
    width: clamp(60px, 17vw, 94px);
    max-width: 94px;
  }

  .hero-deco--fleche {
    bottom: clamp(4.5rem, 13vh, 7rem);
    width: clamp(64px, 18vw, 100px);
    max-width: 100px;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  margin: 0;
  font-size: clamp(3rem, 10vw, 5.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
  color: #00ff0c;
  text-shadow:
    0 0 8px rgba(0, 255, 12, 0.65),
    0 0 18px rgba(0, 255, 12, 0.42),
    0 0 32px rgba(0, 255, 12, 0.24),
    0 0 48px rgba(0, 255, 12, 0.12);
}

.hero-sub {
  margin: 1.1rem 0 0;
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00ff0c;
}

/* Même emplacement / typo que .index-splash__hint (texte « navigation » uniquement sur le splash) */
.hero-tagline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.25rem, 3.5vh, 2.75rem);
  z-index: 2;
  margin: 0;
  padding: 0 1rem;
  box-sizing: border-box;
  text-align: center;
  font-family: var(--font-stack);
  font-size: clamp(0.78rem, 2vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.35;
  color: #00ff0c;
  opacity: 0.88;
}

/* ——— À propos ——— */
.about {
  background: var(--bg-about);
  padding: clamp(3rem, 6vw, 5.5rem) 1.5rem 0;
}

.about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr) minmax(0, 0.95fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.about-photo-main {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
}

.about-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3) translateY(-30%);
  transform-origin: center top;
}

.about-copy {
  font-family: var(--font-about);
}

.about-copy h2 {
  margin: 0 0 1.35rem;
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.about-copy p {
  margin: 0 0 1.2rem;
  font-size: clamp(0.97rem, 1.6vw, 1.08rem);
  line-height: 1.75;
  font-weight: 400;
  color: var(--white);
  max-width: 36em;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-copy .highlight {
  color: var(--accent);
  font-weight: 600;
}

.about-cta {
  margin-top: 2rem;
}

.about-cta__label {
  text-align: center !important;
}

.about-cta__label {
  font-size: clamp(0.82rem, 1.3vw, 0.92rem) !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent) !important;
  margin: 0 0 0.75rem !important;
  max-width: none !important;
}

.about-cta__label--heading {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: clamp(0.95rem, 1.5vw, 1.08rem) !important;
}

.about-cta__arrow {
  display: inline-block;
  font-size: 1.1em;
  line-height: 1;
  vertical-align: middle;
  opacity: 0.75;
  animation: arrow-bounce 1.2s ease-in-out infinite;
}

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

.about-cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.about-cta__btn {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  background: transparent;
  color: #fff;
  font-family: var(--font-stack);
  font-size: clamp(0.82rem, 1.2vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid #fff;
  border-radius: 8px;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.15s ease;
}

.about-cta__btn:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
  transform: translateY(-2px);
}

.about-cta__btn--outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.about-cta__btn--outline:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.about-cta__btns--solo {
  justify-content: center;
}

.about-cta__btn--solo {
  width: min(100%, 520px);
  padding: 0.95rem 2.4rem;
  font-family: var(--font-about);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  text-align: center;
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.about-cta__btn--solo:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.about-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(0.45rem, 1.2vw, 0.75rem);
  min-height: 0;
  align-self: start;
}

.about-stack figure {
  flex: 1 1 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

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

.about-stack figure:first-child img {
  transform: scale(1.05) translateY(0%);
  transform-origin: center center;
}

.about-stack figure:last-child img {
  transform: scale(1.08) translateY(0%);
  transform-origin: center center;
}

.gallery-band {
  position: relative;
  width: calc(100% + 3rem);
  margin-top: clamp(2.25rem, 4.5vw, 3.25rem);
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding: clamp(1.35rem, 2.8vw, 1.85rem) clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 2.8vw, 2rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 28%),
    linear-gradient(180deg, #1a0f0a 0%, var(--gallery-band-bg) 42%, #221410 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(0, 255, 12, 0.12);
  overflow: hidden;
}

.gallery-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0.45px, transparent 0.55px);
  background-size: 5px 5px;
}

.gallery-band-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
}

.gallery-band__title {
  margin: 0 0 clamp(0.85rem, 1.8vw, 1.15rem);
  padding-left: 0.65rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-about);
  font-size: clamp(0.98rem, 1.55vw, 1.18rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.45rem, 1.1vw, 0.7rem);
  margin: 0;
}

.gallery--projects {
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

.gallery__item {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1vw, 0.65rem);
  margin: 0;
}

.gallery__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  background: #120a07;
}

.gallery__caption {
  margin: 0;
  padding: 0 0.15rem;
  font-family: var(--font-about);
  font-size: clamp(0.78rem, 1.1vw, 0.9rem);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
}

.gallery figure {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.gallery--projects .gallery__item {
  aspect-ratio: auto;
  overflow: visible;
}

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

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

  .about-stack {
    grid-column: 1 / -1;
    flex-direction: row;
    align-self: stretch;
    height: auto !important;
    min-height: 220px;
  }

  .about-stack figure {
    flex: 1 1 0;
    min-height: 180px;
  }
}

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

  .about-stack {
    flex-direction: column;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery--projects {
    grid-template-columns: 1fr;
    gap: clamp(0.9rem, 3vw, 1.15rem);
    max-width: 520px;
    margin: 0 auto;
  }
}

/* ——— Footer ——— */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--white);
  padding: clamp(1rem, 5vw, 2rem) 1rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--site-footer-text-size);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--white);
  font-family: inherit;
  padding: 0;
  line-height: 1.2;
}

.back-top svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.back-top {
  transition: color 0.22s ease;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.6rem, 1.6vw, 1.35rem);
  font-size: var(--site-footer-text-size);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* ——— Lightbox ——— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0s linear 0.28s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.28s ease, visibility 0s linear 0s;
}

.lightbox__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox__img {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 60px rgba(0,0,0,0.7);
  transition: opacity 0.18s ease;
  display: block;
}

.lightbox__img.is-loading {
  opacity: 0;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  z-index: 2;
  background: none;
  border: none;
  color: #fff;
  font-family: inherit;
  line-height: 1;
  transition: color 0.2s ease, transform 0.15s ease;
}

.lightbox__close {
  top: 1.25rem;
  right: 1.5rem;
  font-size: 1.6rem;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
  padding: 0 1rem;
}

.lightbox__prev { left: 0.5rem; }
.lightbox__next { right: 0.5rem; }

.lightbox__close:hover { color: var(--accent); }
.lightbox__prev:hover  { color: var(--accent); transform: translateY(-50%) scale(1.15); }
.lightbox__next:hover  { color: var(--accent); transform: translateY(-50%) scale(1.15); }

/* Images cliquables */
.about-photo-main img,
.about-stack img,
.gallery img {
  transition: filter 0.22s ease;
}

.about-photo-main:hover img,
.about-stack figure:hover img,
.gallery__media:hover img {
  filter: brightness(1.08);
}

/* ——— Fondu noir a l'arrivee sur la page ——— */
.page-enter-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: #000;
  pointer-events: none;
  animation: page-enter-fade 1.8s ease-out forwards;
}

@keyframes page-enter-fade {
  from { opacity: 1; }
  to   { opacity: 0; visibility: hidden; }
}
