@charset "UTF-8";
.mobile-menu button.button_container {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
}
.mobile-menu #toggle span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--nav-link) !important;
}
.mobile-menu button.button_container:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 5px;
}
/* ========== Variables ========== */
:root {
  --font-serif: "Crimson Pro", serif;
  --text: #222;
  --links: #7caea2 ;
  --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(--links) !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;
  font-size: 1.5em;
}

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;
  font-size: 1.5em;
}

/* 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;
  font-size: 1.5em;
}

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;
  font-size: 1.5em;
}

/* 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;
  font-size: 1.5em;
}

/* 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.096;
}

.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: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='black' fill='none' stroke-width='2'><circle cx='11' cy='11' r='7'/><line x1='16.5' y1='16.5' x2='22' y2='22'/></svg>");
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  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.0224em;
  font-size: 0.952rem;
  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: 1.008rem;
  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.5053rem, 1.0662rem + 1.5053vw, 2.007rem);
  line-height: 1.337;
}

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

@media (max-width: 640px) {
  .item-hero {
    padding: 0.3rem 0.55rem;
  }
  .item-hero .item-title {
    font-size: clamp(1.3171rem, 1.129rem + 1.7562vw, 1.7562rem);
  }
  .item-hero .item-ref {
    font-size: 1.008rem;
  }
}
.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;
}

.js-inline-edit[data-edit-placeholder]:empty::before {
  content: attr(data-edit-placeholder);
  color: #777;
  font-style: italic;
}

.inline-edit-input {
  min-width: 220px;
  max-width: 100%;
  height: 36px;
  padding: 0 0.5rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

/* 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: 22.4px;
  line-height: 1.096;
  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;
  }
}
/* ========== Pagination ========== */
.pagination-bar {
  margin: 2rem auto;
  text-align: center;
}
.pagination-bar .pagination-info {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.75;
}
.pagination-bar .pagination-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pagination-bar .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  background: #fff;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.pagination-bar .page-link:hover {
  background: var(--nav-bg);
  color: #000;
  transform: translateY(-1px);
}
.pagination-bar .page-link.current {
  background: var(--nav-bg);
  color: #000;
  font-weight: 700;
  cursor: default;
}
.pagination-bar .page-link.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

/* ========== Navigation Siblings (œuvres) ========== */
.item-siblings {
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}
.item-siblings .sibling-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 40px;
  padding: 0 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.item-siblings .sibling-link:hover {
  background: var(--nav-bg);
  color: #000;
  transform: translateY(-1px);
}
.item-siblings .sibling-link.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ========== Modal Scan (image JPG) ========== */
.no-scroll {
  overflow: hidden;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85); /* noir semi-opaque */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 9999;
}
.modal-overlay[aria-hidden=false] {
  display: flex;
}

.modal-dialog {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
}

.modal-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 36px;
  height: 36px;
  border: none;
  background: #fff;
  color: #000;
  font-size: 1.4rem;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.scan-modal {
  padding: 1rem;
}
.scan-modal .modal-dialog {
  width: auto;
  max-width: 98vw;
  max-height: 96vh;
}
.scan-modal .modal-body {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
}
.scan-modal .modal-image {
  max-width: 96vw;
  max-height: 94vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Lien qui déclenche la modale */
.item-scan .scan-link {
  color: var(--text);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.15s;
}
.item-scan .scan-link:hover {
  color: var(--nav-link-hover, #000);
}

/* ========== Layout — Sections larges ========== */
#start .container.grid-xl {
  padding-top: 3.4em;
}
#start #body-wrapper .container.grid-xl {
  padding-top: 0;
}
#start #body-wrapper .container p {
  font-size: 20px;
}
#start .modular-text .container p {
  font-size: 20px;
}

