/* ============================================================
   Emma Nocquet — Portfolio 2026 — Index plein écran
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,500&family=Space+Grotesk:wght@400;500;600;700&family=Anton&family=Baloo+2:wght@500;700&family=Quicksand:wght@500;700&family=Comfortaa:wght@500;700&family=Oswald:wght@500;600&family=Bebas+Neue&display=swap');

:root{
  --cream:      #faf6ef;
  --ink:        #100d0a;
  --ink-soft:   #4a4438;

  --marques:    #ae92cf;
  --seconde:    #427caa;
  --movin:      #cb8796;
  --azura:      #be3f48;
  --protejons:  #43617d;
  --collectif:  #cc5d25;
  --sharewithme:#2f03f6;
  --dreamact:   #94c170;
}

*,*::before,*::after{ box-sizing:border-box; }

body{
  margin:0;
  background:var(--ink);
  color:var(--cream);
  font-family:'Space Grotesk', sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; }
button{ font-family:inherit; }

/* ============================================================
   INDEX — bloc "Portfolio" + 8 bandes
   ============================================================ */
.index{
  height:100vh;
  display:flex;
  flex-direction:column;
  background:var(--cream);
  color:var(--ink);
}
#indexView[hidden], #projectView[hidden]{ display:none; }

.index-hero{
  flex:none;
  padding:34px 56px;
  display:grid;
  grid-template-columns:1fr 2fr 1fr;
  align-items:center;
  gap:32px;
  border-bottom:1px solid rgba(16,13,10,.08);
}
.index-hero-art{
  max-width:100%;
  max-height:150px;
  width:auto;
  justify-self:start;
}
.index-hero-text{
  max-width:46ch;
  margin:0;
  font-size:.95rem;
  color:var(--ink-soft);
  line-height:1.55;
}
.index-hero-contact{
  justify-self:end;
  text-align:right;
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:.82rem;
}
.index-hero-contact a{
  text-decoration:none;
  color:var(--ink);
  border-bottom:1px solid rgba(16,13,10,.2);
  padding-bottom:1px;
  white-space:nowrap;
}
.index-hero-contact a:hover{ border-color:var(--ink); }
.dl-link{
  border-bottom:1px solid rgba(16,13,10,.2);
  padding:0 0 1px;
  font-family:'Space Grotesk', sans-serif;
  font-size:.82rem;
  font-weight:600;
  color:var(--collectif);
  text-decoration:none;
  cursor:pointer;
  white-space:nowrap;
  margin-top:2px;
}
.dl-link:hover{ border-color:var(--collectif); }

.index-rows{
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
}
.index-row{
  position:relative;
  flex:1;
  min-height:0;
  overflow:hidden;
  cursor:pointer;
  border:none;
  border-bottom:1px solid rgba(255,255,255,.18);
  padding:0;
  width:100%;
  text-align:left;
  display:block;
}
.index-row:last-child{ border-bottom:none; }

.index-row-bg{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  transform:scale(1.05);
  transform-origin:center;
  filter:blur(2px);
  transition:opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1), filter .45s ease;
  opacity:.22;
}
.index-row:hover .index-row-bg, .index-row:focus-visible .index-row-bg{
  opacity:.9;
  transform:scale(1.12);
  filter:blur(0);
}

.index-row-tint{
  position:absolute; inset:0;
  background:var(--accent);
  opacity:.68;
  transition:opacity .45s ease;
}
.index-row:hover .index-row-tint, .index-row:focus-visible .index-row-tint{ opacity:.32; }

.index-row-scrim{
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(16,13,10,.32) 0%, rgba(16,13,10,0) 55%, rgba(16,13,10,.18) 100%);
  opacity:.6;
  transition:opacity .45s ease;
}
.index-row:hover .index-row-scrim, .index-row:focus-visible .index-row-scrim{ opacity:.8; }

