/*!
 * La Verte Feuille — design-v2.css
 * A1-A3 · B1-B4 · C1-C5 · D1-D2-D4 · E2-E3-E5 · G1-G2-G3 · H1-H4
 * Thème clair uniquement — dark mode désactivé
 */

/* ════ Verrouillage thème clair ══════════════════════════════════════════ */
/* Empêche le navigateur d'appliquer ses propres ajustements dark mode
   sur les éléments natifs (inputs, selects, scrollbars, checkboxes…) */
:root {
  color-scheme: light only;
}

/* ════ Grille produits : 3 colonnes fixes (toutes tailles d'écran) ═══════ */
.products-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* ════ A1 : Palette étendue ═══════════════════════════════════════════════ */
:root {
  --sand:       #C4956A;
  --sand-hover: #b3834f;
  --sand-pale:  #FBF4EB;
  --sand-light: #e8c9a8;

  /* A3 : Tokens d'ombre supplémentaires */
  --shadow-lg:  0 12px 40px rgba(0,0,0,.12);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.18);
  --shadow-inset: inset 0 1px 3px rgba(0,0,0,.08);

  /* A2 : Helpers typo */
  --tracking-tight: -0.02em;
  --tracking-snug:  -0.015em;
}

/* ════ A2 : Échelle typographique ════════════════════════════════════════ */
h1 { letter-spacing: var(--tracking-tight); }
h2 { letter-spacing: var(--tracking-snug); }
h3 { letter-spacing: -0.01em; }

/* Texture grain premium sur fond sombre */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ════ B1 : Hero layout asymétrique 55/45 ════════════════════════════════ */
.hero-inner {
  grid-template-columns: 55fr 45fr;
  display: grid;
  align-items: center;
  gap: 40px;
}
.hero-content { max-width: none; }
.hero-visual   { width: auto; flex-shrink: unset; }

/* B2 : Headline editorial — ligne de mise en avant */
.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
}
.hero-title em {
  display: block;
  font-size: 1.1em;
}

/* B3 : Social proof bar remplacée par trust-ticker */
.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 40px;
  padding: 0 4px;
  margin-bottom: 28px;
  width: fit-content;
  max-width: 100%;
}
.hero-trust-bar__item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: .8125rem;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.1);
}
.hero-trust-bar__item:last-child { border-right: none; }
.hero-trust-bar__stars {
  color: #C9A84C;
  font-size: .875rem;
  letter-spacing: 1px;
}

/* B4 : Sous-label CTA */
.hero-btn-sublabel {
  display: block;
  font-size: .6875rem;
  color: rgba(255,255,255,.55);
  margin-top: 6px;
  text-align: center;
  letter-spacing: .02em;
}

/* Orb amélioré — blob organic */
.hero-orb--blob {
  position: absolute;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: blobFloat 12s ease-in-out infinite;
}
@keyframes blobFloat {
  0%,100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translate(0,0); }
  25%      { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; transform: translate(10px,-10px); }
  50%      { border-radius: 50% 60% 30% 60% / 30% 50% 70% 40%; transform: translate(-5px,5px); }
  75%      { border-radius: 40% 60% 60% 40% / 60% 30% 60% 40%; transform: translate(5px,8px); }
}

/* ════ C1 : Image ratio 4/5 portrait ═════════════════════════════════════ */
.product-card__image {
  aspect-ratio: 4 / 5;
  background: var(--green-pale);
}
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ════ C2 : Hover lift + overlay actions ════════════════════════════════ */
.product-card {
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s ease, border-color .2s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-light);
}
/* Quick-view : caché par défaut, visible au hover */
.product-card__quick-view {
  bottom: -44px;
  opacity: 0;
  transition: bottom .22s cubic-bezier(.4,0,.2,1), opacity .22s ease;
}
.product-card:hover .product-card__quick-view {
  bottom: 10px;
  opacity: 1;
}
/* Wishlist : réduit par défaut, agrandit au hover */
.product-card__wishlist {
  opacity: .7;
  transform: scale(.9);
  transition: opacity .18s ease, transform .18s ease, background .15s ease, border-color .15s ease;
}
.product-card:hover .product-card__wishlist {
  opacity: 1;
  transform: scale(1);
}

