/* =====================================================
   Mes Shortcodes Pages — Styles communs
   creation-ecussons.com
   ===================================================== */

/* HERO */
.pp-hero {
  position: relative;
  background: #1e293b;
  border-radius: 12px;
  padding: 32px;
  margin-top: 20px;
  margin-bottom: 24px;
  overflow: hidden;
}
.pp-hero__content {
  position: relative;
  z-index: 2;
  max-width: 60%;
}
.pp-hero__img {
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  width: 360px;
  max-width: 40%;
  height: auto;
  display: block;
  z-index: 1;
  pointer-events: none;
}
.pp-hero__img--lg {
  width: 720px;
  max-width: 55%;
}
.pp-hero__img--md {
  width: 520px;
  max-width: 48%;
}
.pp-hero__breadcrumb {
  color: #94a3b8;
  font-size: 12px;
  margin: 0 0 8px;
}
.pp-hero__title {
  color: #f1f5f9;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.3;
}
.pp-hero__sub {
  color: #94a3b8;
  font-size: 14px;
  margin: 0 0 16px;
}
.pp-hero__badges {
  margin-bottom: 20px;
}
.pp-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* BADGES */
.pp-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-right: 6px;
  margin-bottom: 4px;
}
.pp-badge--blue {
  background: #dbeafe;
  color: #1e40af;
}
.pp-badge--green {
  background: #dcfce7;
  color: #166534;
}
.pp-badge--amber {
  background: #fef3c7;
  color: #92400e;
}
.pp-badge--gray {
  background: #f3f4f6;
  color: #374151;
}
.pp-badge--orange {
  background: #ffedd5;
  color: #9a3412;
}

/* BOUTONS */
.pp-btn {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: 8px;
  text-decoration: none !important;
  margin-right: 10px;
  margin-bottom: 6px;
}
.pp-btn:hover,
.pp-btn:focus,
.pp-btn:active,
.pp-btn:visited {
  text-decoration: none !important;
}
.pp-btn--primary {
  background: #1d4ed8;
  color: #ffffff;
}
.pp-btn--primary:hover {
  background: #1e40af;
  color: #ffffff;
}
.pp-btn--orange {
  background: #ea580c;
  color: #ffffff;
}
.pp-btn--orange:hover {
  background: #c2410c;
  color: #ffffff;
}
.pp-btn--outline {
  background: #ffffff;
  color: #1d4ed8;
  border: 1px solid #1d4ed8;
}
.pp-btn--outline:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

/* STATS */
.pp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}
.pp-stat {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
}
.pp-stat__num {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
}
.pp-stat__label {
  font-size: 12px;
  color: #6b7280;
  margin-top: 3px;
}

/* HIGHLIGHT */
.pp-highlight {
  border-left: 4px solid #3b82f6;
  background: #eff6ff;
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 28px;
  color: #1e3a8a;
  font-size: 14px;
}

/* CARDS */
.pp-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.pp-card h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 14px;
  color: #111827;
}
.pp-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #111827;
}
.pp-card p {
  font-size: 14px;
  color: #374151;
  margin: 0 0 12px;
  line-height: 1.7;
}

/* MEDIA + TEXTE */
.pp-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
  align-items: center;
}
.pp-media--reverse {
  direction: rtl;
}
.pp-media--reverse > * {
  direction: ltr;
}
.pp-media__img {
  width: 100%;
  border-radius: 10px;
  display: block;
}
.pp-media__img--placeholder {
  background: #f1f5f9;
  border-radius: 10px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 13px;
}

/* CHECKLIST */
.pp-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.pp-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 14px;
  color: #374151;
}
.pp-checklist li:last-child {
  border-bottom: none;
}
.pp-checklist__check {
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* MATIÈRES */
.pp-materials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0 0;
}
.pp-materials--2col {
  grid-template-columns: repeat(2, 1fr);
}
.pp-material {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  background: #fafafa;
}
.pp-material__title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  display: block;
  margin-bottom: 6px;
}
.pp-material__desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}
.pp-material--featured {
  border-color: #f97316;
  background: #fff7ed;
}
.pp-material--featured .pp-material__title {
  color: #c2410c;
}

