/* ===========================================================================
 *  OPMR Martinique — Couche « juicy »
 *  ---------------------------------------------------------------------------
 *  Modernité + efficacité, sans casser le DSFR ni l'accessibilité.
 *
 *  Principes :
 *   - Mobile-first absolu : tout est écrit pour 320 px, on n'agrandit qu'aux
 *     breakpoints supérieurs (sm 640, md 768, lg 1024).
 *   - Animations courtes (≤ 280 ms), easing naturel (cubic-bezier).
 *   - Toutes les animations sautées si prefers-reduced-motion: reduce.
 *   - Touch targets ≥ 44 × 44 px (WCAG 2.5.5).
 *   - Aucune classe ne collisionne avec .fr-* (DSFR) ni .opmr-* (territoire).
 *     Préfixe → .juicy-*
 * =========================================================================== */

:root {
  /* ─── Élévation (ombres en couches) ────────────────────────────────────── */
  --juicy-shadow-sm: 0 1px 2px rgba(10, 107, 59, 0.04),
                     0 1px 1px rgba(0, 0, 0, 0.06);
  --juicy-shadow-md: 0 4px 8px rgba(10, 107, 59, 0.06),
                     0 2px 4px rgba(0, 0, 0, 0.04);
  --juicy-shadow-lg: 0 12px 24px rgba(10, 107, 59, 0.08),
                     0 4px 8px rgba(30, 95, 138, 0.04);
  --juicy-shadow-xl: 0 24px 48px rgba(10, 107, 59, 0.1),
                     0 8px 16px rgba(30, 95, 138, 0.06);

  /* ─── Gradients territoriaux ───────────────────────────────────────────── */
  --juicy-gradient-hero: linear-gradient(
    135deg,
    #0a6b3b 0%,
    #1e5f8a 60%,
    #4a9ec9 100%
  );
  --juicy-gradient-hero-soft: linear-gradient(
    135deg,
    rgba(10, 107, 59, 0.04) 0%,
    rgba(30, 95, 138, 0.06) 50%,
    rgba(74, 158, 201, 0.04) 100%
  );
  --juicy-gradient-card: linear-gradient(
    180deg,
    #ffffff 0%,
    #f8fafc 100%
  );
  --juicy-gradient-stat: linear-gradient(
    135deg,
    rgba(74, 158, 201, 0.12) 0%,
    rgba(10, 107, 59, 0.06) 100%
  );

  /* ─── Rayons ────────────────────────────────────────────────────────────── */
  --juicy-radius-sm: 8px;
  --juicy-radius-md: 12px;
  --juicy-radius-lg: 16px;
  --juicy-radius-xl: 24px;
  --juicy-radius-pill: 999px;

  /* ─── Easings ──────────────────────────────────────────────────────────── */
  --juicy-ease-out: cubic-bezier(0.16, 1, 0.3, 1);          /* spring-like */
  --juicy-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --juicy-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);   /* doux rebond */

  /* ─── Durées ───────────────────────────────────────────────────────────── */
  --juicy-dur-fast: 140ms;
  --juicy-dur-base: 220ms;
  --juicy-dur-slow: 360ms;

  /* ─── Espacements mobile-first ─────────────────────────────────────────── */
  --juicy-touch-target: 44px;        /* WCAG 2.5.5 */
  --juicy-bottom-nav-h: 64px;        /* nav mobile + safe-area */
  --juicy-bottom-safe: env(safe-area-inset-bottom, 0px);
}

/* ===========================================================================
 *  Animations clés
 * =========================================================================== */

@keyframes juicy-fade-up {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes juicy-pop {
  0%   { transform: scale(0.94); opacity: 0; }
  60%  { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes juicy-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes juicy-pulse-dot {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.6; }
}

@keyframes juicy-count-up {
  from { transform: translate3d(0, 8px, 0); opacity: 0; }
  to   { transform: translate3d(0, 0, 0); opacity: 1; }
}

@keyframes juicy-slide-up {
  from { transform: translate3d(0, 100%, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* ===========================================================================
 *  Tuiles et cartes
 * =========================================================================== */

.juicy-card {
  background: var(--juicy-gradient-card);
  border-radius: var(--juicy-radius-md);
  box-shadow: var(--juicy-shadow-sm);
  padding: 1.125rem 1.125rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--juicy-dur-base) var(--juicy-ease-out),
              transform var(--juicy-dur-base) var(--juicy-ease-out);
  will-change: transform;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  /* Empêche tout contenu interne de dépasser la cellule de grid */
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.juicy-card:hover {
  box-shadow: var(--juicy-shadow-md);
  transform: translateY(-2px);
}

.juicy-card--interactive {
  cursor: pointer;
  min-height: var(--juicy-touch-target);
}

.juicy-card--interactive:active {
  transform: translateY(0);
  box-shadow: var(--juicy-shadow-sm);
  transition-duration: var(--juicy-dur-fast);
}

.juicy-card--elevated {
  box-shadow: var(--juicy-shadow-lg);
}

/* Apparition en cascade des cartes d'une grille */
.juicy-card--enter {
  animation: juicy-pop var(--juicy-dur-base) var(--juicy-ease-bounce) both;
}
.juicy-grid > *:nth-child(1) { animation-delay: 0ms; }
.juicy-grid > *:nth-child(2) { animation-delay: 40ms; }
.juicy-grid > *:nth-child(3) { animation-delay: 80ms; }
.juicy-grid > *:nth-child(4) { animation-delay: 120ms; }
.juicy-grid > *:nth-child(5) { animation-delay: 160ms; }
.juicy-grid > *:nth-child(6) { animation-delay: 200ms; }
.juicy-grid > *:nth-child(n+7) { animation-delay: 240ms; }

/* ===========================================================================
 *  Hero — version éditoriale, fond clair, gradient en blob décoratif
 *  Inspiration : Linear / Stripe / service-public.fr v3
 * =========================================================================== */

.juicy-hero {
  position: relative;
  padding: 3rem 0 2.5rem;
  background: #ffffff;
  color: var(--opmr-basalte, #1a1a1a);
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 768px) {
  .juicy-hero { padding: 5rem 0 4rem; }
}
@media (min-width: 1024px) {
  .juicy-hero { padding: 6rem 0 5rem; }
}

/* Blob gradient décoratif top-right (en arrière-plan, très flou, très discret) */
.juicy-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -15%;
  width: 720px;
  height: 720px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(74, 158, 201, 0.18) 0%,
    rgba(10, 107, 59, 0.10) 35%,
    transparent 70%
  );
  filter: blur(60px);
  z-index: -2;
  pointer-events: none;
  animation: juicy-blob-drift 18s ease-in-out infinite alternate;
}

/* Blob secondaire bottom-left */
.juicy-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(
    circle at 60% 40%,
    rgba(232, 220, 196, 0.5) 0%,
    transparent 60%
  );
  filter: blur(50px);
  z-index: -2;
  pointer-events: none;
}

@keyframes juicy-blob-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-30px, 20px, 0) scale(1.06); }
}

.juicy-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  color: var(--opmr-pierre-ponce, #6b7280);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 0;
  margin-bottom: 1rem;
  animation: juicy-fade-up var(--juicy-dur-slow) var(--juicy-ease-out) both;
}

.juicy-hero__eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--opmr-vert-morne, #0a6b3b);
  display: inline-block;
}

