/* =========================================================
   TABGALERIE – œuvres + artistes (oeuvres.css)
   Chargé dans header.php après style.css, sur toutes les pages.
   1. Cartes œuvres (/oeuvres + slider de l'accueil)
   2. Filtres (/oeuvres + /artistes)
   3. Pagination (/oeuvres + /artistes)
   4. Artistes (/artistes)
   ========================================================= */

/* ---------------------------------------------------------
   1. Cartes œuvres
   --------------------------------------------------------- */
#gallery-results .list-grid-product-wrap .item {
  display: flex;                       /* toutes les cartes d'une ligne à la même hauteur */
}

.oeuvre-card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Cadre image : hauteur fixe (4:3, comme le slider de l'accueil), œuvre centrée sur fond gris-bleu */
.auction-card.oeuvre-card .auction-card-img-wrap .card-img.oeuvre-img {
  aspect-ratio: 4 / 3;
  background: #eef2f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

/* L'image remplit le cadre (agrandie si besoin), sans être déformée */
.auction-card.oeuvre-card .auction-card-img-wrap .card-img.oeuvre-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* Pas de photo : appareil barré */
.oeuvre-card .no-photo-icon {
  display: none;
  width: 64px;
  height: 64px;
  fill: none;
  stroke: #91a5b2;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.oeuvre-card .oeuvre-img.no-photo .no-photo-icon {
  display: block;
}

/* Badges Vendu / Sous option */
.oeuvre-card .auction-card-img-wrap .batch {
  z-index: 2;
}

.oeuvre-card .auction-card-img-wrap .batch span.vendu {
  background-color: #DF2121;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Contenu */
.auction-card.general-art.oeuvre-card .auction-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 15px 18px;
}

/* Titre : bandeau blanc sur gris-bleu */
.oeuvre-card .oeuvre-titre {
  margin: 0 -15px 12px;
  padding: 9px 12px;
  background: #91a5b2;
  text-align: center;
  font-family: var(--font-worksans);
  font-size: 15px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  min-height: calc(2 * 1.35em + 18px);   /* 2 lignes réservées : bandeaux alignés */
  display: flex;
  align-items: center;
  justify-content: center;
}

.oeuvre-card .oeuvre-titre a {
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.oeuvre-card .oeuvre-titre a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Lignes d'infos resserrées */
.auction-card .auction-card-content ul.oeuvre-infos {
  margin-bottom: 12px;
}

.auction-card .auction-card-content ul.oeuvre-infos li {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 2px;
  color: var(--text-color);
}

.auction-card .auction-card-content ul.oeuvre-infos li.oeuvre-artiste {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.oeuvre-card .flag {
  width: 16px;
  height: auto;
  margin-left: 4px;
  vertical-align: baseline;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Prix + bouton, toujours en bas de carte */
.oeuvre-card .oeuvre-bas {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.oeuvre-card .oeuvre-prix {
  font-family: var(--font-worksans);
  font-size: 20px;
  font-weight: 700;
  color: var(--title-color);
  white-space: nowrap;
}

.oeuvre-card .oeuvre-prix.is-text {
  font-size: 15px;
  font-weight: 600;
  color: #5f7482;
}

.oeuvre-card .oeuvre-prix.is-sold {
  color: #DF2121;
  text-transform: uppercase;
}

/* Bouton « En détail » : le cercle de survol part du centre
   (main.js ne positionne pas le cercle sur les cartes chargées en HTMX) */
.oeuvre-card .auction-card-content .bid-btn strong {
  left: 50%;
  top: 50%;
}

.oeuvre-card .auction-card-content .bid-btn:hover strong {
  width: 260%;
  height: 600px;
}

.oeuvre-card.is-sold .oeuvre-img img {
  opacity: 0.85;
}

/* Mobile : 2 cartes par ligne, contenu resserré */
@media (max-width: 575.98px) {
  #gallery-results .list-grid-product-wrap .row {
    --bs-gutter-x: 12px;                 /* moins d'espace entre les 2 colonnes */
  }
  .auction-card.oeuvre-card .auction-card-img-wrap .card-img.oeuvre-img {
    padding: 5px;
  }
  .auction-card.general-art.oeuvre-card .auction-card-content {
    padding: 0 10px 12px;
  }
  .oeuvre-card .oeuvre-titre {
    margin: 0 -10px 8px;
    padding: 6px 8px;
    font-size: 13px;
    min-height: calc(2 * 1.35em + 12px);
  }
  .auction-card .auction-card-content ul.oeuvre-infos {
    margin-bottom: 8px;
  }
  .auction-card .auction-card-content ul.oeuvre-infos li {
    font-size: 12px;
  }
  .oeuvre-card .oeuvre-bas {
    flex-direction: row;
    flex-wrap: wrap;                     /* passe sous le prix seulement si vraiment trop long */
    align-items: center;
    justify-content: space-between;
    gap: 4px;
  }
  .oeuvre-card .oeuvre-prix {
    font-size: 15px;
  }
  .oeuvre-card .oeuvre-prix.is-text {
    font-size: 12px;
    white-space: normal;
  }
  #gallery-results .oeuvre-card .auction-card-content .bid-btn {
    margin-left: auto;                   /* toujours calé à droite */
    padding: 4px 7px;
    font-size: 12px;
  }
}

/* 4 cartes par ligne (≥ 992 px) : prix et bouton sur une seule ligne */
@media (min-width: 992px) {
  .oeuvre-card .oeuvre-bas {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .oeuvre-card .oeuvre-prix {
    font-size: 17px;
  }
  .oeuvre-card .oeuvre-prix.is-text {
    font-size: 14px;
  }
  #gallery-results .oeuvre-card .auction-card-content .bid-btn {
    padding: 7px 12px;
    font-size: 14px;
  }
}

/* ---------------------------------------------------------
   Slider « Nos dernières œuvres » (accueil)
   --------------------------------------------------------- */
.home1-generat-art-slider .swiper-slide {
  height: auto;                        /* toutes les cartes du slider à la même hauteur */
  display: flex;
}


/* ---------------------------------------------------------
   2. Filtres (/oeuvres + /artistes)
   --------------------------------------------------------- */
.filter-card {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
}

.filter-card .form-select,
.filter-card .form-control {
  font-size: 13px;
}

.filter-card .form-check-label {
  font-size: 13px;
  color: #6c757d;
}

.btn-reset {
  font-size: 13px;
  border-color: #dee2e6;
  color: #6c757d;
  background: transparent;
}

.btn-reset:hover {
  background: #f8f9fa;
  color: #212529;
  border-color: #adb5bd;
}

/* Curseurs doubles (prix, largeur, hauteur) */
.range-label {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 0.35rem;
}

.range-label .range-val {
  font-weight: 600;
  color: #212529;
}

.dual-range {
  position: relative;
  height: 36px;
}

.dual-range .track-bg {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 4px;
  background: #dee2e6;
  border-radius: 2px;
}

.dual-range .track-fill {
  position: absolute;
  top: 18px;
  height: 4px;
  background: #212529;
  border-radius: 2px;
}

.dual-range input[type=range] {
  position: absolute;
  width: 100%;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  height: 4px;
  top: 16px;
  margin: 0;
  padding: 0;
}

.dual-range input[type=range]::-webkit-slider-thumb {
  pointer-events: all;
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #212529;
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 0 0 1px #adb5bd;
}

.dual-range input[type=range]::-moz-range-thumb {
  pointer-events: all;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #212529;
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 0 0 1px #adb5bd;
}

.dual-range input[type=range]:focus {
  outline: none;
}

.dual-range input[type=range]:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(33, 37, 41, 0.25);
}

/* Recherche dans les listes déroulantes (nice-select) */
.filter-card .nice-select .list {
  max-height: 320px;
  overflow-y: auto;
}

.filter-card .nice-select .ns-search {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  padding: 6px 8px;
  border-bottom: 1px solid #eee;
  cursor: default;
}

.filter-card .nice-select .ns-search input {
  width: 100%;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-size: 13px;
  line-height: 30px;
}

.filter-card .nice-select .ns-search input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.filter-card .nice-select .ns-empty {
  padding: 6px 18px;
  font-size: 12px;
  color: #6c757d;
  cursor: default;
}

/* Indicateur HTMX + léger fondu des résultats pendant le chargement */
.htmx-indicator {
  font-size: 12px;
  color: #6c757d;
  opacity: 0;
  transition: opacity 0.2s;
}

.htmx-indicator.htmx-request {
  opacity: 1;
}

#gallery-results {
  transition: opacity 0.2s;
}

#gallery-results.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

/* Filtres « sticky » en desktop, seulement si l'écran est assez haut pour tout le bloc
   (nécessite body { overflow-x: clip } : voir style.css) */
@media (min-width: 1200px) and (min-height: 720px) {
  .auction-card-sidebar-section .sidebar-area {
    position: sticky;
    top: calc(var(--header-h, 91px) + 20px);
  }
}


/* ---------------------------------------------------------
   3. Pagination (/oeuvres + /artistes)
   --------------------------------------------------------- */
.pagination .dots span {
  display: inline-block;
  padding: 0 4px;
  color: #6c757d;
}

.prev-next-btn a.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.page-jump {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6c757d;
  margin: 0;
}

.page-jump input {
  width: 64px;
  height: 34px;
  padding: 0 6px;
  text-align: center;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 13px;
  color: var(--title-color);
}

.page-jump input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Mobile : « prec » et « suiv » sur la même ligne, numéros et saut de page en dessous */
@media (max-width: 767.98px) {
  .page-navigation-area {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    row-gap: 15px;
  }
  .page-navigation-area > .prev-next-btn:first-child { order: 1; }
  .page-navigation-area > .prev-next-btn:last-child  { order: 2; margin-left: auto; }
  .page-navigation-area > div:not(.prev-next-btn)    { order: 3; width: 100%; }
}


/* ---------------------------------------------------------
   4. Artistes (/artistes)
   --------------------------------------------------------- */
/* Lettres A–Z : 7 colonnes qui restent dans le cadre */
.filter-card .abcdaire {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
}

.filter-card .abcdaire a,
.filter-card .abcdaire span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #262e37;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.filter-card .abcdaire a:hover { background: #eef2f5; }
.filter-card .abcdaire a.active { background: #262e37; border-color: #262e37; color: #fff; }
.filter-card .abcdaire span { color: #c3cad0; border-color: #eef0f2; cursor: default; }   /* lettre sans artiste */
.filter-card .abcdaire a.tous { grid-column: span 2; font-weight: 500; }

/* Fiches artistes : pleine largeur, compactes, bouton en bas
   (le template met « margin-bottom: 25px !important » sur tous les <p> : on l'annule ici) */
#gallery-results .auction-card.artiste-card {
  width: 100%;
  height: auto;
  padding: 0;
}

#gallery-results .artiste-card .auction-card-content.artist {
  padding: 12px 16px;
}

#gallery-results .artiste-card .artiste-nom {
  font-size: 18px;
  margin: 0;
  padding: 0;
  line-height: 1.3;
}

#gallery-results .artiste-card .artiste-nom a { color: #262e37; }
#gallery-results .artiste-card .artiste-nom a:hover { color: #91a5b2; }

#gallery-results .artiste-card .artiste-nom .flag {
  width: 16px;
  height: auto;
  margin-left: 6px;
  vertical-align: middle;
}

