/* ============================================================
   Philippe Gueguen, sculpteur — feuille de style (v0)
   Reproduction fidèle du thème d'origine, réécrite en CSS natif.
   ============================================================ */

:root {
  --noir:        #000000;
  --accent:      #d25830;   /* terracotta de la marque */
  --gris-txt:    #a3a3a3;   /* texte de navigation */
  --gris-clair:  #cfcfcf;
  --gris-slide:  #e9e9e9;   /* fond des photos (gris atelier) */
  --sidebar-w:   265px;
  --font-titre:  'Dosis', 'Trebuchet MS', sans-serif;
  --font-corps:  'Open Sans', Arial, sans-serif;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--noir);
  color: var(--gris-txt);
  font-family: var(--font-corps);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gris-txt); text-decoration: none; transition: color .2s ease; }
a:hover, a:focus { color: var(--accent); }

img { max-width: 100%; display: block; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: .6rem 1rem;
}
.skip-link:focus { left: 0; color: #fff; }

/* ============================================================
   Barre latérale
   ============================================================ */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--noir);
  display: flex;
  flex-direction: column;
  padding: 34px 28px 24px;
  z-index: 20;
  overflow-y: auto;
}

.sidebar__top { flex: 0 0 auto; }

.brand { display: inline-block; margin-bottom: 40px; }
.brand__logo { width: 192px; height: auto; }

/* bouton navigation : masqué sur grand écran, visible en mobile */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: #141414;
  border: 0;
  color: var(--gris-clair);
  font-family: var(--font-titre);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 14px;
  padding: 12px 14px;
  cursor: pointer;
}
.nav-toggle__arrow {
  width: 0; height: 0; margin-left: auto;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid var(--accent);
  transition: transform .25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__arrow { transform: rotate(180deg); }

/* ============================================================
   Navigation
   ============================================================ */
.nav { flex: 1 1 auto; margin-top: 8px; }
.nav__list { list-style: none; margin: 0; padding: 0; }

.nav__link {
  display: block;
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gris-txt);
  padding: 9px 0;
}
.nav__link:hover,
.nav__link:focus,
.nav__link.is-active { color: var(--accent); }

.nav__sub {
  list-style: none;
  margin: 2px 0 6px;
  padding: 0 0 0 14px;
  border-left: 1px solid #2a2a2a;
}
.nav__sub a {
  display: block;
  font-family: var(--font-titre);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8a8a8a;
  padding: 6px 0;
}
.nav__sub a:hover, .nav__sub a:focus { color: var(--accent); }

.sidebar__foot { flex: 0 0 auto; padding-top: 24px; }
.copy {
  font-family: var(--font-titre);
  font-size: 12px;
  letter-spacing: .08em;
  color: #6a6a6a;
  margin: 0;
  line-height: 1.9;
}
.copy a { color: #6a6a6a; }
.copy a:hover { color: var(--accent); }

/* ============================================================
   Zone principale + diaporama
   ============================================================ */
.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--gris-slide);
}

.slider {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 50% 30%, #f4f4f4 0%, var(--gris-slide) 60%, #dcdcdc 100%);
}

.slider__track { list-style: none; margin: 0; padding: 0; height: 100%; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide.is-active { opacity: 1; visibility: visible; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

/* flèches */
.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border: 0;
  background: rgba(0,0,0,.04);
  color: #8a8a8a;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
  z-index: 3;
}
.slider__arrow:hover, .slider__arrow:focus { color: var(--accent); background: rgba(0,0,0,.08); }
.slider__arrow--prev { left: 8px; }
.slider__arrow--next { right: 8px; }

/* pastilles */
.slider__dots {
  position: absolute;
  left: 0; right: 0; bottom: 26px;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 3;
}
.slider__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 0;
  background: #b7b7b7;
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.slider__dot:hover { background: #8a8a8a; }
.slider__dot.is-active { background: var(--accent); transform: scale(1.15); }

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 860px) {
  body { display: flex; flex-direction: column; min-height: 100%; height: auto; }
  .sidebar__top, .nav, .main, .sidebar__foot { flex: 0 0 auto; }
  .sidebar { display: contents; }
  .sidebar__top {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 0;
  }
  .nav { order: 2; padding: 0 20px; }
  .main { order: 3; }
  .sidebar__foot { order: 4; }
  .brand { margin-bottom: 0; }
  .brand__logo { width: 150px; }

  .nav-toggle { display: flex; width: auto; }

  .nav {
    margin-top: 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav.is-open { max-height: 1200px; }

  .sidebar__foot {
    padding: 22px 20px;
    background: #000;
    border-top: 1px solid #1c1c1c;
  }

  .main { margin-left: 0; }
  .main:not(.main--page) { min-height: 0; }
  .slider { height: 72vh; height: 72dvh; }
}

@media (max-width: 480px) {
  .slider { height: 64vh; height: 64dvh; }
}

/* respect des préférences de mouvement */
@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}

/* ============================================================
   Pages intérieures (contenu défilant)
   ============================================================ */
.main--page {
  background: #f6f5f3;
  color: #45413d;
}
.page-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 66px 48px 110px;
}
.page-header { margin-bottom: 38px; }
.page-title {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #33302c;
  margin: 0 0 14px;
}
.page-title::after {
  content: "";
  display: block;
  width: 54px; height: 3px;
  background: var(--accent);
  margin-top: 16px;
}
.page-lead {
  font-size: 18px;
  color: #6a655f;
  max-width: 70ch;
}
.content h2 {
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 40px 0 14px;
}
.content h3 {
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .06em;
  color: #33302c;
  margin: 26px 0 10px;
}
.content p { margin: 0 0 16px; max-width: 72ch; color: #4b4641; }
.content ul { max-width: 72ch; padding-left: 20px; margin: 0 0 18px; }
.content li { margin-bottom: 8px; }
.content a { color: var(--accent); }
.content a:hover { text-decoration: underline; }
.content strong { color: #33302c; }

/* deux colonnes l'artiste */
.cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}
.cols__media img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  margin-bottom: 18px;
}
.infobox {
  background: #fff;
  border: 1px solid #e6e2dc;
  border-left: 3px solid var(--accent);
  padding: 22px 24px;
  margin-bottom: 26px;
}
.infobox h3 { margin-top: 0; }
.infobox p { margin: 6px 0; font-size: 15px; }
.infobox a { color: var(--accent); }

