/*
Theme Name: AffiliationMarket Child
Theme URI: https://affiliationmarket.com
Description: Theme enfant Botiga personnalise pour AffiliationMarket — affiche les champs ACF (lien d'affiliation, influenceur source, video source, type de mention) en conformite loi 9 juin 2023.
Author: REKSO
Version: 1.0.0
Template: botiga
Text Domain: affiliationmarket-child
*/

/* === Couleurs marque === */
:root {
  --am-navy: #0F1F3B;
  --am-orange: #F5A623;
  --am-orange-dark: #E5961F;
  --am-green: #10B981;
  --am-bg: #FAFAFA;
  --am-border: #E5E7EB;
  --am-text: #1F2937;
  --am-muted: #6B7280;
}

/* === Influenceur Hero === */
.am-influenceur-hero {
  background: linear-gradient(135deg, var(--am-bg) 0%, #fff 100%);
  padding: 64px 24px;
  text-align: center;
  border-bottom: 1px solid var(--am-border);
}
.am-influenceur-hero__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  object-fit: cover;
  display: block;
}
.am-influenceur-hero__title {
  font-size: 40px;
  font-weight: 800;
  color: var(--am-navy);
  margin: 0 0 12px;
  line-height: 1.1;
}
.am-influenceur-hero__bio {
  max-width: 640px;
  margin: 0 auto 24px;
  color: var(--am-text);
  line-height: 1.6;
}
.am-influenceur-hero__pills {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* === Pills (URL sociaux) === */
.am-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--am-border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--am-text);
  text-decoration: none;
  transition: all 0.2s;
}
.am-pill:hover {
  border-color: var(--am-orange);
  color: var(--am-orange);
}
.am-pill__count {
  font-weight: 700;
  color: var(--am-navy);
}

/* === Section Produits === */
.am-products-section {
  padding: 48px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.am-products-section__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--am-navy);
  margin: 0 0 32px;
  text-align: center;
}
.am-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* === Product Card === */
.am-product-card {
  background: #fff;
  border: 1px solid var(--am-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--am-text);
  display: flex;
  flex-direction: column;
}
.am-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: var(--am-orange);
}
.am-product-card__image-wrap {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--am-bg);
  overflow: hidden;
}
.am-product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.am-product-card__timecode {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.am-product-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.am-product-card__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--am-navy);
}
.am-product-card__price {
  font-size: 20px;
  font-weight: 700;
  color: var(--am-navy);
  margin: 0 0 12px;
}
.am-product-card__price-old {
  font-size: 14px;
  color: var(--am-muted);
  text-decoration: line-through;
  margin-right: 8px;
  font-weight: 400;
}
.am-product-card__cta {
  margin-top: auto;
  background: var(--am-orange);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
  font-size: 14px;
}

/* === Page Produit (single) === */
.am-mentioned-by {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--am-bg);
  border-radius: 999px;
  margin: 16px 0;
  text-decoration: none;
  color: var(--am-text);
  border: 1px solid var(--am-border);
  transition: all 0.2s;
}
.am-mentioned-by:hover {
  border-color: var(--am-orange);
}
.am-mentioned-by__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.am-mentioned-by__label {
  font-size: 12px;
  color: var(--am-muted);
  display: block;
  line-height: 1;
  margin-bottom: 2px;
}
.am-mentioned-by__name {
  font-weight: 700;
  color: var(--am-navy);
}
.am-mentioned-by__cta {
  margin-left: 16px;
  color: var(--am-orange);
  font-weight: 600;
  font-size: 14px;
}
.am-affiliate-cta {
  display: block;
  background: var(--am-orange);
  color: #fff !important;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  text-decoration: none;
  margin: 24px 0;
  transition: all 0.2s;
}
.am-affiliate-cta:hover {
  background: var(--am-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(245, 166, 35, 0.3);
}
.am-mention-quote {
  font-style: italic;
  color: var(--am-text);
  padding: 16px 20px;
  background: var(--am-bg);
  border-left: 4px solid var(--am-orange);
  border-radius: 8px;
  margin: 24px 0;
}
.am-legal-disclosure {
  font-size: 12px;
  color: var(--am-muted);
  padding: 12px 16px;
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: 8px;
  margin: 24px 0;
}

/* === Responsive === */
@media (max-width: 768px) {
  .am-influenceur-hero__title { font-size: 32px; }
  .am-products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
  .am-product-card__title { font-size: 14px; }
  .am-product-card__price { font-size: 18px; }
}
