:root{
  --bg:#ffffff;
  --text:#111111;
  --muted:#8a8a8a;
  --line:#eaeaea;
}
*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}

/* ---------- Page d'accueil ---------- */
.home{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  max-width:520px;
  margin:0 auto;
  padding:60px 24px;
}
.home .name{
  font-size:13px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:48px;
}
.project-list{
  list-style:none;
}
.project-list li{
  border-top:1px solid var(--line);
}
.project-list li:last-child{
  border-bottom:1px solid var(--line);
}
.project-list a{
  display:block;
  padding:14px 0;
  color:var(--text);
  text-decoration:none;
  font-size:15px;
  letter-spacing:0.01em;
  transition:opacity .15s, padding-left .15s;
}
.project-list a:hover{
  opacity:0.5;
  padding-left:6px;
}
.home footer{
  margin-top:48px;
  font-size:12px;
  color:var(--muted);
}
.home footer a{color:var(--muted);}
.home footer .rights-notice{
  margin-top:8px;
}

/* ---------- Preview flottante au survol ---------- */
.hover-preview{
  position:fixed;
  top:0;
  left:0;
  width:220px;
  height:150px;
  pointer-events:none;
  opacity:0;
  transform:scale(0.97);
  transition:opacity .18s ease, transform .18s ease;
  z-index:100;
  box-shadow:0 8px 24px rgba(0,0,0,0.12);
  background:#f2f2f2;
}
.hover-preview.visible{
  opacity:1;
  transform:scale(1);
}
.hover-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.hover-preview-fallback{
  display:none;
  width:100%;
  height:100%;
  align-items:center;
  justify-content:center;
  color:#b5b5b5;
  font-size:12px;
  letter-spacing:0.05em;
}
@media(max-width:700px){
  .hover-preview{display:none;}
}

/* ---------- Fenêtres flottantes déplaçables ---------- */
.floating-window{
  position:fixed;
  width:190px;
  background:#fff;
  padding:8px;
  box-shadow:0 14px 32px rgba(0,0,0,0.10);
  cursor:grab;
  user-select:none;
  z-index:5;
  transition:box-shadow .2s ease;
}
.floating-window img{
  width:100%;
  display:block;
  pointer-events:none;
}
.floating-window.dragging{
  cursor:grabbing;
  box-shadow:0 22px 44px rgba(0,0,0,0.18);
  z-index:50;
  transition:none;
}
@media(max-width:900px){
  .floating-window{
    position:relative;
    display:block;
    width:100%;
    max-width:420px;
    margin:0 auto 20px;
    cursor:pointer;
  }
}

/* ---------- Fenêtres vidéo ---------- */
.floating-window-media{
  position:relative;
  overflow:hidden;
}
.floating-window--video .floating-window-media img{
  aspect-ratio:4/3;
  object-fit:cover;
}
.floating-window--video img{
  transition:opacity .15s ease;
}
.floating-window--video:hover img{
  opacity:0.85;
}
.play-icon{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:44px;
  height:44px;
  border-radius:50%;
  background:rgba(255,255,255,0.9);
  color:#111;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  padding-left:3px;
  pointer-events:none;
}
.floating-window.playing{
  width:400px;
  cursor:default;
  transition:width .25s ease;
  z-index:60;
  box-shadow:0 24px 48px rgba(0,0,0,0.22);
}
.floating-window.playing .floating-window-media{
  aspect-ratio:16/9;
}
.floating-window.playing iframe{
  width:100%;
  height:100%;
  display:block;
  border:0;
}
.floating-window-close{
  position:absolute;
  top:-12px;
  right:-12px;
  width:26px;
  height:26px;
  border-radius:50%;
  background:#111;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 4px 10px rgba(0,0,0,0.25);
}
@media(max-width:900px){
  .floating-window.playing{width:90vw;}
}

/* ---------- Page projet ---------- */
.project-header{
  max-width:640px;
  margin:0 auto;
  padding:56px 24px 24px;
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:16px;
}
.project-header .back{
  font-size:13px;
  color:var(--muted);
  text-decoration:none;
  white-space:nowrap;
}
.project-header .back:hover{color:var(--text);}
.project-header h1{
  font-size:1.1rem;
  font-weight:600;
  letter-spacing:-0.01em;
}
.photo-column{
  max-width:640px;
  margin:0 auto;
  padding:0 24px 40px;
}
.photo-column figure{
  margin:0 0 32px;
}
.photo-column img{
  width:100%;
  display:block;
  background:#f2f2f2;
}
.photo-placeholder{
  width:100%;
  aspect-ratio:3/2;
  background:#f2f2f2;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#b5b5b5;
  font-size:13px;
  letter-spacing:0.05em;
  text-align:center;
  padding:24px;
}
.photo-column figcaption{
  font-size:12px;
  color:var(--muted);
  margin-top:8px;
}

.project-text{
  max-width:640px;
  margin:0 auto;
  padding:24px 24px 100px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:14px;
  line-height:1.7;
}
.project-text p{
  margin-bottom:16px;
}
.project-text p:last-child{
  margin-bottom:0;
}
