/*
Theme Name: Arôme Moderne
Theme URI: https://example.com/arome
Author: Arôme
Description: Thème éditorial pour blog d'affiliation spécialisé machines à café. Conçu pour les guides d'achat longs : sommaire automatique, fiches produit, FAQ structurée, SEO intégré (méta-description, Open Graph, données structurées Article + FAQ). Aucun plugin requis pour démarrer.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arome
Tags: blog, affiliation, seo, one-column, custom-menu
*/

/* ============================================================
   TOKENS — l'identité du site tient dans ce bloc.
   Direction : la machine à expresso comme instrument.
   Graphite (le corps), acier (le plan de travail),
   rouge de manomètre (la pression), ambre (la crema).
   ============================================================ */
:root {
  --ink: #14181c;          /* graphite : texte, en-tête */
  --ink-soft: #2b3238;
  --graphite: #5a6169;     /* texte secondaire */
  --steel: #e6e8ea;        /* fond de page (gris froid, pas crème) */
  --steel-line: #cdd2d6;   /* filets */
  --paper: #ffffff;        /* cartes, corps d'article */
  --pressure: #c42b1c;     /* accent : rouge d'aiguille de manomètre */
  --pressure-dark: #9c2115;
  --crema: #e0a458;        /* ambre : notes, étoiles, surlignage */

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  --measure: 68ch;         /* longueur de ligne confortable */
  --radius: 3px;           /* presque droit : c'est de la mécanique */
  --shadow: 0 1px 2px rgba(20, 24, 28, .06), 0 8px 24px rgba(20, 24, 28, .06);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--steel);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pressure); text-underline-offset: 3px; }
a:hover { color: var(--pressure-dark); }

:focus-visible {
  outline: 3px solid var(--pressure);
  outline-offset: 2px;
}

.wrap { width: min(1180px, calc(100% - 2.5rem)); margin-inline: auto; }

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

/* ============================================================
   EN-TÊTE — bandeau graphite, comme le capot de la machine
   ============================================================ */
.site-header {
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--pressure);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.1rem 0; flex-wrap: wrap;
}
.site-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.site-title a { color: #fff; text-decoration: none; }
.site-tagline {
  margin: .15rem 0 0;
  font-family: var(--font-data);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #98a1a9;
}

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid #3d454c; color: #fff;
  font-family: var(--font-data); font-size: .75rem; letter-spacing: .1em;
  padding: .5rem .8rem; border-radius: var(--radius); cursor: pointer;
}

.main-nav ul {
  display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0;
  flex-wrap: wrap;
}
.main-nav a {
  color: #d8dde1; text-decoration: none;
  font-family: var(--font-display); font-size: .92rem; font-weight: 500;
  padding: .3rem 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: #fff; border-bottom-color: var(--pressure);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: .2rem; padding-bottom: .8rem; }
  .main-nav a { display: block; padding: .6rem 0; }
}

/* ============================================================
   ÉTIQUETTES — mono, façon ligne de spécification
   ============================================================ */
.eyebrow {
  font-family: var(--font-data);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--graphite);
  display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
  margin: 0 0 .7rem;
}
.eyebrow .sep { color: var(--steel-line); }

.badge {
  font-family: var(--font-data);
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: .25rem .5rem;
  border-radius: var(--radius);
  border: 1px solid currentColor;
  white-space: nowrap;
}
.badge--guide { color: var(--pressure); }
.badge--pratique { color: var(--ink-soft); }

/* ============================================================
   ACCUEIL
   ============================================================ */
.home-hero {
  background: var(--paper);
  border: 1px solid var(--steel-line);
  border-left: 4px solid var(--pressure);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.4rem;
  margin: 2.5rem 0;
}
.home-hero h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -.025em;
  margin: 0 0 .8rem;
}
.home-hero h2 a { color: var(--ink); text-decoration: none; }
.home-hero h2 a:hover { color: var(--pressure); }
.home-hero p { margin: 0 0 1.4rem; color: var(--ink-soft); max-width: 60ch; }

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600; font-size: .95rem;
  background: var(--pressure); color: #fff;
  text-decoration: none;
  padding: .8rem 1.5rem;
  border-radius: var(--radius);
  border: 0;
}
.btn:hover { background: var(--pressure-dark); color: #fff; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin: 3rem 0 1.3rem;
  border-bottom: 1px solid var(--steel-line); padding-bottom: .7rem;
}
.section-head h2 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  letter-spacing: -.01em; margin: 0;
}
.section-head .count { font-family: var(--font-data); font-size: .72rem; color: var(--graphite); }

