/* ============================================================
   ÉDOUARD DECAM — site artistique
   style.css
   ============================================================ */

:root {
  --noir:        #0d0d0d;
  --blanc:       #ffffff;
  --gris-leger:  #e8e8e4;
  --gris-moyen:  #999990;
  --gris-texte:  #444440;
  --jaune:       #fff200;
  --largeur-nav: 260px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--blanc);
  color: var(--noir);
  min-height: 100vh;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); }

/* ============================================================
   LAYOUT
   ============================================================ */
.site-wrapper { display: flex; min-height: 100vh; }

.nav-gauche {
  width: var(--largeur-nav);
  min-width: var(--largeur-nav);
  padding: 40px 28px;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 200;
  background: var(--blanc);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-nom {
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 0.82;
  text-transform: uppercase;
  letter-spacing: 0px;
  margin-bottom: 100px;
}
.nav-nom a { display: block; }

/* every top-level nav row is spaced identically */
.nav-liste { list-style: none; }
.nav-liste > li { margin: 0; }

.nav-row {
  font-size: 1.20rem;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--noir);
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
  padding: 2px 0;
}
.nav-row::before, .nav-row::after { content: '|'; }
.nav-row.actif,
.nav-row.actif::before,
.nav-row.actif::after { color: var(--noir); }

/* sub menu (works, exhibition views, texts...) */
.nav-sub {
  list-style: none;
  overflow: hidden;
  max-height: 500px;
  transition: max-height .35s ease, opacity .3s ease, margin .3s ease;
  opacity: 1;
  margin: 2px 0 2px 0;
}
.nav-sub.ferme { max-height: 0; opacity: 0; margin: 0; }
.nav-sub li { margin: 0; }
.nav-sub a {
  display: block;
  font-size: .85rem;
  color: var(--noir);
  padding: 1.3px 0;
}
.nav-sub a.actif,
.nav-sub a:hover { color: var(--gris-moyen); }
.nav-sub .nav-sub-italique { font-style: italic; }

.nav-bas { padding-top: 24px; }

/* bouton de langue global du site (EN / FR) */
.nav-langtoggle {
  display: flex;
  gap: 8px;
  font-size: .85rem;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.nav-langtoggle button {
  background: none; border: none; cursor: pointer;
  color: var(--gris-moyen); font-size: inherit; font-family: var(--font);
  padding: 0;
}
.nav-langtoggle button.actif { color: var(--noir); font-weight: 700; }
.nav-langtoggle span { color: var(--gris-leger); }

.nav-copyright {
  font-size: .68rem;
  color: var(--gris-moyen);
}

/* main content offset */
.contenu-principal {
  margin-left: var(--largeur-nav);
  flex: 1;
  min-height: 100vh;
  position: relative;
}

/* ============================================================
   HOME — full page slow slideshow, all menus closed
   ============================================================ */
.accueil-diapo {
  width: 100%;
  height: 100vh;
  margin: 20px;
  position: absolute;
  overflow: hidden;
  background: var(--blanc);
}
.accueil-diapo img {
  position: absolute;

  top: 24px;
  left: 10px;

  width: 90%;
  height: 90%;

  object-fit: contain;
  object-position: top center;

  opacity: 0;
  transition: opacity 1s ease;
  cursor: pointer;
}
.accueil-diapo img.visible { opacity: 1; z-index: 1; }

/* ============================================================
   VIEWER — project / exhibition page (image 1..N, arrow, info panel)
   ============================================================ */
.viewer {
  display: flex;
  min-height: 100vh;
}
.viewer-stage {
  flex: 1;
  padding: 100px 40px 40px 0px;
  display: flex;
  align-items: flex-start;
  transition: margin-right .4s ease;
}
.viewer-frame {
  position: relative;
  width: 100%;
  max-width: 1600px;
  aspect-ratio: 1 / 1;
  max-height: calc(100vh - 80px);
  background: white;
  border-radius: 0px;
  overflow: hidden;
  cursor: pointer;
}
.viewer-frame img {
  position: absolute; inset: 0;
  width: 90%; height: 90%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 1s ease;
}
.viewer-frame img.visible { opacity: 1; }

.viewer-next {
  position: fixed;
  top: 40px;
  right: 40px;
  z-index: 60;
  background: none;
  border: none;
  font-size: 3rem;
  color: var(--noir);
  cursor: pointer;
  line-height: 1;
  transition: transform .15s, opacity .3s;
}
.viewer-next:hover { transform: translateX(4px); }
.viewer-next.cache { opacity: 0; pointer-events: none; }

/* right info panel, slides in from the right */
.panel {
  position: fixed;
  top: 0; right: 0;
  width: 560px;
  max-width: 92vw;
  height: 100vh;
  background: var(--blanc);
  padding: 40px 44px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  z-index: 300;
}
.panel.ouvert { transform: translateX(0); }

.panel-fermer {
  position: absolute;
  top: 32px; right: 36px;
  background: none; border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--noir);
  line-height: 1;
}

.panel-titre {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 22px;
  padding-right: 40px;
}
.panel-quote {
  font-style: italic;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--noir);
  margin-bottom: 22px;
}
.panel-desc {
  font-size: .88rem;
  line-height: 1.7;
  color: var(--noir);
  margin-bottom: 22px;
}
.panel-sep { border-top: 1px solid var(--gris-leger); margin: 18px 0; }
.panel-meta {
  font-size: .8rem;
  color: var(--noir);
  text-align: right;
}
.panel-moreimages {
  text-align: right;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
}
.panel-moreimages::before { content: '→ '; }

.panel-credits { font-size: .82rem; line-height: 2; text-align: right; }
.panel-credits b { font-weight: 700; }
.panel-support-title { font-size: .82rem; text-align: right; margin-bottom: 4px; }
.panel-support { font-size: .82rem; line-height: 1.9; text-align: right; }

