/* ============================================================
   BLOG — Ta Vitrine Locale
   Feuille de style dédiée au blog. Chargée uniquement sur /blog/**.
   Hérite des tokens définis dans styles.css (couleurs, polices,
   eases, espacements) : aucune couleur ni police n'est redéfinie
   ici, on reste sur l'identité visuelle du site.
   ============================================================ */

/* ---- Conteneur & rythme vertical ------------------------- */
.blog {
  position: relative;
  z-index: 2;
}

/* Contraste : le vert citron est illisible sur les fonds CLAIRS du blog
   (index, catégories, zones blanches d'article). On le remplace par un vert
   foncé lisible (≈ AA) UNIQUEMENT dans les zones .section--light. Le citron
   reste sur les fonds sombres (corps d'article), où il contraste bien.
   Pour passer en noir : remplacer #3d6610 par #0a0a0a. */
.section--light {
  --accent: #3d6610;
}

.blog-shell {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* Colonne de lecture resserrée pour les articles */
.article__shell {
  max-width: 860px;
}

/* Dégage la hauteur du header fixe */
.blog-hero,
.blog-cat-hero {
  padding-top: clamp(118px, 15vw, 188px);
}

.blog-cats-sec,
.blog-cat-body {
  padding-block: clamp(40px, 7vw, 92px) var(--section-y);
}

/* L'article utilise des zones (padding géré par .article__zone) */
.article {
  padding-top: 0;
  padding-bottom: 0;
}

/* ---- Fil d'Ariane ---------------------------------------- */
.blog-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: clamp(20px, 3vw, 32px);
}
.blog-crumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s var(--ease-expo);
}
.blog-crumb a:hover {
  color: var(--accent);
}
.blog-crumb span[aria-hidden] {
  color: var(--line-2);
}
.blog-crumb [aria-current] {
  color: var(--text-2);
}

/* ---- Titres & chapeaux ----------------------------------- */
.blog-title,
.blog-cat-hero h1,
.article__title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 14px 0 0;
}
.blog-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
}
.blog-cat-hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.2rem);
}
.article__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.blog-lead {
  max-width: 60ch;
  margin: clamp(20px, 3vw, 30px) 0 0;
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.65;
  color: var(--text-2);
  font-weight: 300;
}

/* ---- Grille des catégories (index) ----------------------- */
.blog-cats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(16px, 1.6vw, 22px);
}
.blog-cat {
  display: flex;
}
.blog-cat > a {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background-color: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.4s var(--ease-expo),
    transform 0.4s var(--ease-expo), background-color 0.4s var(--ease-expo);
}
/* Image en bandeau (≈ 2/3 du haut), couleurs réelles, sans voile */
.blog-cat__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--bg-3);
  background-image: var(--blog-cat-img, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.5s var(--ease-expo);
}
/* Bloc texte (≈ 1/3 du bas), fond uni, parfaitement lisible */
.blog-cat__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: clamp(18px, 2vw, 24px);
}
.blog-cat > a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(140deg, transparent 40%, var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease-expo);
  pointer-events: none;
}
.blog-cat > a:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  background-color: var(--bg-3);
}
.blog-cat > a:hover .blog-cat__media {
  transform: scale(1.04);
}
.blog-cat > a:hover::after {
  opacity: 1;
}
.blog-cat__top {
  display: none; /* l'image porte désormais le visuel — rangée numéro/icône masquée */
}
.blog-cat__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.blog-cat__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--accent);
}
.blog-cat__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.blog-cat__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 6px 0 0;
  color: var(--text);
}
.blog-cat__desc {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}
.blog-cat__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.blog-cat__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted-2);
}

/* Fonds illustrés des cartes catégories (page /blog/) — l'image est choisie
   par la fin de l'URL de la carte ; le voile blanc de lisibilité est géré par
   --blog-scrim (défini sur .blog-cat > a). Baisser --blog-scrim = image plus
   visible ; monter = texte plus lisible. */
.blog-cat > a[href$="seo-local/"]          { --blog-cat-img: url(assets/bg-seo-local.webp); }
.blog-cat > a[href$="publicite-en-ligne/"] { --blog-cat-img: url(assets/bg-publicite-en-ligne.webp); }
.blog-cat > a[href$="conseils-metier/"]    { --blog-cat-img: url(assets/bg-conseils-metier.webp); }
.blog-cat > a[href$="etudes-de-cas/"]      { --blog-cat-img: url(assets/bg-etudes-de-cas.webp); }
.blog-cat > a[href$="bases-web-pro/"]      { --blog-cat-img: url(assets/bg-bases-web-pro.webp); }
.blog-cat > a[href$="pays-de-la-loire/"]   { --blog-cat-img: url(assets/bg-pays-de-la-loire.webp); }
.blog-cat > a[href$="bretagne/"]           { --blog-cat-img: url(assets/bg-bretagne.webp); }