.card-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.card {
  background: var(--paper);
  border: 1px solid var(--steel-line);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 {
  font-family: var(--font-display); font-size: 1.2rem; line-height: 1.3;
  letter-spacing: -.015em; margin: 0 0 .6rem;
}
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--pressure); }
.card p { margin: 0 0 1rem; font-size: .98rem; color: var(--graphite); line-height: 1.6; }
.card .card-foot {
  margin-top: auto; font-family: var(--font-data); font-size: .7rem;
  color: var(--graphite); letter-spacing: .06em;
}

/* ============================================================
   ARTICLE
   ============================================================ */
.article-header {
  background: var(--paper);
  border-bottom: 1px solid var(--steel-line);
  padding: 2.8rem 0 2.2rem;
}
.article-header .inner { max-width: var(--measure); margin-inline: auto; }
.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.13;
  letter-spacing: -.03em;
  margin: 0 0 1rem;
}
.article-header .standfirst {
  font-size: 1.2rem; color: var(--graphite); margin: 0; line-height: 1.6;
}

.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  padding: 2.5rem 0 4rem;
}
@media (max-width: 1000px) {
  .article-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* --- Sommaire : le panneau de commande --- */
.toc {
  position: sticky; top: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--steel-line);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.2rem;
  font-size: .9rem;
}
.toc h2 {
  font-family: var(--font-data); font-size: .66rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; color: var(--graphite);
  margin: 0 0 .9rem;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: .55rem; line-height: 1.4; }
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-data); font-size: .64rem; color: var(--steel-line);
  margin-right: .5rem;
}
.toc a {
  color: var(--ink-soft); text-decoration: none;
  font-family: var(--font-display); font-size: .88rem;
}
.toc a:hover { color: var(--pressure); }
@media (max-width: 1000px) {
  .toc { position: static; }
  .toc-details summary {
    font-family: var(--font-data); font-size: .7rem; text-transform: uppercase;
    letter-spacing: .12em; cursor: pointer; color: var(--graphite);
  }
}

/* --- Corps de l'article --- */
.article-body {
  background: var(--paper);
  border: 1px solid var(--steel-line);
  border-radius: var(--radius);
  padding: 2.6rem;
  max-width: var(--measure);
}
@media (max-width: 640px) { .article-body { padding: 1.5rem; } }

.article-body > *:first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.35rem; }
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.7rem; line-height: 1.25; letter-spacing: -.02em;
  margin: 2.8rem 0 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--steel-line);
  scroll-margin-top: 1.5rem;
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.22rem; line-height: 1.35; letter-spacing: -.01em;
  margin: 2rem 0 .7rem;
}
.article-body ul, .article-body ol { margin: 0 0 1.35rem; padding-left: 1.3rem; }
.article-body li { margin-bottom: .5rem; }
.article-body strong { font-weight: 600; }
.article-body blockquote {
  margin: 1.8rem 0; padding: .2rem 0 .2rem 1.3rem;
  border-left: 3px solid var(--crema);
  color: var(--ink-soft); font-style: italic;
}
.article-body table {
  width: 100%; border-collapse: collapse; margin: 1.8rem 0;
  font-family: var(--font-display); font-size: .95rem;
}
.article-body th, .article-body td {
  border: 1px solid var(--steel-line); padding: .7rem .85rem; text-align: left;
}
.article-body th {
  background: var(--steel); font-weight: 600;
  font-family: var(--font-data); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.table-scroll { overflow-x: auto; }

/* --- Lien d'affiliation dans le texte --- */
.article-body a[rel~="sponsored"] {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--crema);
}

/* ============================================================
   SIGNATURE — la fiche technique (plaque signalétique)
   ============================================================ */