#gallery-results .artiste-card p {
  margin: 0 !important;
  padding: 0;
}

#gallery-results .artiste-card p.artiste-dates {
  font-size: 13px;
  font-style: italic;
  line-height: 1.4;
  color: #6c757d;
  margin-top: 2px !important;
}

#gallery-results .artiste-card p.artiste-descri {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 6px !important;
}

#gallery-results .artiste-card .artiste-plus {
  display: inline;
  border: 0;
  background: none;
  padding: 0;
  margin-left: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #262e37;
  text-decoration: underline;
  cursor: pointer;
}

/* Bouton « Voir les œuvres » en bas du cadre (à droite en desktop, à gauche en mobile) */
#gallery-results .artiste-card .artiste-bas {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

#gallery-results .artiste-card .artiste-btn {
  padding: 5px 14px;
  font-size: 14px;
}

@media (max-width: 767.98px) {
  #gallery-results .artiste-card .artiste-bas {
    justify-content: flex-start;
  }
}


/* ---------------------------------------------------------
   5. Filtres en panneau latéral sur mobile / tablette (< 1200 px)
      JS : assets/js/filtres-mobile.js (/oeuvres + /artistes)
   --------------------------------------------------------- */
.filtres-toggle,
.filtres-backdrop,
.filtres-panel-head,
.filtres-panel-foot {
  display: none;
}

