/* ============================================================
   JESSICA LESCS — Artiste plasticienne
   jessica-lescs.net
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Raleway:wght@200;300;400;500&display=swap');

/* --- Variables --- */
:root {
  --dark:       #2c2c2c;
  --mid:        #666;
  --light:      #999;
  --bg:         #fff;
  --font-logo:  'Cormorant Garamond', serif;
  --font-body:  'Raleway', sans-serif;
  --nav-h:      72px;
  --ease:       0.25s ease;
  --max-w:      1200px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #ebebeb;
}

.nav {
  display: flex;
  align-items: center;
  padding: 0 2rem;
  height: var(--nav-h);
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  flex-shrink: 0;
  margin-right: auto;
}
.nav__name {
  font-family: var(--font-logo);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--dark);
  letter-spacing: 0.03em;
}
.nav__subtitle {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 300;
  color: var(--mid);
  letter-spacing: 0.12em;
}

/* Main links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav__links > li {
  position: relative;
}
.nav__links > li > a {
  display: block;
  padding: 0.45rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color var(--ease);
  white-space: nowrap;
}
.nav__links > li > a:hover,
.nav__links > li.active > a {
  color: var(--light);
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(40, 40, 40, 0.94);
  min-width: 230px;
  z-index: 200;
  padding: 0.6rem 0;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}
.dropdown li a {
  display: block;
  padding: 0.6rem 1.3rem;
  font-size: 0.7rem;
  font-weight: 300;
  color: #e8e8e8;
  letter-spacing: 0.06em;
  transition: background var(--ease);
}
.dropdown li a:hover {
  background: rgba(255, 255, 255, 0.1);
}
.caret {
  font-size: 0.55rem;
  vertical-align: middle;
  margin-left: 0.15rem;
  opacity: 0.7;
}

/* Instagram */
.nav__instagram {
  display: flex;
  align-items: center;
  color: var(--dark);
  margin-left: 1.2rem;
  flex-shrink: 0;
  transition: color var(--ease);
}
.nav__instagram:hover { color: var(--light); }

/* Burger (mobile) */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 1rem;
  flex-shrink: 0;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--dark);
  transition: var(--ease);
}
.nav__burger.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-active span:nth-child(2) { opacity: 0; }
.nav__burger.is-active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO / PAGE HEADER
   ============================================================ */
.hero {
  width: 100%;
  height: 65vh;
  overflow: hidden;
  position: relative;
  background: #1a1a1a;
}
.hero--home {
  height: calc(100vh - var(--nav-h));
}
.hero img,
.hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero--contact img,
.hero--bio img {
  object-position: center 25%;
}
.hero--microscope img {
  object-position: center 40%;
}
.hero--travers img {
  object-position: center 60%;
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page-content {
  padding: 3.5rem 2rem 6rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-title {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--dark);
  margin-bottom: 2.5rem;
}

/* Titre seul au-dessus d'un home-intro-grid (page Bio) */
.page-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 2rem 0;
}

/* ============================================================
   TEXT BLOCKS
   ============================================================ */
.text-block {
  /*max-width: 740px;*/
  margin-bottom: 3rem;
}
.text-block p {
  font-size: 0.87rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--dark);
  margin-bottom: 1.1rem;
}

/* ============================================================
   GALLERY LAYOUTS
   ============================================================ */

/* Generic 3-column */
.gallery-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

/* Generic 2-column */
.gallery-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

/* Generic rows */
.gallery-row {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.gallery-row--2 { grid-template-columns: repeat(2, 1fr); }
.gallery-row--3 { grid-template-columns: repeat(3, 1fr); }
.gallery-row--4 { grid-template-columns: repeat(4, 1fr); }

/* Full-width image */
.gallery-full {
  width: 100%;
  margin-bottom: 1rem;
}
.gallery-full img {
  width: 100%;
  max-height: 75vh;
  object-fit: cover;
}

/* Masonry columns */
.gallery-masonry {
  columns: 3;
  column-gap: 0.8rem;
  margin-bottom: 3rem;
}
.gallery-masonry img {
  width: 100%;
  margin-bottom: 0.8rem;
  break-inside: avoid;
}

/* Horizontal scrollable strip (Microscope series) */
.gallery-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-bottom: 3rem;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}
.gallery-strip img {
  height: 220px;
  width: auto;
  flex-shrink: 0;
}

