@charset "UTF-8";
/* ========== Variables ========== */
:root {
  --font-serif: "Crimson Pro", serif;
  --text: #222;
  --text-strong: #000;
  --bg: #fff;
  --border: #cfcfd6;
  --nav-bg: #A9CFC6; /* vert entête */
}

/* ========== Base / Reset ========== */
html, body {
  font-family: var(--font-serif) !important;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6,
p, span, a, li, input, textarea, button, label, small, strong, em {
  font-family: var(--font-serif) !important;
}

* {
  border-radius: 0 !important;
}

/* Liens toujours noirs */
a, a:link, a:visited, a:hover, a:focus, a:active {
  color: var(--text) !important;
  text-decoration: none;
}

/* Boutons / éléments Spectre compatibles */
.btn, a.btn, .button, a.button, .btn-link, button, input[type=submit] {
  color: var(--text) !important;
  background: #fff;
  border: 1px solid var(--border);
}

/* ========== Navigation (fond fixe + textes noirs) ========== */
#header, .header, .site-header,
#header.scrolled, .header.scrolled, .site-header.scrolled,
body.scrolled #header, body.scrolled .header, body.scrolled .site-header {
  background: var(--nav-bg) !important;
  border-color: var(--nav-bg) !important;
  box-shadow: none !important;
}

#header .container, .header .container {
  background: transparent !important;
}

:root {
  --nav-link:#222;
  --nav-link-hover:#000;
}

body #header .navigation a,
body #header .navigation a:link,
body #header .navigation a:visited,
body #header .site-title a,
body #header .site-title a:link,
body #header .site-title a:visited,
body #header.scrolled .navigation a,
body #header.scrolled .navigation a:link,
body #header.scrolled .navigation a:visited,
body .header .navigation a,
body .header .navigation a:link,
body .header .navigation a:visited,
body .header.scrolled .navigation a,
body .header.scrolled .navigation a:link,
body .header.scrolled .navigation a:visited {
  color: var(--nav-link) !important;
  text-decoration: none !important;
}

body #header .navigation a:hover,
body #header .navigation a:focus,
body #header .navigation a:active,
body #header .navigation .active > a,
body #header .navigation li.selected > a,
body .header .navigation a:hover,
body .header .navigation a:focus,
body .header .navigation a:active {
  color: var(--nav-link-hover) !important;
}

/* dropmenus / états forcés */
body:is(.header-light, .header-transparent) #header .dropmenu ul > li > a,
body #header.scrolled .dropmenu ul > li > a,
body:is(.header-light, .header-transparent) #header .dropmenu ul ul a,
body #header.scrolled .dropmenu ul ul a {
  color: var(--nav-link) !important;
  background: transparent !important;
}

body:is(.header-light, .header-transparent) #header .dropmenu ul > li > a:is(.active, :focus, :hover),
body #header.scrolled .dropmenu ul > li > a:is(.active, :focus, :hover),
body:is(.header-light, .header-transparent) #header .dropmenu ul ul a:is(.active, :focus, :hover),
body #header.scrolled .dropmenu ul ul a:is(.active, :focus, :hover) {
  color: var(--nav-link-hover) !important;
}

/* thème header-dark (certains thèmes inversent les couleurs) */
body.header-dark #header:not(.scrolled) a,
body.header-dark #header:not(.scrolled) .navigation a,
body.header-dark #header:not(.scrolled) .dropmenu a {
  color: var(--nav-link) !important;
}

/* toggles/hamburger */
.nav-toggle, .menu-toggle, .navbar-toggle,
.nav-toggle:focus, .menu-toggle:focus, .navbar-toggle:focus,
.nav-toggle:hover, .menu-toggle:hover, .navbar-toggle:hover {
  color: var(--nav-link) !important;
  background: transparent !important;
  border-color: rgba(0, 0, 0, 0.25) !important;
}

.nav-toggle .bar, .menu-toggle .bar, .nav-toggle .line, .menu-toggle .line, .nav-toggle span, .menu-toggle span {
  background: var(--nav-link) !important;
}

/* Mobile: panneau */
@media (max-width: 900px) {
  .mobile-menu, .mobile-nav, .navigation, nav.navbar,
  #header .navigation, .header .navigation {
    background: var(--nav-bg) !important;
  }
  .mobile-menu a, .mobile-nav a, .navigation a {
    color: var(--nav-link) !important;
  }
}
/* ========== Galerie — Filtres & recherche ========== */
.gallery-filters {
  margin: 1rem 0;
}

/* Barre (bouton + recherche alignés) */
.gallery-filters .filters-bar {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: center;
}

/* Bouton Filtres */
.gallery-filters .filters-panel summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.25);
  color: var(--text);
  background: #fff;
  line-height: 1;
}