.juicy-hero__eyebrow i {
  color: var(--opmr-vert-morne, #0a6b3b);
  font-size: 0.95rem;
}

.juicy-hero__eyebrow strong {
  color: var(--opmr-basalte, #2d2d2d);
  font-weight: 700;
}

.juicy-hero__title {
  font-size: clamp(2rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.035em;
  max-width: 18ch;
  color: var(--opmr-basalte, #1a1a1a);
  animation: juicy-fade-up var(--juicy-dur-slow) var(--juicy-ease-out) 40ms both;
}

.juicy-hero__title-accent {
  background: linear-gradient(90deg, #0a6b3b 0%, #1e5f8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline;
}

.juicy-hero__subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--opmr-pierre-ponce, #4b5563);
  margin: 0 0 2rem;
  max-width: 52ch;
  line-height: 1.55;
  font-weight: 400;
  animation: juicy-fade-up var(--juicy-dur-slow) var(--juicy-ease-out) 80ms both;
}

/* Mini-stats inline sous la recherche (au lieu d'une grosse section séparée) */
.juicy-hero__inline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  animation: juicy-fade-up var(--juicy-dur-slow) var(--juicy-ease-out) 200ms both;
}

.juicy-hero__inline-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.juicy-hero__inline-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--opmr-basalte, #1a1a1a);
  letter-spacing: -0.02em;
  line-height: 1;
  font-feature-settings: "tnum";
}

.juicy-hero__inline-stat-label {
  font-size: 0.8125rem;
  color: var(--opmr-pierre-ponce, #6b7280);
  font-weight: 500;
}

/* ===========================================================================
 *  Barre de recherche hero — mobile friendly
 * =========================================================================== */

.juicy-search {
  display: flex;
  align-items: stretch;
  background: white;
  border-radius: var(--juicy-radius-pill);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04),
              0 12px 32px rgba(10, 107, 59, 0.08),
              0 4px 8px rgba(30, 95, 138, 0.04);
  padding: 5px;
  width: 100%;
  max-width: 620px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  animation: juicy-fade-up var(--juicy-dur-slow) var(--juicy-ease-out) 160ms both;
  transition: box-shadow var(--juicy-dur-base) var(--juicy-ease-out),
              transform var(--juicy-dur-base);
}

.juicy-search:focus-within {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04),
              0 16px 48px rgba(10, 107, 59, 0.16),
              0 6px 12px rgba(30, 95, 138, 0.10);
  transform: translateY(-1px);
}

.juicy-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: transparent;
  color: #1a1a1a;
  border-radius: var(--juicy-radius-pill);
  height: var(--juicy-touch-target);
  outline-offset: 2px;
}

.juicy-search__input::placeholder { color: #6c6c6c; }
.juicy-search__input:focus-visible { outline: 2px solid var(--opmr-bleu-cabesterre, #1e5f8a); }

.juicy-search__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--juicy-gradient-hero);
  color: white;
  border: 0;
  border-radius: var(--juicy-radius-pill);
  padding: 0 1.25rem;
  min-width: var(--juicy-touch-target);
  height: var(--juicy-touch-target);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--juicy-dur-fast) var(--juicy-ease-out),
              filter var(--juicy-dur-fast) var(--juicy-ease-out);
}

.juicy-search__button:hover  { filter: brightness(1.08); }
.juicy-search__button:active { transform: scale(0.97); }

/* Cache le texte du bouton sur mobile mais garde l'icône */
@media (max-width: 480px) {
  .juicy-search__button-label { display: none; }
}

/* ===========================================================================
 *  Badge évolution prix — vert (baisse) / corail (hausse) / neutre (stable)
 * =========================================================================== */

/* ============== DELTA v2 — badge visuellement impactant (mai 2026) ============== */
/* Sémantique : delta < 0 = Martinique MOINS CHÈRE = favorable (vert)
 *              delta > 0 = Martinique PLUS CHÈRE = défavorable (rouge)
 *              delta ≈ 0 = prix similaires (gris neutre) */

.juicy-delta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.1;
  white-space: nowrap;
  animation: juicy-pop var(--juicy-dur-base) var(--juicy-ease-bounce) both;
  position: relative;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
  /* Pour éviter overflow horizontal si la card est très étroite */
  max-width: 60%;
  min-width: 0;
}
.juicy-delta:hover {
  transform: translateY(-1px);
}

/* Icône ronde compacte */
.juicy-delta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 0.6875rem;
}

/* Bloc texte : valeur + hint en dessous (compact) */
.juicy-delta__text {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  gap: 1px;
}
.juicy-delta__value {
  font-size: 0.875rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.juicy-delta__hint {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
  margin-top: 0;
  white-space: nowrap;
}

/* Baisse — Martinique moins chère = favorable */
.juicy-delta--baisse {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #047857;
  border-color: #a7f3d0;
  box-shadow: 0 1px 3px rgba(4, 120, 87, 0.06);
}
.juicy-delta--baisse .juicy-delta__icon {
  background: #047857;
  color: white;
  box-shadow: 0 2px 6px rgba(4, 120, 87, 0.30);
}
.juicy-delta--baisse:hover {
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.15);
}

/* Hausse — Martinique plus chère = alerte */
.juicy-delta--hausse {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #b91c1c;
  border-color: #fecaca;
  box-shadow: 0 1px 3px rgba(185, 28, 28, 0.06);
}
.juicy-delta--hausse .juicy-delta__icon {
  background: #dc2626;
  color: white;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.30);
}
.juicy-delta--hausse:hover {
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

/* Stable — prix similaires */
.juicy-delta--stable {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  color: #4b5563;
  border-color: #d1d5db;
}
.juicy-delta--stable .juicy-delta__icon {
  background: #6b7280;
  color: white;
}

/* Mobile : badges plus compacts */
@media (max-width: 539px) {
  .juicy-delta { padding: 6px 10px; gap: 6px; }
  .juicy-delta__icon { width: 24px; height: 24px; font-size: 0.75rem; }
  .juicy-delta__value { font-size: 0.9375rem; }
  .juicy-delta__hint { font-size: 0.625rem; }
}

/* Variante --row (legacy, non utilisée actuellement — gardée pour fallback) */
.juicy-delta--row {
  display: flex;
  width: 100%;
  margin-top: 10px;
}

/* Legacy : conservé en cas de fallback */
.juicy-delta__arrow {
  font-size: 0.75rem;
  font-weight: 700;
}

/* ===========================================================================
 *  Chips de filtre — pillule scrollable horizontalement sur mobile
 *  Structure interne : [icône] [label] [count badge]
 * =========================================================================== */

.juicy-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 1rem 12px;
  margin: 0 -1rem;
  scrollbar-width: none;
  scroll-padding-left: 1rem;
}
.juicy-chips::-webkit-scrollbar { display: none; }

.juicy-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 12px;
  min-height: var(--juicy-touch-target);
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: var(--juicy-radius-pill);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color var(--juicy-dur-fast) var(--juicy-ease-out),
              background var(--juicy-dur-fast) var(--juicy-ease-out),
              color var(--juicy-dur-fast) var(--juicy-ease-out),
              box-shadow var(--juicy-dur-fast) var(--juicy-ease-out),
              transform var(--juicy-dur-fast) var(--juicy-ease-out);
  white-space: nowrap;
  letter-spacing: -0.005em;
  position: relative;
}

.juicy-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--opmr-vert-morne, #0a6b3b);
  flex: 0 0 16px;
  transition: color var(--juicy-dur-fast);
}

.juicy-chip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: var(--juicy-radius-pill);
  margin-left: 2px;
  font-feature-settings: "tnum";
  transition: background var(--juicy-dur-fast), color var(--juicy-dur-fast);
}

