/* ==========================================================================
   Tokens & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --brand: #e6336c;
  --brand-dark: #c02559;
  --brand-soft: #fff1f5;
  --accent: #0d6efd;
  --success: #198754;
  --warning: #f5b400;
  --text: #17172b;
  --text-muted: #636383;
  --bg: #ffffff;
  --bg-alt: #f0e9ec;
  --border: #ececf2;
  --border-strong: #dcdce5;
  --shadow-sm: 0 1px 2px rgba(20,20,40,.04);
  --shadow-md: 0 4px 18px rgba(20,20,40,.06);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1120px;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; color: var(--text); margin: 0 0 .6em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: .75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.2) blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-tld { color: var(--brand); }

.site-header nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: none;
  gap: 1.75rem;
}
.site-header nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}
.site-header nav a:hover { color: var(--brand); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(230,51,108,.28);
}
.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 6px 18px rgba(230,51,108,.38);
  color: #fff;
}

.btn-link {
  background: transparent;
  color: var(--text);
  padding: .9rem 1rem;
}
.btn-link:hover { color: var(--brand); transform: none; }

.btn-block { width: 100%; }

/* ==========================================================================
   Sections generic
   ========================================================================== */

section { padding: 3rem 0; }

.section-head {
  max-width: 44rem;
  margin: 0 auto 2.25rem;
  text-align: center;
}
.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 .75rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 2.5rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  background: #fff;
}
.trust-pill svg { color: var(--success); }
.trust-pill time { font-weight: 600; color: var(--text); }

.hero h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  max-width: 18ch;
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}

.hero-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ==========================================================================
   Intro éditoriale
   ========================================================================== */

.intro {
  padding: 2rem 0 1rem;
}
.intro-lede {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}

/* ==========================================================================
   Sommaire (table of contents)
   ========================================================================== */

.toc { padding: 1rem 0 2rem; }
.toc .container { max-width: 46rem; }

.toc-title {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin: 0 0 1rem;
  text-align: center;
}

.toc-body {
  padding: 1.25rem 1.5rem;
  background: var(--brand-soft);
  border-radius: var(--radius);
}

.toc-group-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand-dark);
  margin: 0 0 .5rem;
}
.toc-group-label-alt {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(192, 37, 89, .15);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: .15rem;
}
.toc-list-primary { counter-reset: toc; }
.toc-list-primary li { counter-increment: toc; }

.toc-list a {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .55rem .5rem;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  transition: background-color .15s ease, color .15s ease;
}
.toc-list a::before {
  font-variant-numeric: tabular-nums;
  color: var(--brand);
  font-weight: 700;
  font-size: .8rem;
  min-width: 1.75rem;
}
.toc-list-primary a::before {
  content: counter(toc, decimal-leading-zero);
}
.toc-list-secondary a::before {
  content: "→";
  font-size: 1rem;
  line-height: 1;
}
.toc-list-primary a::after {
  content: "→";
  margin-left: auto;
  color: var(--brand);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .15s ease, transform .15s ease;
}
.toc-list a:hover {
  background: #fff;
  text-decoration: none;
  color: var(--brand-dark);
}
.toc-list-primary a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

@media (min-width: 640px) {
  .toc-list { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; }
}

/* ==========================================================================
   Site reviews (format éditorial)
   ========================================================================== */

.site-review {
  padding: 3rem 0;
  background: #fff;
}
.site-review-alt { background: var(--bg-alt); }

.site-review .container {
  max-width: 46rem;
}

.review-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin: 0 0 1rem;
  flex-wrap: wrap;
}
.review-header h2 {
  margin: 0 0 .35rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
}
.review-tag {
  margin: 0;
  font-size: .98rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.5;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
}
.brand img {
  max-width: 160px;
  height: auto;
}
.brand-inverse {
  background: var(--brand);
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}

.site-screenshot {
  margin: 0 0 1.5rem;
}
.site-screenshot img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.rating-inline {
  font-size: .9rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}
.rating-inline strong { color: var(--text); font-size: 1rem; margin-right: .15rem; }

.prose {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text);
}
.prose p {
  margin: 0 0 1.1rem;
}
.prose p:last-child { margin-bottom: 0; }

.site-review h3 {
  font-size: 1.15rem;
  margin: 2rem 0 .9rem;
}

.highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: .55rem;
  font-size: .98rem;
}
.highlights li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: var(--text);
}
.highlights li::before {
  content: "";
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6336c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center / 11px no-repeat;
}

.cta-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  margin-top: 1rem;
}
.site-review-alt .cta-box { background: #fff; }

.review-synthesis {
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.35rem;
  margin: 1.25rem 0 1.75rem;
}
.rating-inline + .review-synthesis {
  margin-top: .25rem;
}
.site-screenshot + .rating-inline {
  margin: 0 0 .5rem;
}
.site-review-alt .review-synthesis {
  background: #fff;
}
.review-synthesis .review-synthesis-label {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--brand);
  line-height: 1.2;
  margin: 0 0 .5rem;
}
.review-synthesis-body {
  margin: 0;
  line-height: 1.7;
  color: var(--text);
  font-size: .98rem;
}