@media (max-width: 1199.98px) {
  /* Bouton « Filtres » fixe en bas à gauche */
  .filtres-toggle {
    position: fixed;
    left: 30px;
    bottom: 55px;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 0;
    border-radius: 30px;
    background: #262e37;
    color: #fff;
    font-family: var(--font-worksans);
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
        width: 70%;
    justify-content: center;
  }

  .filtres-toggle .filtres-nb {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #fff;
    color: #262e37;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
  }

  /* Le bloc de filtres devient un panneau qui glisse depuis la gauche */
  .auction-card-sidebar-section .sidebar-area.filtres-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1060;
    width: min(380px, 88vw);
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    transform: translateX(-105%);
    visibility: hidden;
  }

  /* Animations seulement une fois la page prête (pas de panneau qui « passe » au chargement) */
  html.filtres-pret .auction-card-sidebar-section .sidebar-area.filtres-panel {
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
  }

  html.filtres-ouverts .auction-card-sidebar-section .sidebar-area.filtres-panel {
    transform: translateX(0);
    visibility: visible;
  }

  html.filtres-pret.filtres-ouverts .auction-card-sidebar-section .sidebar-area.filtres-panel {
    transition: transform 0.3s ease, visibility 0s;
  }

  /* Contenu du panneau : en-tête et pied fixes, filtres défilants */
  .filtres-panel .filter-card {
    flex: 1;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    padding: 1rem 1.25rem;
  }

  .filtres-panel .filtres-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #dee2e6;
  }

  .filtres-panel .filtres-panel-titre {
    font-family: var(--font-worksans);
    font-size: 18px;
    font-weight: 600;
    color: #262e37;
  }

  .filtres-panel .filtres-fermer {
    border: 0;
    background: none;
    padding: 0 4px;
    font-size: 30px;
    line-height: 1;
    color: #262e37;
  }

  .filtres-panel .filtres-panel-foot {
    display: block;
    padding: 12px 20px;
    border-top: 1px solid #dee2e6;
  }

  .filtres-panel .filtres-voir {
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 6px;
    background: #262e37;
    color: #fff;
    font-family: var(--font-worksans);
    font-size: 15px;
    font-weight: 600;
  }

  /* Fond sombre derrière le panneau */
  .filtres-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
  }

  html.filtres-pret .filtres-backdrop {
    transition: opacity 0.3s;
  }

  html.filtres-ouverts .filtres-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  /* Page derrière bloquée pendant que le panneau est ouvert */
  html.filtres-ouverts,
  html.filtres-ouverts body {
    overflow: hidden !important;
  }

  /* La colonne des filtres (vide en mobile) ne laisse pas de trou sous les résultats */
  .auction-card-sidebar-section .col-xl-3:has(.filtres-panel) {
    margin-top: 0;
    padding-top: 0;
  }
}
@media (max-width: 767.98px) {
  .filtres-toggle {
        left: 20px;
    bottom: 20px;
  }
}


