/* 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: "Josefin Sans", "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;
}

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

/* En plein ecran natif, le curseur HTML custom n'est pas visible.
   On restaure le curseur systeme pour que l'utilisateur ne soit pas bloque. */
*:fullscreen,
*:-webkit-full-screen,
*:-moz-full-screen,
*:fullscreen *,
*:-webkit-full-screen *,
*:-moz-full-screen * {
  cursor: auto !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);
}

.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;
}

.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 clamp(2.5rem, 5vw, 4rem);
}

.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__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: 999px;
  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-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.4) translate(10%, 1%);
  transform-origin: center center;
}

.gallery-band {
  width: 100%;
  margin-top: clamp(4rem, 8vw, 7rem);
  padding: clamp(1.25rem, 3vw, 2rem) clamp(0.85rem, 2vw, 1.25rem);
  background-color: var(--gallery-band-bg);
}

.gallery-band-inner {
  max-width: min(1540px, 100%);
  margin: 0 auto;
}

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

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

.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);
  }
}

/* ——— 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 figure: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; }
}
