/* ═══════════════════════════════════════════
   fiche.css — styles partagés fiches configs
   ═══════════════════════════════════════════ */

.fiche-hero { padding: 40px 0 0; }
.fiche-thumb {
  height: 220px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  position: relative;
  overflow: hidden;
  margin-bottom: 32px;
}
.fiche-thumb--esport { background: linear-gradient(135deg, #0F1923 0%, #1A2F3E 100%); }
.fiche-thumb--aaa    { background: linear-gradient(135deg, #1A0F2E 0%, #2D1A4A 100%); }
.fiche-thumb--stream { background: linear-gradient(135deg, #0F1E15 0%, #1A3025 100%); }
.fiche-thumb--sim    { background: linear-gradient(135deg, #1A1A0F 0%, #2D2D1A 100%); }
.fiche-thumb--mmo    { background: linear-gradient(135deg, #1E0F0F 0%, #2D1A1A 100%); }
.fiche-thumb--ultra  { background: linear-gradient(135deg, #0F1E0F 0%, #1A3A1A 100%); }
.fiche-thumb__glow {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.fiche-thumb__badge {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--font-mono); font-size: 11px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2); letter-spacing: 0.06em;
}
.fiche-thumb__cat {
  position: absolute; bottom: 16px; left: 16px;
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,0.6); letter-spacing: 0.06em; text-transform: uppercase;
}
.fiche-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  color: var(--ink); margin-bottom: 16px;
}
.fiche-tagline {
  font-size: 17px; color: var(--muted); line-height: 1.6;
  margin-bottom: 32px; max-width: 600px;
}
.fiche-meta {
  display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px;
}
.fiche-meta__item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-family: var(--font-mono); color: var(--muted);
  background: var(--cream-dark); padding: 8px 14px; border-radius: 8px;
}
.fiche-meta__item strong { color: var(--ink); }

.fiche-grid {
  display: grid; grid-template-columns: 1fr 340px;
  gap: 40px; align-items: start; padding: 48px 0 80px;
}

/* Composants */
.composants { margin-bottom: 48px; }
.composants h2 {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  color: var(--ink); margin-bottom: 16px; letter-spacing: -0.02em;
}

/* ── WIDGET COMPOSANT + PRIX MULTI-REVENDEURS ── */
.composant-row {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid rgba(15,20,25,0.07);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.composant-row:hover { border-color: rgba(124,189,107,0.3); box-shadow: var(--shadow); }

.composant-row__header {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  min-height: 64px;
}

.composant-row__type {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
  line-height: 1.3;
}
.composant-row__info { min-width: 0; }
.composant-row__name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.composant-row__detail { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.4; }

.composant-row__right {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.composant-row__price {
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  color: var(--ink); white-space: nowrap;
}
.composant-row__toggle {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(124,189,107,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--green-dark);
  transition: transform var(--transition), background var(--transition);
  flex-shrink: 0; line-height: 1;
}
.composant-row.open .composant-row__toggle {
  transform: rotate(180deg);
  background: var(--green); color: white;
}

/* Panel prix */
.composant-row__prices {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: var(--cream);
  border-top: 0px solid rgba(15,20,25,0.06);
}
.composant-row.open .composant-row__prices {
  max-height: 400px;
  border-top-width: 1px;
}

.prices-inner { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.prices-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px;
}
.prices-header__label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.prices-header__updated { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.prices-header__updated span { color: var(--green-dark); font-weight: 600; }

.price-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--white); border-radius: 10px;
  border: 1.5px solid rgba(15,20,25,0.07);
  text-decoration: none; transition: var(--transition);
}
.price-row:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateX(3px); }
.price-row__logo { width: 80px; flex-shrink: 0; }
.price-row__logo-text {
  font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: -0.02em;
}
.price-row__logo-text.amazon   { color: #FF9900; }
.price-row__logo-text.ldlc     { color: #E30613; }
.price-row__logo-text.materiel { color: #0055A5; }
.price-row__logo-text.aliexpress { color: #FF4747; }
.price-row__logo-text.cybertek { color: #00A650; }

.price-row__info { flex: 1; min-width: 0; }
.price-row__name { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-row__right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.price-row__amount { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--ink); }
.price-row__amount.best { color: var(--green-dark); }
.price-row__badge {
  font-family: var(--font-mono); font-size: 9px; font-weight: 600;
  padding: 3px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
}
.badge-best { background: rgba(124,189,107,0.15); color: var(--green-dark); }
.badge-soon { background: rgba(15,20,25,0.06); color: var(--muted); }
.price-row__arrow { font-size: 13px; color: var(--muted); transition: color var(--transition); }
.price-row:hover .price-row__arrow { color: var(--green-dark); }

.prices-affil-note {
  font-size: 11px; color: var(--muted); text-align: center;
  margin-top: 4px; line-height: 1.5;
}
.prices-affil-note a { color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }

/* Live dot */
.live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); animation: livePulse 1.5s ease-in-out infinite;
  vertical-align: middle; margin-right: 4px;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.total-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; background: var(--ink); border-radius: var(--radius);
  margin-top: 12px; color: var(--cream);
}
.total-row__label { font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.total-row__price { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--green); }
.total-row__note { font-size: 12px; color: rgba(245,242,232,0.4); margin-top: 4px; }

/* Sections */
.fiche-section { margin-bottom: 40px; }
.fiche-section h2 {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  color: var(--ink); margin-bottom: 16px; letter-spacing: -0.02em;
}
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--ink); line-height: 1.5;
}
.check-item__icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* Affil */
.affil-note {
  background: rgba(255,184,0,0.08); border: 1px solid rgba(255,184,0,0.25);
  border-radius: var(--radius); padding: 14px 18px;
  font-size: 12px; color: #78450F; margin-bottom: 40px; line-height: 1.5;
}

/* Alternatives */
.alternatives { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 48px; }
.alt-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1.5px solid rgba(15,20,25,0.08); padding: 24px; transition: var(--transition);
}
.alt-card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.alt-card__label {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); margin-bottom: 8px;
}
.alt-card__name { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.alt-card__diff { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }
.alt-card__price { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.alt-card a { font-size: 13px; font-weight: 600; color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }

/* Sidebar */
.fiche-sidebar { position: sticky; top: 88px; }
.sidebar-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1.5px solid rgba(15,20,25,0.08); box-shadow: var(--shadow);
  padding: 28px; margin-bottom: 16px;
}
.sidebar-card__price {
  font-family: var(--font-display); font-size: 36px; font-weight: 800;
  color: var(--ink); letter-spacing: -0.03em; margin-bottom: 4px;
}
.sidebar-card__note { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.sidebar-card .btn { width: 100%; justify-content: center; margin-bottom: 12px; }
.sidebar-card__specs { margin-top: 20px; }
.sidebar-spec {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(15,20,25,0.06); font-size: 13px;
}
.sidebar-spec:last-child { border-bottom: none; }
.sidebar-spec__label { color: var(--muted); }
.sidebar-spec__val { font-weight: 600; color: var(--ink); font-family: var(--font-mono); font-size: 12px; }

/* Responsive */
@media (max-width: 900px) {
  .fiche-grid { grid-template-columns: 1fr; }
  .fiche-sidebar { position: static; }
  .alternatives { grid-template-columns: 1fr; }
  .composant-row__header { grid-template-columns: 80px 1fr auto; gap: 10px; }
}
@media (max-width: 640px) {
  .fiche-meta { flex-direction: column; }
  .composant-row__header { grid-template-columns: 1fr auto; }
  .composant-row__type { display: none; }
  .price-row__name { display: none; }
}
