/* ============================================================
   NASSER GHAZIZADEH — site d'artiste
   Minimaliste, fond blanc, les œuvres en vedette.
   ============================================================ */

:root {
  --noir: #141414;
  --gris: #6b6b6b;
  --blanc: #ffffff;
  --blanc-casse: #fafaf8;
  --bordure: #e4e4df;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--noir);
  background: var(--blanc);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------------- En-tête / menu ---------------- */

.entete {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 34px 44px 0;
  pointer-events: none;
}

.entete > * { pointer-events: auto; }

.entete .nom {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

.menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.menu a {
  position: relative;
  padding: 4px 0;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.menu a:hover::after,
.menu a.actif::after { transform: scaleX(1); }

.menu .langue {
  border: none;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  color: inherit;
  opacity: 0.75;
}
.menu .langue:hover { opacity: 1; }

/* Couleurs du menu selon la page */
body.hero .entete { color: var(--blanc); text-shadow: 0 1px 3px rgba(0,0,0,0.35); }
body.hero .menu .langue { color: var(--blanc); }
body.pages .entete { color: var(--noir); position: fixed; background: rgba(255,255,255,0.88); backdrop-filter: blur(6px); padding-top: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--bordure); }
body.pages .menu .langue { color: var(--noir); }

/* ---------------- Accueil (hero) ---------------- */

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #0d0d0d;
}

.hero .diapo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero .diapo.visible { opacity: 1; }

/* Voile de lisibilité (nom, menu, titre) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0) 32%, rgba(0,0,0,0) 68%, rgba(0,0,0,0.38) 100%);
  pointer-events: none;
}
.hero .pied, .hero .fleches, .hero .compteur { z-index: 2; }

.hero .pied {
  position: absolute;
  bottom: 34px; left: 44px;
  color: var(--blanc);
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.hero .fleches {
  position: absolute;
  right: 44px; bottom: 34px;
  display: flex; gap: 12px;
  color: var(--blanc);
}
.hero .fleches button {
  background: none; border: 1px solid rgba(255,255,255,0.55);
  color: var(--blanc); width: 42px; height: 42px; border-radius: 50%;
  cursor: pointer; font-size: 17px; line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}
.hero .fleches button:hover { background: var(--blanc); color: var(--noir); }

.hero .compteur {
  position: absolute;
  right: 44px; bottom: 88px;
  color: rgba(255,255,255,0.8);
  font-size: 12px; letter-spacing: 0.2em;
}

/* ---------------- Pages intérieures ---------------- */

.contenu {
  max-width: 1240px;
  margin: 0 auto;
  padding: 150px 44px 90px;
}

.titre-page {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.sous-titre-page { color: var(--gris); font-size: 15px; margin-bottom: 56px; max-width: 720px; }

/* ---------------- Page Œuvres ---------------- */

.filtres {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 40px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.filtres button {
  background: none; border: none; cursor: pointer;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  color: var(--gris);
  padding: 4px 0;
  position: relative;
  transition: color 0.2s ease;
}
.filtres button::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--noir);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.filtres button:hover { color: var(--noir); }
.filtres button.actif { color: var(--noir); }
.filtres button.actif::after { transform: scaleX(1); }

.carrousel-scene {
  position: relative;
}

.carrousel {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: #cfcfc8 transparent;
  cursor: grab;
}
.carrousel:active { cursor: grabbing; }

.carrousel figure {
  scroll-snap-align: center;
  flex: 0 0 auto;
  height: 62vh;
  display: flex;
  align-items: center;
}

.carrousel img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  background: var(--blanc);
  transition: transform 0.3s ease;
}
.carrousel figure:hover img { transform: scale(1.015); }

.carrousel .barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
}
.carrousel .compteur {
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--gris);
  font-variant-numeric: tabular-nums;
}
.carrousel .nav button {
  background: none; border: 1px solid var(--bordure);
  width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; font-size: 16px; color: var(--noir);
  transition: background 0.2s ease, color 0.2s ease;
}
.carrousel .nav button:hover { background: var(--noir); color: var(--blanc); }
.carrousel .nav { display: flex; gap: 10px; }

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

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,10,10,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
}
.lightbox.ouvert { display: flex; }
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; }
.lightbox .legende {
  color: var(--blanc);
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.06em;
}
.lightbox .legende .annee { color: rgba(255,255,255,0.55); font-size: 14px; font-family: var(--sans); letter-spacing: 0.18em; margin-left: 10px; }
.lightbox .fermer {
  position: absolute; top: 26px; right: 34px;
  background: none; border: none; color: var(--blanc);
  font-size: 34px; cursor: pointer; line-height: 1;
}
.lightbox .nav-lb {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid rgba(255,255,255,0.5);
  color: var(--blanc); width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; font-size: 18px;
  transition: background 0.2s ease, color 0.2s ease;
}
.lightbox .nav-lb:hover { background: var(--blanc); color: var(--noir); }
.lightbox .nav-lb.prev { left: 26px; }
.lightbox .nav-lb.next { right: 26px; }