.juicy-chip:hover {
  border-color: var(--opmr-bleu-caraibe, #4a9ec9);
  background: var(--opmr-bleu-caraibe-pale, #e8f3f9);
  color: var(--opmr-bleu-cabesterre, #1e5f8a);
}

.juicy-chip:hover .juicy-chip__icon {
  color: var(--opmr-bleu-cabesterre, #1e5f8a);
}

.juicy-chip:focus-visible {
  outline: 2px solid var(--opmr-bleu-cabesterre, #1e5f8a);
  outline-offset: 2px;
}

.juicy-chip[aria-pressed="true"] {
  background: var(--juicy-gradient-hero);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(10, 107, 59, 0.25),
              0 1px 2px rgba(30, 95, 138, 0.15);
  transform: translateY(-1px);
}

.juicy-chip[aria-pressed="true"] .juicy-chip__icon {
  color: white;
}

.juicy-chip[aria-pressed="true"] .juicy-chip__count {
  background: rgba(255, 255, 255, 0.22);
  color: white;
  font-weight: 700;
}

.juicy-chip:active { transform: scale(0.97); }

/* Indicateur de scroll horizontal sur mobile (dégradé fondu à droite) */
.juicy-chips-wrap {
  position: relative;
}
.juicy-chips-wrap::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 32px;
  background: linear-gradient(to right, transparent, white);
  pointer-events: none;
  border-radius: 0 var(--juicy-radius-md) var(--juicy-radius-md) 0;
}
@media (min-width: 768px) {
  .juicy-chips-wrap::after { display: none; }
}

/* ===========================================================================
 *  Stat tile — chiffres-clés animés
 * =========================================================================== */

.juicy-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 1.25rem;
  border-radius: var(--juicy-radius-md);
  background: var(--juicy-gradient-stat);
  border: 1px solid rgba(10, 107, 59, 0.08);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.juicy-stat__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--opmr-vert-morne, #0a6b3b);
  box-shadow: var(--juicy-shadow-sm);
  margin-bottom: 0.5rem;
}

.juicy-stat__value {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--opmr-basalte, #2a2a2a);
  animation: juicy-count-up var(--juicy-dur-slow) var(--juicy-ease-out) both;
}

.juicy-stat__label {
  font-size: 0.875rem;
  color: var(--opmr-pierre-ponce, #6c6c6c);
  font-weight: 500;
}

.juicy-stat__trend {
  margin-top: 0.5rem;
}

/* ===========================================================================
 *  Carte produit — éléments internes typés
 * =========================================================================== */

.juicy-product__img {
  isolation: isolate;
}

.juicy-product__brand {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--opmr-pierre-ponce, #6b7280);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.juicy-product__name {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 4px;
  line-height: 1.3;
  color: var(--opmr-basalte, #1a1a1a);
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.juicy-product__pack {
  font-size: 0.75rem;
  color: var(--opmr-pierre-ponce, #6b7280);
  font-feature-settings: "tnum";
}

.juicy-product__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Colonne gauche : prix + magasin empilés verticalement */
.juicy-product__price-col {
  flex: 1 1 auto;
  min-width: 0;          /* permet à l'ellipsis de fonctionner sur le store */
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.juicy-product__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--opmr-basalte, #1a1a1a);
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
  line-height: 1.1;
  white-space: nowrap;
}

.juicy-product__store {
  font-size: 0.75rem;
  color: var(--opmr-pierre-ponce, #6b7280);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Badge nutri-score (officiel : A vert / B vert clair / C jaune / D orange / E rouge) ── */
.juicy-product__nutri {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  font-family: Marianne, system-ui, sans-serif;
}

.juicy-product__nutri--a { background: #038141; }
.juicy-product__nutri--b { background: #85bb2f; }
.juicy-product__nutri--c { background: #fecb02; color: #1a1a1a; }
.juicy-product__nutri--d { background: #ee8100; }
.juicy-product__nutri--e { background: #e63e11; }

/* ── Badge promo ── */
.juicy-product__promo {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--opmr-corail-discret, #c2674f);
  color: white;
  padding: 4px 10px;
  border-radius: var(--juicy-radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(194, 103, 79, 0.3);
  letter-spacing: -0.005em;
}

/* Loading state pendant que l'image OFF se charge */
.juicy-product__img {
  background-color: #f1f5f9 !important;
  background-blend-mode: normal;
}

/* ===========================================================================
 *  Filter panel — sidebar gauche desktop, bottom-sheet mobile
 * =========================================================================== */

.juicy-filterbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.juicy-filterbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  min-height: var(--juicy-touch-target);
  background-color: #ffffff !important;
  background-image: none !important;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--juicy-radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
  position: relative;
}

.juicy-filterbar__btn:hover,
.juicy-filterbar__btn:focus-visible {
  border-color: #1e5f8a !important;
  background-color: #e8f3f9 !important;
  background-image: none !important;
  color: #1a1a1a !important;
  text-decoration: none !important;
}
.juicy-filterbar__btn:focus-visible {
  outline: 2px solid #0a6b3b;
  outline-offset: 2px;
}

.juicy-filterbar__btn--active {
  border-color: #0a6b3b !important;
  background-color: #0a6b3b !important;
  background-image: none !important;
  color: #ffffff !important;
}
.juicy-filterbar__btn--active:hover,
.juicy-filterbar__btn--active:focus-visible {
  border-color: #095d33 !important;
  background-color: #095d33 !important;
  color: #ffffff !important;
}

.juicy-filterbar__btn-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.08);
  border-radius: var(--juicy-radius-pill);
  font-feature-settings: "tnum";
}

.juicy-filterbar__btn--active .juicy-filterbar__btn-count {
  background: rgba(255, 255, 255, 0.22);
}

.juicy-filterbar__sort {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--opmr-pierre-ponce, #6b7280);
}

.juicy-filterbar__sort select {
  min-height: var(--juicy-touch-target);
  padding: 0 36px 0 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--juicy-radius-pill);
  background: white url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>") right 12px center/16px no-repeat;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--opmr-basalte, #1a1a1a);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.juicy-filterbar__sort select:focus-visible {
  outline: 2px solid var(--opmr-bleu-cabesterre, #1e5f8a);
  outline-offset: 2px;
}

/* Barre de filtres actifs (chips removable) */
.juicy-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
  padding: 12px 14px;
  background: rgba(10, 107, 59, 0.04);
  border-radius: var(--juicy-radius-md);
  border: 1px solid rgba(10, 107, 59, 0.08);
}

.juicy-active-filters__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--opmr-pierre-ponce, #6b7280);
  align-self: center;
  margin-right: 4px;
}

.juicy-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 12px;
  background: white;
  border: 1px solid rgba(10, 107, 59, 0.2);
  border-radius: var(--juicy-radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--opmr-basalte, #1a1a1a);
}

.juicy-active-chip__remove {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--opmr-pierre-ponce, #6b7280);
  transition: background var(--juicy-dur-fast);
}

.juicy-active-chip__remove:hover {
  background: var(--opmr-corail-discret, #c2674f);
  color: white;
}

.juicy-active-filters__clear {
  margin-left: auto;
  background: transparent;
  border: 0;
  padding: 4px 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--opmr-bleu-cabesterre, #1e5f8a);
  cursor: pointer;
  border-radius: var(--juicy-radius-pill);
  transition: background var(--juicy-dur-fast);
}

.juicy-active-filters__clear:hover { background: rgba(30, 95, 138, 0.08); }

/* ── Panneau filtre lui-même (mobile bottom-sheet, desktop side-drawer) ─── */

.juicy-filter-panel {
  position: fixed;
  z-index: 201;
  background: white;
  box-shadow: var(--juicy-shadow-xl);
  display: flex;
  flex-direction: column;
  left: 0; right: 0; bottom: 0;
  max-height: 92vh;
  border-radius: var(--juicy-radius-xl) var(--juicy-radius-xl) 0 0;
  transform: translate3d(0, 100%, 0);
  animation: juicy-drawer-up var(--juicy-dur-slow) var(--juicy-ease-out) forwards;
}

@media (min-width: 1024px) {
  .juicy-filter-panel {
    left: 0;
    top: 0;
    bottom: 0;
    right: auto;
    width: 380px;
    max-height: 100vh;
    border-radius: 0 var(--juicy-radius-xl) var(--juicy-radius-xl) 0;
    transform: translate3d(-100%, 0, 0);
    animation: juicy-filter-side var(--juicy-dur-slow) var(--juicy-ease-out) forwards;
  }
  @keyframes juicy-filter-side { to { transform: translate3d(0, 0, 0); } }
}

.juicy-filter-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex: 0 0 auto;
}

.juicy-filter-panel__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  color: var(--opmr-basalte, #1a1a1a);
}

.juicy-filter-panel__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--opmr-basalte, #1a1a1a);
}

.juicy-filter-panel__body {
  padding: 20px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.juicy-filter-panel__group {
  margin-bottom: 1.75rem;
}

.juicy-filter-panel__group-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--opmr-pierre-ponce, #6b7280);
  margin: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Micro-aide en italique sous le titre du filtre (cf. observation UX :
   « ajouter un texte explicatif ») */
.juicy-filter-panel__hint {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--opmr-pierre-ponce, #6b7280);
  margin: -4px 0 10px;
  line-height: 1.4;
}

/* Tooltip d'aide (icône ⓘ à côté du titre de filtre) */
.juicy-filter-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--opmr-bleu-cabesterre, #0a3d62);
  cursor: help;
  position: relative;
  border-radius: 50%;
  text-transform: none;
  letter-spacing: 0;
  outline: none;
}
.juicy-filter-help:hover,
.juicy-filter-help:focus-visible { color: var(--opmr-vert-morne, #0a6b3b); }
.juicy-filter-help:focus-visible {
  outline: 2px solid var(--opmr-vert-morne, #0a6b3b);
  outline-offset: 2px;
}
.juicy-filter-help::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 400;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.45;
  white-space: normal;
  width: max-content;
  max-width: 240px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.juicy-filter-help::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1a1a1a;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms;
}
.juicy-filter-help:hover::after,
.juicy-filter-help:hover::before,
.juicy-filter-help:focus-visible::after,
.juicy-filter-help:focus-visible::before { opacity: 1; }
@media (max-width: 540px) {
  .juicy-filter-help::after { max-width: 200px; left: 0; transform: none; }
  .juicy-filter-help::before { left: 8px; transform: none; }
}

/* Checkbox custom */
.juicy-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--opmr-basalte, #1a1a1a);
  min-height: var(--juicy-touch-target);
}

.juicy-check input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
  transition: all var(--juicy-dur-fast);
}

.juicy-check input:checked {
  background: var(--opmr-vert-morne, #0a6b3b);
  border-color: var(--opmr-vert-morne, #0a6b3b);
}

.juicy-check input:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.juicy-check input:focus-visible {
  outline: 2px solid var(--opmr-bleu-cabesterre, #1e5f8a);
  outline-offset: 2px;
}

.juicy-check__count {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--opmr-pierre-ponce, #6b7280);
  font-feature-settings: "tnum";
}

/* Nutri-Score pills selector */
.juicy-nutri-pills {
  display: flex;
  gap: 6px;
}

.juicy-nutri-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: var(--juicy-radius-sm);
  font-weight: 700;
  font-size: 1rem;
  color: white;
  border: 3px solid transparent;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity var(--juicy-dur-fast), transform var(--juicy-dur-fast), border-color var(--juicy-dur-fast);
}

.juicy-nutri-pill[aria-pressed="true"] {
  opacity: 1;
  border-color: var(--opmr-basalte, #1a1a1a);
  transform: scale(1.05);
}

.juicy-nutri-pill:hover { opacity: 0.85; }

.juicy-nutri-pill--a { background: #038141; }
.juicy-nutri-pill--b { background: #85bb2f; }
.juicy-nutri-pill--c { background: #fecb02; color: #1a1a1a; }
.juicy-nutri-pill--d { background: #ee8100; }
.juicy-nutri-pill--e { background: #e63e11; }

/* Price range slider (double thumb) */
.juicy-price-range {
  position: relative;
  height: 40px;
  padding-top: 8px;
}

.juicy-price-range__track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  transform: translateY(-50%);
  background: #e5e7eb;
  border-radius: 2px;
}

.juicy-price-range__progress {
  position: absolute;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  background: var(--juicy-gradient-hero);
  border-radius: 2px;
}

.juicy-price-range input[type="range"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: transparent;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

.juicy-price-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: all;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--opmr-vert-morne, #0a6b3b);
  box-shadow: var(--juicy-shadow-md);
  cursor: pointer;
}
.juicy-price-range input[type="range"]::-moz-range-thumb {
  pointer-events: all;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--opmr-vert-morne, #0a6b3b);
  box-shadow: var(--juicy-shadow-md);
  cursor: pointer;
}

.juicy-price-range__values {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--opmr-basalte, #1a1a1a);
  font-weight: 600;
  font-feature-settings: "tnum";
}

/* Toggle switch */
.juicy-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  cursor: pointer;
  min-height: var(--juicy-touch-target);
}

.juicy-toggle__label {
  font-size: 0.9375rem;
  color: var(--opmr-basalte, #1a1a1a);
  font-weight: 500;
}

.juicy-toggle input {
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 24px;
  background: #d1d5db;
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background var(--juicy-dur-fast);
  flex: 0 0 auto;
}

.juicy-toggle input:checked { background: var(--opmr-vert-morne, #0a6b3b); }

.juicy-toggle input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  transition: transform var(--juicy-dur-fast) var(--juicy-ease-out);
}

.juicy-toggle input:checked::after { transform: translateX(20px); }

/* Footer (CTA bouton appliquer + reset) */
.juicy-filter-panel__footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px calc(14px + var(--juicy-bottom-safe));
  border-top: 1px solid rgba(0,0,0,0.06);
  background: white;
  flex: 0 0 auto;
}

.juicy-filter-panel__footer button {
  flex: 1;
  min-height: var(--juicy-touch-target);
  border-radius: var(--juicy-radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 0;
  cursor: pointer;
  transition: transform var(--juicy-dur-fast), filter var(--juicy-dur-fast);
}

.juicy-filter-panel__reset {
  background: white;
  color: var(--opmr-pierre-ponce, #6b7280);
  border: 1px solid #e5e7eb !important;
}
.juicy-filter-panel__reset:hover { background: #f8fafc; color: var(--opmr-basalte, #1a1a1a); }

.juicy-filter-panel__apply {
  background: var(--juicy-gradient-hero);
  color: white;
}
.juicy-filter-panel__apply:hover { filter: brightness(1.08); }

.juicy-filter-panel__footer button:active { transform: scale(0.97); }

@media (prefers-reduced-motion: reduce) {
  .juicy-filter-panel,
  .juicy-nutri-pill,
  .juicy-toggle input::after { animation: none !important; transition: none !important; }
}

/* ===========================================================================
 *  Drawer fiche produit — bottom-sheet mobile, side-drawer desktop
 * =========================================================================== */

.juicy-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 40, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  animation: juicy-drawer-bg-in var(--juicy-dur-base) var(--juicy-ease-out) forwards;
}

@keyframes juicy-drawer-bg-in { to { opacity: 1; } }

.juicy-drawer {
  position: fixed;
  z-index: 201;
  background: white;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.18);
  /* Mobile bottom-sheet */
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92vh;
  border-radius: var(--juicy-radius-xl) var(--juicy-radius-xl) 0 0;
  transform: translate3d(0, 100%, 0);
  animation: juicy-drawer-up var(--juicy-dur-slow) var(--juicy-ease-out) forwards;
}

@keyframes juicy-drawer-up { to { transform: translate3d(0, 0, 0); } }

/* Desktop : side-drawer 520px à droite */
@media (min-width: 1024px) {
  .juicy-drawer {
    top: 0;
    bottom: 0;
    left: auto;
    right: 0;
    width: 520px;
    max-height: 100vh;
    border-radius: var(--juicy-radius-xl) 0 0 var(--juicy-radius-xl);
    transform: translate3d(100%, 0, 0);
    animation: juicy-drawer-side var(--juicy-dur-slow) var(--juicy-ease-out) forwards;
  }
  @keyframes juicy-drawer-side { to { transform: translate3d(0, 0, 0); } }
}

.juicy-drawer__handle {
  width: 40px;
  height: 4px;
  background: rgba(0,0,0,0.18);
  border-radius: 2px;
  margin: 10px auto 0;
  flex: 0 0 auto;
}
@media (min-width: 1024px) {
  .juicy-drawer__handle { display: none; }
}

.juicy-drawer__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--juicy-shadow-md);
  color: var(--opmr-basalte, #1a1a1a);
  transition: transform var(--juicy-dur-fast), background var(--juicy-dur-fast);
}
.juicy-drawer__close:hover { background: white; transform: scale(1.06); }
.juicy-drawer__close:active { transform: scale(0.94); }

.juicy-drawer__hero {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #e6f2ec 0%, #e8f3f9 100%) center/contain no-repeat;
  flex: 0 0 auto;
  border-radius: var(--juicy-radius-xl) var(--juicy-radius-xl) 0 0;
}
@media (min-width: 1024px) {
  .juicy-drawer__hero { aspect-ratio: 4/3; border-radius: var(--juicy-radius-xl) 0 0 0; }
}

.juicy-drawer__body {
  padding: 1.5rem 1.5rem 1.5rem;
  overflow-y: auto;
  flex: 1 1 auto;
  scrollbar-width: thin;
}

.juicy-drawer__header {
  margin-bottom: 1.25rem;
}

.juicy-drawer__brand {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--opmr-pierre-ponce, #6b7280);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.juicy-drawer__name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--opmr-basalte, #1a1a1a);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.juicy-drawer__meta {
  display: flex;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--opmr-pierre-ponce, #6b7280);
  flex-wrap: wrap;
}

.juicy-drawer__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Price hero block */
.juicy-drawer__price-hero {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--opmr-vert-morne-pale, #e6f2ec) 0%, var(--opmr-bleu-caraibe-pale, #e8f3f9) 100%);
  border-radius: var(--juicy-radius-md);
  margin-bottom: 1.5rem;
}

.juicy-drawer__price-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--opmr-pierre-ponce, #6b7280);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.juicy-drawer__price-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--opmr-basalte, #1a1a1a);
  letter-spacing: -0.025em;
  font-feature-settings: "tnum";
  line-height: 1;
}

.juicy-drawer__price-suffix {
  font-size: 0.875rem;
  color: var(--opmr-pierre-ponce, #6b7280);
  margin-top: 2px;
}

/* Section title */
.juicy-drawer__section {
  margin-bottom: 1.5rem;
}

.juicy-drawer__section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--opmr-pierre-ponce, #6b7280);
  margin: 0 0 12px;
}

/* Stores list */
.juicy-drawer__stores {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.juicy-drawer__store {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--juicy-radius-sm);
  transition: border-color var(--juicy-dur-fast), background var(--juicy-dur-fast);
}

.juicy-drawer__store--best {
  border-color: var(--opmr-vert-morne, #0a6b3b);
  background: rgba(10, 107, 59, 0.06);
  position: relative;
  padding-top: 28px !important; /* place pour le badge MEILLEUR PRIX */
  margin-top: 8px;
}

.juicy-drawer__store--best::before {
  content: "★ MEILLEUR PRIX";
  position: absolute;
  top: 6px;
  right: 8px;
  left: auto;
  background: var(--opmr-vert-morne, #0a6b3b);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(10, 107, 59, 0.25);
}

.juicy-drawer__store-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--opmr-basalte, #1a1a1a);
}

.juicy-drawer__store-meta {
  display: flex;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--opmr-pierre-ponce, #6b7280);
  margin-top: 2px;
}

.juicy-drawer__store-price {
  font-size: 1rem;
  font-weight: 700;
  font-feature-settings: "tnum";
  color: var(--opmr-basalte, #1a1a1a);
}

/* Mini chart sparkline */
.juicy-drawer__sparkline {
  width: 100%;
  height: 80px;
  background: #fafbfc;
  border-radius: var(--juicy-radius-sm);
  padding: 8px;
}

/* Actions */
.juicy-drawer__actions {
  display: flex;
  gap: 8px;
  padding: 12px 1.5rem calc(12px + var(--juicy-bottom-safe));
  border-top: 1px solid rgba(0,0,0,0.06);
  background: white;
  flex: 0 0 auto;
}

.juicy-drawer__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--juicy-touch-target);
  border-radius: var(--juicy-radius-pill);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  transition: transform var(--juicy-dur-fast), filter var(--juicy-dur-fast);
}

.juicy-drawer__btn--primary {
  background: var(--juicy-gradient-hero);
  color: white;
}
.juicy-drawer__btn--primary:hover { filter: brightness(1.08); }

.juicy-drawer__btn--secondary {
  background: white;
  color: var(--opmr-basalte, #1a1a1a);
  border: 1px solid rgba(0,0,0,0.1);
}
.juicy-drawer__btn--secondary:hover { background: #f8fafc; }

.juicy-drawer__btn:active { transform: scale(0.97); }

/* Quand le drawer est ouvert, on bloque le scroll body */
body.juicy-drawer-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .juicy-drawer,
  .juicy-drawer-backdrop { animation: none !important; }
}

/* ===========================================================================
 *  Toast / notification (pour les actions FAB scan, ajout comparateur)
 * =========================================================================== */

.juicy-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--juicy-bottom-nav-h) + var(--juicy-bottom-safe) + 80px);
  transform: translate3d(-50%, 0, 0);
  z-index: 200;
  background: var(--opmr-basalte, #1a1a1a);
  color: white;
  padding: 10px 18px;
  border-radius: var(--juicy-radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--juicy-shadow-xl);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  animation: juicy-toast-in var(--juicy-dur-base) var(--juicy-ease-out) both;
  max-width: calc(100% - 2rem);
}

@keyframes juicy-toast-in {
  from { transform: translate3d(-50%, 24px, 0); opacity: 0; }
  to   { transform: translate3d(-50%, 0, 0); opacity: 1; }
}

.juicy-toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--opmr-vert-morne-clair, #2f8b5e);
  color: white;
  flex: 0 0 auto;
}

@media (min-width: 1024px) {
  .juicy-toast { bottom: 32px; }
}

/* ===========================================================================
 *  Skeleton loader (shimmer)
 * =========================================================================== */

.juicy-skeleton {
  background: linear-gradient(
    90deg,
    #f1f5f9 0%,
    #e2e8f0 50%,
    #f1f5f9 100%
  );
  background-size: 200% 100%;
  animation: juicy-shimmer 1.4s linear infinite;
  border-radius: var(--juicy-radius-sm);
}

/* ===========================================================================
 *  Indicateur live (point pulsant — données temps réel)
 * =========================================================================== */

.juicy-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--opmr-vert-morne, #0a6b3b);
}

.juicy-live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--opmr-vert-morne, #0a6b3b);
  animation: juicy-pulse-dot 1.6s var(--juicy-ease-in-out) infinite;
}

/* ===========================================================================
 *  Bottom navigation mobile
 * =========================================================================== */

.juicy-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--juicy-bottom-nav-h) + var(--juicy-bottom-safe));
  padding-bottom: var(--juicy-bottom-safe);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

@media (min-width: 1024px) {
  .juicy-bottom-nav { display: none; }
}

.juicy-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--opmr-pierre-ponce, #6c6c6c);
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 500;
  min-height: var(--juicy-touch-target);
  transition: color var(--juicy-dur-fast);
}

.juicy-bottom-nav__item[aria-current="page"] {
  color: var(--opmr-vert-morne, #0a6b3b);
}

.juicy-bottom-nav__item[aria-current="page"] .juicy-bottom-nav__icon {
  transform: scale(1.1) translateY(-1px);
}

.juicy-bottom-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: transform var(--juicy-dur-base) var(--juicy-ease-bounce);
}

/* Espace en bas du body pour ne pas que la nav recouvre le contenu */
body.has-bottom-nav {
  padding-bottom: calc(var(--juicy-bottom-nav-h) + var(--juicy-bottom-safe));
}

@media (min-width: 1024px) {
  body.has-bottom-nav { padding-bottom: 0; }
}

/* ===========================================================================
 *  Bottom sheet — drawer mobile pour filtres/détails
 * =========================================================================== */

.juicy-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
  animation: juicy-fade-up var(--juicy-dur-base) var(--juicy-ease-out) both;
}

.juicy-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 101;
  background: white;
  border-radius: var(--juicy-radius-xl) var(--juicy-radius-xl) 0 0;
  box-shadow: var(--juicy-shadow-xl);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: juicy-slide-up var(--juicy-dur-base) var(--juicy-ease-out) both;
  padding-bottom: var(--juicy-bottom-safe);
}

.juicy-sheet__handle {
  width: 40px;
  height: 4px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 2px;
  margin: 8px auto 4px;
  flex: 0 0 auto;
}

.juicy-sheet__header {
  padding: 8px 1.25rem 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  flex: 0 0 auto;
}

.juicy-sheet__body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
  flex: 1 1 auto;
}

/* ===========================================================================
 *  Header sticky avec ombre au scroll
 * =========================================================================== */

.juicy-sticky-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  transition: box-shadow var(--juicy-dur-base);
}

.juicy-sticky-header--scrolled { box-shadow: var(--juicy-shadow-sm); }

/* ===========================================================================
 *  Bouton FAB (Floating Action Button) — scan code-barres mobile
 * =========================================================================== */

.juicy-fab {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--juicy-bottom-nav-h) + var(--juicy-bottom-safe) + 1rem);
  z-index: 45;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--juicy-gradient-hero);
  color: white;
  border: 0;
  box-shadow: var(--juicy-shadow-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--juicy-dur-base) var(--juicy-ease-bounce),
              box-shadow var(--juicy-dur-base);
}

.juicy-fab:hover  { transform: scale(1.05); box-shadow: var(--juicy-shadow-xl); }
.juicy-fab:active { transform: scale(0.95); }

@media (min-width: 1024px) {
  .juicy-fab { display: none; }  /* sur desktop, le scan est dans le header */
}

/* ===========================================================================
 *  Conteneur layout responsive
 * =========================================================================== */

.juicy-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  max-width: 1280px;
}