.fiche {
  margin: 2.2rem 0;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.fiche-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; padding: 1rem 1.2rem;
  background: var(--ink); color: #fff;
}
.fiche-rank {
  font-family: var(--font-data); font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--crema);
}
.fiche-name {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  letter-spacing: -.015em; margin: .2rem 0 0; line-height: 1.3;
}
.fiche-gauge {
  flex-shrink: 0; text-align: center;
  font-family: var(--font-data); line-height: 1;
}
.fiche-gauge .val { font-size: 1.5rem; font-weight: 600; color: #fff; }
.fiche-gauge .max { font-size: .7rem; color: #98a1a9; }
.fiche-gauge .lbl {
  display: block; margin-top: .3rem;
  font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; color: #98a1a9;
}
.fiche-specs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  border-top: 1px solid var(--steel-line);
}
.fiche-specs div {
  padding: .8rem 1.2rem;
  border-right: 1px solid var(--steel-line);
  font-family: var(--font-data);
}
.fiche-specs div:last-child { border-right: 0; }
.fiche-specs dt,
.fiche-specs .k {
  font-size: .58rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--graphite); margin-bottom: .25rem;
}
.fiche-specs .v { font-size: .95rem; font-weight: 500; color: var(--ink); }
.fiche-body { padding: 1.2rem; font-size: 1rem; }
.fiche-body p { margin: 0 0 1rem; }
.fiche-cta { padding: 0 1.2rem 1.2rem; }
.fiche-cta .btn { width: 100%; text-align: center; }
.fiche-cta .note {
  display: block; margin-top: .5rem;
  font-family: var(--font-data); font-size: .62rem; color: var(--graphite);
  letter-spacing: .06em; text-align: center;
}

/* ============================================================
   BLOC PRODUIT — présentation en zigzag (image / texte alternés)
   Conçu pour rester élégant MÊME SANS PHOTO.
   ============================================================ */
