/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-pale: #e8eef8;
  --blue-pale2: #d8e4f5;
  --blue-mid: #5b8dee;
  --blue-dark: #2c5cc5;
  --blue-badge: #dce8fb;
  --black: #111111;
  --white: #ffffff;
  --gray-text: #444444;
  --gray-label: #777777;
  --gray-img: #f0f2f5;
  --green-dot: #22c55e;
  --orange-dot: #f59e0b;
  --red-dot: #ef4444;
  --font: 'Inter', system-ui, sans-serif;
  --max: 860px;
  --radius-card: 16px;
  --radius-pill: 999px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--blue-pale);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* ─── HEADER ─── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #dde6f5;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 0.01em;
}

.header-nav {
  display: flex;
  gap: 20px;
}

.header-nav a {
  font-size: 0.82rem;
  color: var(--gray-label);
  font-weight: 400;
}

.header-nav a:hover { color: var(--blue-dark); }

/* ─── HERO IMAGE ─── */
.hero {
  width: 100%;
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: brightness(0.7);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44,92,197,0.6) 0%, rgba(91,141,238,0.4) 100%);
}

.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 24px;
  color: var(--white);
}

.hero__title {
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.hero__subtitle {
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.9;
}

/* ─── INTRO TABLE SECTION ─── */
.intro {
  padding: 28px 0;
}

.intro-text {
  font-size: 0.92rem;
  color: var(--gray-text);
  margin-bottom: 10px;
  line-height: 1.7;
}

/* Table style matching sante-cheveux */
.problems-table {
  margin-top: 16px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #c8d8f0;
  font-size: 0.88rem;
}

.problems-table__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--blue-pale2);
  padding: 10px 14px;
  font-weight: 700;
  color: var(--gray-text);
  font-size: 0.82rem;
}

.problems-table__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 10px 14px;
  border-top: 1px solid #d8e4f5;
  background: var(--white);
  color: var(--gray-text);
  font-size: 0.85rem;
}

.problems-table__row:nth-child(even) { background: var(--blue-pale); }

.problems-table__row--positive {
  background: #edfdf5 !important;
  color: #15803d;
  font-weight: 600;
}

/* ─── RANKING SECTION HEADER ─── */
.ranking-intro {
  background: var(--blue-pale);
  padding: 32px 16px 8px;
  text-align: center;
}

.ranking-intro .section-title {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 12px;
  line-height: 1.2;
}

.ranking-intro .section-subtitle {
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── PRODUCTS ─── */
.products {
  padding: 20px 0 48px;
}

.product {
  background: var(--white);
  border-radius: var(--radius-card);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(44,92,197,0.08);
  position: relative;
}

/* Top badge for winner */
.product__top-badge {
  position: absolute;
  top: -6px;
  right: 16px;
  background: var(--blue-mid);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  text-align: center;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(44,92,197,0.3);
}

/* Card top row: image + score + cta */
.product__top {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  padding: 16px;
  align-items: start;
}

.product__image-wrap {
  background: var(--gray-img);
  border-radius: 10px;
  overflow: hidden;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.product__right {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

/* Score pill — blue background, outlined star */
.product__score-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-badge);
  color: var(--blue-dark);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  align-self: flex-start;
}

.score-star {
  font-size: 1rem;
  color: var(--blue-dark);
}

/* Discover button — black rounded pill */
.product__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 11px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.15s;
}

.product__cta:hover { background: #333; }

/* Bottom: name + divider + criteria */
.product__bottom {
  padding: 0 16px 20px;
}

.product__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: 8px;
}

.product__divider {
  height: 3px;
  width: 80px;
  background: var(--blue-mid);
  border-radius: 2px;
  margin-bottom: 16px;
}

/* Criteria lists */
.criteria-group {
  margin-bottom: 14px;
}

.criteria-group__label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.criteria-group__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.criteria-group__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--gray-text);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot--green { background: var(--green-dot); }
.dot--orange { background: var(--orange-dot); }
.dot--red { background: var(--red-dot); }

/* ─── METHODOLOGY ─── */
.methodology {
  background: var(--white);
  padding: 40px 0;
  border-radius: var(--radius-card);
  margin: 0 0 20px;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 0.88rem;
  color: var(--gray-text);
  line-height: 1.7;
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.criteria-item {
  background: var(--blue-pale);
  border-radius: 10px;
  padding: 14px;
}

.criteria-icon {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 6px;
}

.criteria-item h4 {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--black);
}

.criteria-item p {
  font-size: 0.75rem;
  color: var(--gray-text);
  line-height: 1.5;
}

/* ─── CTA BLOCK ─── */
.cta-block { padding: 16px 0 40px; }

.cta-inner {
  background: var(--blue-dark);
  border-radius: var(--radius-card);
  padding: 36px 28px;
  text-align: center;
  color: var(--white);
}

.cta-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffd166;
  border: 1px solid #ffd166;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.cta-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.cta-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 18px;
}

.cta-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.cta-proof span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.85);
}

.cta-btn {
  display: inline-block;
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: opacity 0.15s;
}

.cta-btn:hover { opacity: 0.92; }

/* ─── FAQ ─── */
.faq { padding: 8px 0 40px; }

.faq-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(44,92,197,0.07);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--black);
  text-align: left;
  gap: 12px;
}

.faq-icon {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--blue-mid);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 18px 14px;
  background: var(--white);
}

.faq-item.open .faq-answer { display: block; }

.faq-answer p {
  font-size: 0.85rem;
  color: var(--gray-text);
  line-height: 1.7;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--black);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.site-logo--footer { color: var(--white); }

.footer-disclaimer {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  max-width: 560px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-links a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.footer-links a:hover { color: var(--white); }

/* ─── RESPONSIVE ─── */
@media (max-width: 520px) {
  .header-nav { display: none; }
  .hero__img { height: 260px; }
  .product__top { grid-template-columns: 110px 1fr; }
  .product__image-wrap { width: 100px; height: 100px; }
  .criteria-grid { grid-template-columns: 1fr 1fr; }
}
