/* ========================================
   PM-THEME — Homepage CSS
   Design dynamique sport / tech
   ======================================== */

/* ── Hero ── */
.pm-hero {
  background: var(--pm-gradient);
  padding: 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.pm-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(10,77,140,.3) 0%, transparent 70%);
  pointer-events: none;
}

.pm-hero-inner {
  max-width: var(--pm-max-width);
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.pm-hero-badge {
  display: inline-block;
  background: var(--pm-yellow);
  color: var(--pm-dark);
  font-size: 11px;
  font-weight: 800;
  padding: 6px 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.pm-hero h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.0;
  margin-bottom: 24px;
  color: #fff;
}

.pm-hero h1 em {
  font-style: normal;
  color: var(--pm-yellow);
}

.pm-hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
  max-width: 480px;
}

.pm-hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.pm-hero-visual {
  position: relative;
}

.pm-hero-img {
  width: 100%;
  max-width: 540px;
  border: 3px solid rgba(255,255,255,.1);
  filter: brightness(1.05) contrast(1.05);
}

.pm-hero-stat {
  position: absolute;
  background: rgba(26,26,26,.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  padding: 16px 20px;
  color: #fff;
}

.pm-hero-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: var(--pm-yellow);
  line-height: 1;
}

.pm-hero-stat span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: .7;
}

.pm-hero-stat--1 { bottom: 20px; left: -30px; }
.pm-hero-stat--2 { top: 20px; right: -20px; }

/* ── P0 Snippet ── */
.pm-p0 {
  background: var(--pm-dark);
  color: #fff;
  padding: 32px 0;
  border-bottom: 4px solid var(--pm-yellow);
}

.pm-p0-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 16px;
  line-height: 1.8;
}

.pm-p0-inner strong { color: var(--pm-yellow); }

/* ── Trust Bar ── */
.pm-section--trust {
  background: var(--pm-blue);
}

.pm-trust-bar-home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--pm-max-width);
  margin: 0 auto;
}

.pm-trust-item-home {
  text-align: center;
  padding: 28px 16px;
  border-right: 1px solid rgba(255,255,255,.15);
}

.pm-trust-item-home:last-child { border-right: none; }
.pm-trust-item-home strong { display: block; font-size: 32px; font-weight: 900; color: var(--pm-yellow); }
.pm-trust-item-home span { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.7); }

/* ── Sections ── */
.pm-section { padding: 80px 0; }
.pm-section--alt { background: var(--pm-gray-light); }
.pm-section--dark { background: var(--pm-dark); color: #fff; }

.pm-section-header {
  text-align: center;
  margin-bottom: 56px;
}

.pm-section-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--pm-dark);
  line-height: 1.1;
}