/* ---------------------------------------------------------
   6. Filtres compacts + filtres actifs (/oeuvres, /a-attribuer, /vendus, /artistes)
   --------------------------------------------------------- */
.filter-card {
  padding: 1rem 1.1rem;
}

.filter-card .filtres-ligne {
  --bs-gutter-x: 8px;
  --bs-gutter-y: 8px;
}

/* Listes et champ de recherche : 40 px au lieu de 52 px */
.filter-card .nice-select,
.filter-card input.nice-select[type=text] {
  height: 40px;
  padding: 0 28px 0 12px;
  border: 1px solid transparent;
}

.filter-card .nice-select .current,
.filter-card input.nice-select[type=text],
.filter-card input.nice-select[type=text]::placeholder {
  font-size: 13px;
}

.filter-card .nice-select .current {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.filter-card .nice-select::after {
  right: 13px;
  width: 7px;
  height: 7px;
}

/* Options : texte long sur 2 lignes plutôt que coupé (listes plus étroites sur 2 colonnes) */
.filter-card .nice-select .list .option {
  padding: 7px 12px;
  min-height: 0;
  line-height: 1.3;
  white-space: normal;
}

/* Cases à cocher et curseurs resserrés */
.filter-card .form-check-label {
  font-size: 12px;
}

.filter-card .filtres-curseurs {
  --bs-gutter-y: 6px;
}

.filter-card .range-label {
  margin-bottom: 0;
}

.filter-card .dual-range {
  height: 28px;
}

.filter-card .dual-range .track-bg,
.filter-card .dual-range .track-fill {
  top: 13px;
}

.filter-card .dual-range input[type=range] {
  top: 11px;
}

/* Lettres A–Z un peu plus basses */
.filter-card .abcdaire a,
.filter-card .abcdaire span {
  height: 26px;
}

/* --- Filtre actif : bordure foncée, fond gris-bleu, texte en gras --- */
.filter-card .nice-select.is-active,
.filter-card input.nice-select[type=text].is-active {
  border-color: #262e37;
  background: #eef2f5;
}

.filter-card .nice-select.is-active .current,
.filter-card input.nice-select[type=text].is-active {
  color: #262e37;
  font-weight: 600;
}

.filter-card .nice-select.is-active::after {
  border-color: #262e37;
}

/* --- Pastilles des filtres actifs, au-dessus des résultats --- */
.filtres-actifs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -10px 0 22px;
}