/* ============================================================
   Barre de filtres portfolio
   ============================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.filter-btn {
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6a655f;
  background: transparent;
  border: 1px solid #d8d3cc;
  padding: 9px 16px;
  cursor: pointer;
  transition: all .18s ease;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================
   Grille portfolio / galerie
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}
.card__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9e9e9;
}
.card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease, opacity .3s ease;
}
.card:hover .card__img img { transform: scale(1.06); }
.card__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
}
.card__title {
  display: block;
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .04em;
  margin: 0;
  color: #fff;
}
.card__cat {
  display: block;
  font-family: var(--font-titre);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 3px;
}
.card__count {
  position: absolute;
  top: 10px; right: 12px;
  font-family: var(--font-titre);
  font-size: 11px;
  letter-spacing: .08em;
  color: #fff;
  background: rgba(0,0,0,.45);
  padding: 3px 8px;
  border-radius: 10px;
}
.is-hidden { display: none !important; }
.empty-note { color: #8a857e; padding: 20px 0; }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12,12,12,.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 88vw;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 10px 50px rgba(0,0,0,.6);
}
.lightbox__cap {
  position: absolute;
  left: 0; right: 0; bottom: 26px;
  text-align: center;
  color: #e7e7e7;
  font-family: var(--font-corps);
  font-size: 15px;
  padding: 0 20px;
}
.lightbox__cap strong {
  font-family: var(--font-titre);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}
.lightbox__btn {
  position: absolute;
  background: none; border: 0;
  color: #cfcfcf;
  font-size: 44px;
  cursor: pointer;
  padding: 10px 18px;
  transition: color .2s ease;
}
.lightbox__btn:hover { color: var(--accent); }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-close { top: 10px; right: 14px; font-size: 34px; }
.lightbox__counter {
  position: absolute;
  top: 18px; left: 22px;
  color: #bdbdbd;
  font-family: var(--font-titre);
  font-size: 13px;
  letter-spacing: .1em;
}

/* ============================================================
   Actualités
   ============================================================ */
.news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.news-card {
  background: #fff;
  border: 1px solid #e6e2dc;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.news-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.1); transform: translateY(-2px); }
.news-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: #efece7; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { display: block; padding: 18px 20px 22px; }
.news-card__date {
  display: block;
  font-family: var(--font-titre);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.news-card__title {
  display: block;
  font-family: var(--font-titre); font-weight: 600; font-size: 17px;
  color: #33302c; margin: 0 0 8px; line-height: 1.3;
}
.news-card__excerpt { display: block; font-size: 14px; color: #6a655f; margin: 0; }

/* article */
.article { max-width: 780px; margin: 0 auto; }
.article__date {
  font-family: var(--font-titre); font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.article__media img { width: 100%; border-radius: 2px; margin: 10px 0 26px; box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.backlink {
  display: inline-block; margin-top: 30px;
  font-family: var(--font-titre); font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}

/* ============================================================
   Pages intérieures — mobile
   ============================================================ */
@media (max-width: 860px) {
  .main--page { margin-left: 0; }
  .page-wrap { padding: 36px 22px 72px; }
  .cols { grid-template-columns: 1fr; gap: 28px; }
  .page-title { font-size: 24px; }
}
