/* ───────────────────────────────────────────────────────────────
   Nuancier — Blog & Ressources SEO.

   Système visuel rigoureusement identique au produit et à la landing page :
   blanc pur (#ffffff), noir dense (#111111), arêtes vives (aucun arrondi
   sur les conteneurs), hiérarchie par la typographie Archivo. Aucune ombre,
   aucun dégradé, aucun flou. La couleur n'est employée que pour les données
   (les cinq dimensions Big Five).

   Typographie éditoriale optimisée pour la lisibilité et le référencement.
   ─────────────────────────────────────────────────────────────── */

:root {
  /* Neutres */
  --nu-black: #111111;
  --nu-white: #ffffff;
  --nu-grey-text: #6e6e6e;
  --nu-grey-disabled: #b4b4b4;
  --nu-grey-rule: #e6e6e6;
  --nu-surface-subtle: #fafafa;

  /* Dimensions (couleurs de données strictes) */
  --nu-curiosite: #5b4fcf;
  --nu-rigueur: #17548c;
  --nu-energie: #d9542b;
  --nu-bienveillance: #4f8c1e;
  --nu-stabilite: #b8860f;

  /* Espacements base 4 */
  --nu-space-1: 4px;
  --nu-space-2: 8px;
  --nu-space-3: 12px;
  --nu-space-4: 16px;
  --nu-space-6: 24px;
  --nu-space-8: 32px;
  --nu-space-12: 48px;
  --nu-space-16: 64px;
  --nu-space-20: 80px;
  --nu-space-24: 96px;

  /* Traits */
  --nu-hairline: 1px;
  --nu-thick: 2px;
  --nu-radius-surface: 0;
  --nu-radius-control: 2px;
  --nu-radius-badge: 8px;
  --nu-radius-badge-compact: 6px;

  /* Mesures de lecture */
  --nu-content-max: 1200px;
  --nu-article-measure: 740px;
  --nu-font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--nu-white);
  color: var(--nu-black);
  font-family: var(--nu-font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--nu-black);
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--nu-grey-text);
}

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

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nu-grey-text);
  margin: 0;
  font-weight: 500;
}

/* ── En-tête ─────────────────────────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nu-space-4);
  padding: 14px 20px;
  border-bottom: var(--nu-thick) solid var(--nu-black);
  background: var(--nu-white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
}

.site-header__logo {
  height: 30px;
  width: auto;
}

.site-header__tag {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nu-grey-text);
  border-left: var(--nu-hairline) solid var(--nu-black);
  padding-left: 12px;
  display: none;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: var(--nu-space-4);
}

.site-header__link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: none;
}

.site-header__button {
  height: 34px;
  background: var(--nu-black);
  color: var(--nu-white);
  border-radius: var(--nu-radius-badge-compact);
  display: inline-flex;
  align-items: center;
  padding: 0 var(--nu-space-4);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.site-header__button:hover {
  opacity: 0.88;
  color: var(--nu-white);
}

/* ── Badges de store ─────────────────────────────────────────────── */

.store-badges {
  display: flex;
  gap: var(--nu-space-3);
}

.store-badge {
  height: 52px;
  background: var(--nu-black);
  color: var(--nu-white);
  border-radius: var(--nu-radius-badge);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 18px;
  text-decoration: none;
}

.store-badge__eyebrow {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nu-grey-disabled);
}

.store-badge__name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.store-badge--compact {
  height: 40px;
  padding: 0 var(--nu-space-4);
}

.store-badge--compact .store-badge__eyebrow {
  font-size: 8px;
}

.store-badge--compact .store-badge__name {
  font-size: 14px;
}

/* ── Blog Hub : Héros & Filtres ───────────────────────────────────── */

.blog-hero {
  border-bottom: var(--nu-thick) solid var(--nu-black);
  padding: 40px 20px 32px;
}

.blog-hero__inner {
  max-width: var(--nu-content-max);
  margin: 0 auto;
}

.blog-hero__title {
  font-size: clamp(34px, 7vw, 54px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 16px 0 0;
  max-width: 24ch;
}

.blog-hero__desc {
  font-size: 18px;
  line-height: 1.45;
  color: var(--nu-black);
  margin: 18px 0 0;
  max-width: 65ch;
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: var(--nu-hairline) solid var(--nu-grey-rule);
}

.category-pill {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border: var(--nu-hairline) solid var(--nu-black);
  border-radius: var(--nu-radius-control);
  text-decoration: none;
  background: var(--nu-white);
  color: var(--nu-black);
  display: inline-block;
  transition: all 0.15s ease;
}

.category-pill:hover,
.category-pill--active {
  background: var(--nu-black);
  color: var(--nu-white);
}

/* ── Grille d'articles ────────────────────────────────────────────── */

.blog-section {
  padding: 40px 20px 60px;
  border-bottom: var(--nu-thick) solid var(--nu-black);
}

.blog-container {
  max-width: var(--nu-content-max);
  margin: 0 auto;
}

.featured-card {
  border: var(--nu-thick) solid var(--nu-black);
  background: var(--nu-white);
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
}

.featured-card:hover {
  color: inherit;
}

.featured-card__body {
  padding: 28px 24px;
}

.featured-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--nu-grey-text);
  margin-bottom: 14px;
}