/* ---------------- Page L'artiste ---------------- */

.artiste-zone {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 70px;
  align-items: start;
}

.artiste-portrait img {
  width: 100%;
  border: 1px solid var(--bordure);
}

.artiste-texte p { margin-bottom: 20px; font-size: 16px; color: #2a2a2a; max-width: 70ch; }

.cv { margin-top: 70px; }
.cv h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 42px 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bordure);
}
.cv ul { list-style: none; }
.cv li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid #f0f0ec;
  font-size: 14.5px;
}
.cv li .annee { color: var(--gris); font-variant-numeric: tabular-nums; font-size: 13.5px; padding-top: 1px; }
.cv li em { font-style: italic; }

/* ---------------- Interviews ---------------- */

.grille-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}
.video-carte { cursor: pointer; }
.video-carte .vignette {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
}
.video-carte .vignette img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: opacity 0.3s ease, transform 0.4s ease; }
.video-carte:hover .vignette img { opacity: 1; transform: scale(1.03); }
.video-carte .vignette .play {
  position: absolute; inset: 0; margin: auto;
  width: 54px; height: 54px;
  background: rgba(0,0,0,0.55); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
  transition: background 0.25s ease;
}
.video-carte:hover .play { background: rgba(0,0,0,0.8); }
.video-carte .titre-video { font-size: 14px; margin-top: 12px; color: #2a2a2a; }
.video-carte .auteur-video { font-size: 12px; color: var(--gris); margin-top: 3px; letter-spacing: 0.05em; }

.alerte-nu {
  background: var(--blanc-casse);
  border: 1px solid var(--bordure);
  padding: 16px 20px;
  font-size: 13px;
  color: var(--gris);
  margin-bottom: 40px;
}

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

.contact-intro { font-size: 16px; color: #2a2a2a; max-width: 64ch; margin-bottom: 44px; }
.contact-intro strong { font-weight: 600; }

.formulaire { max-width: 560px; }
.formulaire label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gris);
  margin: 26px 0 8px;
}
.formulaire input[type="email"],
.formulaire textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #c9c9c2;
  background: transparent;
  padding: 10px 2px;
  font: inherit;
  font-size: 16px;
  color: var(--noir);
  outline: none;
  transition: border-color 0.25s ease;
}
.formulaire input:focus, .formulaire textarea:focus { border-color: var(--noir); }
.formulaire textarea { min-height: 130px; resize: vertical; }
.formulaire button {
  margin-top: 34px;
  background: var(--noir);
  color: var(--blanc);
  border: none;
  padding: 14px 38px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.formulaire button:hover { opacity: 0.85; }
.formulaire .statut { margin-top: 18px; font-size: 14px; min-height: 22px; }
.formulaire .statut.ok { color: #2e7d32; }
.formulaire .statut.err { color: #b71c1c; }

.reseaux {
  display: flex; gap: 18px;
  margin-top: 60px;
}
.reseaux a {
  width: 46px; height: 46px;
  border: 1px solid var(--bordure);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--noir);
  transition: background 0.2s ease, color 0.2s ease;
}
.reseaux a:hover { background: var(--noir); color: var(--blanc); }
.reseaux svg { width: 19px; height: 19px; }

/* ---------------- Pied de page ---------------- */

.pied-page {
  border-top: 1px solid var(--bordure);
  padding: 34px 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--gris);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .entete { padding: 22px 24px 0; flex-direction: column; gap: 18px; align-items: flex-start; }
  .menu { flex-wrap: wrap; gap: 16px 22px; font-size: 12px; }
  body.pages .entete { position: static; background: none; backdrop-filter: none; border-bottom: none; padding-top: 22px; }
  .contenu { padding: 90px 24px 60px; }
  .hero .pied { left: 24px; bottom: 26px; }
  .hero .fleches { right: 24px; bottom: 26px; }
  .hero .compteur { right: 24px; bottom: 80px; }
  .artiste-zone { grid-template-columns: 1fr; gap: 40px; }
  .artiste-portrait { max-width: 320px; }
  .carrousel figure { height: 48vh; }
  .cv li { grid-template-columns: 52px 1fr; gap: 12px; }
  .titre-page { font-size: 27px; }
}
