/* ═══════════════════════════════════════════════════════
   single-croquettes_chat.css — Miaouzz Theme
   Design minimaliste · DA Carpe Koi 🐱🎏
   ═══════════════════════════════════════════════════════ */

:root {
  --font-display: 'Shippori Mincho B1', 'Cormorant Garamond', Georgia, serif;
  --font-jp:      'Shippori Mincho B1', 'Noto Serif JP', serif;
  --font-sans:    'Inter Tight', 'DM Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* ── TOP BAR — minimal, juste un trait ── */
.prod-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--pad);
  position: sticky; top: 0; z-index: 30;
  background: rgba(248, 245, 238, 0.85);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--c-divider);
}
.compare-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 20px; flex: 1; text-align: center; letter-spacing: -0.02em;
}
.link-btn {
  font-size: 12px; font-weight: 500; padding: 6px 12px;
  background: transparent; border: 1px solid var(--c-ink);
  transition: all .15s;
}
.link-btn:hover { background: var(--c-ink); color: var(--c-paper); }
.link-btn.small { font-size: 11px; padding: 5px 9px; }

/* ── BOUTON PRINCIPAL ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  background: var(--c-primary); color: var(--c-paper);
  font-size: 13px; font-weight: 600;
  border: none; letter-spacing: 0.06em;
  transition: background .15s, transform .12s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(211,61,44,0.15);
}
.btn-primary:hover {
  background: var(--c-primaryDark);
  box-shadow: 0 4px 16px rgba(211,61,44,0.25);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary.full { width: 100%; }
.btn-primary.big { padding: 16px 28px; font-size: 14px; }

/* ── PRODUIT : BRAND / NAME ── */
.prod-brand {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--c-primary); font-weight: 600; margin-bottom: 8px;
}
.prod-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 32px; line-height: 1.1;
  letter-spacing: -0.02em; margin: 0 0 12px;
}
.prod-name::after {
  content: ''; display: block; width: 32px; height: 2px;
  background: var(--c-primary); margin-top: 10px;
}

.badge-pill {
  font-size: 9px; padding: 3px 8px;
  background: var(--c-ink); color: var(--c-paper);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
}
.badge-pill.light {
  background: transparent; color: var(--c-ink);
  border: 1px solid var(--c-ink);
}
.badge-pill.highlight {
  background: var(--c-primary); color: var(--c-paper);
}
.badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }

.score-badge {
  display: inline-flex; align-items: baseline; padding: 3px 8px;
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  letter-spacing: -0.02em;
}
.score-badge span { font-size: 9px; margin-left: 1px; opacity: .7; }
.score-badge.high { background: var(--c-primary); color: var(--c-paper); }
.score-badge.mid  { background: var(--c-accent); color: var(--c-ink); }
.score-badge.low  { background: var(--c-soft); color: var(--c-ink); }

/* ── TRUST STRIP ── */
.trust-strip {
  padding: 10px 14px;
  background: var(--c-ink); color: var(--c-paper);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px;
  font-size: 11px;
}
.ts-num { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--c-primary); }
.ts-lbl { color: rgba(248,245,238,.6); margin-right: 6px; }
.ts-sep { color: rgba(248,245,238,.25); margin: 0 3px; }
.trust-strip.compact { font-size: 10px; padding: 8px 12px; }

/* ════════════════════════════════════════
   HERO SPLIT — layout principal
   ════════════════════════════════════════ */

.prod-hero-split {
  display: flex; flex-direction: column;
  min-height: 60vh;
  width: 100%;
}

/* ── Colonne image ── */
.prod-hero-split .phs-img {
  width: 100%; min-height: 240px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-soft); position: relative; overflow: hidden;
}
.prod-hero-split .phs-img img {
  width: 100%; height: 100%;
  object-fit: contain; padding: 24px;
  transition: transform .4s ease;
}
.prod-hero-split .phs-img:hover img { transform: scale(1.03); }

/* Badges sur image */


/* Motif vague/écailles subtil (carpe koi) */
.phs-img::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg,
      transparent 0, transparent 40px,
      rgba(201,162,78,.04) 40px, rgba(201,162,78,.04) 41px
    ),
    repeating-linear-gradient(0deg,
      transparent 0, transparent 40px,
      rgba(211,61,44,.025) 40px, rgba(211,61,44,.025) 41px
    );
}