/* Note « articles à venir » */
.blog-note {
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
  background: var(--bg-2);
}
.blog-note strong {
  color: var(--text-2);
}

/* ---- Page catégorie -------------------------------------- */
.blog-cat-intent {
  margin: clamp(18px, 2.4vw, 26px) 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}
.blog-cat-intent strong {
  color: var(--accent);
  font-weight: 600;
}

.blog-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
}
.blog-empty__badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 5px 11px;
  border-radius: 999px;
}
.blog-empty p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 56ch;
}
.blog-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

/* ---- Liste d'articles (carte article) -------------------- */
.blog-posts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(16px, 1.8vw, 24px);
}
.blog-post {
  display: flex;
}
.blog-post > a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  gap: clamp(18px, 2.4vw, 32px);
  width: 100%;
  padding: clamp(16px, 1.8vw, 22px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.4s var(--ease-expo),
    transform 0.4s var(--ease-expo), background 0.4s var(--ease-expo);
}
.blog-post > a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(140deg, transparent 40%, var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease-expo);
  pointer-events: none;
}
.blog-post > a:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  background: var(--bg-3);
}
.blog-post > a:hover::after {
  opacity: 1;
}
.blog-post__media {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-3);
  aspect-ratio: 1200 / 630;
}
.blog-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-expo);
}
.blog-post > a:hover .blog-post__media img {
  transform: scale(1.03);
}
.blog-post__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: center;
  min-width: 0;
}
.blog-post__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.blog-post__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}
.blog-post__excerpt {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.blog-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-muted-2);
}
.blog-post__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
@media (max-width: 640px) {
  .blog-post > a {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Croisement de catégories (maillage interne) */
.blog-related {
  margin-top: clamp(36px, 5vw, 64px);
}
.blog-related > h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 18px;
  font-weight: 500;
}
.blog-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.blog-related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-2);
  text-decoration: none;
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  transition: border-color 0.3s var(--ease-expo), color 0.3s var(--ease-expo);
}
.blog-related a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Encart SEO vs SEA — souligne que les 2 catégories restent distinctes */
.blog-crosslink {
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(20px, 2.6vw, 30px);
  border-left: 2px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--bg-2);
}
.blog-crosslink p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-2);
}
.blog-crosslink a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.blog-crosslink a:hover {
  border-bottom-color: var(--accent);
}

/* ============================================================
   ARTICLE
   ============================================================ */
.article__head {
  margin-bottom: clamp(28px, 4vw, 44px);
}
.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: clamp(20px, 2.6vw, 28px);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}
.article__author {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-2);
}
.article__author img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-2);
}
.article__author a {
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
}
.article__author a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.article__dot {
  color: var(--line-2);
}
.article__meta time {
  white-space: nowrap;
}
.article__read [data-reading-time] {
  color: var(--text-2);
}

/* Image OG / couverture (1200×630) */
.article__cover {
  margin: 0 0 clamp(30px, 4vw, 48px);
}
.article__cover picture,
.article__cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.article__cover figcaption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--text-muted-2);
  text-align: center;
}

/* ---- Prose ------------------------------------------------ */
.article__body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(1.06rem, 1.25vw, 1.2rem);
  line-height: 1.78;
  color: var(--text-2);
}
.article__lead {
  font-size: clamp(1.22rem, 1.8vw, 1.5rem) !important;
  line-height: 1.55;
  color: var(--text);
  font-weight: 400;
  margin: 0 0 clamp(28px, 4vw, 44px);
  padding-bottom: clamp(24px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}
.article__body > h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: clamp(44px, 6vw, 68px) 0 0.6em;
  scroll-margin-top: 96px;
}
.article__body > h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.25;
  color: var(--text);
  margin: clamp(30px, 4vw, 42px) 0 0.5em;
}
.article__body p {
  margin: 0 0 1.35em;
}
.article__body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  transition: border-color 0.25s var(--ease-expo);
}
.article__body a:hover {
  border-bottom-color: var(--accent);
}
.article__body strong {
  color: var(--text);
  font-weight: 600;
}
/* styles.css applique un reset global ul,ol{list-style:none} : on le retablit
   ici, sinon les ::marker stylés juste en dessous ne s'affichent jamais. */