/* liens (ex: "voir le film") affichés entre deux lignes horizontales */
.panel-links { font-size: .85rem; line-height: 1.9; text-align: right; }
.panel-links a { font-weight: 600; color: var(--noir); }
.panel-links a::before { content: '→ '; }
.panel-links a:hover { color: var(--gris-moyen); }

/* thumbnails mode inside panel */
.panel-thumbs { display: flex; flex-direction: column; gap: 18px; }
.panel-thumbs img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  background: #111;
}
.panel-back {
  font-size: .8rem;
  color: var(--gris-moyen);
  cursor: pointer;
  margin-bottom: 18px;
}
.panel-back::before { content: '← '; }

/* ============================================================
   PAGE FIXE (Info, Contact, Texts, Exhibition list, News)
   ============================================================ */
.page-fixe { padding: 44px 56px 90px 56px; max-width: 1400px; }

.page-titre {
  font-size: 1.50rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}
.page-titre .langtoggle { font-size: .85rem; text-transform: none; }

.langtoggle { display: inline-flex; gap: 6px; }
.langtoggle button {
  background: none; border: none; cursor: pointer;
  color: var(--gris-moyen); font-size: inherit; font-family: var(--font);
  padding: 0;
}
.langtoggle button.actif { color: var(--noir); font-weight: 600; }
.langtoggle span { color: var(--gris-leger); }

/* two column info/cv layout */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
}
.info-col h2 {
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
}
.info-col p { font-size: .90rem; line-height: 1.6; margin-bottom: 16px; max-width: 620px; }
.cv-block { margin-bottom: 22px; }
.cv-block h3 {
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--noir);
}
.cv-row {
  font-size: .90rem;
  line-height: 1.6;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px;
}
.cv-row .date { color: var(--noir); }
.portfolio-title {
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 40px;
}
.portfolio-title a { font-size: 1rem; font-weight: 400; }

/* texts page */
.text-body { max-width: 850px; }
.text-body p { font-size: .90rem; line-height: 1.75; margin-bottom: 20px; }
.text-signature { margin-top: 32px; font-size: .85rem; }
.text-signature b { font-weight: 700; }
.text-translation { margin-top: 24px; font-size: .85rem; color: var(--gris-moyen); font-style: italic; }

/* FR slide-over panel, yellow */
.panel-fr {
  position: fixed;
  top: 0; right: 0;
  width: 55vw;
  max-width: 900px;
  height: 100vh;
  background: var(--jaune);
  padding: 60px 70px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  z-index: 400;
}
.panel-fr.ouvert { transform: translateX(0); }
.panel-fr h1 { font-size: 2rem; font-weight: 800; margin-bottom: 30px; }
.panel-fr p { font-size: .90rem; line-height: 1.75; margin-bottom: 20px; }
.panel-fr .text-signature { font-size: .85rem; }
.panel-fr-fermer {
  position: fixed;
  top: 40px; right: 44px;
  background: none; border: none;
  font-size: 1.6rem; cursor: pointer;
  z-index: 401;
  color: var(--noir);
}

/* exhibition-views / news simple list pages */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card-grid a { display: block; }
.card-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 10px; }
.card-grid .card-titre { font-size: .85rem; }

.news-item { max-width: 700px; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--gris-leger); }
.news-item .news-date { font-size: .72rem; color: var(--gris-moyen); text-transform: uppercase; margin-bottom: 8px; }
.news-item h2 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.news-item h2 a { color: inherit; }
.news-item h2 a:hover { color: var(--gris-moyen); }
.news-item p { font-size: .88rem; line-height: 1.7; }
.news-item .news-lien {
  display: inline-block;
  margin-top: 10px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--noir);
}
.news-item .news-lien::before { content: '→ '; }
.news-item .news-lien:hover { color: var(--gris-moyen); }

/* contact page */
.contact-info { font-size: .95rem; line-height: 2.1; }
.contact-info a { border-bottom: 1px solid var(--gris-leger); }

/* ============================================================
   MOBILE NAV TOGGLE
   ============================================================ */
.mobile-burger {
  display: none;
  position: fixed;
  top: 18px; right: 18px;
  z-index: 500;
  width: 40px; height: 40px;
  background: var(--blanc);
  border: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.mobile-burger span { width: 22px; height: 1.5px; background: var(--noir); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  :root { --largeur-nav: 230px; }
  .info-grid { grid-template-columns: 1fr; gap: 40px; }
  .card-grid { grid-template-columns: repeat(2,1fr); }
  .panel-fr { width: 100vw; max-width: none; padding: 70px 26px 40px; }
}

@media (max-width: 680px) {
  .mobile-burger { display: flex; }
  .nav-gauche {
    width: 82vw;
    transform: translateX(-100%);
    transition: transform .35s ease;
    box-shadow: 0 0 40px rgba(0,0,0,.15);
  }
  .nav-gauche.ouverte { transform: translateX(0); }
  .contenu-principal { margin-left: 0; }
  .viewer-stage { padding: 70px 16px 30px; }
  .viewer-frame { aspect-ratio: 4/5; }
  .viewer-next { top: 18px; right: 66px; }
  .panel { width: 100vw; max-width: none; padding: 70px 26px 40px; }
  .page-fixe { padding: 70px 20px 60px; }
  .card-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   LANGUAGE VISIBILITY (used for small inline toggles, not the slide panel)
   ============================================================ */
[data-fr] { display: none; }
body.lang-fr [data-fr] { display: revert; }
body.lang-fr [data-en] { display: none; }

@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
.contenu-principal { animation: fondu .35s ease; }