.pm-section--dark .pm-section-header h2 { color: #fff; }

.pm-section-header .pm-highlight { color: var(--pm-blue); }
.pm-section--dark .pm-section-header .pm-highlight { color: var(--pm-yellow); }

.pm-section-header p {
  font-size: 16px;
  color: var(--pm-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.pm-section--dark .pm-section-header p { color: rgba(255,255,255,.6); }

/* ── Top 3 Cards ── */
.pm-top3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: var(--pm-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.pm-top3-card {
  background: #fff;
  border: 2px solid var(--pm-dark);
  box-shadow: var(--pm-shadow);
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.pm-top3-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--pm-dark);
}

.pm-top3-card--gold { border-color: var(--pm-yellow); box-shadow: 4px 4px 0 var(--pm-yellow); }
.pm-top3-card--gold:hover { box-shadow: 2px 2px 0 var(--pm-yellow); }

.pm-top3-rank {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--pm-dark);
  color: var(--pm-yellow);
  font-weight: 900;
  font-size: 22px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.pm-top3-card--gold .pm-top3-rank { background: var(--pm-yellow); color: var(--pm-dark); }

.pm-top3-img-wrap {
  background: var(--pm-gray-light);
  padding: 32px 24px 24px;
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-top3-img-wrap img {
  max-height: 160px;
  object-fit: contain;
}

.pm-top3-body {
  padding: 24px;
}

.pm-top3-body h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.pm-top3-brand {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pm-gray);
  margin-bottom: 16px;
}

.pm-top3-score-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.pm-top3-score {
  font-size: 32px;
  font-weight: 900;
  color: var(--pm-blue);
  line-height: 1;
}

.pm-top3-score span { font-size: 16px; color: var(--pm-gray); }

.pm-top3-bar {
  flex: 1;
  height: 8px;
  background: #eee;
  position: relative;
  overflow: hidden;
}

.pm-top3-bar-fill {
  height: 100%;
  background: var(--pm-blue);
}

.pm-top3-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 13px;
}

.pm-top3-specs li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.pm-top3-specs li span:last-child { font-weight: 700; }

.pm-top3-verdict {
  background: var(--pm-blue-light);
  margin: 0 -24px -24px;
  padding: 16px 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pm-blue);
}

.pm-top3-verdict::before { content: '→ '; }

/* ── Author Section ── */
.pm-author-home {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
}

.pm-author-photo {
  width: 100%;
  border: 3px solid var(--pm-dark);
  box-shadow: 8px 8px 0 var(--pm-yellow);
}

.pm-author-home h3 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 4px;
}

.pm-author-home .pm-author-title {
  color: var(--pm-blue);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 16px;
}

.pm-author-home p { margin-bottom: 16px; line-height: 1.8; }

.pm-author-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.pm-author-stat {
  background: var(--pm-dark);
  color: #fff;
  padding: 16px;
  text-align: center;
}

.pm-author-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: var(--pm-yellow);
}

.pm-author-stat span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  opacity: .7;
}

/* ── Comparatif Table ── */
.pm-comparatif {
  max-width: var(--pm-max-width);
  margin: 0 auto;
  padding: 0 24px;
  overflow-x: auto;
}

.pm-comparatif table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 700px;
}

.pm-comparatif th {
  background: var(--pm-dark);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
  position: sticky;
  top: 64px;
  z-index: 10;
}

.pm-comparatif td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.pm-comparatif tr:nth-child(1) td { background: rgba(255,184,0,.08); font-weight: 700; }
.pm-comparatif tr:hover td { background: var(--pm-blue-light); }

.pm-comparatif .pm-table-score {
  font-weight: 900;
  font-size: 18px;
  color: var(--pm-blue);
}

.pm-table-row--highlight td {
  background: rgba(255,184,0,.08) !important;
  border-bottom: 2px solid var(--pm-yellow);
}

.pm-table-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: var(--pm-gray-light);
  color: var(--pm-dark);
  white-space: nowrap;
}

.pm-table-badge--gold {
  background: var(--pm-yellow);
  color: var(--pm-dark);
}

.pm-table-badge--blue {
  background: var(--pm-blue);
  color: #fff;
}

/* ── Guide Cards ── */
.pm-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--pm-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.pm-guide-card {
  background: #fff;
  border: 2px solid var(--pm-dark);
  box-shadow: var(--pm-shadow);
  padding: 32px 24px;
  transition: transform .2s, box-shadow .2s;
}

.pm-guide-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--pm-dark);
}

.pm-guide-card-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.pm-guide-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}

.pm-guide-card p {
  font-size: 14px;
  color: var(--pm-gray);
  line-height: 1.6;
  margin-bottom: 16px;
}