.filtres-actifs .filtre-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 5px 12px;
  border-radius: 20px;
  background: #262e37;
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.2s;
}

.filtres-actifs .filtre-chip:hover {
  background: #91a5b2;
  color: #fff;
}

.filtres-actifs .filtre-chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 14px;
  line-height: 1;
}

.filtres-actifs .filtre-tout {
  font-size: 13px;
  color: #262e37;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.filtres-actifs .filtre-tout:hover {
  color: #91a5b2;
}
/* Défilement après un filtre : le haut des résultats (compteur + pastilles) s'arrête sous le menu fixe */
#results-anchor {
  scroll-margin-top: calc(var(--header-h, 91px) + 20px);
}



/* ---------------------------------------------------------
   7. Pages thèmes (/oeuvres/paysages…) et artistes (/artistes/prenom-nom)
   --------------------------------------------------------- */
/* Texte d'introduction / biographie, au-dessus des résultats (page 1) */
.liste-intro {
  margin-bottom: 30px;
  font-size: 15px;
  line-height: 1.65;
}

.liste-intro .liste-intro-titre {
  font-size: 24px;
  margin: 0 0 12px;
}

.liste-intro p {
  margin-bottom: 10px !important;   /* le template impose 25px !important sur les <p> */
}

.liste-intro p:last-child {
  margin-bottom: 0 !important;
}

.liste-intro a {
  color: #262e37;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.artiste-intro .artiste-intro-infos {
  font-style: italic;
  color: #6c757d;
}

.artiste-intro .flag {
  width: 18px;
  height: auto;
  margin-right: 6px;
  vertical-align: middle;
}

/* « Explorer par thème » : section pleine largeur, au-dessus de « Nos dernières œuvres » */
.themes-liens ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.themes-liens a,
.themes-liens span {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid #dee2e6;
  border-radius: 30px;
  font-size: 15px;
  color: #262e37;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.themes-liens a:hover {
  background: #eef2f5;
  border-color: #91a5b2;
}

.themes-liens span.active {          /* thème de la page en cours */
  background: #262e37;
  border-color: #262e37;
  color: #fff;
}

/* Nom d'artiste cliquable dans les cartes (vers sa page) */
.oeuvre-card .oeuvre-artiste a {
  color: inherit;
}

.oeuvre-card .oeuvre-artiste a:hover {
  color: #91a5b2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* « Explorer par thème » / « Artistes à découvrir » : deux blocs gris-bleu, pastilles blanches */
.themes-liens-section .themes-bloc {
  height: 100%;                       /* les deux blocs à la même hauteur */
  padding: 35px 35px 40px;
  background: #eef2f5;
  border-radius: 12px;
}

.themes-liens-section .themes-bloc .section-title h3 {
  margin-bottom: 10px;
}

.themes-liens-section .themes-liens a,
.themes-liens-section .themes-liens span {
  background: #fff;
  border-color: #fff;
}

.themes-liens-section .themes-liens a:hover {
  background: #91a5b2;
  border-color: #91a5b2;
  color: #fff;
}

.themes-liens-section .themes-liens span.active {
  background: #262e37;
  border-color: #262e37;
  color: #fff;
}

@media (max-width: 767.98px) {
  .themes-liens-section .themes-bloc {
    padding: 25px 20px 30px;
  }
}
/* Coins arrondis : cartes œuvres (listes + slider de l'accueil), fiches artistes, pagination
   – même rayon que les blocs « Explorer par thème » et le bloc des filtres.
   Le template met la bordure sur .auction-card-content (coins rognés par l'arrondi) :
   on la déplace sur la carte entière. */
.auction-card.oeuvre-card,
.auction-card.artiste-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;                    /* l'image et le bandeau du titre suivent l'arrondi */
}

.auction-card.oeuvre-card .auction-card-content,
.auction-card.artiste-card .auction-card-content {
  border: 0 !important;
  border-radius: 0 !important;
}

.page-navigation-area {
  border-radius: 12px;
}
/* ---------------------------------------------------------
   Flèches du slider « Nos dernières œuvres » + boutons PREC / SUIV
   --------------------------------------------------------- */
/* Slider : ronds pleins foncés, flèche blanche */
.home1-general-art-slider-section .slider-btn-grp .slider-btn {
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  background-color: #262e37;
  border-color: #262e37;
  box-shadow: 0 4px 12px rgba(38, 46, 55, 0.25);
}