.access-meta {
  font-size: .92rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.access-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ==========================================================================
   Comparatif cards
   ========================================================================== */

.compare-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 720px) {
  .compare-cards {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.compare-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.compare-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.35rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.compare-card-head--brand {
  background: var(--brand);
  border-bottom-color: var(--brand-dark);
}
.compare-card-head--brand .compare-card-rating,
.compare-card-head--brand .compare-card-rating span {
  color: #fff;
}
.compare-card-brand {
  margin: 0;
  font-size: 0;
  line-height: 0;
}
.compare-card-brand img {
  display: block;
  height: 34px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.compare-card-rating {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}
.compare-card-rating span {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.compare-card-list {
  margin: 0;
  padding: 1.1rem 1.35rem 1.25rem;
  display: grid;
  gap: .6rem;
}
.compare-card-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  font-size: .95rem;
}
.compare-card-list dt {
  color: var(--text-muted);
  font-weight: 500;
  flex: 0 0 auto;
}
.compare-card-list dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  color: var(--text);
}
.compare-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .65rem 1.35rem;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  border-top: 1px solid var(--border);
  transition: background .15s ease;
}
.compare-card-cta svg {
  transition: transform .15s ease;
}
.compare-card-cta:hover {
  background: #ffe4ec;
  color: var(--brand-dark);
}
.compare-card-cta:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   About (Qui sommes-nous ?)
   ========================================================================== */

.about { background: #fff; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-text h2 {
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  max-width: 18ch;
}
.about-text p {
  color: var(--text-muted);
  font-size: 1rem;
}

.about-points {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: .85rem;
}
.about-points li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text);
  font-size: .96rem;
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.about-points strong { color: var(--text); }

/* ==========================================================================
   Guide — Comment bien choisir ?
   ========================================================================== */

.guide { background: #fff; }

.guide-points {
  display: grid;
  gap: 1.25rem;
  max-width: 46rem;
  margin: 0 auto;
}

.guide-item {
  border-left: 3px solid var(--brand-soft);
  padding: .25rem 0 .25rem 1.25rem;
}
.guide-item h3 {
  font-size: 1.1rem;
  margin: 0 0 .5rem;
}
.guide-item p {
  color: var(--text-muted);
  font-size: .98rem;
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { background: var(--bg-alt); }

.faq .section-head { margin-bottom: 1.75rem; }

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .75rem;
  padding: 0 1.25rem;
  transition: border-color .15s;
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding-right: 2rem;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--text-muted);
  font-weight: 400;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  font-size: .96rem;
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal-page {
  padding: 2.5rem 0 3.5rem;
}
.legal-page .container {
  max-width: 44rem;
}
.legal-head {
  margin: 0 0 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.legal-head h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  margin: 0 0 .5rem;
}
.legal-head .eyebrow { margin: 0 0 .5rem; }
.legal-updated {
  color: var(--text-muted);
  font-size: .88rem;
  margin: 0;
}
.legal-page section {
  padding: 1.25rem 0 0;
}
.legal-page h2 {
  font-size: 1.25rem;
  margin: 0 0 .75rem;
}
.legal-page p,
.legal-page ul {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}
.legal-page ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}
.legal-page li {
  margin-bottom: .4rem;
}
.legal-page a {
  color: var(--brand);
  text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid var(--border);
  background: #fff;
  font-size: .92rem;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.5rem;
}
.footer-logo { font-weight: 800; color: var(--text); margin: 0 0 .35rem; }
.footer-tag { margin: 0; max-width: 36ch; }
.footer-title {
  font-weight: 700;
  color: var(--text);
  margin: 0 0 .5rem;
  font-size: .95rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .4rem;
}
.site-footer ul a { color: var(--text-muted); text-decoration: none; }
.site-footer ul a:hover { color: var(--brand); text-decoration: underline; }

.footer-disclosure {
  font-size: .78rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 .75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  opacity: .85;
}

.copy {
  text-align: center;
  margin: 0;
  font-size: .8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive — Tablet & up
   ========================================================================== */

@media (min-width: 720px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  section { padding: 4.5rem 0; }

  .hero { padding: 3.5rem 0 2.5rem; }
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
  }

  .site-review { padding: 4.5rem 0; }
  .cta-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
  }

  .about-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
  }

  .footer-grid { grid-template-columns: 2fr 1fr; }
}

@media (min-width: 960px) {
  .site-header nav ul { display: flex; }
  .hero { padding: 5rem 0 3.5rem; }
  .hero-grid { gap: 4rem; }
  .about-grid { gap: 4rem; }
}