/* ── Colonne infos ── */
.prod-hero-split .phs-info {
  padding: 28px var(--pad) 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.prod-hero-split .phs-info .trust-strip { margin: 0; }
.prod-hero-split .phs-info .phs-content { flex: 1; }

/* ── KPI mini ── */
.phs-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.phs-kpi {
  padding: 14px 12px; text-align: center;
  border-bottom: 3px solid #ccc;
  background: var(--c-paper);
}
.phs-kpi-label {
  font-size: 9px; text-transform: uppercase; letter-spacing: .6px;
  color: var(--c-label); font-weight: 600;
}
.phs-kpi-val {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  margin: 6px 0;
}
.phs-kpi-hint { font-size: 10px; color: var(--c-label); }

/* ════════════════════════════════════════
   DESKTOP (≥ 768px)
   ════════════════════════════════════════ */

@media (min-width: 768px) {
  .prod-hero-split { flex-direction: row; min-height: 80vh; }
  .prod-hero-split .phs-img {
    width: 40%;
    position: sticky; top: 56px;
    height: calc(100vh - 56px); max-height: 750px;
  }
  .prod-hero-split .phs-img img { object-fit: cover; padding: 0; max-height: none; }
  .prod-hero-split .phs-info {
    width: 60%;
    padding: 36px 36px 0;
    max-height: calc(100vh - 56px);
    display: flex; flex-direction: column;
  }
  .prod-hero-split .phs-info .prod-name { font-size: 36px; }
  .prod-hero-split .phs-info .phs-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-bottom: 16px;
  }

  /* CTA sticky en bas de la colonne */
  .prod-buy {
    flex-shrink: 0;
    width: 100%;
    background: var(--c-paper);
    padding: 14px 0;
    border-top: 1px solid var(--c-divider);
  }
}

/* ════════════════════════════════════════
   CTA STICKY MOBILE — barre fixe en bas
   ════════════════════════════════════════ */

@media (max-width: 767px) {
  .prod-buy {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: rgba(248,245,238,.95);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--c-divider);
    display: flex; align-items: center; gap: 12px;
  }
  .prod-buy .pb-price {
    flex-shrink: 0; margin: 0;
  }
  .prod-buy .pb-num {
    font-size: 20px;
  }
  .prod-buy .btn-primary {
    flex: 1; white-space: nowrap;
    padding: 12px 16px; font-size: 12px;
  }
  /* Ajouter du padding en bas du contenu pour pas que le CTA cache */
  .prod-container { padding-bottom: 70px; }
}

/* ── Prix dans CTA ── */
.prod-buy .pb-price {
  display: flex; align-items: baseline; gap: 6px;
}
.prod-buy .pb-num { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; }
.prod-buy .pb-perkg { font-size: 11px; color: var(--c-label); }
@media (min-width: 768px) {
  .prod-buy .pb-num { font-size: 28px; }
}

/* ════════════════════════════════════════
   VERDICT (points forts / vigilance)
   ════════════════════════════════════════ */

.verdict-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding: 20px var(--pad) 8px;
  width: 100%;
}
@media (max-width: 600px) { .verdict-grid { grid-template-columns: 1fr; } }

.verdict-card {
  padding: 18px;
  background: var(--c-paper);
  border-left: 3px solid var(--c-primary);
  transition: background .2s;
}
.verdict-card:hover { background: var(--c-cream); }

/* ════════════════════════════════════════
   PROFIL SCORES (compatibilité)
   ════════════════════════════════════════ */

.profile-glass {
  padding: 16px 18px;
  background: var(--c-cream);
}

/* ════════════════════════════════════════
   SCORE FIABILITÉ
   ════════════════════════════════════════ */

.score-reliability {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  margin: 0 var(--pad) 16px;
  background: var(--c-ink); color: var(--c-paper);
  width: 100%;
}

/* ════════════════════════════════════════
   TABS
   ════════════════════════════════════════ */