.home1-general-art-slider-section .slider-btn-grp .slider-btn svg {
  fill: #fff;
  width: 9px;
  height: 16px;
}

.home1-general-art-slider-section .slider-btn-grp .slider-btn:hover {
  background-color: #91a5b2;
  border-color: #91a5b2;
}

.home1-general-art-slider-section .slider-btn-grp .slider-btn.swiper-button-disabled {
  opacity: 0.3;
}

/* Pagination : PREC / SUIV en pilules, même famille que les pastilles */
.page-navigation-area .prev-next-btn a {
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid #262e37;
  border-radius: 30px;
  color: #262e37;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.page-navigation-area .prev-next-btn a svg {
  fill: #262e37;
}

.page-navigation-area .prev-next-btn a:hover {
  background: #262e37;
  color: #fff;
}

.page-navigation-area .prev-next-btn a:hover svg {
  fill: #fff;
}

.page-navigation-area .prev-next-btn a.disabled {
  border-color: #dee2e6;
  color: #adb5bd;
}

.page-navigation-area .prev-next-btn a.disabled svg {
  fill: #adb5bd;
}
/* Chevrons fins au trait à la place des flèches pleines du template */
.home1-general-art-slider-section .slider-btn-grp .slider-btn svg,
.page-navigation-area .prev-next-btn a svg {
  display: none;
}

/* Slider */
.home1-general-art-slider-section .slider-btn-grp .slider-btn::before {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.home1-general-art-slider-section .slider-btn-grp .slider-btn.generat-art-slider-prev::before {
  transform: translateX(2px) rotate(135deg);    /* ‹ */
}

.home1-general-art-slider-section .slider-btn-grp .slider-btn.generat-art-slider-next::before {
  transform: translateX(-2px) rotate(-45deg);   /* › */
}

/* PREC / SUIV : le chevron suit la couleur du texte (foncé, blanc au survol, gris si inactif) */
.page-navigation-area .prev-next-btn:first-child a::before,
.page-navigation-area .prev-next-btn:last-child a::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}

.page-navigation-area .prev-next-btn:first-child a::before {
  transform: rotate(135deg);                    /* ‹ PREC */
}

.page-navigation-area .prev-next-btn:last-child a::after {
  transform: rotate(-45deg);                    /* SUIV › */
}

/* ---------------------------------------------------------
   8. Page détail d'une œuvre (/oeuvres/…_detail_…)
   --------------------------------------------------------- */
.oeuvre-detail-section {
  --od-dark: #272f38;
  --od-light: #EEF2F5;
  --od-muted: #6b7a86;
  --od-accent: #91a5b2;
}

/* Fil d'Ariane + retour */
.oeuvre-ariane {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 14px;
}
.oeuvre-ariane ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--od-muted);
}
.oeuvre-ariane li + li::before {
  content: "/";
  margin: 0 8px;
  color: #c3ccd3;
}
.oeuvre-ariane a { color: var(--od-muted); }
.oeuvre-ariane a:hover { color: var(--od-dark); text-decoration: underline; }
.oeuvre-ariane li[aria-current] {
  color: var(--od-dark);
  font-weight: 500;
  max-width: 28ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.oeuvre-retour {
  flex-shrink: 0;
  font-weight: 500;
  color: var(--od-dark);
}
.oeuvre-retour:hover { text-decoration: underline; }

/* Galerie */
.oeuvre-galerie-main {
  position: relative;
  background: var(--od-light);
  border-radius: 12px;
  overflow: hidden;
}
.oeuvre-galerie-main .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 20px;
}
.oeuvre-galerie-lien {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}
.oeuvre-galerie-lien img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 6px 24px rgba(39, 47, 56, .18);
}
.oeuvre-galerie-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--od-dark);
  font-size: 13px;
  font-weight: 500;
  pointer-events: none;
}
.oeuvre-galerie-zoom svg,
.oeuvre-galerie-nav svg,
.oeuvre-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Flèches (galerie + carrousel « Sur le même thème ») */
.oeuvre-galerie-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--od-dark, #272f38);
  border-radius: 50%;
  background: #fff;
  color: #272f38;
  transition: background .2s, color .2s, opacity .2s;
}
.oeuvre-galerie-nav:hover { background: #272f38; color: #fff; }
.oeuvre-galerie-nav.swiper-button-disabled { opacity: .35; pointer-events: none; }
.oeuvre-galerie-main .oeuvre-galerie-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(39, 47, 56, .15);
}
.oeuvre-galerie-main .oeuvre-galerie-nav.prev { left: 12px; }
.oeuvre-galerie-main .oeuvre-galerie-nav.next { right: 12px; }

