/* ===== Page marque (/marques/<slug>) ===== */
.marque-page .container { max-width: 1040px; margin: 0 auto; padding: 24px 16px 64px; }
/* Neutralise un display:inline-flex global herite sur <article>. */
.marque-page .brand { display: block; width: 100%; }
.marque-page .brand > section,
.marque-page .brand > header { width: 100%; }

/* En-tete */
.brand-head {
  display: flex; align-items: center; gap: 24px; margin: 8px 0 24px; flex-wrap: wrap;
  padding: 24px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(124, 92, 255, .12), rgba(255, 79, 216, .08) 55%, rgba(255, 255, 255, .5));
  border: 1px solid rgba(124, 92, 255, .16);
}
.brand-head-logo {
  flex: 0 0 auto; width: 160px; height: 96px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #ece8f6; border-radius: 16px; padding: 12px;
  box-shadow: 0 8px 24px rgba(124, 92, 255, .14);
}
.brand-head-logo img { max-width: 100%; max-height: 72px; object-fit: contain; }
.brand-head-logo.is-text { background: linear-gradient(135deg, var(--puffs-purple, #7c5cff), var(--puffs-pink, #ff4fd8)); }
.brand-head-wordmark { font-size: 1.2rem; font-weight: 800; color: #fff; text-align: center; letter-spacing: -0.01em; padding: 0 8px; }
.brand-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  color: #fff; background: linear-gradient(135deg, var(--puffs-purple, #7c5cff), var(--puffs-pink, #ff4fd8));
  padding: 5px 12px; border-radius: 999px;
}
.brand-title {
  margin: 12px 0 0; font-size: 1.9rem; line-height: 1.15; font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--puffs-purple, #7c5cff), var(--puffs-pink, #ff4fd8));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Fiche d'identite */
.brand-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px;
  margin: 0 0 28px; padding: 18px 20px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(124, 92, 255, .08), rgba(124, 92, 255, .02) 60%, #fff);
  border: 1px solid rgba(124, 92, 255, .16);
}
.brand-stat { display: flex; flex-direction: column; gap: 3px; text-align: center; }
.brand-stat-num { font-size: 1.05rem; font-weight: 800; color: var(--puffs-purple-dark, #6d4aff); line-height: 1.2; }
.brand-stat-lbl { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #9a8fc0; }
.brand-stat-star { color: #f5a623; }

/* Intro */
.brand-intro { margin: 0 0 32px; }
.brand-intro p { margin: 0 0 12px; font-size: 1.02rem; line-height: 1.7; color: #4a4266; }
.brand-intro p:first-child { font-size: 1.1rem; color: #2b2348; }
.brand-intro p:first-child::first-line { font-weight: 600; }

.brand-h2 {
  position: relative; padding-left: 14px;
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em;
  color: var(--brand-card-ink, #1b1236); margin: 32px 0 16px;
}
.brand-h2::before {
  content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 5px; border-radius: 3px;
  background: linear-gradient(180deg, var(--puffs-purple, #7c5cff), var(--puffs-pink, #ff4fd8));
}

/* Grille produits */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.brand-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid #ece8f6;
  border-radius: 16px; overflow: hidden; text-decoration: none;
  box-shadow: 0 6px 18px rgba(30, 18, 54, .05); transition: transform .15s ease, box-shadow .15s ease;
}
.brand-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(124, 92, 255, .16); }
.brand-card-media { height: 180px; display: flex; align-items: center; justify-content: center; padding: 16px; background: #faf9ff; }
.brand-card-media img { max-width: 100%; max-height: 148px; object-fit: contain; }
.brand-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.brand-card-name { margin: 0; font-size: .95rem; font-weight: 700; line-height: 1.35; color: var(--brand-card-ink, #1b1236); }
.brand-card-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.brand-card-spec { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; font-weight: 600; color: #5f547e; background: #f4f2fb; border-radius: 8px; padding: 3px 8px; }
.brand-card-rating { color: #b26a00; background: #fff5e2; }
.brand-card-rating i { color: #f5a623; }
.brand-card-buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.brand-card-price { font-size: 1.1rem; font-weight: 800; color: var(--puffs-purple-dark, #6d4aff); }
.brand-card-cta { display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 700; color: #7c5cff; }
.brand-empty { color: #5f547e; }

/* FAQ */
.brand-faq-list { display: grid; gap: 10px; }
.brand-faq-item { background: #faf9ff; border: 1px solid rgba(124, 92, 255, .12); border-radius: 14px; padding: 4px 18px; }
.brand-faq-item summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--brand-card-ink, #1b1236); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand-faq-item summary::-webkit-details-marker { display: none; }
.brand-faq-item summary::after { content: "+"; font-size: 1.3rem; color: #7c5cff; font-weight: 400; }
.brand-faq-item[open] summary::after { content: "\2212"; }
.brand-faq-item p { margin: 0 0 14px; color: #5f547e; line-height: 1.6; font-size: .92rem; }

/* Maillage */
.brand-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.brand-link-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; text-decoration: none; padding: 11px 20px; border-radius: 12px; background: linear-gradient(135deg, #7c5cff, #a17bff); color: #fff; }
.brand-link-btn.is-ghost { background: #fff; color: #7c5cff; border: 1px solid rgba(124, 92, 255, .3); }

@media (max-width: 720px) {
  .brand-title { font-size: 1.5rem; }
  .brand-head { gap: 16px; }
  .brand-head-logo { width: 120px; height: 76px; }
  .brand-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .brand-card-media { height: 140px; }
}
