/* =========================================================
   Le Comptoir — galerie produits
   Surface claire, produit au centre, mouvement fluide.
   ========================================================= */

.gallery-page {
  background: #f5f5f7;
  color: #1d1d1f;
}
.gallery-page .site-header {
  background: rgba(247, 241, 229, 0.94);
  border-bottom-color: rgba(23, 19, 15, 0.08);
}
.gallery-page .site-footer { margin-top: 0; }
.gallery-main { position: relative; z-index: 1; }
.gallery-home { padding: 72px 0 78px; background: #f5f5f7; color: #1d1d1f; }
.gallery-home .gallery-title { font-size: clamp(2.7rem, 5.6vw, 5.1rem); }
.gallery-home .gallery-lead { max-width: 55ch; }
.gallery-home .gallery-section-head h2 { font-family: var(--sans); }
.gallery-home .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-home .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-wrap { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.gallery-hero { padding: 68px 0 44px; background: #f5f5f7; }
.gallery-hero--home { padding-top: 54px; }
.gallery-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.gallery-kicker::before { content: ""; width: 25px; height: 1px; background: var(--red); }
.gallery-title {
  max-width: 14ch;
  font-family: var(--sans);
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.93;
}
.gallery-title em { color: var(--red); font-style: normal; }
.gallery-lead { max-width: 58ch; margin-top: 24px; color: #65656b; font-size: 1rem; line-height: 1.65; }
.gallery-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.gallery-feature { padding: 0 0 82px; background: #f5f5f7; }
.gallery-feature-card {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  min-height: 520px;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 24px 80px rgba(0, 0, 0, 0.08);
}
.gallery-feature-card__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 72px); }
.gallery-feature-card__label { color: var(--red); font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; }
.gallery-feature-card h2 { max-width: 10ch; margin-top: 15px; font-family: var(--sans); font-size: clamp(2.2rem, 4.6vw, 4.4rem); font-weight: 700; letter-spacing: -0.07em; line-height: 0.94; }
.gallery-feature-card p { max-width: 38ch; margin-top: 18px; color: #65656b; font-size: 0.92rem; line-height: 1.6; }
.gallery-feature-card__media { position: relative; min-height: 360px; overflow: hidden; background: #ececef; }
.gallery-feature-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.gallery-feature-card:hover .gallery-feature-card__media img { transform: scale(1.035); }
.gallery-feature-card__badge { position: absolute; top: 20px; left: 20px; z-index: 2; display: inline-flex; align-items: center; min-height: 30px; padding: 5px 11px; border: 1px solid rgba(23,19,15,.16); border-radius: 999px; background: rgba(255,255,255,.82); color: #1d1d1f; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.05em; backdrop-filter: blur(12px); }

.gallery-nav { position: sticky; top: var(--header-h); z-index: 25; padding: 12px 0; background: rgba(245, 245, 247, 0.9); border-bottom: 1px solid rgba(0, 0, 0, 0.08); backdrop-filter: blur(18px) saturate(160%); }
.gallery-nav__inner { display: flex; align-items: center; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.gallery-nav__inner::-webkit-scrollbar { display: none; }
.gallery-nav a, .gallery-nav button { flex: 0 0 auto; min-height: 34px; padding: 7px 13px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: #65656b; font-family: var(--mono); font-size: 0.59rem; letter-spacing: 0.04em; text-decoration: none; text-transform: uppercase; }
.gallery-nav a:hover, .gallery-nav button:hover { color: #1d1d1f; background: #fff; }
.gallery-nav a.is-active, .gallery-nav button.is-active { background: #1d1d1f; color: #fff; }
.gallery-nav__sep { flex: 0 0 1px; width: 1px; height: 20px; background: rgba(0,0,0,.14); }

.gallery-section { padding: 52px 0 90px; }
.gallery-section--tight { padding: 30px 0 68px; }
.gallery-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.gallery-section-head h2 { font-family: var(--sans); font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 700; letter-spacing: -0.06em; line-height: 1; }
.gallery-section-head p { max-width: 42ch; color: #65656b; font-size: 0.82rem; line-height: 1.55; }
.gallery-count { color: #86868b; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.04em; text-transform: uppercase; }

.gallery-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(170px, .58fr) minmax(170px, .58fr); gap: 9px; margin: 0 0 24px; }
.gallery-toolbar input, .gallery-toolbar select { min-height: 44px; padding: 10px 13px; border: 1px solid #d2d2d7; border-radius: 10px; background: #fff; color: #1d1d1f; font-size: 0.82rem; }
.gallery-toolbar input:focus, .gallery-toolbar select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { min-width: 0; border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.05); transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out); }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 20px 60px rgba(0,0,0,.09); }
.product-card__media { position: relative; display: block; aspect-ratio: 1 / 1.06; overflow: hidden; background: #ececef; text-decoration: none; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.product-card:hover .product-card__media img { transform: scale(1.035); }
.product-card__tag { position: absolute; top: 13px; left: 13px; z-index: 2; padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.85); color: #1d1d1f; font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.05em; text-transform: uppercase; backdrop-filter: blur(10px); }
.product-card__body { padding: 17px 17px 19px; }
.product-card__brand { color: var(--red); font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase; }
.product-card__title { margin-top: 6px; font-family: var(--sans); font-size: 1.12rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1.08; }
.product-card__title a { text-decoration: none; }
.product-card__title a:hover { color: var(--red); }
.product-card__tagline { min-height: 2.6em; margin-top: 6px; color: #65656b; font-size: 0.74rem; line-height: 1.4; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 11px; border-top: 1px solid #ececef; }
.product-card__price { color: #1d1d1f; font-family: var(--mono); font-size: 0.61rem; }
.product-card__stock { color: var(--forest); font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.06em; text-transform: uppercase; }
.product-card__stock--order { color: var(--ochre-ink); }
.product-card__stock--out { color: var(--red); }
.product-card__actions { display: flex; gap: 7px; margin-top: 12px; }
.product-card__actions .btn { min-height: 38px; padding: 8px 11px; font-size: 0.64rem; }
.product-card__actions .btn:first-child { flex: 1; }
.product-card__actions .text-link { font-size: 0.63rem; align-self: center; }

.gallery-empty { grid-column: 1 / -1; padding: 50px 20px; border: 1px dashed #c7c7cc; border-radius: 14px; text-align: center; color: #65656b; }
.gallery-empty b { display: block; margin-bottom: 5px; color: #1d1d1f; font-family: var(--sans); font-size: 1.2rem; }

/* Fiche produit */
.product-page { background: #f5f5f7; padding-bottom: 0; }
.product-page .mobile-bar { display: none; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 42px; align-items: start; padding: 54px 0 80px; }
.product-gallery { position: sticky; top: calc(var(--header-h) + 24px); min-width: 0; }
.product-gallery__main { position: relative; overflow: hidden; border-radius: 22px; background: #ececef; aspect-ratio: 1 / 1.08; }
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumbs { display: flex; gap: 9px; margin-top: 10px; }
.product-gallery__thumb { width: 66px; height: 66px; padding: 0; border: 1px solid #d2d2d7; border-radius: 10px; background: #ececef; overflow: hidden; }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumb.is-active { border-color: var(--red); }
.product-info { padding: 14px 0 0; }
.product-info__brand { display: flex; align-items: center; gap: 9px; color: var(--red); font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; }
.product-info__brand img { width: 26px; height: 23px; object-fit: contain; }
.product-info h1 { max-width: 12ch; margin-top: 18px; font-family: var(--sans); font-size: clamp(2.8rem, 5.2vw, 5.2rem); font-weight: 700; letter-spacing: -0.075em; line-height: 0.92; }
.product-info__tagline { max-width: 38ch; margin-top: 14px; color: #65656b; font-size: 1rem; line-height: 1.5; }
.product-info__desc { max-width: 52ch; margin-top: 24px; color: #424247; font-size: 0.9rem; line-height: 1.7; }
.product-info__price { display: flex; align-items: baseline; gap: 12px; margin-top: 25px; padding-top: 18px; border-top: 1px solid #d2d2d7; }
.product-info__price strong { font-family: var(--sans); font-size: 1.55rem; letter-spacing: -0.04em; }
.product-info__price span { color: #65656b; font-family: var(--mono); font-size: 0.61rem; text-transform: uppercase; }
.product-info__actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.product-info__actions .btn { flex: 1 1 auto; }
.product-info__note { margin-top: 15px; color: #86868b; font-size: 0.7rem; line-height: 1.5; }
.product-features { margin-top: 42px; border-top: 1px solid #d2d2d7; }
.product-feature { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid #d2d2d7; }
.product-feature__num { color: var(--red); font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.08em; }
.product-feature b { display: block; font-family: var(--sans); font-size: 0.9rem; letter-spacing: -0.02em; }
.product-feature span { display: block; margin-top: 4px; color: #65656b; font-size: 0.78rem; line-height: 1.5; }
.product-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-top: 24px; }
.product-spec { display: grid; gap: 3px; }
.product-spec small { color: #86868b; font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.06em; text-transform: uppercase; }
.product-spec b { font-size: 0.78rem; font-weight: 500; }
.product-partner { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding: 15px; border: 1px solid #d2d2d7; border-radius: 14px; background: #fff; }
.product-partner img { width: 44px; height: 39px; object-fit: contain; }
.product-partner small { display: block; color: #86868b; font-family: var(--mono); font-size: 0.51rem; letter-spacing: 0.06em; text-transform: uppercase; }
.product-partner b { display: block; margin-top: 2px; font-size: 0.8rem; }
.product-related { padding: 46px 0 80px; border-top: 1px solid #d2d2d7; }
.product-related h2 { margin-bottom: 24px; font-family: var(--sans); font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 700; letter-spacing: -0.06em; }
.product-buybar { display: none; }

/* Partenaires */
.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.partner-card { display: flex; flex-direction: column; min-height: 240px; padding: 24px; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.05); text-decoration: none; transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out); }
.partner-card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(0,0,0,.08); }
.partner-card__logo { width: 76px; height: 67px; object-fit: contain; margin-bottom: 26px; }
.partner-card__name { font-family: var(--sans); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.04em; }
.partner-card__desc { margin-top: 8px; color: #65656b; font-size: 0.76rem; line-height: 1.5; }
.partner-card__meta { margin-top: auto; padding-top: 20px; color: var(--red); font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.07em; text-transform: uppercase; }
.partner-card--invite { background: var(--red); color: var(--white); }
.partner-card--invite .partner-card__desc { color: rgba(255,255,255,.78); }
.partner-card--invite .partner-card__meta { color: var(--white); }
.partner-hero { display: grid; grid-template-columns: 120px 1fr; gap: 26px; align-items: center; padding: 34px 0 45px; }
.partner-hero__logo { width: 120px; height: 105px; object-fit: contain; padding: 10px; background: #fff; border-radius: 16px; }
.partner-hero h1 { font-family: var(--sans); font-size: clamp(2.6rem, 5vw, 5rem); font-weight: 700; letter-spacing: -0.07em; line-height: .94; }
.partner-hero p { max-width: 58ch; margin-top: 14px; color: #65656b; font-size: .9rem; line-height: 1.6; }
.partner-empty { padding: 40px; border: 1px dashed #c7c7cc; border-radius: 16px; color: #65656b; text-align: center; }

/* Maison / bandeau d'appel */
.gallery-invite { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 30px; padding: 26px 0 0; border-top: 1px solid #d2d2d7; }
.gallery-invite p { max-width: 52ch; color: #65656b; font-size: .82rem; line-height: 1.55; }
.gallery-invite h3 { font-family: var(--sans); font-size: 1.2rem; letter-spacing: -.04em; }

@media (max-width: 980px) {
  .gallery-feature-card { grid-template-columns: 1fr; min-height: 0; }
  .gallery-feature-card__media { min-height: 340px; order: -1; }
  .product-grid, .partner-grid, .gallery-home .product-grid, .gallery-home .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail { grid-template-columns: 1fr; gap: 30px; }
  .product-gallery { position: relative; top: auto; }
  .product-info h1 { max-width: 16ch; }
}
@media (max-width: 760px) {
  .gallery-wrap { width: min(100% - 32px, 1240px); }
  .gallery-hero { padding: 42px 0 30px; }
  .gallery-title { font-size: clamp(2.9rem, 13vw, 4.8rem); }
  .gallery-lead { font-size: .9rem; }
  .gallery-feature { padding-bottom: 54px; }
  .gallery-feature-card { border-radius: 16px; }
  .gallery-feature-card__copy { padding: 26px 22px 30px; }
  .gallery-feature-card__media { min-height: 270px; }
  .gallery-nav { top: var(--header-h); }
  .gallery-section { padding: 38px 0 58px; }
  .gallery-section-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .gallery-toolbar { grid-template-columns: 1fr; }
  .product-grid, .partner-grid, .gallery-home .product-grid, .gallery-home .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card { border-radius: 13px; }
  .product-card__body { padding: 12px 12px 14px; }
  .product-card__title { font-size: .98rem; }
  .product-card__tagline { display: none; }
  .product-card__actions { flex-wrap: wrap; }
  .product-card__actions .text-link { display: none; }
  .product-detail { padding: 32px 0 54px; }
  .product-gallery__main { border-radius: 16px; }
  .product-info h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .product-info__actions .btn { flex: 1 1 100%; }
  .product-buybar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 16px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid #d2d2d7; background: rgba(255,255,255,.93); backdrop-filter: blur(18px); }
  .product-buybar strong { font-family: var(--mono); font-size: .65rem; }
  .product-buybar .btn { min-height: 40px; padding: 8px 13px; font-size: .65rem; }
  .product-page { padding-bottom: 60px; }
  .partner-hero { grid-template-columns: 72px 1fr; gap: 16px; }
  .partner-hero__logo { width: 72px; height: 63px; }
  .gallery-invite { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 380px) {
  .product-grid, .partner-grid, .gallery-home .product-grid, .gallery-home .partner-grid { grid-template-columns: 1fr; }
  .product-card__tagline { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .product-card, .partner-card, .gallery-feature-card__media img { transition: none; }
  .product-card:hover, .partner-card:hover { transform: none; }
}