.oeuvre-galerie-vignettes { margin-top: 12px; }
.oeuvre-galerie-vignettes .swiper-slide {
  aspect-ratio: 1 / 1;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: var(--od-light);
  cursor: pointer;
  opacity: .65;
  transition: opacity .2s, border-color .2s;
}
.oeuvre-galerie-vignettes .swiper-slide:hover { opacity: 1; }
.oeuvre-galerie-vignettes .swiper-slide-thumb-active { border-color: var(--od-dark); opacity: 1; }
.oeuvre-galerie-vignettes img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.oeuvre-galerie-vide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: var(--od-light);
  color: var(--od-accent);
}
.oeuvre-galerie-vide svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

/* Description de l'œuvre (colonne de droite, sous le prix) */
.oeuvre-descri { margin-bottom: 22px; }
.oeuvre-descri p {
  margin-bottom: 0 !important;
  font-size: 15px;
  line-height: 1.7;
  color: var(--od-dark);
}
.oeuvre-artiste-bloc h2 {
  margin-bottom: 10px;
  font-family: var(--font-playfair);
  color: var(--od-dark);
}

/* Colonne d'informations */
.oeuvre-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.oeuvre-ref {
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--od-muted);
}
.oeuvre-badge {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.oeuvre-badge.is-sold { background: #b3261e; color: #fff; }
.oeuvre-badge.is-option { background: #f2c94c; color: var(--od-dark); }

.oeuvre-h1 {
  margin-bottom: 6px;
  font-family: var(--font-playfair);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  color: var(--od-dark);
}
.oeuvre-h1-artiste {
  display: block;
  margin-top: 8px;
  font-family: var(--font-worksans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--od-muted);
}
.oeuvre-nature {
  margin-bottom: 18px !important;
  color: var(--od-muted);
}

.oeuvre-prix-bloc {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px 0;
  border-top: 1px solid var(--od-light);
  border-bottom: 1px solid var(--od-light);
}
.oeuvre-prix-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--od-muted);
}
.oeuvre-prix-valeur {
  font-family: var(--font-playfair);
  font-size: 34px;
  line-height: 1;
  color: var(--od-dark);
}
.oeuvre-prix-valeur.is-text { font-size: 22px; }
.oeuvre-prix-bloc.is-sold .oeuvre-prix-valeur { font-size: 22px; color: #b3261e; }

/* Caractéristiques : une colonne, libellé à gauche, valeur à droite (comme le PDF) */
.oeuvre-carac {
  margin: 0 0 22px;
}
.oeuvre-carac > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--od-light);
  font-size: 14px;
}
.oeuvre-carac dt {
  font-weight: 400;
  color: var(--od-muted);
  white-space: nowrap;
}
.oeuvre-carac dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
  color: var(--od-dark);
}
.oeuvre-carac dd a {
  color: var(--od-dark);
  text-decoration: underline;
  text-decoration-color: var(--od-accent);
  text-underline-offset: 3px;
}
.oeuvre-carac dd a:hover { text-decoration-color: var(--od-dark); }
/* Sujet (souvent long) et dimensions sur toute la largeur */

/* À propos de l'artiste */
.oeuvre-artiste-bloc {
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid var(--od-light);
  border-radius: 12px;
  background: #F9FAFB;
}
.oeuvre-artiste-bloc h2 { font-size: 18px; }
.oeuvre-artiste-bloc p { margin-bottom: 6px !important; font-size: 14px; line-height: 1.65; }
.oeuvre-artiste-nom { font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.oeuvre-artiste-nom a { color: var(--od-dark); text-decoration: underline; text-underline-offset: 3px; }
.oeuvre-artiste-nom .flag { margin-left: 4px; vertical-align: baseline; }
.oeuvre-artiste-dates { font-style: italic; color: var(--od-muted); }
.oeuvre-artiste-bio { margin-bottom: 0 !important; }
.oeuvre-artiste-bio .bio-plus {
  padding: 0;
  border: 0;
  background: none;
  font-weight: 600;
  color: var(--od-dark);
  text-decoration: underline;
}

/* Boutons */
.oeuvre-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.oeuvre-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border: 1px solid var(--od-dark);
  border-radius: 8px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}
