/* Reset de base + typographie */
* { box-sizing: border-box; }
html { overflow-y: scroll; } /* barre de défilement visible */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: #111;
  background: #fff;
}

/* Header + navigation */
.site-header { padding: 28px 20px 10px; text-align: center; }
.artist-name { margin: 0 0 10px; font-weight: 700; font-size: 28px; letter-spacing: .3px; }
.main-nav { display: inline-flex; gap: 30px; align-items: center; font-size: 18px; }
.main-nav a { text-decoration: none; color: #222; padding: 6px 4px; }
.main-nav a.is-active { text-decoration: underline; }
.main-nav .sep { user-select: none; opacity: .6; }

/* Conteneur principal */
.container { width: min(1200px, 92vw); margin: 0 auto; padding: 16px 0 0; }

/* Petit espace pour que le footer ne soit pas visible immédiatement */
.push { height: 20vh; } /* AJUSTER : 10–30vh selon ton goût */

/* Footer noir */
.site-footer { background: #000; color: #fff; }
.site-footer .footer-inner {
  width: min(1200px, 92vw);
  margin: 0 auto;
  padding: 18px 16px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer .instagram svg { display: block; }

/* === ACCUEIL : bloc diaporama === */
.home-slider {
  position: relative;
  margin: 40px auto;
  width: 100%;
  height: auto;            /* AJUSTER hauteur du bloc */
  max-height: 75vh;         /* protège les petits écrans */
  overflow: hidden;
  background: #ffffff;
  display : flex;
  align-items: center;
  justify-content: center;
}
.home-slider .slides {
  display: flex;
  height: 100%;
  transition: transform .5s ease;
}
.home-slider .slide {
  min-width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-slider img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;  /* image centrée, jamais rognée */
  display: block;
  margin: 0;
}
.home-slider .nav {
  position: absolute; inset-block: 0; margin: auto 0;
  height: 40px; width: 40px; border: none; background: rgba(0,0,0,.45); color: #fff;
  cursor: pointer; font-size: 22px;
}
.home-slider .prev { left: 5px; }
.home-slider .next { right: 5px; }

/* === TRAVAUX : mosaïque === */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* AJUSTER nombre de colonnes desktop */
  gap: 18px;                               /* AJUSTER marges identiques */
  margin: 24px 0 0;
}
.work { background: #ffffff; aspect-ratio: 3 / 4; /* AJUSTER format des blocs */ position: relative; }
.work .thumb {
  appearance: none; border: 0; background: transparent; padding: 0; cursor: pointer; width: 100%; height: 100%;
  display: grid; place-items: center;
}
.work img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;           /* image adaptée & centrée */
}

/* Panneau détail (modale) */
.detail-panel {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: none; align-items: center; justify-content: center; padding: 30px 18px;
  z-index: 1000;
}
.detail-panel.is-open { display: flex; }
.detail-box {
  background: #fff; width: min(1000px, 96vw); max-height: 92vh; position: relative; border: 1px solid #ddd;
}
.detail-close {
  position: absolute;   /* collée au panneau */
  top: 10px;
  right: -50px;         /* décale la croix vers l’extérieur */
  background: rgba(0,0,0,.7);
  color: #fff;
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 36px;
  border: none;
  cursor: pointer;
}
.detail-prev, .detail-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.7);
  color: #fff;
  width: 40px;
  height: 40px;
  font-size: 22px;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.detail-prev {
  left: -50px;   /* flèche à gauche du panneau */
}

.detail-next {
  right: -50px;  /* flèche à droite du panneau */
}
.detail-scroll {
  overflow: auto; max-height: calc(92vh - 16px); padding: 24px; 
}
.detail-content { display: grid; gap: 14px; }
.detail-media { display: grid; gap: 10px; }
.detail-media img { max-width: 100%; max-height: 80vh; object-fit: contain; display: block; margin: 0 auto; }
.legend { text-align: center; font-size: 14px; color: #444; }
.detail-text { max-width: 70ch; margin: 0 auto; } /* texte centré et confortable */

/* === Pages Bio / Contact : bloc central === */
.text-block {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre horizontalement */
    text-align: center;  /* Centre le texte */
    min-height: calc(100vh - 100px); /* Ajuste en fonction de la hauteur de ton header/footer */

  margin: 40px auto; width: min(800px, 90vw); 
}
.text-block img { display: block; margin: 16px auto; max-width: 100%; height: auto; }

/* Responsive */
@media (max-width: 900px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .works-grid { grid-template-columns: 1fr; }
  .home-slider { height: 300px; }
}
