/* assets/artiste.css
 * Styles specifiques a la page detail artiste.
 * Charge dans <head> via le helper $pageStyleHtml -> evite le FOUC.
 */

.artist-page{max-width:1180px;margin:0 auto;padding:36px 24px 72px}

/* --- En-tete / carte d'identite ------------------------------------------- */
.artist-hero{display:grid;grid-template-columns:280px minmax(0,1fr);gap:32px;background:#fff;border-radius:18px;padding:32px;box-shadow:0 10px 30px rgba(0,0,0,.06);margin-bottom:22px;scroll-margin-top:calc(var(--header-h,77px) + var(--tabs-h,60px) + 12px)}
.artist-photo{width:100%;min-height:340px;border-radius:14px;overflow:hidden;background:#f2f2f2;display:flex;align-items:center;justify-content:center}
.artist-photo.is-empty{min-height:0}
.artist-photo img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.artist-photo__placeholder{color:#777;padding:24px;text-align:center}
.artwork-zoom{position:relative;display:block;width:100%;height:100%;cursor:zoom-in}
.artwork-zoom__hint{position:absolute;right:10px;bottom:10px;padding:4px 10px;border-radius:999px;background:rgba(20,20,20,.65);color:#fff;font-size:.8rem;opacity:0;transition:opacity .15s}
.artwork-zoom:hover .artwork-zoom__hint,.artwork-zoom:focus-visible .artwork-zoom__hint{opacity:1}
.artwork-lightbox{max-width:100vw;max-height:100vh;width:100vw;height:100vh;margin:0;padding:0;border:0;background:transparent;cursor:zoom-out}
.artwork-lightbox::backdrop{background:rgba(0,0,0,.88)}
.artwork-lightbox[open]{display:flex;align-items:center;justify-content:center}
.artwork-lightbox img{max-width:96vw;max-height:94vh;width:auto;height:auto;object-fit:contain}
.artwork-lightbox__close{position:fixed;top:12px;right:16px;border:0;background:none;color:#fff;font-size:2.2rem;line-height:1;cursor:pointer}
.artist-hero__body{min-width:0}
.artist-hero__title{margin:0;font-size:clamp(1.9rem,3.6vw,2.7rem);line-height:1.06}
.artist-hero__dates{margin:8px 0 0;color:#666;font-size:1.02rem}
.artist-hero__lead{margin:14px 0 0;color:#444;line-height:1.6}

.artist-idcard{margin:18px 0 0;display:grid;gap:6px 22px}
.artist-idcard>div{display:grid;grid-template-columns:210px minmax(0,1fr);gap:4px 14px;padding:6px 0;border-top:1px solid rgba(20,20,20,.07)}
.artist-idcard>div:first-child{border-top:0}
.artist-idcard dt{margin:0;color:#6b6b6b;font-size:.85rem;font-weight:600;text-transform:uppercase;letter-spacing:.02em}
.artist-idcard dd{margin:0;color:#22303d}
.artist-idcard--attrs{margin-top:10px}
@media (max-width:620px){
  .artist-idcard>div{grid-template-columns:1fr}
  .artist-idcard dt{font-size:.78rem}
}

.artist-links{display:flex;flex-wrap:wrap;gap:14px;margin-top:16px}
.artist-links a{color:#0f4c81;text-decoration:none;font-weight:600}
.artist-links a:hover{text-decoration:underline}

/* Tags + fact-cards : encore utilises par oeuvre.php (meme feuille de style). */
.artist-tags{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 4px}
.artist-tag{display:inline-flex;align-items:center;padding:7px 12px;border-radius:999px;background:#f2f4f7;font-size:.85rem;color:#334}
.artist-summary{color:#444;line-height:1.65;margin:14px 0 0}
.artist-summary p{margin:0 0 12px}
.artist-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin:0 0 22px}
.fact-card{background:#fff;border-radius:16px;padding:24px;box-shadow:0 8px 24px rgba(0,0,0,.05)}
.fact-card h2{margin:0 0 14px;font-size:1.1rem}
.fact-card p,.fact-card li{line-height:1.65}
.fact-card ul{margin:0;padding-left:20px}

/* --- Barre d'onglets (ancien site : ScrollBar / navigationMap) ----------- */
.artist-tabs{
  position:sticky;
  top:var(--header-h,77px);
  z-index:15;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:10px;
  margin:0 0 22px;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(4px);
  border:1px solid var(--border,rgba(20,20,20,.1));
  border-radius:14px;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
}
.artist-tab{
  padding:7px 13px;
  border-radius:999px;
  font-size:.86rem;
  font-weight:600;
  color:#2a3a49;
  text-decoration:none;
  white-space:nowrap;
  background:#f1f3f7;
}
.artist-tab:hover{background:#e6eaf1;text-decoration:none}
.artist-tab.is-active{background:var(--navy,#1f2f4a);color:#fff}

/* --- Sections ----------------------------------------------------------- */
.sections-grid{display:grid;gap:20px}
.section-card{background:#fff;border-radius:16px;padding:24px;box-shadow:0 8px 24px rgba(0,0,0,.05);scroll-margin-top:calc(var(--header-h,77px) + var(--tabs-h,60px) + 12px)}
.section-card h2{margin:0 0 14px;font-size:1.1rem}
.section-card p,.section-card li{line-height:1.65}
.section-card ul{margin:0;padding-left:20px}
.section-card li{margin:0 0 6px}
.section-card__html{color:#2f3742}
.section-card__html p:first-child{margin-top:0}
.section-card__html p:last-child{margin-bottom:0}
.section-card__muted{color:#777;font-size:.9em}
.video-frame{width:100%;aspect-ratio:16/9;border:0;border-radius:12px}
.video-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px}
.artist-artworks__head{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;justify-content:space-between;margin:0 0 14px}
.artist-artworks__head h2{margin:0}

@media (max-width:860px){
  .artist-page{padding:24px 16px 56px}
  .artist-hero{grid-template-columns:1fr;padding:22px}
  .artist-photo{max-width:340px}
  .artist-tabs{top:var(--header-h,125px)}
}
