/* ============================================================
   OutilswebIA - Feuille de style principale
   Palette : fond #FAFAF7 | texte #0A0A0F | accent #FF4D00 | bleu #0066FF
   Polices  : Bricolage Grotesque (titres) | DM Sans (corps)
   ============================================================ */

/* ---- Imports Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,700;12..96,800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ---- Reset & Variables ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:         #FAFAF7;
  --text:       #0A0A0F;
  --accent:     #FF4D00;
  --blue:       #0066FF;
  --muted:      #6B6B7B;
  --border:     #E4E4E0;
  --card-bg:    #FFFFFF;
  --dark:       #0A0A0F;

  /* Catégories */
  --cat-hebergement: #0066FF;
  --cat-creation:    #7C3AED;
  --cat-seo:         #059669;
  --cat-ia:          #FF4D00;

  --font-title: 'Bricolage Grotesque', sans-serif;
  --font-body:  'DM Sans', sans-serif;

  --radius:     8px;
  --radius-lg:  16px;
  --shadow:     0 2px 12px rgba(10,10,15,.07);
  --shadow-lg:  0 8px 32px rgba(10,10,15,.12);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Utilitaires ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp .55s ease forwards;
}
.fade-up.delay-1 { animation-delay: .1s; }
.fade-up.delay-2 { animation-delay: .2s; }
.fade-up.delay-3 { animation-delay: .3s; }
.fade-up.delay-4 { animation-delay: .4s; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,247,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

/* Logo */
.nav__logo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.02em;
  color: var(--text);
  flex-shrink: 0;
}
.nav__logo span { color: var(--accent); }

/* Liens nav */
.nav__links {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.nav__links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
}
.nav__links a:hover {
  color: var(--text);
  background: var(--border);
}

/* Bouton CTA nav */
.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius);
  transition: opacity .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-nav:hover {
  opacity: .9;
  box-shadow: 0 4px 16px rgba(255,77,0,.35);
}

/* Burger (mobile) */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  background: none;
  border: none;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* Mobile nav ouvert */
.nav.is-open .nav__links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  gap: 4px;
}
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BOUTONS
   ============================================================ */

/* Bouton CTA affilié principal */
.btn-affiliate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: box-shadow .25s, transform .2s;
  text-align: center;
}
.btn-affiliate:hover {
  box-shadow: 0 6px 24px rgba(255,77,0,.4);
  transform: translateY(-1px);
}

/* Note de transparence sous les CTAs affiliés */
.affiliate-note {
  display: block;
  font-size: .72rem;
  color: var(--muted);
  margin-top: 6px;
  text-align: center;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: .875rem;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  transition: border-color .2s, background .2s;
}
.btn-secondary:hover {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

/* ============================================================
   TAGS / CATÉGORIES
   ============================================================ */
.tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 100px;
  color: #fff;
}
.tag--hebergement { background: var(--cat-hebergement); }
.tag--creation    { background: var(--cat-creation); }
.tag--seo         { background: var(--cat-seo); }
.tag--ia          { background: var(--cat-ia); }

/* ============================================================
   HERO (index)
   ============================================================ */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--border);
}

.hero__eyebrow {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--text);
  max-width: 720px;
  margin-bottom: 20px;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   SECTIONS COMMUNES
   ============================================================ */
.section {
  padding: 72px 0;
}
.section--gray {
  background: #F3F3EF;
}
.section__header {
  margin-bottom: 40px;
}
.section__eyebrow {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 10px;
}
.section__title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
}
.section__title span { color: var(--accent); }