.gallery-filters .filters-panel summary::before {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-block;
  background: linear-gradient(currentColor, currentColor) 0 3px/18px 2px no-repeat, linear-gradient(currentColor, currentColor) 0 8px/18px 2px no-repeat, linear-gradient(currentColor, currentColor) 0 13px/18px 2px no-repeat;
  opacity: 0.8;
}

/* Recherche */
.gallery-filters .search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.gallery-filters .search-wrap input[type=search] {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  padding: 0 2.25rem;
  background: #fff;
}

.gallery-filters .search-wrap::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: radial-gradient(closest-side, var(--text) 60%, transparent 61%) 0 0/70% 70% no-repeat, linear-gradient(var(--text), var(--text)) 12px 12px/10px 2px no-repeat;
  opacity: 0.85;
  pointer-events: none;
}

.gallery-filters .search-wrap .btn {
  display: none;
}

/* Panneau de filtres qui POUSSE la page (sous la barre) */
.gallery-filters .filters-grid {
  display: none;
}

.gallery-filters .filters-panel[open] ~ .filters-grid {
  display: grid;
  grid-column: 1/-1;
  margin-top: 0.75rem;
  background: #efeff2;
  border: 1px solid #ddd;
  padding: 1rem;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* Champs */
.gallery-filters .filter-block .filter-title {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
  margin: 0 0 0.35rem;
}

.gallery-filters .filter-block small {
  display: block;
  opacity: 0.75;
  margin: 0.15rem 0;
}

.gallery-filters select {
  width: 100%;
  height: 36px;
  border: 1px solid var(--border);
  background: #fff;
}

.gallery-filters .dim-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.gallery-filters .filter-actions {
  grid-column: 1/-1;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 1100px) {
  .gallery-filters .filters-panel[open] ~ .filters-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}
@media (max-width: 700px) {
  .gallery-filters .filters-panel[open] ~ .filters-grid {
    grid-template-columns: 1fr;
  }
}
/* ========== Galerie — Grille ========== */
.section-title {
  margin: 1rem 0 0.75rem;
  padding: 0.4rem 0.75rem;
  background: #f1f1f3;
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.gallery-grid .gallery-item {
  display: block;
  text-decoration: none;
  color: var(--text) !important;
}

.gallery-grid .gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  background: #fff;
}

.gallery-grid .gallery-item:hover img {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.gallery-grid .caption {
  margin-top: 0.5rem;
  text-align: center;
}

.gallery-grid .caption .title {
  font-weight: 600;
}

.gallery-grid .caption .year {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ========== Single Œuvre ========== */
/* Header (titre réduit + ref sans cadre) */
.item-hero {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0.65rem !important;
  background: #f1f1f1;
  margin: 0.35rem auto 0.9rem;
}

.item-hero .item-title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.2rem, 0.85rem + 1.2vw, 1.6rem);
  line-height: 1.22;
}

.item-hero .item-ref {
  background: transparent;
  border: none;
  padding: 0;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .item-hero {
    padding: 0.3rem 0.55rem;
  }
  .item-hero .item-title {
    font-size: clamp(1.05rem, 0.9rem + 1.4vw, 1.4rem);
  }
  .item-hero .item-ref {
    font-size: 0.9rem;
  }
}
.item-wrap {
  position: relative;
  margin-bottom: 2rem;
}

.item-wrap .columns {
  row-gap: 1.25rem;
}

/* Visuel œuvre */
.item-figure {
  margin: 0;
}

.item-figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* Métadonnées */
.item-meta {
  display: grid;
  grid-auto-rows: auto;
  gap: 0.45rem 0;
}

.item-meta > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: baseline;
  column-gap: 0.5rem;
}

.item-meta dt {
  font-weight: 700;
}

.item-meta dd {
  margin: 0;
}

.item-description, .item-tags, .item-scan {
  margin-top: 0.75rem;
}

.item-scan a {
  text-decoration: underline;
}

/* Flèches de navigation */
.item-nav {
  position: relative;
  margin-top: 1rem;
}

.item-nav__prev, .item-nav__next {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  opacity: 0.9;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.item-nav__prev {
  left: -18px;
}

.item-nav__next {
  right: -18px;
}

.item-nav__prev:hover, .item-nav__next:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

@media (max-width: 840px) {
  .item-meta > div {
    grid-template-columns: 130px 1fr;
  }
  .item-nav__prev {
    left: -8px;
  }
  .item-nav__next {
    right: -8px;
  }
}
@media (max-width: 600px) {
  .item-meta > div {
    grid-template-columns: 120px 1fr;
  }
}

/*# sourceMappingURL=custom.css.map */