/* ════ C3 : Badge system — max 3, fond solide, hiérarchie ═══════════════ */
.product-card__badges {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(3 * (22px + 4px));
  overflow: hidden;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.4;
  white-space: nowrap;
  border: none !important;
}
.badge--sale    { background: #E53935; color: #fff; }
.badge--green   { background: var(--green); color: #fff; }
.badge--gold    { background: var(--gold); color: #fff; }
.badge--dark    { background: var(--dark-soft); color: rgba(255,255,255,.9); }
.badge--pale    { background: var(--green-pale); color: var(--green); }
.badge--loyalty { background: var(--gold); color: #fff; }
.badge--stock-low { background: #FFF3E0; color: #E65100; }
.badge--custom  { /* Inline bg/color preserved */ }

/* ════ C4 : Prix typographie dominante ══════════════════════════════════ */
.product-card__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}
.product-card__unit {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 1px;
}
.product-card__price-old {
  font-size: .875rem;
  color: var(--text-light);
  text-decoration: line-through;
}

/* ════ C5 : ATC feedback — animation checkmark ══════════════════════════ */
.product-card__add.is-success {
  background: #388E3C;
  border-color: #388E3C;
  pointer-events: none;
}
.product-card__add.is-success .btn-text::before {
  content: '✓ ';
}
.product-card__add.is-loading {
  opacity: .75;
  pointer-events: none;
}
@keyframes atcPulse {
  0%   { box-shadow: 0 0 0 0 rgba(45,90,39,.4); }
  70%  { box-shadow: 0 0 0 10px rgba(45,90,39,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,90,39,0); }
}
.product-card__add.is-success { animation: atcPulse .6s ease; }

/* ════ D1 : Sidebar sticky desktop + bottom-sheet mobile ════════════════ */
.shop-sidebar {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.shop-sidebar::-webkit-scrollbar { width: 4px; }
.shop-sidebar::-webkit-scrollbar-track { background: transparent; }
.shop-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

@media (max-width: 768px) {
  .shop-sidebar {
    position: fixed;
    inset: auto 0 0 0;
    top: auto;
    max-height: 80vh;
    background: var(--white);
    z-index: 1100;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(0,0,0,.18);
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    padding: 0 20px 20px;
  }
  .shop-sidebar.is-open {
    transform: translateY(0);
  }
  /* Poignée de drag */
  .shop-sidebar::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 12px auto 16px;
    flex-shrink: 0;
  }
  /* Overlay derrière le bottom-sheet */
  .shop-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 1099;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }
  .shop-sidebar-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
  }
  /* Bouton filtres mobile */
  .shop-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
  }
}
@media (min-width: 769px) {
  .shop-filter-toggle { display: none; }
  .shop-sidebar-overlay { display: none; }
}

/* ════ D2 : Active filters chips bar ════════════════════════════════════ */
.active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 0 0;
  min-height: 0;
  transition: min-height .2s ease;
}
.active-filters:empty { display: none; }
.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-pale);
  border: 1px solid var(--green-mid);
  color: var(--green);
  border-radius: 20px;
  padding: 4px 10px 4px 12px;
  font-size: .8125rem;
  font-weight: 500;
  animation: chipIn .18s ease;
}
@keyframes chipIn { from { opacity:0; transform:scale(.85); } to { opacity:1; transform:scale(1); } }
.active-filter-chip__remove {
  background: none;
  border: none;
  color: var(--green);
  cursor: pointer;
  font-size: .9rem;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  opacity: .7;
  transition: opacity .15s;
}
.active-filter-chip__remove:hover { opacity: 1; }
.active-filters__reset {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: .8125rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.active-filters__reset:hover { border-color: var(--green); color: var(--green); }

/* ════ D4 : Banner catégorie enrichie ═══════════════════════════════════ */
.archive-header {
  background: linear-gradient(135deg, var(--green-pale) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--border);
  padding: 32px 0 0;
}
.archive-header__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.archive-header__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: var(--tracking-tight);
  color: var(--dark);
  margin-bottom: 10px;
}
.archive-header__desc {
  font-size: .9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 16px;
}
.archive-header__count {
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  align-self: flex-start;
}
/* Shop controls déplacés dans le header */
.shop-controls {
  border-top: 1px solid var(--border);
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ════ E2 : Sticky ATC bar ═══════════════════════════════════════════════ */
.sp-sticky-atc {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -4px 24px rgba(0,0,0,.08);
}
.sp-sticky-atc.is-visible {
  transform: translateY(0);
}
/* Sur mobile, décale vers le haut pour ne pas masquer la tab bar */
@media (max-width: 768px) {
  .sp-sticky-atc { bottom: 60px; padding: 10px 16px; }
}
.sp-sticky-atc__thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.sp-sticky-atc__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sp-sticky-atc__info { flex: 1; min-width: 0; }
.sp-sticky-atc__name {
  font-size: .9375rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--dark);
}
.sp-sticky-atc__price {
  font-size: .875rem;
  color: var(--green);
  font-weight: 700;
}
.sp-sticky-atc__btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ════ E3 : Sections accordéon ══════════════════════════════════════════ */
.sp-sections { display: flex; flex-direction: column; gap: 0; margin-top: 32px; }
.sp-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 8px;
  background: var(--white);
  transition: box-shadow .2s ease;
}
.sp-section:hover { box-shadow: var(--shadow-sm); }
.sp-section.is-open { box-shadow: var(--shadow-md); }