/* ========== Overlay / Menu mobile — aligné desktop ========== */
.overlay {
  background: var(--nav-bg) !important;
  border-color: var(--nav-bg) !important;
  box-shadow: none !important;
  /* suppression des effets “mobile” classiques */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  /* typographie identique au header */
  font-family: var(--font-serif);
}

/* Liens du menu mobile */
.overlay a,
.overlay a:link,
.overlay a:visited {
  color: var(--nav-link) !important;
  font-size: 1.5em;
  font-weight: normal;
  text-decoration: none !important;
}

/* États hover / actif */
.overlay a:hover,
.overlay a:focus,
.overlay a:active,
.overlay .active,
.overlay .active > a,
.overlay li.selected > a {
  color: var(--bg) !important;
  text-decoration: none !important;
}

/* Listes / items */
.overlay ul,
.overlay li {
  background: transparent !important;
  border: none !important;
}

.overlay .toggler {
  display: none;
}

/* Bouton fermeture / hamburger */
.overlay .close,
.overlay .nav-toggle,
.overlay .menu-toggle {
  color: var(--nav-link) !important;
  background: transparent !important;
  border: none !important;
}

.button.btn-primary,
.btn.btn-primary {
  background-color: #a9cfc6 !important;
  border-color: #a9cfc6 !important;
  color: #000 !important;
}
.button.btn-primary:hover, .button.btn-primary:focus, .button.btn-primary:active,
.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active {
  background-color: #8fc0b5 !important;
  border-color: #8fc0b5 !important;
  color: #000 !important;
}

.suggestion-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
  text-decoration: underline;
}
.suggestion-link:hover {
  color: #333;
}

.suggestion-modal-body {
  padding: 1.5rem;
  background-color: #fff;
  border-radius: 6px;
  width: 100%;
}

.suggestion-title {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: #333;
  font-weight: 600;
}

.suggestion-intro {
  margin-bottom: 1.5rem;
  color: #666;
  line-height: 1.5;
  font-size: 0.95rem;
}

.suggestion-form {
  margin-top: 1rem;
}
.suggestion-form .form-group {
  margin-bottom: 1.2rem;
}
.suggestion-form .form-group .form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
}
.suggestion-form .form-group .form-input,
.suggestion-form .form-group .form-select,
.suggestion-form .form-group .form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
}
.suggestion-form .form-group .form-input::placeholder,
.suggestion-form .form-group .form-select::placeholder,
.suggestion-form .form-group .form-textarea::placeholder {
  color: #999;
  font-style: italic;
}
.suggestion-form .form-group .form-input:focus,
.suggestion-form .form-group .form-select:focus,
.suggestion-form .form-group .form-textarea:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}
.suggestion-form .form-group .form-textarea {
  resize: vertical;
  min-height: 120px;
}
.suggestion-form .button-wrapper {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.suggestion-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
}
.suggestion-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.suggestion-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.suggestion-modal .modal-dialog {
  max-width: 600px;
  width: 90%;
}
.suggestion-modal .modal-dialog h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  color: #333;
}
.suggestion-modal .modal-dialog > p {
  margin-bottom: 1.5rem;
  color: #666;
  line-height: 1.5;
}

.suggestion-modal .modal-body {
  display: block !important;
  width: 100% !important;
}

/* CAPTCHA: hauteur homogène et bouton de rechargement compact. */
.basic-captcha .form-input-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.basic-captcha .form-input-prepend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  background: transparent;
}
.basic-captcha .form-input-prepend img {
  display: block;
  width: auto;
  height: 44px;
  max-width: 100%;
  object-fit: contain;
}
.basic-captcha .reload-captcha-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 0;
  margin: 0;
  padding: 0;
  line-height: 1;
}
.basic-captcha .reload-captcha-button svg {
  display: block;
  width: 20px;
  height: 20px;
}
.basic-captcha .form-input-wrapper > input {
  flex: 1 1 180px;
  min-width: 0;
  width: 100%;
  height: 44px;
  box-sizing: border-box;
}

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