
/* -------------------------------------------------------------
   style.css — Portfolio studio Paris
   Compatible avec :
     - index.html racine (page d'accueil manuelle)
     - pages générées dans html/portfolio/{path}/index.html
   Responsive : 2 colonnes mobile, 3 tablette, 4 desktop.
   ------------------------------------------------------------- */

:root {
  --bg: #0f0f10;
  --surface: #17171a;
  --surface-2: #1e1e22;
  --text: #f4f1ea;
  --muted: #9b968c;
  --line: #2b2b30;
  --accent: #d6ff3f;
  --accent-ink: #111204;
  --radius: 16px;
  --header-h: 64px;
  --gap: clamp(10px, 1.6vw, 22px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

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

button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  background: none;
  border: none;
}

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

/* -------------------------------------------------------------
   Header
   ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  min-height: var(--header-h);
  padding: .6rem clamp(16px, 3vw, 40px);
  background: rgba(15, 15, 16, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

/* Fil d'Ariane */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--text);
  text-decoration: underline;
}

.breadcrumb .sep {
  color: var(--muted);
  opacity: .6;
}

.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* Barre de services (header et footer) */
.services-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.services-nav a {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: .38rem .75rem;
  border-radius: 999px;
  font-size: .76rem;
  white-space: nowrap;
}

.services-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sélecteur de langue */
.lang-nav {
  display: flex;
  gap: .4rem;
}

.lang-nav button {
  padding: .42rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.lang-nav button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

/* -------------------------------------------------------------
   Intro
   ------------------------------------------------------------- */
.intro {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 72px) clamp(16px, 3vw, 40px) clamp(16px, 3vw, 32px);
}

.intro h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  line-height: .95;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.intro p {
  margin: 16px 0 0;
  max-width: 540px;
  color: var(--muted);
  font-size: clamp(.95rem, 1.4vw, 1.15rem);
}

/* -------------------------------------------------------------
   Masonry
   ------------------------------------------------------------- */
.site-main {
  min-height: 60vh;
}

.masonry {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px) 60px;
  column-count: 2;
  column-gap: var(--gap);
}

@media (min-width: 700px) {
  .masonry {
    column-count: 3;
  }
}

@media (min-width: 1080px) {
  .masonry {
    column-count: 4;
  }
}

/* -------------------------------------------------------------
   Cartes
   ------------------------------------------------------------- */
.card {
  position: relative;
  break-inside: avoid;
  margin: 0 0 var(--gap);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card-media {
  position: relative;
}

.card-media img {
  width: 100%;
  height: auto;
  min-height: 120px;
  object-fit: cover;
  background: var(--surface-2);
}

.card-video {
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
  background: var(--surface-2);
}

.card-caption {
  padding: 14px 16px 16px;
}

.card-caption h3 {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  text-transform: capitalize;
}

.card-caption p {
  margin: 4px 0 0;
  font-size: .8rem;
  color: var(--muted);
}

/* Bouton play central */
.card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}

.card-play:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.card-play span {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #fff;
}

.card-play:hover span {
  border-left-color: var(--accent-ink);
}

.card-play.is-hidden {
  display: none;
}

/* Flèche droite vers la lightbox */
.card-open {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s ease, background .2s ease, border-color .2s ease;
}

.card:hover .card-open,
.card:focus-within .card-open {
  opacity: 1;
}

.card-open:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

@media (hover: none) {
  .card-open {
    opacity: 1;
  }

  .card:hover {
    transform: none;
  }
}

/* -------------------------------------------------------------
   États
   ------------------------------------------------------------- */
.status {
  color: var(--muted);
  padding: 40px 0;
  text-align: center;
  font-size: .9rem;
}

.status.error {
  color: #ff6b6b;
}

/* -------------------------------------------------------------
   Contenu éditorial (pages générées, alimenté par saisie.php)
   ------------------------------------------------------------- */
.editorial {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px clamp(16px, 3vw, 40px) 64px;
  color: var(--text);
  font-size: 1rem;
}

.editorial .summary {
  font-size: 1.1rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 0 0 28px;
}

.editorial .description h2,
.editorial .description h3 {
  line-height: 1.25;
  margin: 28px 0 12px;
}

.editorial .description p {
  margin: 0 0 16px;
}

.editorial .description ul,
.editorial .description ol {
  margin: 0 0 16px;
  padding-left: 1.4rem;
}

.editorial .description a {
  color: var(--accent);
  text-decoration: underline;
}

/* -------------------------------------------------------------
   Lightbox
   ------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 8, 10, .94);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lb-stage {
  margin: 0;
  width: min(92vw, 1200px);
  height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lb-media {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-media img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
}

.lb-video {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  background: #000;
}

.lb-caption {
  margin-top: 14px;
  color: var(--text);
  font-size: .9rem;
  text-align: center;
}

.lb-counter {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .1em;
}

.lb-close,
.lb-prev,
.lb-next,
.lb-pause {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover,
.lb-pause:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.lb-close {
  top: 16px;
  right: 16px;
  font-size: 1.8rem;
}

.lb-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-pause {
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.1rem;
}

/* -------------------------------------------------------------
   Footer
   ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px clamp(16px, 3vw, 40px) 32px;
  color: var(--muted);
  font-size: .85rem;
}

.site-footer .breadcrumb,
.site-footer .services-nav,
.site-footer .lang-nav {
  margin-bottom: 16px;
}

.site-footer > p {
  margin: 0;
}

/* -------------------------------------------------------------
   Mobile
   ------------------------------------------------------------- */
@media (max-width: 600px) {
  .lb-prev {
    left: 8px;
  }

  .lb-next {
    right: 8px;
  }

  .lb-close {
    top: 10px;
    right: 10px;
  }

  .lb-stage {
    width: 96vw;
    height: 86vh;
  }

  .card-play {
    width: 52px;
    height: 52px;
  }
}