/* Poudre de visage: tall left + grid right */
.gallery-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.8rem;
  margin-bottom: 3rem;
  align-items: start;
}
.gallery-split__right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

/* Identités Composites: text + image side by side */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
  align-items: start;
}
.content-split .text-block { margin-bottom: 0; }

/* Vidéo intégrée (Vimeo) — lecteur 16:9 centré, taille mesurée */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto 3.5rem;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Liste des participants / crédits */
.credits {
  margin-top: 1.8rem;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.95;
  color: var(--dark);
}
.credits li { margin-bottom: 0.1rem; }
.credits__role {
  color: var(--light);
  letter-spacing: 0.04em;
}

/* Bouton son sur la vidéo d'accueil */
.sound-btn {
  position: absolute;
  /* État initial : grand, centré */
  bottom: 50%;
  right: 50%;
  transform: translate(50%, 50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* Transition fluide vers le coin */
  transition:
    bottom  0.75s cubic-bezier(0.34, 1.4, 0.64, 1),
    right   0.75s cubic-bezier(0.34, 1.4, 0.64, 1),
    width   0.6s  ease,
    height  0.6s  ease,
    transform 0.75s cubic-bezier(0.34, 1.4, 0.64, 1),
    background 0.25s ease,
    border-color 0.25s ease;
  animation: sound-pulse 2.4s ease-in-out infinite;
  z-index: 10;
}
@keyframes sound-pulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(255,255,255,0.25); }
  50%       { box-shadow: 0 0 0 14px rgba(255,255,255,0);   }
}

/* État final : petit, dans le coin */
.sound-btn.is-placed {
  bottom: 1.4rem;
  right: 1.4rem;
  transform: translate(0, 0);
  width: 42px;
  height: 42px;
  animation: none;
}
.sound-btn.is-placed:hover {
  background: rgba(0, 0, 0, 0.62);
  border-color: rgba(255, 255, 255, 0.9);
}

.sound-btn svg {
  width: 40%;
  height: 40%;
  flex-shrink: 0;
}

/* Label "son" visible uniquement à l'état initial */
.sound-btn__label {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: opacity 0.3s ease;
  line-height: 1;
}
.sound-btn.is-placed .sound-btn__label {
  display: none;
}

/* Affichage selon l'état mute/unmute */
.sound-btn .sound-icon--on  { display: none; }
.sound-btn .sound-icon--off { display: block; }
.sound-btn.is-on .sound-icon--on  { display: block; }
.sound-btn.is-on .sound-icon--off { display: none; }

/* ============================================================
   HOME PAGE
   ============================================================ */

/* Grille bilingue FR / EN */
.home-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4.5rem 2rem 5.5rem;
}

.home-intro {
  padding: 0 3rem 0 0;
}
.home-intro:last-child {
  padding: 0 0 0 3rem;
  border-left: 1px solid #e8e8e8;
}

.home-intro__lang {
  display: block;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--light);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.home-intro p {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--dark);
  margin-bottom: 1.2rem;
}

@media (max-width: 768px) {
  .home-intro-grid {
    grid-template-columns: 1fr;
    padding: 3rem 1.2rem 4rem;
  }
  .home-intro {
    padding: 0;
  }
  .home-intro:last-child {
    padding: 2rem 0 0 0;
    border-left: none;
    border-top: 1px solid #e8e8e8;
    margin-top: 0.5rem;
  }
}

/* ============================================================
   BIO PAGE
   ============================================================ */