.article__body ul {
  list-style: disc;
}
.article__body ol {
  list-style: decimal;
}
.article__body ul,
.article__body ol {
  margin: 0 0 1.5em;
  padding-left: 1.4em;
}
.article__body li {
  margin-bottom: 0.6em;
  padding-left: 0.3em;
}
.article__body ul li::marker {
  color: var(--accent);
}
.article__body ol li::marker {
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.article__body blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--text);
}

/* Image inline d'article */
.article__img {
  margin: clamp(28px, 4vw, 44px) 0;
}
.article__img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.article__img figcaption {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted-2);
}

/* Encart astuce */
.article__tip {
  margin: clamp(28px, 4vw, 40px) 0;
  padding: clamp(18px, 2.4vw, 26px) clamp(20px, 2.6vw, 28px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
}
.article__tip::before {
  content: "Astuce";
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.article__tip p {
  margin: 0 !important;
  font-size: 1rem;
  color: var(--text-2);
}

/* ---- FAQ article (réutilise .faq-item de styles.css) ----- */
.article__faq {
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.article__faq > h2,
.article__cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 clamp(20px, 3vw, 30px);
}
.article__faq .faq-list {
  display: flex;
  flex-direction: column;
}

/* ---- CTA final ------------------------------------------- */
.article__cta {
  margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(28px, 4vw, 48px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
}
.article__cta p {
  max-width: 52ch;
  margin: 0 auto clamp(20px, 3vw, 28px);
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--text);
  font-weight: 400;
}
.article__cta p strong {
  font-weight: 600;
}

/* ---- Encart auteur (E-E-A-T) ----------------------------- */
.article__author-box {
  display: flex;
  gap: clamp(18px, 2.6vw, 26px);
  align-items: center;
  margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
}
.article__author-box img {
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-2);
}
.article__author-box .nm {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.article__author-box .rr {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 3px 0 9px;
}
.article__author-box p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.article__author-box a {
  color: var(--accent);
  text-decoration: none;
}
.article__author-box a:hover {
  text-decoration: underline;
}

/* ---- Zones blanc / noir (alternance comme le site principal) ----- */
/*
  Zone 1 (blanc) : breadcrumb + titre + méta + image couverture
  Zone 2 (noir)  : corps de l'article
  Zone 3 (blanc) : FAQ
  Zone 4 (noir)  : CTA + auteur
  .section--light vient de styles.css — surcharge toutes les CSS vars.
*/
.article__zone {
  width: 100%;
}

/* Zone 1 blanche — dégage le nav fixe + espace bas jusqu'à la couverture */
.article__zone--hero {
  padding-top: clamp(80px, 10vw, 118px);
  padding-bottom: clamp(36px, 5vw, 56px);
}

/* Zone 2 sombre — corps prose */
.article__zone--body {
  padding-top: clamp(44px, 6vw, 68px);
  padding-bottom: clamp(44px, 6vw, 68px);
}

/* Zone 3 blanche — FAQ */
.article__zone--faq {
  padding-top: clamp(44px, 6vw, 68px);
  padding-bottom: clamp(44px, 6vw, 68px);
}

/* Zone 4 sombre — CTA + encart auteur */
.article__zone--closing {
  padding-top: clamp(44px, 6vw, 68px);
  padding-bottom: var(--section-y);
}

/* Dans les zones, supprimer les marges/bordures devenues superflues */
.article__zone .article__faq {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.article__zone .article__cta {
  margin-top: 0;
}
/* CTA + auteur partagent la zone 4 sombre : espace entre les deux */
.article__zone--closing .article__author-box {
  margin-top: clamp(28px, 4vw, 44px);
}

/* Couverture : bord visible sur fond blanc (section--light réécrit --line) */
.article__zone--hero .article__cover img {
  border-color: var(--line);
}

/* ============================================================
   FAQ ARTICLE — autonome & théma-aware
   Le bloc FAQ d'origine (.faq-q / .faq-ans) dépend de variables
   --faq-* codées en dur pour le fond sombre, ET sa règle d'ouverture
   est scopée à un ancêtre .faq absent ici → accordéon cassé + texte
   illisible. On le réécrit intégralement, scopé à .article__faq, en
   utilisant les tokens de thème (--text, --line, --accent) : lisible
   sur fond BLANC comme NOIR (section--light bascule les variables).
   ============================================================ */
.article__faq .faq-list {
  display: flex;
  flex-direction: column;
}

/* Item : séparateurs nets via --line (s'adapte clair/sombre) */
.article__faq .faq-item {
  border: 0;
  border-top: 1px solid var(--line);
}
.article__faq .faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

/* Question : police display, grasse, pleine intensité (--text) */
.article__faq .faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr 22px;
  gap: 16px;
  align-items: center;
  background: none;
  border: 0;
  text-align: left;
  padding: clamp(20px, 2.4vw, 26px) 2px;
  cursor: pointer;
  font-family: var(--font-display);
  color: var(--text);
  transition: color 0.25s var(--ease-expo);
}
.article__faq .faq-q .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.25s var(--ease-expo);
}
.article__faq .faq-q .txt {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
}
.article__faq .faq-q:hover .num {
  color: var(--accent);
}

/* Icône +/− */
.article__faq .faq-q .ico {
  position: relative;
  width: 18px;
  height: 18px;
  justify-self: end;
}
.article__faq .faq-q .ico::before,
.article__faq .faq-q .ico::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--text-muted);
  transition: transform 0.3s var(--ease-expo), opacity 0.3s var(--ease-expo),
    background 0.3s var(--ease-expo);
}
.article__faq .faq-q .ico::before {
  width: 16px;
  height: 1.6px;
  transform: translate(-50%, -50%);
}
.article__faq .faq-q .ico::after {
  width: 1.6px;
  height: 16px;
  transform: translate(-50%, -50%);
}