/* ============================================================
   CARD ARTICLE
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Thumbnail colorée par catégorie */
.card__thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 2.5rem;
  flex-shrink: 0;
}
.card__thumb--hebergement { background: linear-gradient(135deg, #EEF4FF, #DBEAFE); }
.card__thumb--creation    { background: linear-gradient(135deg, #F5F3FF, #EDE9FE); }
.card__thumb--seo         { background: linear-gradient(135deg, #ECFDF5, #D1FAE5); }
.card__thumb--ia          { background: linear-gradient(135deg, #FFF7ED, #FFEDD5); }

/* Logo réel affiché dans le thumbnail */
.card__thumb img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(10,10,15,.13);
  background: #fff;
  padding: 6px;
}

/* Comparatifs : deux logos côte à côte avec séparateur VS */
.card__thumb--duo img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}
.card__thumb--duo::after {
  content: 'VS';
  font-family: var(--font-title);
  font-size: .6rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: .06em;
}

.card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.card__read-time {
  font-size: .72rem;
  color: var(--muted);
}

.card__title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.35;
  margin-bottom: 8px;
  color: var(--text);
}

.card__excerpt {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: 16px;
}

.card__link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
  align-self: flex-start;
}
.card__link:hover { gap: 8px; }

/* ============================================================
   SECTION CATÉGORIES (index)
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  transition: box-shadow .25s, border-color .25s, transform .25s;
  background: var(--card-bg);
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.cat-card--hebergement:hover { border-color: var(--cat-hebergement); }
.cat-card--creation:hover    { border-color: var(--cat-creation); }
.cat-card--seo:hover         { border-color: var(--cat-seo); }
.cat-card--ia:hover          { border-color: var(--cat-ia); }

.cat-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 11px;
  flex-shrink: 0;
}
.cat-card__icon svg {
  width: 100%;
  height: 100%;
}
/* Fond teinté + trait coloré selon la catégorie */
.cat-card--hebergement .cat-card__icon { background: #EEF4FF; }
.cat-card--hebergement .cat-card__icon svg { stroke: #0066FF; }
.cat-card--creation .cat-card__icon    { background: #F5F3FF; }
.cat-card--creation .cat-card__icon svg    { stroke: #7C3AED; }
.cat-card--seo .cat-card__icon         { background: #ECFDF5; }
.cat-card--seo .cat-card__icon svg         { stroke: #059669; }
.cat-card--ia .cat-card__icon          { background: #FFF7ED; }
.cat-card--ia .cat-card__icon svg          { stroke: #FF4D00; }

.cat-card__name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}

.cat-card__count {
  font-size: .78rem;
  color: var(--muted);
}

/* ============================================================
   NEWSLETTER BLOCK
   ============================================================ */
.newsletter {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.newsletter__text { flex: 1; }

.newsletter__title {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -.02em;
}

.newsletter__sub {
  color: rgba(255,255,255,.55);
  font-size: .9rem;
}

.newsletter__form {
  display: flex;
  gap: 10px;
  flex: 1;
}

.newsletter__input {
  flex: 1;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
}
.newsletter__input::placeholder { color: rgba(255,255,255,.4); }
.newsletter__input:focus { border-color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.5);
  padding: 48px 0 32px;
  margin-top: 80px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 40px;
}

.footer__brand {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.footer__brand span { color: var(--accent); }

.footer__tagline {
  font-size: .8rem;
  max-width: 240px;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: 48px;
}

.footer__col h4 {
  color: rgba(255,255,255,.8);
  font-weight: 600;
  font-size: .875rem;
  margin-bottom: 14px;
}

.footer__col a {
  display: block;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  margin-bottom: 8px;
  transition: color .2s;
}
.footer__col a:hover { color: rgba(255,255,255,.8); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .75rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__affiliate-notice {
  max-width: 560px;
  line-height: 1.55;
  color: rgba(255,255,255,.3);
}

/* ============================================================
   ARTICLE — Breadcrumb
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--muted);
  padding: 20px 0;
}
.breadcrumb a { color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { color: var(--border); }

/* ============================================================
   ARTICLE — Header
   ============================================================ */
.article-header {
  padding: 40px 0 48px;
  border-bottom: 1px solid var(--border);
  max-width: 820px;
}

.article-header__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.article-header__title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}

.article-header__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: .8rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.article-header__meta strong {
  color: var(--text);
  font-weight: 600;
}

.article-header__meta-sep {
  width: 4px; height: 4px;
  background: var(--border);
  border-radius: 50%;
}

/* ============================================================
   ARTICLE — Layout (contenu + sidebar)
   ============================================================ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  padding: 48px 0 80px;
  align-items: start;
}

/* ============================================================
   ARTICLE — Contenu
   ============================================================ */
.article-content h2 {
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 48px 0 16px;
  color: var(--text);
}
.article-content h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 32px 0 12px;
}
.article-content p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #1a1a24;
  margin-bottom: 20px;
}
.article-content ul,
.article-content ol {
  padding-left: 22px;
  margin-bottom: 20px;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 6px;
  color: #1a1a24;
}
.article-content strong { font-weight: 600; color: var(--text); }

/* CTA dans l'article */
.article-cta {
  margin: 36px 0;
  padding: 28px;
  background: #FFF7F4;
  border: 1.5px solid rgba(255,77,0,.15);
  border-radius: var(--radius-lg);
  text-align: center;
}
.article-cta__label {
  font-weight: 600;
  margin-bottom: 16px;
  font-size: .95rem;
}

/* ============================================================
   VERDICT CARD
   ============================================================ */
.verdict {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
  color: #fff;
}

.verdict__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.verdict__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
}

.verdict__score {
  display: flex;
  align-items: center;
  gap: 10px;
}

.verdict__score-num {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

.verdict__score-label {
  font-size: .7rem;
  color: rgba(255,255,255,.4);
}

/* Étoiles */
.stars {
  display: flex;
  gap: 2px;
}
.star {
  font-size: 1rem;
  color: rgba(255,255,255,.2);
}
.star.filled { color: #FCD34D; }

.verdict__lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.verdict__list h4 {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 12px;
}
.verdict__list--pros h4 { color: #34D399; }
.verdict__list--cons h4 { color: #F87171; }

.verdict__list ul {
  list-style: none;
  padding: 0;
}
.verdict__list li {
  font-size: .875rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 7px;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.verdict__list--pros li::before {
  content: '+';
  position: absolute; left: 0;
  color: #34D399; font-weight: 700;
}
.verdict__list--cons li::before {
  content: '−';
  position: absolute; left: 0;
  color: #F87171; font-weight: 700;
}

/* ============================================================
   TABLE OF CONTENTS (sidebar ou inline)
   ============================================================ */
.toc {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
}

.toc__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 14px;
  letter-spacing: -.01em;
}

.toc__list {
  list-style: none;
  counter-reset: toc;
}

.toc__list li {
  counter-increment: toc;
  margin-bottom: 6px;
}
.toc__list li::before {
  content: counter(toc) ". ";
  color: var(--accent);
  font-weight: 700;
  font-size: .8rem;
}
.toc__list a {
  font-size: .82rem;
  color: var(--muted);
  transition: color .2s;
}
.toc__list a:hover { color: var(--accent); }

/* ============================================================
   CALLOUT BOXES
   ============================================================ */
.callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius);
  margin: 28px 0;
  border-left: 4px solid;
}

.callout__icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

.callout__body { flex: 1; }
.callout__body strong {
  display: block;
  font-weight: 700;
  font-size: .875rem;
  margin-bottom: 4px;
}
.callout__body p {
  font-size: .875rem;
  margin: 0;
  line-height: 1.6;
}

/* Variante info (bleu) */
.callout--info {
  background: #EFF6FF;
  border-color: var(--blue);
}
.callout--info .callout__body strong { color: var(--blue); }
.callout--info .callout__body p { color: #1e40af; }

/* Variante tip (vert) */
.callout--tip {
  background: #F0FDF4;
  border-color: #22C55E;
}
.callout--tip .callout__body strong { color: #15803D; }
.callout--tip .callout__body p { color: #166534; }

/* Variante warning (orange) */
.callout--warning {
  background: #FFF7ED;
  border-color: var(--accent);
}
.callout--warning .callout__body strong { color: var(--accent); }
.callout--warning .callout__body p { color: #9A3412; }

/* ============================================================
   TABLEAU DE COMPARAISON
   ============================================================ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: .875rem;
  margin: 32px 0;
}

.compare-table thead tr {
  background: var(--dark);
  color: #fff;
}

.compare-table th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.compare-table tbody tr:nth-child(odd) { background: #fff; }
.compare-table tbody tr:nth-child(even) { background: #F6F6F2; }

.compare-table td {
  padding: 13px 18px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.compare-table tbody tr:last-child td { border-bottom: none; }

/* Pills pour performances */
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
}
.pill--green  { background: #D1FAE5; color: #065F46; }
.pill--orange { background: #FFEDD5; color: #9A3412; }
.pill--red    { background: #FEE2E2; color: #991B1B; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { position: sticky; top: 88px; }

.sidebar-block {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.sidebar-block__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 16px;
  letter-spacing: -.01em;
}

/* Recommandations sidebar */
.sidebar-tool {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-tool:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-tool:first-of-type { padding-top: 0; }

.sidebar-tool__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.sidebar-tool__info { flex: 1; }
.sidebar-tool__name {
  font-weight: 700;
  font-size: .875rem;
  margin-bottom: 2px;
}
.sidebar-tool__note {
  font-size: .72rem;
  color: var(--muted);
}

.sidebar-tool__link {
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent);
  transition: opacity .2s;
}
.sidebar-tool__link:hover { opacity: .75; }

/* ============================================================
   ARTICLES LIÉS
   ============================================================ */
.related-articles {
  border-top: 1px solid var(--border);
  padding-top: 56px;
  margin-top: 56px;
}

.related-articles__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -.02em;
  margin-bottom: 28px;
}

/* ============================================================
   PAGE CATÉGORIE — Header
   ============================================================ */
.cat-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}

.cat-header__breadcrumb {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.cat-header__breadcrumb a { color: var(--muted); }
.cat-header__breadcrumb a:hover { color: var(--accent); }

.cat-header__title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.cat-header__desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
}

/* ============================================================
   PAGE CATÉGORIE — Layout
   ============================================================ */
.cat-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  padding: 56px 0 80px;
  align-items: start;
}

.cat-articles__count {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ============================================================
   RESPONSIVE (breakpoint 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Nav */
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .btn-nav { display: none; }

  /* Hero */
  .hero { padding: 56px 0 48px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn-affiliate,
  .hero__actions .btn-secondary { width: 100%; justify-content: center; }

  /* Grilles */
  .cards-grid { grid-template-columns: 1fr; gap: 16px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }

  /* Newsletter */
  .newsletter {
    flex-direction: column;
    gap: 24px;
    padding: 36px 24px;
  }
  .newsletter__form { flex-direction: column; }
  .newsletter__input,
  .newsletter__form .btn-affiliate { width: 100%; }

  /* Footer */
  .footer__inner { flex-direction: column; gap: 32px; }
  .footer__links { flex-direction: column; gap: 24px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  /* Article */
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .verdict__lists { grid-template-columns: 1fr; }

  /* Catégorie */
  .cat-layout { grid-template-columns: 1fr; }

  /* Tableau */
  .compare-table { font-size: .78rem; }
  .compare-table th,
  .compare-table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
  .article-header__title { font-size: 1.7rem; }
}