.featured-card__badge {
  background: var(--nu-black);
  color: var(--nu-white);
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-card__title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 14px;
}

.featured-card__excerpt {
  font-size: 16px;
  line-height: 1.5;
  color: var(--nu-grey-text);
  margin: 0 0 20px;
  max-width: 70ch;
}

.featured-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: var(--nu-hairline) solid var(--nu-grey-rule);
  padding-top: 16px;
  font-size: 13px;
  font-weight: 500;
}

.featured-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.article-card {
  border: var(--nu-hairline) solid var(--nu-black);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--nu-white);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.article-card:hover {
  border-width: var(--nu-thick);
  color: inherit;
  padding: 23px; /* compense l'épaisseur du trait */
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--nu-grey-text);
  margin-bottom: 12px;
}

.article-card__category {
  font-weight: 500;
  color: var(--nu-black);
}

.article-card__title {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0 0 10px;
}

.article-card__excerpt {
  font-size: 14px;
  line-height: 1.5;
  color: var(--nu-grey-text);
  margin: 0 0 16px;
}

.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  border-top: var(--nu-hairline) solid var(--nu-grey-rule);
  padding-top: 14px;
  margin-top: auto;
}

/* ── Page Article : Lecture éditoriale ───────────────────────────── */

.article-header {
  border-bottom: var(--nu-thick) solid var(--nu-black);
  padding: 36px 20px 32px;
}

.article-header__inner {
  max-width: var(--nu-article-measure);
  margin: 0 auto;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--nu-grey-text);
  margin-bottom: 18px;
}

.article-breadcrumb a {
  color: var(--nu-grey-text);
  text-decoration: none;
}

.article-breadcrumb a:hover {
  color: var(--nu-black);
  text-decoration: underline;
}

.article-breadcrumb__sep {
  color: var(--nu-grey-disabled);
}

.article-title {
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 14px 0 16px;
}

.article-lead {
  font-size: 19px;
  line-height: 1.5;
  color: #333333;
  margin: 0 0 24px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: var(--nu-hairline) solid var(--nu-black);
  font-size: 13px;
  color: var(--nu-grey-text);
}

.article-meta-bar__author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-meta-bar__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: var(--nu-hairline) solid var(--nu-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  background: var(--nu-surface-subtle);
  color: var(--nu-black);
}

/* ── Corps d'article ──────────────────────────────────────────────── */

.article-layout {
  padding: 40px 20px 60px;
  border-bottom: var(--nu-thick) solid var(--nu-black);
}

.article-content {
  max-width: var(--nu-article-measure);
  margin: 0 auto;
}

.article-content p {
  font-size: 17px;
  line-height: 1.65;
  margin: 20px 0 0;
}

.article-content strong {
  font-weight: 500;
  color: var(--nu-black);
}

.article-content h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 44px 0 0;
  padding-top: 24px;
  border-top: var(--nu-thick) solid var(--nu-black);
}

.article-content h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 32px 0 0;
  padding-top: 16px;
  border-top: var(--nu-hairline) solid var(--nu-grey-rule);
}

.article-content ul,
.article-content ol {
  margin: 20px 0 0;
  padding-left: 24px;
}

.article-content li {
  font-size: 17px;
  line-height: 1.6;
  margin-top: 8px;
}

.article-content li:first-child {
  margin-top: 0;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--nu-black);
  background: var(--nu-surface-subtle);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
}

.article-content blockquote p {
  margin: 0;
}

.article-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Sommaire (Table of Contents) ─────────────────────────────────── */

.toc-box {
  border: var(--nu-thick) solid var(--nu-black);
  padding: 20px;
  margin: 28px 0 36px;
  background: var(--nu-surface-subtle);
}

.toc-box__title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 12px;
}

.toc-box__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-box__list li {
  font-size: 14px;
  margin: 0;
}

.toc-box__list a {
  color: var(--nu-black);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.toc-box__list a:hover {
  text-decoration: underline;
  color: var(--nu-grey-text);
}

.toc-box__num {
  font-size: 11px;
  color: var(--nu-grey-text);
  font-variant-numeric: tabular-nums;
  flex: none;
}

/* ── Boîtes d'éclairage & Callouts ────────────────────────────────── */

.callout-box {
  border: var(--nu-hairline) solid var(--nu-black);
  padding: 24px;
  margin: 32px 0;
  background: var(--nu-white);
}

.callout-box--highlight {
  border-width: var(--nu-thick);
}

.callout-box__header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.callout-box__title {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.callout-box p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.55;
}

.callout-box p:first-child {
  margin-top: 0;
}

/* ── Bandes de dimensions (Infographie) ────────────────────────────── */

.dimension-showcase {
  border: var(--nu-hairline) solid var(--nu-black);
  padding: 20px;
  margin: 32px 0;
  background: var(--nu-white);
}

.dimension-showcase__title {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 16px;
}

.dimension-item {
  margin-bottom: 16px;
}

.dimension-item:last-child {
  margin-bottom: 0;
}

.dimension-item__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  margin-bottom: 4px;
}