.oeuvre-btn { transition: background .2s, color .2s, border-color .2s; }
.oeuvre-btn.is-primary { background: var(--od-dark); color: #fff; }
.oeuvre-btn.is-primary:hover { background: #3a4552; border-color: #3a4552; color: #fff; }
.oeuvre-btn.is-outline { background: #fff; color: var(--od-dark); font-weight: 500; }
.oeuvre-btn.is-outline:hover { background: var(--od-dark); color: #fff; }
.oeuvre-btn.is-light { border-color: var(--od-light); background: var(--od-light); color: var(--od-dark); font-weight: 500; }
.oeuvre-btn.is-light:hover { border-color: var(--od-dark); color: var(--od-dark); }
.oeuvre-infos-detail .ask-question { font-size: 14px; margin-bottom: 0 !important; }

/* Carrousel « Sur le même thème » */
.oeuvres-similaires-section .swiper-slide { height: auto; display: flex; }
.oeuvres-similaires-section .swiper-slide > .oeuvre-card { width: 100%; }

@media (max-width: 991.98px) {
  .oeuvre-detail-section.mt-150 { margin-top: 110px; }
}
@media (max-width: 575.98px) {
  .oeuvre-galerie-main .swiper-slide { padding: 12px; }
  .oeuvre-galerie-vignettes .swiper-slide { border-radius: 6px; }
  .oeuvre-ariane li:not(:last-child):not(:first-child) { display: none; }   /* mobile : Accueil / titre */
  .oeuvre-ariane li[aria-current] { max-width: 18ch; }
  .oeuvre-prix-valeur { font-size: 28px; }
}

/* Lien « Voir tout » en bas à droite des blocs thèmes / artistes */
.themes-bloc {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.themes-voir-tout {
  align-self: flex-end;
  margin-top: auto;      /* collé en bas, même si l'autre bloc est plus haut */
  padding-top: 20px;
}

/* Flèches des carrousels du template (« Nos dernières œuvres »…) :
   même style que celles de « Sur le même thème » */
.slider-btn-grp .slider-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  border: 1px solid #272f38 !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #272f38 !important;
  box-shadow: none !important;
  opacity: 1;
  cursor: pointer;
  transition: background .2s, color .2s, opacity .2s;
}
.slider-btn-grp .slider-btn svg { display: none !important; }
.slider-btn-grp .slider-btn::after { content: none !important; }
.slider-btn-grp .slider-btn::before {
  content: "" !important;
  display: block !important;
  width: 9px;
  height: 9px;
  border: 0 !important;
  border-top: 2px solid currentColor !important;
  border-right: 2px solid currentColor !important;
  background: none !important;
  transform: rotate(45deg);            /* → suivante */
  margin-left: -3px;
}
.slider-btn-grp .slider-btn[class*="-prev"]::before {
  transform: rotate(-135deg);          /* ← précédente */
  margin-left: 3px;
}
.slider-btn-grp .slider-btn:hover {
  background: #272f38 !important;
  color: #fff !important;
}
.slider-btn-grp .slider-btn.swiper-button-disabled {
  opacity: .35;
  pointer-events: none;
}
/* Mobile : flèches des carrousels à droite, au-dessus des images (pas dessus) */
@media (max-width: 767.98px) {
  .oeuvres-similaires-nav {
    width: 100%;
    justify-content: flex-end;
    margin-bottom: 18px;
  }
  .home1-general-art-slider-section .row > .col-auto {
    width: 100%;
    justify-content: space-between !important;   /* « Voir tout » à gauche, flèches à droite */
    margin-bottom: 18px;
  }
}

/* Lien [modifier] vers le CMS (visible seulement quand on est connecté au CMS) */
.cms-modifier {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  vertical-align: middle;
  background: #272f38;
  color: #fff !important;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 4px;
  text-decoration: none !important;
}
.cms-modifier:hover { background: #000; }
.cms-modifier::before { content: "✎ "; }
/* cartes d'œuvres : lien sous « En détail + », aligné à droite */
.oeuvre-card .oeuvre-cms { margin-top: 10px; text-align: right; }
.oeuvre-card .oeuvre-cms .cms-modifier { margin-left: 0; }

/* Pied de page : titres de colonnes en <p> au lieu de <h5> (même rendu que le thème) */
.footer-section .footer-menu-wrap .footer-widget .widget-title .widget-titre {
  color: var(--dark-white-color);
  font-family: var(--font-playfair);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
  margin-bottom: 0;
}
/* Compteur « Voir 1–24 sur … » : <p> au lieu de <h6> (même rendu que le thème) */
.auction-card-top-area .left-content .results-count {
  font-family: var(--font-worksans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: left;
  color: var(--text-color);
  margin-bottom: 0;
}
.auction-card-top-area .left-content .results-count span {
  font-weight: 500;
}