.bio-content {
  max-width: 800px;
}
.bio-content p {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--dark);
  margin-bottom: 1.4rem;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-wrapper {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.contact-title {
  font-family: var(--font-body);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 200;
  letter-spacing: 0.25em;
  color: #b8b8b8;
  margin-bottom: 3rem;
}
.form-group {
  margin-bottom: 1rem;
  text-align: left;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #ddd;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--dark);
  outline: none;
  border-radius: 0;
  transition: border-color var(--ease);
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bbb;
  font-weight: 300;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: #999;
}
.form-group textarea {
  min-height: 160px;
  resize: vertical;
}
.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--dark);
  color: #fff;
  border: none;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--ease);
  margin-top: 0.5rem;
}
.form-submit:hover { background: #444; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-message {
  margin-top: 1.2rem;
  padding: 1rem;
  font-size: 0.82rem;
  font-weight: 300;
  display: none;
}
.form-message.visible { display: block; }
.form-message--success { color: #2d6a2d; background: #f0faf0; }
.form-message--error   { color: #9b0000; background: #fff5f5; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.93);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open {
  display: flex;
}
.lightbox__img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  user-select: none;
}
.lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  line-height: 1;
  transition: opacity 0.2s;
  z-index: 2001;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  width: 56px;
  height: 100px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.2s;
  z-index: 2001;
}
.lightbox__btn:hover { opacity: 1; }
.lightbox__btn--prev { left: 0; }
.lightbox__btn--next { right: 0; }
.lightbox__counter {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  font-family: var(--font-body);
}

/* Curseur zoom sur images cliquables */
.gallery-3col img,
.gallery-2col img,
.gallery-row img,
.gallery-full img,
.gallery-strip img,
.gallery-split img,
.gallery-masonry img,
.content-split img,
.bio-content img {
  cursor: zoom-in;
}

/* ============================================================
   SLIDESHOW (Fundación)
   ============================================================ */
.slideshow {
  position: relative;
  width: 100%;
  background: #f4f4f4;
  margin-bottom: 3rem;
}
.slideshow__track {
  position: relative;
  overflow: hidden;
}
.slideshow__slide {
  display: none;
}
.slideshow__slide.is-active {
  display: block;
  animation: ss-fade 0.7s ease;
}
.slideshow__slide img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  background: #f4f4f4;
}
@keyframes ss-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.slideshow__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.75);
  border: none;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: var(--dark);
  transition: background var(--ease);
}
.slideshow__btn:hover { background: rgba(255, 255, 255, 0.95); }
.slideshow__btn--prev { left: 0.8rem; }
.slideshow__btn--next { right: 0.8rem; }
.slideshow__counter {
  text-align: center;
  padding: 0.6rem;
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--light);
  letter-spacing: 0.12em;
}

/* 2 sliders côte à côte */
.slideshow-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}
.slideshow-duo .slideshow {
  margin-bottom: 0;
}
@media (max-width: 640px) {
  .slideshow-duo { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid #ebebeb;
  margin-top: 2rem;
}
.footer a {
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: #bbb;
  text-transform: uppercase;
  transition: color var(--ease);
}
.footer a:hover { color: var(--dark); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0 1.5rem;
    border-bottom: 1px solid #eee;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    z-index: 999;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav__links.is-open { display: flex; }
  .nav__links > li { width: 100%; }
  .nav__links > li > a { padding: 0.85rem 1.5rem; font-size: 0.78rem; }

  .dropdown {
    position: static;
    display: none !important;
    background: #f6f6f6;
    padding: 0;
    min-width: auto;
  }
  .has-dropdown.is-open .dropdown { display: block !important; }
  .dropdown li a { color: var(--dark); padding-left: 2.5rem; font-size: 0.74rem; }

  .nav__burger { display: flex; }
  .nav__instagram { margin-left: auto; }

  .gallery-masonry { columns: 2; }
  .content-split { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-split { grid-template-columns: 1fr; }
  .gallery-row--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero { height: 50vh; }
  .hero--home { height: 70vh; }
  .nav { padding: 0 1rem; }
  .page-content { padding: 2.5rem 1rem 4rem; }
  .gallery-3col { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .gallery-2col { grid-template-columns: 1fr; }
  .gallery-row--3 { grid-template-columns: 1fr 1fr; }
  .gallery-masonry { columns: 1; }
  .gallery-strip img { height: 160px; }
  .home-intro { padding: 3rem 1rem; }
  .contact-title { letter-spacing: 0.15em; }
}