.dimension-item__name {
  font-weight: 500;
}

.dimension-item__range {
  font-size: 12px;
  color: var(--nu-grey-text);
}

.dimension-item__track {
  height: 10px;
  border: var(--nu-hairline) solid var(--nu-black);
  padding: 1px;
}

.dimension-item__fill {
  height: 100%;
}

.dimension-item__desc {
  font-size: 13px;
  color: var(--nu-grey-text);
  margin-top: 4px;
}

/* ── Tableau comparatif scientifique ─────────────────────────────── */

.table-wrap {
  margin: 32px 0;
  overflow-x: auto;
  border: var(--nu-hairline) solid var(--nu-black);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
  background: var(--nu-white);
}

.table-wrap th,
.table-wrap td {
  padding: 12px 16px;
  border-bottom: var(--nu-hairline) solid var(--nu-grey-rule);
  vertical-align: top;
  line-height: 1.45;
}

.table-wrap th {
  background: var(--nu-black);
  color: var(--nu-white);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: var(--nu-thick) solid var(--nu-black);
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.table-wrap td:first-child {
  font-weight: 500;
}

.table-wrap tr:hover td {
  background: var(--nu-surface-subtle);
}

/* ── FAQ Accordion ────────────────────────────────────────────────── */

.faq-section {
  margin: 40px 0 20px;
}

.faq-item {
  border-top: var(--nu-hairline) solid var(--nu-black);
  padding: 18px 0;
}

.faq-item:last-child {
  border-bottom: var(--nu-hairline) solid var(--nu-black);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item__question {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  line-height: 1.3;
}

.faq-item__icon {
  font-size: 18px;
  font-weight: 400;
  flex: none;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  margin: 12px 0 0;
}

/* ── Auteur & Partage ─────────────────────────────────────────────── */

.author-card {
  border: var(--nu-hairline) solid var(--nu-black);
  padding: 24px;
  margin: 40px 0 24px;
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--nu-surface-subtle);
}

.author-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: var(--nu-thick) solid var(--nu-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  background: var(--nu-white);
  flex: none;
}

.author-card__name {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.author-card__bio {
  font-size: 13px;
  color: var(--nu-grey-text);
  margin: 4px 0 0;
  line-height: 1.45;
}

.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: var(--nu-hairline) solid var(--nu-grey-rule);
  border-bottom: var(--nu-hairline) solid var(--nu-grey-rule);
  margin: 32px 0;
  font-size: 13px;
}

.share-btn {
  border: var(--nu-hairline) solid var(--nu-black);
  background: var(--nu-white);
  padding: 6px 12px;
  border-radius: var(--nu-radius-control);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.share-btn:hover {
  background: var(--nu-black);
  color: var(--nu-white);
}

/* ── Appel à l'action d'article (CTA) ────────────────────────────── */

.article-cta {
  border: var(--nu-thick) solid var(--nu-black);
  padding: 32px 24px;
  margin: 48px 0;
  background: var(--nu-white);
  text-align: center;
}

.article-cta__title {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.article-cta__desc {
  font-size: 16px;
  line-height: 1.5;
  color: var(--nu-grey-text);
  margin: 0 auto 24px;
  max-width: 50ch;
}

.article-cta__buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Articles recommandés ────────────────────────────────────────── */

.related-section {
  padding: 40px 20px 60px;
  border-bottom: var(--nu-thick) solid var(--nu-black);
  background: var(--nu-surface-subtle);
}

.related-section__inner {
  max-width: var(--nu-content-max);
  margin: 0 auto;
}

.related-section__title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

/* ── Pied de page ────────────────────────────────────────────────── */

.site-footer {
  padding: 28px 20px;
  background: var(--nu-white);
}

.site-footer__inner {
  max-width: var(--nu-content-max);
  margin: 0 auto;
}

.site-footer__logo {
  height: 16px;
  width: auto;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--nu-grey-text);
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__links a:hover {
  color: var(--nu-black);
}

.site-footer__copy {
  font-size: 13px;
  color: var(--nu-grey-text);
  margin: 16px 0 0;
}

/* ── Responsive Desktop (>= 860px) ───────────────────────────────── */

@media (min-width: 860px) {
  .site-header {
    padding: 16px 40px;
  }

  .site-header__tag {
    display: inline-block;
  }

  .site-header__link {
    display: inline-block;
  }

  .blog-hero {
    padding: 60px 40px 48px;
  }

  .blog-section {
    padding: 60px 40px 80px;
  }

  .featured-card {
    flex-direction: row;
  }

  .featured-card__body {
    padding: 40px;
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-header {
    padding: 56px 40px 40px;
  }

  .article-layout {
    padding: 56px 40px 80px;
  }

  .related-section {
    padding: 60px 40px 80px;
  }

  .site-footer {
    padding: 36px 40px;
  }
}