.sp-section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  user-select: none;
  margin: 0;
  position: relative;
  letter-spacing: normal;
}
.sp-section__title::after {
  content: '›';
  margin-left: auto;
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform .25s ease;
  font-weight: 400;
  line-height: 1;
}
.sp-section.is-open .sp-section__title::after {
  transform: rotate(90deg);
}
.sp-section__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1), padding .35s ease;
  padding: 0 20px;
}
.sp-section.is-open .sp-section__body {
  max-height: 2000px;
  padding: 0 20px 20px;
}

/* ════ E5 : Indicateurs de confiance inline améliorés ════════════════════ */
.sp-assurances {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.sp-assurance {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--green);
  border: 1px solid rgba(45,90,39,.12);
}
.sp-assurance span {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ════ G1 : Tab bar mobile ══════════════════════════════════════════════ */
.lvf-tab-bar {
  display: none;
}
@media (max-width: 768px) {
  .lvf-tab-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    height: 60px;
    box-shadow: 0 -2px 16px rgba(0,0,0,.08);
  }
  .lvf-tab-bar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: .625rem;
    font-weight: 500;
    letter-spacing: .02em;
    padding: 6px 4px;
    transition: color .15s ease;
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
  }
  .lvf-tab-bar__item.is-active,
  .lvf-tab-bar__item:hover { color: var(--green); }
  .lvf-tab-bar__item.is-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: var(--green);
    border-radius: 0 0 3px 3px;
  }
  .lvf-tab-bar__icon {
    font-size: 1.25rem;
    line-height: 1;
  }
  .lvf-tab-bar__badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 18px);
    background: var(--green);
    color: #fff;
    font-size: .5625rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
  }
  /* Décale le contenu principal pour ne pas être masqué */
  body { padding-bottom: 60px; }
  .site-footer { padding-bottom: 60px; }
}

/* ════ G2 : Grille mobile 3 colonnes ════════════════════════════════════ */
@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .product-card__image { aspect-ratio: 3 / 4; }
  .product-card__name {
    font-size: .8125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .product-card__body { padding: 10px; }
  .product-card__price { font-size: 1.125rem; }
  .product-card__degressive { display: none; }
  .product-card__meta-row { display: none; }
  .product-card__footer { padding: 8px 10px; }
  .product-card__qty-ctrl { display: none; }
  .product-card__add {
    width: 100%;
    padding: 9px 8px;
    font-size: .75rem;
    gap: 4px;
  }
  .product-card__add .btn-text { font-size: .75rem; }
}

/* ════ G3 : Curseur galerie swipe (indicateur visuel) ═══════════════════ */
.sp-gallery__main {
  cursor: zoom-in;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}
.sp-gallery__main.is-dragging { cursor: grabbing; }
.sp-gallery__thumb { cursor: pointer; }