.produit {
  margin: 2.6rem 0;
  background: var(--paper);
  border: 1px solid var(--steel-line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
/* Un bloc sur deux : l'image passe à droite. */
.produit--alt .produit-media { order: 2; }

.produit-media {
  position: relative;
  background: var(--steel);
  display: flex; align-items: center; justify-content: center;
  min-height: 260px;
  padding: 1.5rem;
  border-right: 1px solid var(--steel-line);
}
.produit--alt .produit-media { border-right: 0; border-left: 1px solid var(--steel-line); }
.produit-media img {
  max-height: 300px; width: auto; object-fit: contain;
  mix-blend-mode: multiply; /* fond blanc des photos produit -> se fond dans le gris */
}

/* Repère de classement, posé sur le média */
.produit-rang {
  position: absolute; top: 0; left: 0;
  background: var(--ink); color: #fff;
  font-family: var(--font-data); font-size: .64rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .45rem .8rem;
}
.produit--alt .produit-rang { left: auto; right: 0; }

/* Sans photo : une plaque signalétique dessinée, pas un trou. */
.produit-plaque {
  text-align: center; font-family: var(--font-data); color: var(--graphite);
  width: 100%;
}
.produit-plaque .num {
  font-size: 3.4rem; font-weight: 600; color: var(--steel-line);
  line-height: 1; letter-spacing: -.02em;
}
.produit-plaque .lbl {
  display: block; margin-top: .6rem;
  font-size: .6rem; letter-spacing: .16em; text-transform: uppercase;
}
.produit-plaque .rule {
  width: 40px; height: 2px; background: var(--pressure);
  margin: .9rem auto 0;
}

.produit-corps {
  padding: 1.8rem;
  display: flex; flex-direction: column;
}
.produit-nom {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  letter-spacing: -.02em; line-height: 1.25; margin: .35rem 0 .6rem;
}
.produit-note {
  display: inline-flex; align-items: baseline; gap: .2rem;
  font-family: var(--font-data); margin-bottom: .8rem;
}
.produit-note .val { font-size: 1.35rem; font-weight: 600; color: var(--ink); }
.produit-note .max { font-size: .75rem; color: var(--graphite); }
.produit-note .etoiles { margin-left: .5rem; color: var(--crema); letter-spacing: .1em; }

.produit-desc {
  font-size: 1rem; line-height: 1.6; margin: 0 0 1.1rem; color: var(--ink-soft);
}
.produit-desc p { margin: 0 0 .8rem; }
.produit-desc p:last-child { margin-bottom: 0; }

/* Points forts / réserves : la crédibilité vient d'ici. */
.produit-points { list-style: none; margin: 0 0 1.2rem; padding: 0; font-size: .95rem; }
.produit-points li {
  padding-left: 1.4rem; position: relative; margin-bottom: .4rem; line-height: 1.5;
}
.produit-points li.plus::before {
  content: "+"; position: absolute; left: 0; top: -1px;
  font-family: var(--font-data); font-weight: 600; color: #1a7f4b;
}
.produit-points li.moins::before {
  content: "–"; position: absolute; left: 0; top: -1px;
  font-family: var(--font-data); font-weight: 600; color: var(--pressure);
}

.produit-specs {
  display: flex; flex-wrap: wrap; gap: 0 1.6rem;
  border-top: 1px solid var(--steel-line);
  padding-top: .9rem; margin-bottom: 1.2rem;
  font-family: var(--font-data);
}
.produit-specs div { margin-bottom: .4rem; }
.produit-specs .k {
  font-size: .56rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--graphite); margin-bottom: .15rem;
}
.produit-specs .v { font-size: .92rem; font-weight: 500; color: var(--ink); }

.produit-cta { margin-top: auto; }
.produit-cta .btn { width: 100%; text-align: center; }
.produit-cta .prix {
  display: block; text-align: center; margin-bottom: .6rem;
  font-family: var(--font-data); font-size: 1.1rem; font-weight: 600; color: var(--ink);
}
.produit-cta .note-prix {
  display: block; text-align: center; margin-top: .5rem;
  font-family: var(--font-data); font-size: .6rem; letter-spacing: .06em;
  color: var(--graphite);
}

/* Mobile : on empile, image en haut. */
@media (max-width: 700px) {
  .produit { grid-template-columns: 1fr; }
  .produit--alt .produit-media { order: 0; border-left: 0; }
  .produit-media {
    border-right: 0; border-bottom: 1px solid var(--steel-line);
    min-height: 200px;
  }
  .produit--alt .produit-rang { left: 0; right: auto; }
  .produit-corps { padding: 1.4rem; }
}

/* ============================================================
   FAQ + divulgation d'affiliation
   ============================================================ */
.faq-item {
  border-bottom: 1px solid var(--steel-line);
  padding: .3rem 0;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  padding: .9rem 2rem .9rem 0; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: .2rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-data); color: var(--pressure); font-size: 1.2rem;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-answer { padding: 0 0 1rem; color: var(--ink-soft); }
.faq-item .faq-answer > *:last-child { margin-bottom: 0; }

.disclosure {
  margin: 2.5rem 0 0;
  padding: 1rem 1.2rem;
  background: var(--steel);
  border-left: 3px solid var(--crema);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: .85rem; line-height: 1.55; color: var(--graphite);
}
.disclosure strong { color: var(--ink-soft); }

/* ============================================================
   MAILLAGE INTERNE — à lire ensuite
   ============================================================ */
.related { margin: 3.5rem 0 0; }
.related h2 {
  font-family: var(--font-data); font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; color: var(--graphite);
  border-top: 1px solid var(--steel-line); padding-top: 1.2rem; margin: 0 0 1.2rem;
}
.related-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.related-list a {
  display: block; padding: 1rem;
  background: var(--steel); border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 500; font-size: .98rem; line-height: 1.4;
  border-left: 3px solid var(--steel-line);
}
.related-list a:hover { border-left-color: var(--pressure); color: var(--pressure); }

/* ============================================================
   PAGINATION, ARCHIVES, 404, RECHERCHE
   ============================================================ */
.pagination { margin: 3rem 0; display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers {
  font-family: var(--font-data); font-size: .85rem;
  padding: .55rem .9rem; border: 1px solid var(--steel-line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink-soft);
  background: var(--paper);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.page-intro { margin: 2.5rem 0 1rem; }
.page-intro h1 {
  font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -.025em; margin: 0 0 .5rem;
}
.page-intro p { color: var(--graphite); margin: 0; max-width: 60ch; }

.search-form { display: flex; gap: .5rem; margin: 1.5rem 0; }
.search-form input[type="search"] {
  flex: 1; padding: .7rem .9rem; font-family: var(--font-body); font-size: 1rem;
  border: 1px solid var(--steel-line); border-radius: var(--radius); background: var(--paper);
}

.notice-empty {
  background: var(--paper); border: 1px dashed var(--steel-line);
  border-radius: var(--radius); padding: 2.5rem; text-align: center;
}
.notice-empty h1 { font-family: var(--font-display); margin: 0 0 .6rem; }
.notice-empty p { color: var(--graphite); margin: 0 0 1.2rem; }

/* ============================================================
   PIED DE PAGE
   ============================================================ */
.site-footer {
  background: var(--ink); color: #98a1a9;
  margin-top: 4rem; padding: 2.5rem 0 2rem;
  border-top: 3px solid var(--pressure);
  font-family: var(--font-display); font-size: .9rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer a { color: #d8dde1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-legal {
  margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid #2b3238;
  font-family: var(--font-data); font-size: .68rem; letter-spacing: .04em; line-height: 1.7;
}