.prod-tabs {
  padding: 24px var(--pad) 28px;
  border-top: 1px solid var(--c-divider);
}
.tab-row {
  display: flex; gap: 4px; margin-bottom: 20px;
  overflow-x: auto; scrollbar-width: none;
}
.tab-row::-webkit-scrollbar { display: none; }
.tab-pill {
  padding: 8px 14px; font-size: 11px; font-weight: 600;
  background: transparent; color: var(--c-label);
  border: none; border-bottom: 2px solid transparent;
  flex-shrink: 0; white-space: nowrap;
  transition: all .15s; letter-spacing: .04em;
}
.tab-pill.on {
  color: var(--c-ink); border-bottom-color: var(--c-primary);
  font-weight: 700;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tab-panel { animation: fadeSlide .25s ease-out; }
.panel-h { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; margin: 0 0 12px; }

/* ════════════════════════════════════════
   NUTRITION BARS
   ════════════════════════════════════════ */

.nut-bar { margin-bottom: 14px; }
.nb-row { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 13px; }
.nb-label { color: var(--c-ink); font-weight: 500; }
.nb-value { font-family: var(--font-display); font-weight: 700; color: var(--c-label); }
.nb-track { height: 5px; background: var(--c-soft); }
.nb-fill { height: 100%; background: var(--c-primary); }
.nut-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ════════════════════════════════════════
   GALLERY
   ════════════════════════════════════════ */

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery-grid img { width: 100%; height: auto; border: 1px solid var(--c-ink); }

/* ════════════════════════════════════════
   BLOCKS / SECTIONS
   ════════════════════════════════════════ */

.block { padding: 40px var(--pad); border-top: 1px solid var(--c-divider); }
.block-eyebrow {
  display: inline-block; font-size: 9px; text-transform: uppercase;
  letter-spacing: .2em; color: var(--c-primary); font-weight: 600;
  margin-bottom: 12px;
}
.block-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 28px; line-height: 1.1; letter-spacing: -.02em;
  margin: 0 0 20px; color: var(--c-ink);
}
.block-title.small { font-size: 22px; margin-bottom: 14px; }
.block-p { color: var(--c-label); font-size: 13px; margin: 0 0 16px; line-height: 1.6; }

/* ── Newsletter ── */
.newsletter {
  background: var(--c-primary); color: var(--c-paper); border: none; position: relative;
}
.newsletter::before {
  content: '🐾'; position: absolute; top: 20px; right: 20px; font-size: 24px; opacity: .25;
}
.newsletter .block-title { color: var(--c-paper); }
.newsletter .block-p { color: rgba(248,245,238,.85); }
.news-form { display: flex; gap: 8px; margin-top: 16px; }
.news-form input {
  flex: 1; background: transparent; border: 1px solid rgba(248,245,238,.4);
  outline: none; color: var(--c-paper); font-size: 13px; padding: 12px;
}
.news-form input:focus { border-color: var(--c-paper); }
.news-form input::placeholder { color: rgba(248,245,238,.4); }
.news-form .btn-primary { background: var(--c-paper); color: var(--c-primary); border: none; box-shadow: none; }
.news-form .btn-primary:hover { background: var(--c-ink); color: var(--c-paper); }

/* ════════════════════════════════════════
   RELATED / ALTERNATIVES
   ════════════════════════════════════════ */

.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.related-card {
  display: block; padding: 16px; text-align: center;
  text-decoration: none; color: var(--c-ink);
  background: var(--c-paper);
  transition: background .15s, transform .15s;
}
.related-card:hover { background: var(--c-cream); transform: translateY(-2px); }

/* ── CONTENEUR PRINCIPAL ── */
.prod-container {
  display: block;
  width: 100%;
  max-width: 100%;
}

/* ════════════════════════════════════════
   SOFT PULSE CTA
   ════════════════════════════════════════ */
@keyframes softPulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(211,61,44,.15); }
  50%      { box-shadow: 0 2px 16px rgba(211,61,44,.25); }
}
.prod-buy .btn-primary {
  animation: softPulse 3s ease-in-out infinite;
}

/* ════════════════════════════════════════
   FAQ — mobile friendly
   ════════════════════════════════════════ */
.faq-item {
  border: 1px solid var(--c-divider);
  padding: 14px 16px;
  cursor: pointer;
  transition: background .15s;
}
.faq-item:hover {
  background: var(--c-cream);
}
.faq-item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  cursor: pointer;
}
.faq-item[open] {
  background: var(--c-paper);
}
.faq-item p {
  font-size: 13px;
  color: var(--c-label);
  line-height: 1.6;
  margin: 10px 0 0;
  white-space: pre-line;
}
@media (max-width: 600px) {
  .faq-item { padding: 12px 14px; }
  .faq-item summary { font-size: 13px; }
  .faq-item p { font-size: 12px; }
}
