/* Uniquement la galerie : aucune règle de style générale du thème n'est modifiée. */
.rsrr-gallery,.rsrr-gallery *{box-sizing:border-box}
.rsrr-gallery{--rsrr-ink:#17324d;--rsrr-orange:#d96f1a;--rsrr-blue:#f0fbfc;--rsrr-cream:#fff8ee;width:min(1160px,calc(100% - 26px));margin:26px auto 54px;color:var(--rsrr-ink);font-family:inherit}
.rsrr-gallery__header{padding:34px clamp(20px,4vw,46px);background:var(--rsrr-cream);border:1px solid #f4e4d1;border-radius:20px;text-align:center;margin-bottom:24px}
.rsrr-gallery__header .rsrr-gallery__eyebrow{margin:0 0 8px;font-size:.77rem;text-transform:uppercase;font-weight:850;letter-spacing:.08em;color:#be5c15}
.rsrr-gallery__header h1{margin:0 0 10px;color:var(--rsrr-ink);font-size:clamp(1.9rem,4vw,3rem);line-height:1.17}
.rsrr-gallery__header>p:last-child{margin:0 auto;max-width:690px;font-size:1rem;line-height:1.5;color:#4b6680}
.rsrr-gallery__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
.rsrr-card{overflow:hidden;min-width:0;border:1px solid #dce5e6;border-radius:17px;background:#fff;box-shadow:0 6px 19px rgba(22,45,67,.045);display:flex;flex-direction:column}
.rsrr-card:nth-child(2n){background:#fffbf5}
.rsrr-card__photos{display:grid;grid-template-columns:1fr;height:205px;background:#edf6f6}
.rsrr-card__photos--two{grid-template-columns:repeat(2,minmax(0,1fr))}
.rsrr-card__photos figure{min-width:0;position:relative;overflow:hidden;margin:0;display:flex;justify-content:center;align-items:center}
.rsrr-card__photos figure+figure{border-left:2px solid white}
.rsrr-card__photos img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.rsrr-card__photos figcaption{position:absolute;bottom:9px;left:9px;padding:4px 10px;font-size:.75rem;font-weight:750;background:rgba(255,255,255,.92);color:#17324d;border-radius:99px}
.rsrr-card__placeholder{height:140px;display:grid;place-items:center;background:#eff9f8;font-size:3.3rem}
.rsrr-card__body{padding:20px 20px 22px;display:flex;flex-direction:column;gap:11px}
.rsrr-card__category{font-size:.73rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#bb6019;margin:0}
.rsrr-card h2{font-size:clamp(1.16rem,1.7vw,1.4rem);line-height:1.26;margin:0;color:var(--rsrr-ink)}
.rsrr-card__detail strong{display:block;font-size:.85rem;color:#1f775a;margin-bottom:3px}
.rsrr-card__detail p,.rsrr-card__note{margin:0;font-size:.9rem;line-height:1.48;color:#425b72;overflow-wrap:anywhere}
.rsrr-card__note{padding-top:10px;border-top:1px solid #e5e9eb;font-style:italic}
.rsrr-gallery__empty{border:1px dashed #b9d5cb;background:#f2faf5;border-radius:16px;text-align:center;padding:36px 18px}
.rsrr-gallery__empty strong{display:block;font-size:1.1rem}.rsrr-gallery__empty p{margin:9px 0 0;color:#526775}
.rsrr-pagination ul{list-style:none;display:flex;justify-content:center;flex-wrap:wrap;gap:8px;padding:0;margin:25px 0 0}
.rsrr-pagination a,.rsrr-pagination span{display:inline-flex;justify-content:center;align-items:center;min-width:38px;min-height:38px;border-radius:8px;border:1px solid #cce2d8;color:#17324d;text-decoration:none;padding:6px 10px}
.rsrr-pagination .current{background:#216543;color:white;border-color:#216543}
@media(max-width:960px){.rsrr-gallery__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.rsrr-gallery{margin:16px auto 35px}.rsrr-gallery__grid{grid-template-columns:1fr;gap:13px}.rsrr-gallery__header{padding:24px 17px}.rsrr-card__photos{height:190px}.rsrr-card__body{padding:17px}}

/* v1.0.1 — corrections limitées à la page de galerie, sans changer les données. */
.rsrr-gallery { margin-top: 18px; margin-bottom: 40px; }
.rsrr-gallery .rsrr-gallery__header { padding: 23px clamp(18px,3vw,34px); margin-bottom: 18px; border-radius: 16px; }
.rsrr-gallery .rsrr-gallery__header h1 { font-size: clamp(1.7rem,3vw,2.35rem); line-height: 1.14; margin-bottom: 8px; }
.rsrr-gallery .rsrr-gallery__header > p:last-child { font-size: clamp(.92rem,1.2vw,1.03rem); max-width: 760px; line-height: 1.42; }
.rsrr-gallery .rsrr-gallery__grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.rsrr-gallery .rsrr-card__photos { height: 210px; }
.rsrr-gallery .rsrr-card__body { padding: 19px 22px 21px; gap: 10px; }
.rsrr-gallery .rsrr-card h2 { font-size: clamp(1.16rem,1.65vw,1.44rem); line-height: 1.2; }
.rsrr-gallery .rsrr-card__detail p, .rsrr-gallery .rsrr-card__note { font-size: .94rem; line-height: 1.48; overflow-wrap: break-word; }
/* Lorsqu'une seule réparation est publiée, utiliser la largeur au lieu d'une petite carte isolée. */
@media (min-width: 760px) {
  .rsrr-gallery .rsrr-gallery__grid > .rsrr-card:only-child {
    display: grid;
    grid-template-columns: minmax(0, 44%) minmax(0, 56%);
    width: min(100%, 930px);
    justify-self: center;
    align-items: stretch;
  }
  .rsrr-gallery .rsrr-gallery__grid > .rsrr-card:only-child > .rsrr-card__photos,
  .rsrr-gallery .rsrr-gallery__grid > .rsrr-card:only-child > .rsrr-card__placeholder {
    height: 100%; min-height: 255px;
  }
  .rsrr-gallery .rsrr-gallery__grid > .rsrr-card:only-child > .rsrr-card__photos img {
    object-fit: contain;
  }
  .rsrr-gallery .rsrr-gallery__grid > .rsrr-card:only-child > .rsrr-card__body {
    justify-content: center; padding: 24px 30px;
  }
}
@media (max-width: 759px) {
  .rsrr-gallery .rsrr-gallery__grid { grid-template-columns: 1fr; gap: 14px; }
  .rsrr-gallery .rsrr-gallery__header { padding: 20px 17px; }
  .rsrr-gallery .rsrr-card__photos { height: 190px; }
  .rsrr-gallery .rsrr-card__body { padding: 18px; }
}