/* ============= Bannière d'alerte administrable (CCTP §4.5) ============= */
.opmr-alert-banner {
  background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
  border-bottom: 1px solid #fcd34d;
  font-family: Marianne, system-ui, -apple-system, sans-serif;
  color: #1f2937;
}
.opmr-alert-banner[hidden] { display: none; }
.opmr-alert-banner__inner {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
}
.opmr-alert-banner__icon {
  width: 28px; height: 28px;
  background: #f59e0b;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8125rem;
  flex-shrink: 0;
}
.opmr-alert-banner__text {
  flex: 1;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
}
.opmr-alert-banner__text strong { color: #92400e; font-weight: 700; }
.opmr-alert-banner__link {
  color: #92400e;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 4px;
  white-space: nowrap;
}
.opmr-alert-banner__link:hover { color: #78350f; }
.opmr-alert-banner__close {
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: #92400e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: background-color 0.15s;
}
.opmr-alert-banner__close:hover { background: rgba(146, 64, 14, 0.12); }
@media (max-width: 539px) {
  .opmr-alert-banner__inner { padding: 0.625rem 0.75rem; gap: 0.5rem; }
  .opmr-alert-banner__icon { width: 24px; height: 24px; font-size: 0.6875rem; }
  .opmr-alert-banner__text { font-size: 0.8125rem; }
  .opmr-alert-banner__link { display: block; margin-top: 4px; margin-left: 0; }
}

/* ============= Sections flat (uniformes, sans encadrement) =============
 * Toutes les sections texte de la homepage (CTA signalement, node content,
 * partage) partagent ce style — plus de cards / bordures / fonds colorés
 * qui créaient des incohérences visuelles. Aération verticale uniforme. */
.opmr-flat-section {
  padding: 2.5rem 0 1.5rem;
  background: transparent;
}
.opmr-flat-section + .opmr-flat-section {
  padding-top: 0.5rem;
}
.opmr-flat-section__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
  color: #1a1a1a;
  display: flex;
  align-items: center;
}
.opmr-flat-section__lead {
  margin: 0 0 1rem;
  color: #4b5563;
  max-width: 65ch;
  line-height: 1.55;
}

/* Reset Drupal node rendering pour qu'il ait le même flow que les autres sections */
.opmr-node-content > * { background: transparent !important; }
.opmr-node-content .fr-grid-row,
.opmr-node-content article,
.opmr-node-content .node {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.opmr-node-content h1,
.opmr-node-content h2,
.opmr-node-content h3 {
  letter-spacing: -0.01em;
  color: #1a1a1a;
}
.opmr-node-content h1 { font-size: 1.5rem; margin: 0 0 0.5rem; }
.opmr-node-content h2 { font-size: 1.25rem; margin: 1.5rem 0 0.5rem; font-weight: 700; }
.opmr-node-content h3 { font-size: 1.0625rem; margin: 1.25rem 0 0.25rem; font-weight: 700; }
.opmr-node-content p {
  color: #4b5563;
  line-height: 1.55;
  max-width: 70ch;
  margin: 0 0 0.75rem;
}
.opmr-node-content ul,
.opmr-node-content ol {
  color: #4b5563;
  max-width: 65ch;
  line-height: 1.65;
  padding-left: 1.25rem;
}
.opmr-node-content li { margin: 0.125rem 0; }
.opmr-node-content a {
  color: #0a3d62;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.opmr-node-content a:hover { color: #0a6b3b; }

@media (min-width: 768px) {
  .juicy-container { padding: 0 1.5rem; }
}

.juicy-stack > * + * { margin-top: 1rem; }
.juicy-stack-lg > * + * { margin-top: 2rem; }

.juicy-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .juicy-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .juicy-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .juicy-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ===========================================================================
 *  Footer — version minimaliste, un seul fond clair
 *  Inspiration : Linear / Stripe / gov.uk / service-public.fr v3
 *  Doctrine : moins c'est plus. Une seule section visuelle, aération max.
 * =========================================================================== */

.juicy-footer {
  background: #ffffff;
  color: #1f2937;
  font-size: 0.875rem;
  line-height: 1.5;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 4rem 0 calc(2.5rem + var(--juicy-bottom-safe));
}

@media (min-width: 768px) {
  .juicy-footer { padding: 5rem 0 3rem; }
}

/* ── Layout principal : brand à gauche, navs à droite ──────────────────── */
.juicy-footer__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

@media (min-width: 1024px) {
  .juicy-footer__main {
    grid-template-columns: 1.4fr 2fr;
    gap: 4rem;
  }
}

/* ── Brand block ────────────────────────────────────────────────────────── */
.juicy-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.juicy-footer__identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.juicy-footer__opmr-logo {
  flex: 0 0 auto;
  color: var(--opmr-vert-morne, #0a6b3b);
}

.juicy-footer__opmr-name {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  color: var(--opmr-basalte, #1a1a1a);
  line-height: 1.2;
}

.juicy-footer__opmr-sub {
  font-size: 0.8125rem;
  color: var(--opmr-pierre-ponce, #6b7280);
  margin-top: 2px;
  line-height: 1.4;
}

.juicy-footer__desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--opmr-pierre-ponce, #6b7280);
  line-height: 1.6;
  max-width: 40ch;
}

/* Tagline République Française minimaliste */
.juicy-footer__rep {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--opmr-pierre-ponce, #6b7280);
  text-transform: uppercase;
}

.juicy-footer__rep::before {
  content: "🇫🇷";
  font-size: 0.875rem;
  filter: saturate(0.85);
}

/* ── Navs droite ─────────────────────────────────────────────────────────── */
.juicy-footer__navs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 2rem;
}

@media (min-width: 768px) {
  .juicy-footer__navs { grid-template-columns: repeat(3, 1fr); }
}

.juicy-footer__nav-title {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--opmr-basalte, #1a1a1a);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.juicy-footer__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.juicy-footer__nav a {
  color: var(--opmr-pierre-ponce, #6b7280);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--juicy-dur-fast);
  display: inline-block;
}

.juicy-footer__nav a:hover {
  color: var(--opmr-vert-morne, #0a6b3b);
}

/* ── Bottom : partenaires + legal + copy, une seule rangée aérée ───────── */
.juicy-footer__bottom {
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.juicy-footer__partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.juicy-footer__partners-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--opmr-pierre-ponce, #6b7280);
}

.juicy-footer__partner {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--opmr-basalte, #1a1a1a);
  text-decoration: none;
  transition: color var(--juicy-dur-fast);
}

.juicy-footer__partner:hover { color: var(--opmr-bleu-cabesterre, #1e5f8a); }

.juicy-footer__bottom-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--opmr-pierre-ponce, #6b7280);
}

@media (min-width: 1024px) {
  .juicy-footer__bottom-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.juicy-footer__legal {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.juicy-footer__legal a {
  color: var(--opmr-pierre-ponce, #6b7280);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color var(--juicy-dur-fast);
}

.juicy-footer__legal a:hover {
  color: var(--opmr-basalte, #1a1a1a);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.juicy-footer__compliance {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
}

.juicy-footer__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: var(--juicy-radius-pill);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--opmr-pierre-ponce, #6b7280);
  line-height: 1.2;
}

.juicy-footer__chip svg { color: var(--opmr-vert-morne, #0a6b3b); }

.juicy-footer__copy {
  font-size: 0.75rem;
  color: var(--opmr-pierre-ponce, #6b7280);
}

.juicy-footer__copy a {
  color: var(--opmr-pierre-ponce, #6b7280);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 0, 0, 0.2);
}
.juicy-footer__copy a:hover {
  color: var(--opmr-bleu-cabesterre, #1e5f8a);
  text-decoration-color: currentColor;
}

/* ===========================================================================
 *  Accessibilité — désactive toutes les animations si préféré
 * =========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .juicy-card,
  .juicy-card--interactive,
  .juicy-hero__title,
  .juicy-hero__subtitle,
  .juicy-search,
  .juicy-delta,
  .juicy-stat__value,
  .juicy-skeleton,
  .juicy-live::before,
  .juicy-card--enter,
  .juicy-sheet,
  .juicy-sheet-backdrop,
  .juicy-bottom-nav__icon,
  .juicy-fab,
  .juicy-chip {
    animation: none !important;
    transition: none !important;
  }
}

/* Print : neutralise les ombres et gradients pour économiser l'encre. */
@media print {
  .juicy-card,
  .juicy-hero,
  .juicy-stat,
  .juicy-bottom-nav,
  .juicy-fab,
  .juicy-sheet,
  .juicy-sheet-backdrop {
    background: white !important;
    box-shadow: none !important;
    color: black !important;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   HEADER & FOOTER INSTITUTIONNELS (DSFR-inspired, conformes CCTP §4.4)
   ════════════════════════════════════════════════════════════════════════ */

.opmr-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header DSFR institutionnel (refonte propre) ───────────────────── */
.opmr-header {
  background: #fff;
  border-bottom: 1px solid #dddddd;
  position: sticky;
  top: 0;
  z-index: 100;
  font-family: "Marianne", system-ui, sans-serif;
}

/* Bandeau brand (Marianne + service) */
.opmr-header__brand {
  background: #fff;
  border-bottom: 1px solid #dddddd;
}
.opmr-header__brand .opmr-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.opmr-header__brand-row {
  display: flex;
  align-items: center;
  gap: 24px;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}
/* Marianne textuelle dépréciée — remplacée par le logo officiel République Française (cf. .opmr-header__marianne-img) */
.opmr-header__marianne { display: none; }

/* Logo officiel République Française (Marianne + RÉPUBLIQUE FRANÇAISE + devise) */
.opmr-header__marianne-img {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px 18px 4px 0;
  border-right: 1px solid #dddddd;
}
.opmr-header__marianne-img img {
  display: block;
  height: 80px;
  width: auto;
  max-width: 110px;
}
@media (max-width: 540px) {
  .opmr-header__marianne-img img { height: 56px; max-width: 72px; }
  .opmr-header__marianne-img { padding-right: 12px; }
}
.opmr-header__service {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 18px;
  min-width: 0;
  flex: 1;
}
.opmr-header__service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #161616;
  line-height: 1.2;
}
.opmr-header__service-tagline {
  font-size: 0.8125rem;
  color: #666666;
  line-height: 1.3;
}
.opmr-header__logo {
  display: block;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  /* Logo positionné entre Marianne RF et OPMR Martinique (gauche du titre) */
  margin: 0 0.75rem 0 0.5rem;
  background: transparent;
  transition: transform 0.3s ease;
}
.opmr-header__brand-row:hover .opmr-header__logo,
.opmr-header__brand-row:focus-visible .opmr-header__logo {
  transform: rotate(-10deg) scale(1.06);
}
@media (max-width: 1023px) {
  .opmr-header__logo { width: 48px; height: 48px; }
}
@media (max-width: 539px) {
  .opmr-header__logo { width: 40px; height: 40px; }
}

/* Bouton burger (caché desktop, visible mobile) */
.opmr-header__burger {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid #000091;
  border-radius: 4px;
  color: #000091;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.opmr-header__burger:hover { background: #f6f6f6; }
.opmr-header__burger i { font-size: 1rem; }

/* Menu principal (sous-bandeau) */
.opmr-header__menu {
  background: #fff;
}
.opmr-header__menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}
.opmr-header__menu-list li {
  display: flex;
}
.opmr-header__menu-list a {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  color: #161616;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.opmr-header__menu-list a:hover,
.opmr-header__menu-list a:focus-visible {
  color: #000091;
  border-bottom-color: #000091;
  outline: none;
}
.opmr-header__menu-list a[aria-current="page"] {
  color: #000091;
  border-bottom-color: #000091;
  font-weight: 700;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.opmr-footer {
  background: #f5f5f5;
  border-top: 4px solid #000091;
  margin-top: 60px;
  padding: 48px 0 24px;
  color: #2d2d2d;
  font-size: 0.875rem;
}
.opmr-footer__top {
  display: flex;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e5e7eb;
  align-items: flex-start;
}
.opmr-footer__brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: flex-start;
}
.opmr-footer__rf-img {
  display: block;
  height: 80px;
  width: auto;
  max-width: 110px;
}
@media (max-width: 540px) {
  .opmr-footer__rf-img { height: 64px; max-width: 82px; }
}
/* Anciens éléments textuels dépréciés — remplacés par l'image officielle République Française */
.opmr-footer__rf-text,
.opmr-footer__rf-motto { display: none; }
.opmr-footer__desc {
  flex: 1;
}
.opmr-footer__desc p {
  margin: 0 0 12px;
  max-width: 70ch;
  color: #4b5563;
}
.opmr-footer__partners {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
  flex-wrap: wrap;
}
.opmr-footer__partners a {
  color: #0a3d62;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.opmr-footer__partners a:hover { text-decoration: underline; }
.opmr-footer__partners i { font-size: 0.75rem; opacity: 0.7; }

.opmr-footer__middle {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid #e5e7eb;
}
.opmr-footer__col h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #0a3d62;
  display: flex;
  align-items: center;
  gap: 8px;
}
.opmr-footer__col h3 i { color: #0a6b3b; font-size: 0.95rem; }
.opmr-footer__col p {
  margin: 0 0 12px;
  color: #4b5563;
  line-height: 1.55;
}
.opmr-footer__col address {
  font-style: normal;
  color: #4b5563;
  line-height: 1.75;
}
.opmr-footer__col address a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0a3d62;
  font-weight: 500;
  text-decoration: none;
  margin-top: 4px;
}
.opmr-footer__col address a:hover { text-decoration: underline; }

.opmr-footer__cta,
.opmr-footer__cta:link,
.opmr-footer__cta:visited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background-color: #0a3d62 !important;
  background-image: none !important;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background-color 0.15s ease, transform 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.opmr-footer__cta:hover,
.opmr-footer__cta:focus-visible {
  background-color: #0d3a78 !important;
  background-image: none !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(10, 61, 98, 0.35);
  outline: none;
}
.opmr-footer__cta--alert,
.opmr-footer__cta--alert:link,
.opmr-footer__cta--alert:visited {
  background-color: #e1000f !important;
  color: #ffffff !important;
}
.opmr-footer__cta--alert:hover,
.opmr-footer__cta--alert:focus-visible {
  background-color: #b80012 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(225, 0, 15, 0.4);
}

.opmr-footer__bottom {
  padding: 24px 0 0;
}
.opmr-footer__legal-links {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
}
.opmr-footer__legal-links a {
  color: #2d2d2d;
  text-decoration: none;
  font-size: 0.8125rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
.opmr-footer__legal-links a:hover {
  color: #0a3d62;
  text-decoration: underline;
}
.opmr-footer__legal-links i { color: #6b7280; font-size: 0.75rem; }
.opmr-footer__copyright {
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: #6b7280;
}
.opmr-footer__copyright a { color: #0a3d62; }

/* Sur mobile, plus de marge pour la bottom-nav fixe */
@media (max-width: 1023px) {
  .opmr-footer { margin-bottom: 64px; }
}

/* Bouton accessibilité flottant (a11y FAB) — ajoute icône FA si pas déjà là */
.a11y-fab { position: fixed; bottom: 80px; right: 20px; z-index: 90; }
@media (min-width: 1024px) {
  .a11y-fab { bottom: 20px; right: 80px; }
}

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVE MOBILE — refonte complète < 768px (et adaptations 768-1023)
   ════════════════════════════════════════════════════════════════════════ */

/* ─── Préventif : zéro overflow horizontal ─── */
html, body { max-width: 100vw; overflow-x: hidden; }
img, video, svg { max-width: 100%; height: auto; }

/* ─── Mobile (< 768px) ─── */
@media (max-width: 767px) {

  /* Header compact — RF + OPMR title sur 2 lignes */
  .opmr-container { padding: 0 16px; }
  .opmr-header__top { padding: 12px 0 0; }
  .opmr-header__top .opmr-container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .opmr-header__brand {
    flex-direction: row;
    gap: 14px;
    align-items: center;
  }
  .opmr-header__rf-text { font-size: 0.6875rem; }
  .opmr-header__rf-motto { display: none; }
  .opmr-header__service { padding-left: 14px; border-left-width: 1px; flex: 1; min-width: 0; }
  .opmr-header__service-title { font-size: 1rem; }
  .opmr-header__service-tagline {
    font-size: 0.6875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* Nav : scroll horizontal, plus compact */
  .opmr-header__nav {
    margin: 0 -16px;
    border-top: 1px solid #f0f0f0;
    padding: 8px 0;
  }
  .opmr-header__nav ul {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .opmr-header__nav ul::-webkit-scrollbar { display: none; }
  .opmr-header__nav a {
    padding: 6px 12px;
    font-size: 0.8125rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Hero compact */
  .juicy-hero { padding: 24px 0 16px; }
  .juicy-hero__eyebrow { font-size: 0.75rem; }
  .juicy-hero__title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .juicy-hero__subtitle { font-size: 0.9rem; }
  .juicy-hero__inline-stats { gap: 16px; flex-wrap: wrap; }
  .juicy-hero__inline-stat-value { font-size: 1.25rem; }
  .juicy-hero__inline-stat-label { font-size: 0.6875rem; }
  .juicy-search { flex-direction: row; }
  .juicy-search__button-label { display: none; }
  .juicy-search__button { padding: 0 14px; min-width: 44px; }

  /* Filter bar */
  .juicy-filterbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .juicy-filterbar__btn { width: 100%; justify-content: center; }
  .juicy-filterbar__sort { width: 100%; }
  .juicy-filterbar__sort select { width: 100%; }

  /* Chips : scroll horizontal */
  .juicy-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .juicy-chips::-webkit-scrollbar { display: none; }
  .juicy-chip { flex-shrink: 0; }

  /* Grille produits 2 colonnes mobile */
  .juicy-grid.juicy-grid--4 {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
  }
  .juicy-card { padding: 10px; }
  .juicy-product__img { aspect-ratio: 1 / 1; }
  .juicy-product__name { font-size: 0.875rem; line-height: 1.25; }
  .juicy-product__brand { font-size: 0.6875rem; }
  .juicy-product__pack { font-size: 0.625rem; }
  .juicy-product__price { font-size: 1rem; }
  .juicy-product__store { font-size: 0.625rem; }
  .juicy-product__price-row { flex-wrap: wrap; gap: 6px; }
  .juicy-delta { font-size: 0.625rem; padding: 2px 6px; }

  /* Drawer fiche produit plein écran */
  .juicy-drawer {
    width: 100% !important;
    max-width: 100% !important;
    right: 0 !important;
  }

  /* Filter panel plein écran */
  .juicy-filter-panel {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Footer stack */
  .opmr-footer { padding: 32px 0 16px; }
  .opmr-footer__top {
    flex-direction: column;
    gap: 20px;
    padding-bottom: 20px;
  }
  .opmr-footer__partners {
    flex-direction: column;
    gap: 8px;
  }
  .opmr-footer__middle {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0;
  }
  .opmr-footer__legal-links {
    flex-direction: column;
    gap: 8px;
  }
  .opmr-footer__copyright { font-size: 0.6875rem; }

  /* Hide RF motto on mobile footer (compact) */
  .opmr-footer__rf-motto { display: none; }

  /* Espace pour la bottom-nav fixe */
  .has-bottom-nav, body.has-bottom-nav { padding-bottom: 70px; }
  .opmr-footer { margin-bottom: 60px; }

  /* CTA "Signaler un prix" callout territorial : plein largeur */
  .opmr-bordure-territoire {
    padding: 16px !important;
  }

  /* Section title margins */
  .juicy-container { padding: 0 16px; }
  section { padding: 32px 0 !important; }
}

/* ─── Tablette (768-1023px) ─── */
@media (min-width: 768px) and (max-width: 1023px) {
  .juicy-grid.juicy-grid--4 {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px;
  }
  .opmr-header__top .opmr-container {
    flex-wrap: wrap;
    gap: 16px;
  }
  .opmr-header__nav {
    width: 100%;
    order: 3;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
  }
  .opmr-header__nav ul {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .opmr-header__nav a { white-space: nowrap; }

  .opmr-footer__middle {
    grid-template-columns: 1fr 1fr;
  }
}

/* ─── Toujours masquer le scrollbar horizontal de la chips bar ─── */
.juicy-chips { -ms-overflow-style: none; }

/* ─── Fix overflow flex children mobile ─── */
@media (max-width: 1023px) {
  .opmr-container { width: 100%; max-width: 100%; box-sizing: border-box; }
  .opmr-header__brand { min-width: 0; max-width: 100%; }
  .opmr-header__service { min-width: 0; max-width: 100%; flex: 1; }
  .opmr-header__service-title,
  .opmr-header__service-tagline { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .opmr-header__rf-text { flex-shrink: 0; }
}

/* Reset min-width: 0 sur tous les flex-items pour permettre le shrink */
.juicy-hero__inline-stats > *,
.opmr-header__brand > *,
.opmr-header__top .opmr-container > * { min-width: 0; }

/* ─── Header responsive (refonte) ─── */
@media (max-width: 1023px) {
  .opmr-header__brand .opmr-container {
    min-height: 64px;
    gap: 12px;
  }
  .opmr-header__brand-row { gap: 16px; }
  .opmr-header__service { padding-left: 16px; }
  .opmr-header__service-title { font-size: 1.0625rem; }
  .opmr-header__service-tagline {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .opmr-header__burger { display: inline-flex; flex-shrink: 0; }
  .opmr-header__menu {
    display: none;
    border-top: 1px solid #dddddd;
  }
  .opmr-header__menu.is-open { display: block; }
  .opmr-header__menu-list { flex-direction: column; }
  .opmr-header__menu-list a {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    border-left: 4px solid transparent;
  }
  .opmr-header__menu-list a:hover,
  .opmr-header__menu-list a:focus-visible,
  .opmr-header__menu-list a[aria-current="page"] {
    background: #f6f6f6;
    border-left-color: #000091;
    border-bottom-color: #f0f0f0;
  }
}

@media (max-width: 539px) {
  .opmr-header__service-tagline { display: none; }
  .opmr-header__marianne { font-size: 0.75rem; }
  .opmr-header__service-title { font-size: 1rem; }
  .opmr-header__burger span { display: none; }
  .opmr-header__burger { padding: 8px 10px; }
}

/* ─── Bouton « Imprimer » injecté sur les pages éditoriales ────────────
   Aligné à droite, intégré dans le conteneur intérieur (max-width 1024 px),
   icône FontAwesome printer + libellé court. */
.opmr-page-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 1.25rem;
}
.opmr-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  min-height: 40px;
  background: white;
  color: #0a3d62;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  font-family: Marianne, system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms, border-color 140ms, transform 140ms, box-shadow 140ms;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.opmr-print-btn i { font-size: 0.875rem; color: #0a3d62; }
.opmr-print-btn:hover,
.opmr-print-btn:focus-visible {
  background-color: #f8fafc;
  border-color: #0a3d62;
  color: #0a3d62;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(10, 61, 98, 0.12);
  outline: none;
}
.opmr-print-btn:focus-visible {
  outline: 2px solid #0a6b3b;
  outline-offset: 2px;
}
.opmr-print-btn:active { transform: translateY(0); }
@media (max-width: 540px) {
  .opmr-page-actions { justify-content: stretch; }
  .opmr-print-btn { width: 100%; justify-content: center; }
}