.pm-guide-card a {
  font-size: 13px;
  font-weight: 700;
  color: var(--pm-blue);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── Brands Section ── */
.pm-brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--pm-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.pm-brand-card {
  border: 2px solid rgba(255,255,255,.15);
  padding: 24px;
  text-align: center;
  transition: border-color .2s, background .2s;
}

.pm-brand-card:hover {
  border-color: var(--pm-yellow);
  background: rgba(255,255,255,.05);
}

.pm-brand-card h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.pm-brand-card ul {
  list-style: none;
  padding: 0;
}

.pm-brand-card li { margin-bottom: 6px; }

.pm-brand-card a {
  color: rgba(255,255,255,.6);
  font-size: 13px;
}

.pm-brand-card a:hover { color: var(--pm-yellow); }

/* ── FAQ ── */
.pm-faq-home {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── CTA Section ── */
.pm-section--cta {
  background: var(--pm-gradient);
  padding: 80px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.pm-section--cta::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 50%;
  width: 120%;
  height: 300%;
  background: radial-gradient(ellipse, rgba(255,184,0,.1) 0%, transparent 60%);
  pointer-events: none;
}

.pm-section--cta h2 { color: #fff; margin-bottom: 12px; font-size: 36px; position: relative; }
.pm-section--cta p { color: rgba(255,255,255,.7); margin-bottom: 32px; position: relative; }

/* ── Responsive ── */
@media (max-width: 968px) {
  .pm-top3-grid { grid-template-columns: 1fr; max-width: 450px; }
  .pm-guide-grid { grid-template-columns: 1fr 1fr; }
  .pm-brands-grid { grid-template-columns: 1fr 1fr; }
  .pm-author-home { grid-template-columns: 1fr; text-align: center; }
  .pm-author-photo { max-width: 250px; margin: 0 auto; }
  .pm-trust-bar-home { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .pm-hero { min-height: auto; }
  .pm-hero-inner { grid-template-columns: 1fr; text-align: center; padding: 60px 24px; }
  .pm-hero-visual { display: none; }
  .pm-hero-buttons { justify-content: center; }
  .pm-hero-subtitle { margin: 0 auto 36px; }
  .pm-section { padding: 56px 0; }
  .pm-guide-grid { grid-template-columns: 1fr; }
  .pm-brands-grid { grid-template-columns: 1fr; }
  .pm-author-stats { grid-template-columns: 1fr; }
  .pm-test-inner { grid-template-columns: 1fr; }
  .pm-test-visual { max-width: 100%; }
  .pm-test-procon { grid-template-columns: 1fr; }
}

/* ── Test Cards ── */
.pm-test-card {
  background: #fff;
  border: 2px solid var(--pm-dark);
  box-shadow: var(--pm-shadow);
  margin-bottom: 40px;
  overflow: hidden;
  position: relative;
}

.pm-test-card--highlight {
  border-color: var(--pm-yellow);
  box-shadow: 6px 6px 0 var(--pm-yellow);
}

.pm-test-badge-qp {
  background: var(--pm-yellow);
  color: var(--pm-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  padding: 10px 0;
}

.pm-test-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
}

.pm-test-visual {
  background: var(--pm-gray-light);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pm-test-visual img {
  max-width: 280px;
  max-height: 280px;
  object-fit: contain;
}

.pm-test-score-big {
  margin-top: 20px;
  text-align: center;
}

.pm-test-score-big strong {
  font-size: 48px;
  font-weight: 900;
  color: var(--pm-blue);
  line-height: 1;
}

.pm-test-score-big span {
  font-size: 20px;
  color: var(--pm-gray);
  font-weight: 600;
}

.pm-test-content {
  padding: 32px;
}

.pm-test-content h3 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 4px;
  color: var(--pm-dark);
}

.pm-test-brand {
  font-size: 14px;
  color: var(--pm-gray);
  margin-bottom: 16px;
}

.pm-test-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.pm-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.pm-tag--blue {
  background: var(--pm-blue-light);
  color: var(--pm-blue);
}

.pm-tag--gold {
  background: var(--pm-yellow);
  color: var(--pm-dark);
}

.pm-test-content > p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.pm-test-procon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.pm-test-pros h4 {
  color: #2E7D32;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #2E7D32;
}

.pm-test-cons h4 {
  color: #C62828;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #C62828;
}

.pm-test-pros ul, .pm-test-cons ul {
  list-style: none;
  padding: 0;
}

.pm-test-pros li, .pm-test-cons li {
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.pm-test-pros li::before { content: '✓ '; color: #2E7D32; font-weight: 700; }
.pm-test-cons li::before { content: '✗ '; color: #C62828; font-weight: 700; }

.pm-test-verdict {
  background: var(--pm-blue-light);
  border-left: 4px solid var(--pm-blue);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.7;
}

.pm-test-verdict strong { color: var(--pm-blue); }

.pm-test-card--highlight .pm-test-verdict {
  background: rgba(255,184,0,.1);
  border-left-color: var(--pm-yellow);
}

.pm-test-card--highlight .pm-test-verdict strong { color: var(--pm-yellow-dark); }

@media (max-width: 968px) {
  .pm-test-inner { grid-template-columns: 1fr; }
  .pm-test-visual { padding: 24px; }
  .pm-test-visual img { max-width: 200px; }
  .pm-test-procon { grid-template-columns: 1fr; }
}

/* ── Content Sections (PAA, guide, VS) ── */
.pm-content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.pm-content-section h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--pm-dark);
}

.pm-content-section h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 32px 0 12px;
  color: var(--pm-blue);
}

.pm-content-section p { margin-bottom: 16px; line-height: 1.8; }
.pm-content-section ul, .pm-content-section ol { margin: 16px 0 24px; padding-left: 24px; }
.pm-content-section li { margin-bottom: 10px; line-height: 1.7; }
.pm-content-section a { color: var(--pm-blue); font-weight: 600; border-bottom: 1px solid var(--pm-blue); }
.pm-content-section a:hover { color: var(--pm-yellow-dark); border-color: var(--pm-yellow-dark); }

/* ── Profile Cards ── */
.pm-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.pm-profile-card {
  background: #fff;
  border: 2px solid var(--pm-dark);
  box-shadow: var(--pm-shadow);
  padding: 28px 24px;
  transition: transform .2s, box-shadow .2s;
}

.pm-profile-card:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--pm-dark); }
.pm-profile-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; color: var(--pm-dark); }
.pm-profile-card .pm-profile-desc { font-size: 13px; color: var(--pm-gray); margin-bottom: 16px; }
.pm-profile-card .pm-profile-pick { font-size: 18px; font-weight: 800; color: var(--pm-blue); margin-bottom: 8px; }
.pm-profile-card p:last-of-type { font-size: 14px; margin-bottom: 0; }
.pm-profile-card a { color: var(--pm-blue); font-weight: 700; font-size: 13px; }

/* ── Usage Grid (avant/après effort) ── */
.pm-usage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.pm-usage-card {
  border: 2px solid rgba(255,255,255,.15);
  padding: 28px 24px;
}

.pm-usage-card h3 { color: var(--pm-yellow); font-size: 17px; font-weight: 800; margin-bottom: 16px; }
.pm-usage-card ul { list-style: none; padding: 0; margin: 0; }
.pm-usage-card li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.85); font-size: 14px; }
.pm-usage-card li:last-child { border-bottom: none; }

.pm-section--dark .pm-content-section h2 { color: #fff; }
.pm-section--dark .pm-content-section p { color: rgba(255,255,255,.75); }
.pm-section--dark .pm-content-section a { color: var(--pm-yellow); border-color: var(--pm-yellow); }
.pm-section--dark .pm-content-section strong { color: var(--pm-yellow); }

/* ── Criteria List (numbered) ── */
.pm-criteria-list { counter-reset: criteria; list-style: none; padding: 0; margin: 24px 0; }

.pm-criteria-list li {
  counter-increment: criteria;
  padding: 20px 20px 20px 60px;
  margin-bottom: 12px;
  background: #fff;
  border: 2px solid var(--pm-dark);
  position: relative;
  line-height: 1.7;
}

.pm-criteria-list li::before {
  content: counter(criteria);
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 44px;
  background: var(--pm-blue);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .pm-profile-grid { grid-template-columns: 1fr; }
  .pm-usage-grid { grid-template-columns: 1fr; }
}