/* État ouvert : numéro + barre en accent, croix → trait (moins) */
.article__faq .faq-item.open .faq-q .num {
  color: var(--accent);
}
.article__faq .faq-item.open .faq-q .ico::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}
.article__faq .faq-item.open .faq-q .ico::before {
  background: var(--text);
}

/* Réponse : repliée par défaut, dépliée via .open
   (PAS de dépendance à un ancêtre .faq, contrairement au bloc d'origine) */
.article__faq .faq-ans {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-expo);
}
.article__faq .faq-item.open .faq-ans {
  max-height: 800px;
}
.article__faq .faq-ans .inner {
  overflow: hidden;
}
/* Réponse nettement distincte de la question : police sans, fine,
   couleur secondaire, indentée sous le texte de la question */
.article__faq .faq-ans p {
  margin: 0;
  padding: 2px 22px 26px 50px;
  max-width: 640px;
  color: var(--text-2);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.7;
}
.article__faq .faq-ans p strong {
  color: var(--text);
  font-weight: 600;
}

/* ---- Responsive ------------------------------------------ */
@media (max-width: 600px) {
  .blog-cats {
    grid-template-columns: 1fr;
  }
  .article__author-box {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .article__meta {
    font-size: 12px;
  }
  /* FAQ : colonnes resserrées, réponse moins indentée */
  .article__faq .faq-q {
    grid-template-columns: 26px 1fr 18px;
    gap: 12px;
  }
  .article__faq .faq-ans p {
    padding-left: 38px;
    padding-right: 0;
    font-size: 0.98rem;
  }
}

/* ---- Tableau comparatif dans le corps d'article ----------------------
   Ajoute le 2026-08-11 pour le comparatif poste a poste des articles
   d'avis. AUCUNE couleur en dur : uniquement les tokens de theme, comme
   .article__tip — le remap DA2 de blog2.css s'applique donc tout seul.
   Le wrapper scrolle horizontalement : sur mobile un comparatif a 3
   colonnes deborde, et c'est LUI qui scrolle, jamais la page. */
.article__table {
  margin: clamp(28px, 4vw, 40px) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
}
.article__table table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.96rem;
}
.article__table caption {
  caption-side: top;
  text-align: left;
  padding: clamp(14px, 2vw, 18px) clamp(14px, 2vw, 20px) 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.article__table th,
.article__table td {
  padding: clamp(10px, 1.4vw, 14px) clamp(12px, 1.6vw, 18px);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.article__table thead th {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.article__table tbody th {
  font-weight: 600;
  color: var(--text);
  width: 30%;
}
.article__table td {
  color: var(--text-2);
}
.article__table tbody tr:last-child th,
.article__table tbody tr:last-child td {
  border-bottom: 0;
}
.article__table + .article__table-note {
  margin-top: -14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