/* ════ H1 : Scroll reveal ═══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.4,0,.2,1);
}
.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 80ms; }
.reveal--delay-2 { transition-delay: 160ms; }
.reveal--delay-3 { transition-delay: 240ms; }
.reveal--delay-4 { transition-delay: 320ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ════ H2 : Skeleton loaders ════════════════════════════════════════════ */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite ease-in-out;
  border-radius: var(--radius-sm);
}
.skeleton-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.skeleton-card__img  { aspect-ratio: 4/5; }
.skeleton-card__line { height: 12px; margin: 12px; border-radius: 4px; }
.skeleton-card__line--short { width: 60%; }
.skeleton-card__line--price { height: 20px; width: 40%; margin-top: 8px; }
/* Grille de skeletons */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* ════ H3 : View Transitions ════════════════════════════════════════════ */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeSlideOut {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-8px); }
}
::view-transition-old(root) {
  animation: fadeSlideOut 150ms ease forwards;
}
::view-transition-new(root) {
  animation: fadeSlideIn 200ms ease forwards;
}

/* ════ H4 : Curseurs custom ═════════════════════════════════════════════ */
/* Galerie produit */
.sp-gallery__main img { cursor: zoom-in; }
/* Images cliquables */
a img, button img { cursor: pointer; }
/* Sliders / carousels */
[data-swiper], .swiper { cursor: grab; }
[data-swiper]:active, .swiper:active { cursor: grabbing; }
/* Paliers dégressifs */
.dg-tier--btn { cursor: pointer; }
/* Thumbnails galerie */
.sp-gallery__thumb:hover img { cursor: pointer; }

/* ════ Overrides responsive hero ═════════════════════════════════════════ */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }
  .hero-trust-bar {
    flex-wrap: wrap;
    border-radius: var(--radius-md);
    padding: 4px;
  }
  .hero-trust-bar__item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
    width: 100%;
  }
  .hero-trust-bar__item:last-child { border-bottom: none; }
}

/* ════ Grille shop : 3 colonnes fixes sur tous les écrans ═══════════════ */
@media (min-width: 1300px) {
  .products-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ════ Shop layout amélioré ══════════════════════════════════════════════ */
.shop-layout {
  padding-top: 24px;
}

/* ════ Micro-polish ══════════════════════════════════════════════════════ */
/* Smooth image loading */
img { transition: opacity .3s ease; }
img[loading="lazy"] { opacity: 0; }
img[loading="lazy"].loaded { opacity: 1; }

/* Transitions de focus améliorées */
.btn, button, a, input, select, textarea {
  transition-property: background, color, border-color, box-shadow, transform, opacity;
  transition-duration: .18s;
  transition-timing-function: ease;
}

/* ════ 5.2 : Core Web Vitals ══════════════════════════════════════════════ */

/* CLS — réservation d'espace pour les images en cours de chargement */
.product-card__image,
.sp-gallery__main {
  aspect-ratio: 4 / 5; /* empêche le layout shift avant chargement */
  overflow: hidden;
}

/* CLS — hero image : réservation hauteur mobile/desktop */
.hero-visual {
  min-height: clamp(300px, 50vw, 620px);
}

/* content-visibility : rendu différé des sections hors viewport (perf CPU)  */
/* Valeur de intrinsic-size = hauteur approximative pour éviter le scroll jump */
.section-fleurs,
.section-resines,
.section-huiles,
.section-bestsellers,
.section-blog,
.footer-main {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* CLS — Évite le saut de scroll causé par la scrollbar qui apparaît */
html { scrollbar-gutter: stable; }

/* INP — supprime les animations pour les utilisateurs qui préfèrent moins de mouvement */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-animate,
  .product-card,
  ::view-transition-old(root),
  ::view-transition-new(root) {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* LCP — la première image produit visible ne doit pas être lazy */
.products-grid .product-card:nth-child(-n+4) .product-card__img {
  loading: eager; /* propriété CSS indicative — attribut HTML géré côté PHP */
  /* Mais on peut forcer le décodage synchrone via CSS hint */
  image-rendering: auto;
}