.index-row-content{
  position:relative;
  z-index:2;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:0 56px;
  color:#fff;
}
.index-row-left{
  display:flex;
  align-items:baseline;
  gap:26px;
  min-width:0;
  transform-origin:left center;
  transition:transform .35s cubic-bezier(.2,.7,.2,1);
}
.index-row:hover .index-row-left, .index-row:focus-visible .index-row-left{ transform:translateX(8px) scale(1.05); }
.index-row-num{
  font-family:'Fraunces', serif;
  font-style:italic;
  font-weight:500;
  font-size:1.05rem;
  opacity:.8;
  flex:none;
  color:#fff;
}
.index-row-name{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size:clamp(1.6rem, 3.4vw, 2.9rem);
  line-height:1;
  margin:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#fff;
}
.index-row-cat{
  flex:none;
  display:none;
  align-items:center;
  font-family:'Space Grotesk', sans-serif;
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:rgba(255,255,255,.88);
  max-width:50ch;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.tag-arrow{
  display:inline-flex;
  align-items:center;
  margin:0 10px;
  color:rgba(255,255,255,.65);
  transition:color .3s ease, transform .3s ease;
}
.tag-arrow svg{
  width:34px;
  height:16px;
  display:block;
}
.index-row:hover .tag-arrow, .index-row:focus-visible .tag-arrow{
  color:#fff;
  transform:translateX(3px);
}
.index-row-arrow{
  flex:none;
  width:42px; height:42px;
  border-radius:50%;
  border:1.5px solid rgba(255,255,255,.55);
  display:flex; align-items:center; justify-content:center;
  font-size:1.15rem;
  opacity:.85;
  color:#fff;
  transition:transform .3s ease, opacity .3s ease, background .3s ease, border-color .3s ease, color .3s ease;
}
.index-row:hover .index-row-arrow{
  opacity:1;
  transform:translateX(4px);
  background:#fff;
  border-color:#fff;
  color:var(--accent);
}

@media (min-width:640px){
  .index-row-cat{ display:inline-flex; align-items:center; }
}

/* ============================================================
   PROJECT VIEW — fiche plein écran d'un projet
   ============================================================ */
.project-view{ position:relative; background:var(--cream); color:var(--ink); min-height:100vh; }

.pv-nav{
  position:fixed;
  top:18px;
  left:24px;
  z-index:50;
  display:flex;
  gap:8px;
}
.pv-nav button{
  background:var(--ink);
  border:1.5px solid var(--ink);
  color:var(--cream);
  width:40px; height:40px;
  border-radius:50%;
  cursor:pointer;
  font-size:1rem;
  display:flex; align-items:center; justify-content:center;
  transition:background .25s ease, transform .2s ease;
  box-shadow:0 10px 24px -10px rgba(16,13,10,.4);
}
.pv-nav button:hover{ background:var(--accent, var(--ink-soft)); border-color:var(--accent, var(--ink-soft)); }
.pv-nav .back{ width:auto; border-radius:999px; padding:0 16px; gap:8px; font-size:.72rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; }

.slide{ position:relative; animation:slideIn .5s cubic-bezier(.2,.7,.2,1); }
.slide.leaving{ animation:slideOut .2s ease forwards; }
@keyframes slideIn{ from{ opacity:0; transform:translateY(10px);} to{ opacity:1; transform:translateY(0);} }
@keyframes slideOut{ from{ opacity:1; } to{ opacity:0; } }

/* Page 1 du book : reprise fidèle de la couverture PDF */
.cover-meta{
  max-width:1180px;
  margin:0 auto;
  padding:86px 60px 40px;
  text-align:center;
}
.cover-top{
  display:flex; justify-content:center; gap:14px; align-items:center;
  font-size:.72rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase;
  color:var(--ink-soft); margin-bottom:20px;
}
.cover-num{ font-family:'Fraunces', serif; font-style:italic; font-weight:500; font-size:1rem; color:var(--ink); }
.rule{ height:1px; width:120px; background:rgba(16,13,10,.25); margin:0 auto 30px; }
.cover-title{
  font-family:'Space Grotesk', sans-serif;
  font-weight:700;
  font-size:clamp(1.1rem, 2vw, 1.35rem);
  letter-spacing:.03em;
  text-transform:uppercase;
  margin:0 0 16px;
  color:var(--ink);
}
.cover-desc{ max-width:56ch; margin:0 auto 22px; font-size:1rem; color:var(--ink-soft); }
.cover-tags{ display:flex; justify-content:center; gap:8px; flex-wrap:wrap; }
.cover-tags span{
  border:1.5px solid var(--accent, var(--ink)); color:var(--accent, var(--ink));
  font-size:.68rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
  padding:6px 13px; border-radius:999px; white-space:nowrap;
}

.cover-image{
  max-width:1180px;
  margin:0 auto;
  padding:0 60px 10px;
}
.cover-image img{
  width:100%;
  border-radius:20px;
  box-shadow:0 30px 60px -30px rgba(16,13,10,.35);
}

.stage-body{ background:var(--cream); color:var(--ink); padding:80px 60px 100px; }
.body-inner{ max-width:1180px; margin:0 auto; }
.brief{
  background:var(--accent, var(--ink)); color:#fff; border-radius:22px; padding:36px 40px;
  display:grid; grid-template-columns:1fr 1fr; gap:32px; margin-bottom:40px;
}
.brief h4{ margin:0 0 10px; font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; opacity:.75; }
.brief p{ margin:0; font-size:.95rem; line-height:1.6; }
.gallery{ display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; }
.gallery a{ display:block; border-radius:14px; overflow:hidden; cursor:zoom-in; box-shadow:0 0 0 rgba(16,13,10,0); transition:box-shadow .2s ease; }
.gallery a:hover{ box-shadow:0 20px 40px -20px rgba(16,13,10,.35); }
.gallery img{ width:100%; aspect-ratio:4/3; object-fit:cover; display:block; }

/* ---------- Lightbox ---------- */
.lightbox{
  position:fixed; inset:0; background:rgba(10,8,6,.95);
  display:flex; align-items:center; justify-content:center; z-index:200; padding:40px;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .22s ease;
}
.lightbox.open{ opacity:1; visibility:visible; pointer-events:auto; }
.lightbox.hover-preview{ pointer-events:none; }
.lightbox img{ max-width:100%; max-height:90vh; border-radius:10px; box-shadow:0 30px 80px rgba(0,0,0,.5); }
.lightbox-close{ position:absolute; top:26px; right:32px; background:none; border:none; color:#fff; font-size:2rem; line-height:1; cursor:pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .index{ height:auto; min-height:100vh; }
  .index-hero{ grid-template-columns:1fr; padding:24px 22px 18px; gap:14px; text-align:left; }
  .index-hero-art{ max-height:110px; }
  .index-hero-contact{ justify-self:start; text-align:left; flex-direction:row; flex-wrap:wrap; gap:14px; }
  .index-row{ flex:none; height:88px; }
  .index-row:hover{ flex-grow:0; }
  .index-row-content{ padding:0 22px; }
  .index-row-name{ font-size:1.15rem; }
  .index-row-num{ font-size:.8rem; }
  .index-row-arrow{ width:34px; height:34px; }

  .cover-meta{ padding:60px 22px 26px; }
  .cover-image{ padding:0 18px 10px; }
  .cover-image img{ border-radius:14px; }
  .stage-body{ padding:56px 22px 120px; }
  .brief{ grid-template-columns:1fr; padding:26px; }
  .gallery{ grid-template-columns:repeat(2, 1fr); }
  .pv-nav{ top:auto; bottom:18px; left:18px; }
}

@media (prefers-reduced-motion: reduce){
  .slide{ animation:none; }
  .index-row{ transition:none; }
}

a:focus-visible, button:focus-visible{ outline:2.5px solid var(--collectif); outline-offset:3px; }
