/* =========================================================
   Portfolio photographe football — feuille de style unique
   Fond sombre, typo grasse condensée, grille de photos, air.
   ========================================================= */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --text: #f5f5f5;
  --text-dim: #a3a3a3;
  --accent: #d4ff3f; /* vert citron sobre, seule couleur d'accent */
  --border: #262626;
  --header-height: 76px;
  --max-width: 1400px;
  --font-display: "Helvetica Neue Condensed", "Arial Narrow", ui-sans-serif,
    system-ui, -apple-system, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: #0a0a0a;
  padding: 0.75rem 1.25rem;
  z-index: 200;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.15s ease;
}

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

/* Focus visible cohérent partout, jamais supprimé sans remplacement */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.85), transparent);
  pointer-events: none;
}

.site-header a,
.site-header button {
  pointer-events: auto;
}

.site-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.85rem, 3vw, 1.15rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: clamp(0.75rem, 3vw, 2.5rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  text-decoration: none;
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.15s ease;
  padding: 0.5rem 0.15rem;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  max-width: none;
  display: flex;
  align-items: flex-end;
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vw, 6rem);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.55) 0%,
    rgba(10, 10, 10, 0.15) 35%,
    rgba(10, 10, 10, 0.35) 65%,
    rgba(10, 10, 10, 0.95) 100%
  );
}

.hero-content {
  max-width: 900px;
}

@media (max-width: 640px) {
  .hero-content {
    margin-right: 2.5rem;
  }
}

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2.75rem, 9vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}

.hero-baseline {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--text-dim);
  max-width: 46ch;
  margin: 0;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: clamp(1.25rem, 4vw, 3rem);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 48px;
  background: var(--text-dim);
}

/* ---------- Sections génériques ---------- */

section {
  padding: clamp(4rem, 10vw, 8rem) clamp(1.25rem, 4vw, 3rem);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.01em;
}

.section-heading span {
  color: var(--accent);
}

/* Fade-in léger au scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Galerie ---------- */

.gallery {
  columns: 1;
  column-gap: 1rem;
}

@media (min-width: 640px) {
  .gallery {
    columns: 2;
  }
}

@media (min-width: 1024px) {
  .gallery {
    columns: 3;
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border: 0;
  background: none;
  padding: 0;
  cursor: zoom-in;
  display: block;
  width: 100%;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.03);
}

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

/* ---------- À propos ---------- */

.about {
  display: grid;
  gap: clamp(2rem, 6vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 800px) {
  .about {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.about-portrait {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-elevated);
}

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

.about-text p {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-dim);
  max-width: 56ch;
}

.about-text p + p {
  margin-top: 1.25rem;
}

.about-text strong {
  color: var(--text);
}

/* ---------- Contact ---------- */

.contact {
  text-align: center;
}

.contact-heading {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  min-height: 44px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--text);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

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

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(6, 6, 6, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  margin: 0;
  position: relative;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 2px;
}

.lightbox-caption {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.lightbox-btn {
  position: fixed;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text);
  border-radius: 999px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.lightbox-btn:hover,
.lightbox-btn:focus-visible {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}

.lightbox-close {
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
}

.lightbox-prev {
  left: clamp(0.5rem, 2vw, 1.5rem);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: clamp(0.5rem, 2vw, 1.5rem);
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 640px) {
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
  }
}