/* PILLS */
.pp-pill {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  border-radius: 20px;
  padding: 4px 12px;
  margin: 3px;
}

/* OUTIL */
.pp-tool {
  position: relative;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 32px;
  margin-bottom: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.pp-tool::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(29, 78, 216, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}
.pp-tool__content {
  position: relative;
  z-index: 1;
}
.pp-tool__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.18);
  display: block;
}
.pp-tool__tag {
  display: inline-block;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.pp-tool__content h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1e3a8a;
  line-height: 1.3;
}
.pp-tool__content p {
  font-size: 14px;
  color: #1e40af;
  margin: 0 0 16px;
  line-height: 1.6;
}
.pp-tool__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}
.pp-tool__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #1e3a8a;
  font-weight: 500;
}
.pp-tool__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* CTA FINAL */
.pp-cta-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.pp-cta-group--3 {
  grid-template-columns: repeat(3, 1fr);
}
.pp-cta-group .pp-cta {
  margin-bottom: 0;
}
.pp-cta-group .pp-cta__img {
  margin: -20px auto -15px;
  max-width: 280px;
}
.pp-wrap--echarpes .pp-cta__img {
  margin: 0 auto 20px;
  max-width: 340px;
}
.pp-wrap--echarpes .pp-cta-group .pp-cta__img {
  margin: 0 auto 16px;
  max-width: 220px;
}
.pp-wrap--medailles .pp-cta__img {
  margin: 0 auto 20px;
  max-width: 340px;
}
.pp-wrap--medailles .pp-cta-group .pp-cta__img {
  margin: 0 auto 16px;
  max-width: 220px;
}

/* VIDEO */
.pp-card--video {
  text-align: center;
}
.pp-video {
  width: 100%;
  max-width: 820px;
  border-radius: 10px;
  display: block;
  margin: 16px auto 0;
  background: #000;
}

/* SHORTCODE WRAPPER dans pp-media */
.pp-media__shortcode {
  width: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafc;
}
.pp-media__shortcode > * {
  max-width: 100%;
}
.pp-cta {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin-bottom: 24px;
}
.pp-cta__img {
  display: block;
  max-width: 420px;
  width: 100%;
  height: auto;
  margin: -40px auto -30px;
}
.pp-cta h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #111827;
}
.pp-cta p {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 20px;
}
.pp-cta__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .pp-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .pp-materials {
    grid-template-columns: 1fr;
  }
  .pp-media {
    grid-template-columns: 1fr;
  }
  .pp-media--reverse {
    direction: ltr;
  }
  .pp-tool {
    padding: 32px;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .pp-tool__content h3 {
    font-size: 18px;
  }
  .pp-tool__list {
    grid-template-columns: 1fr;
  }
  .pp-cta-group,
  .pp-cta-group--3 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pp-card,
  .pp-hero,
  .pp-cta {
    padding: 32px;
  }
  .pp-hero {
    border-radius: 0;
    margin-top: 0;
  }
  .pp-hero__content {
    max-width: 100%;
  }
  .pp-hero__img {
    display: none;
  }
  .pp-media__img,
  .pp-media__img--placeholder {
    border-radius: 0;
  }
  .pp-media > div {
    padding: 0 32px;
  }
  .pp-tool,
  .pp-card,
  .pp-cta {
    border-radius: 0;
  }
}

/* =====================================================
   SURCHARGES THEME ASTRA (Correction Padding & Full-width)
   ===================================================== */

/* Annule le padding global du conteneur parent pour forcer le bord à bord */
.ast-container:has(.pp-wrap) {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (max-width: 768px) {
  /* On enlève le padding par défaut d'Astra pour pouvoir gérer le "full-width" (bord à bord) */
  article.ast-article-single:has(.pp-wrap) {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
